summaryrefslogtreecommitdiff
path: root/public/javascripts
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-07-03 02:05:56 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-07-03 02:05:56 +0200
commitd84e9e74cadc97af63025884167a73b6815fa754 (patch)
treed44407af7d99d83d90e64b414ac12b58a649657e /public/javascripts
parent506d5edbdf3b31428b3ad3643b3f524bb2418eb8 (diff)
downloadcollection-json-explorer-d84e9e74cadc97af63025884167a73b6815fa754.tar.gz
collection-json-explorer-d84e9e74cadc97af63025884167a73b6815fa754.tar.bz2
collection-json-explorer-d84e9e74cadc97af63025884167a73b6815fa754.tar.xz
collection-json-explorer-d84e9e74cadc97af63025884167a73b6815fa754.zip
o Adding a side bar.
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);
+ });
+ */
+});