From 7253207e9b4df635bb961066b26a9af858603b45 Mon Sep 17 00:00:00 2001 From: hellekin Date: Wed, 3 Jan 2018 22:34:15 +0100 Subject: Somehow Nemo came to the same conclusion: make it a pointer game. --- assets/js/ps-app.js | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'assets') 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 .// [ '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 + }) }) }); -- cgit v1.2.3