From e3d5ebb12d2fb731100ff4b568d049ee59a4de8f Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 28 Dec 2017 21:56:42 +0100 Subject: Add new visual version... --- assets/js/ps-app.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 assets/js/ps-app.js (limited to 'assets/js') 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 .// + $('.media section').each(function(_, e) { + e.onclick = function(e) { + window.location = './' + e.target.id + '/' + return false + } + }) + + }); + +})($) -- cgit v1.2.3