aboutsummaryrefslogtreecommitdiff
path: root/assets/js/ps-app.js
diff options
context:
space:
mode:
authorYour Name <you@example.com>2017-12-28 21:56:42 +0100
committerYour Name <you@example.com>2017-12-28 21:56:42 +0100
commite3d5ebb12d2fb731100ff4b568d049ee59a4de8f (patch)
tree2ba666649a8df55356209f0009df5397a45bf16e /assets/js/ps-app.js
parent6352b1fed84c4d79664d2de2d2ee28c6c4ff6d0b (diff)
downloadlesoiseaux.io-e3d5ebb12d2fb731100ff4b568d049ee59a4de8f.tar.gz
Add new visual version...
Diffstat (limited to 'assets/js/ps-app.js')
-rw-r--r--assets/js/ps-app.js15
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
+ }
+ })
+
+ });
+
+})($)