diff options
Diffstat (limited to 'assets/js/ps-app.js')
-rw-r--r-- | assets/js/ps-app.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/assets/js/ps-app.js b/assets/js/ps-app.js new file mode 100644 index 0000000..66d67fe --- /dev/null +++ b/assets/js/ps-app.js @@ -0,0 +1,15 @@ +(function($) { + + $(document).ready(function() { + + // Make each .media section clickable to reach ./<id>/ + $('.media section').each(function(_, e) { + e.onclick = function(e) { + window.location = './' + e.target.id + '/' + return false + } + }) + + }); + +})($) |