summaryrefslogtreecommitdiff
path: root/html/assets/main.js
diff options
context:
space:
mode:
authorMatthijs Kuiper <info@matthijskuiper.nl>2018-01-08 00:34:58 +0100
committerMatthijs Kuiper <info@matthijskuiper.nl>2018-01-09 00:44:09 +0100
commit07e2c59aa35f9d3057f247882136ea6238ed207c (patch)
treebf9c0d02d7d48e0e685f861a1f2ee14943b6a67a /html/assets/main.js
parenta25aca329747cac77264847b29cb844a45c7a88f (diff)
Assets dir with libs
Diffstat (limited to 'html/assets/main.js')
-rw-r--r--html/assets/main.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/html/assets/main.js b/html/assets/main.js
new file mode 100644
index 0000000..b1e9b9e
--- /dev/null
+++ b/html/assets/main.js
@@ -0,0 +1,11 @@
+$(document).ready(function() {
+ // Tooltips
+ $(".tooltip").tooltipster();
+
+ // Click rows
+ $(".clickableRow").click(function() {
+ if (event.which == 1) {
+ window.document.location = $(this).attr("href");
+ }
+ });
+});