diff options
author | hellekin <hellekin@cepheide.org> | 2018-01-03 22:34:15 +0100 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2018-01-03 22:34:15 +0100 |
commit | 7253207e9b4df635bb961066b26a9af858603b45 (patch) | |
tree | a48b0e62deff10d86d2c549dd6fc65a77a424fff /assets | |
parent | 7eaf6a98a293da8b565f9e69b76ceb1ef84b4d00 (diff) | |
download | lesoiseaux.io-7253207e9b4df635bb961066b26a9af858603b45.tar.gz |
Somehow Nemo came to the same conclusion: make it a pointer game.
Diffstat (limited to 'assets')
-rw-r--r-- | assets/js/ps-app.js | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/assets/js/ps-app.js b/assets/js/ps-app.js index 8c5e3c9..d58ea02 100644 --- a/assets/js/ps-app.js +++ b/assets/js/ps-app.js @@ -4,10 +4,19 @@ // Make each .media section clickable to reach ./<id>/ [ 'gfx', 'txt', 'vdo' ].forEach(function(id) { - $('#' + id).onclick = function() { - window.location = '/' + id + '/'; - return false - } + $('#' + id) + .click(function(e) { + window.location = `/${id}/`; + return false + }) + .mouseover(function(e) { + e.target.style.cursor = 'pointer' + return false + }) + .mouseout(function(e) { + e.target.style.cursor = 'auto' + return false + }) }) }); |