commit | ed3a552eb7519221b1c099c0f33aa2b6f7885063 | [log] [tgz] |
---|---|---|
author | Carey Metcalfe <carey@cmetcalfe.ca> | Sat Mar 12 14:14:30 2016 -0500 |
committer | Carey Metcalfe <carey@cmetcalfe.ca> | Sat Mar 12 14:14:36 2016 -0500 |
tree | e8a00c447b383853d788f8bf68c0feb7fd7074db | |
parent | 3f00eb12ef770033cd12963019751cd27d8b95a3 [diff] [blame] |
Pull Javascript out into individual files When rendering it's all pulled into a single minified file
diff --git a/static/js/scroll.js b/static/js/scroll.js new file mode 100644 index 0000000..6ec5f38 --- /dev/null +++ b/static/js/scroll.js
@@ -0,0 +1,8 @@ +// Scroll past header on smaller screens + +function skipHeader(){ + if (window.location.pathname != '/' && window.location.pathname != '/index.html'){ + window.scroll(0, document.getElementById('main').offsetTop); + } +} +