summaryrefslogtreecommitdiff
path: root/public/javascripts
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/gui.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/public/javascripts/gui.js b/public/javascripts/gui.js
new file mode 100644
index 0000000..f235f6d
--- /dev/null
+++ b/public/javascripts/gui.js
@@ -0,0 +1,11 @@
+$(document).ready(function() {
+ /* Needed if the static top navbar is being used.
+ * Add data-offset='60' to <body> as well.
+ var offset = 60;
+ $('#navbar ul li a').click(function(event) {
+ event.preventDefault();
+ $($(this).attr('href'))[0].scrollIntoView();
+ scrollBy(0, -offset);
+ });
+ */
+});