From 32bad9bdbe7aefe2fb67e3e32f89ba7fa08f23d5 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Fri, 6 Mar 2015 12:44:03 +0100 Subject: [PATCH] Added navbar toggle on small screens --- css/crep.css | 5 +++++ js/crep.js | 5 +++++ topnavbar.php | 6 ++++++ 3 files changed, 16 insertions(+), 0 deletions(-) diff --git a/css/crep.css b/css/crep.css index aaa7493..efccc4b 100755 --- a/css/crep.css +++ b/css/crep.css @@ -45,6 +45,11 @@ body font-family: linkFont; } +.navbar-default .navbar-toggle .icon-bar +{ + background-color: #fff; +} + .navbar-default { background-color: #749BD1; diff --git a/js/crep.js b/js/crep.js index f8f5907..878df21 100755 --- a/js/crep.js +++ b/js/crep.js @@ -108,6 +108,11 @@ $(document).ready(function () { loc: current }, document.title, current) window.onpopstate = historyChange + $('.navbar-fixed-top .navbar-toggle').click(function () { + $(document.body).animate({ + scrollTop: 0 + }) + }) }) function initializeMap() { diff --git a/topnavbar.php b/topnavbar.php index 52dda97..b6b736d 100755 --- a/topnavbar.php +++ b/topnavbar.php @@ -6,6 +6,12 @@ +