diff options
Diffstat (limited to 'assets/js')
-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 + }) }) }); |