From c203fcb7df9ef3853d7842a9083609b4725032ca Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Wed, 15 Aug 2018 23:22:57 +0530 Subject: added custom css class for other than home page tempates --- static/website/bootstrap-css/assets/js/main.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'static/website/bootstrap-css/assets/js/main.js') diff --git a/static/website/bootstrap-css/assets/js/main.js b/static/website/bootstrap-css/assets/js/main.js index 66a2645..bb476df 100644 --- a/static/website/bootstrap-css/assets/js/main.js +++ b/static/website/bootstrap-css/assets/js/main.js @@ -12,13 +12,20 @@ $(window).load(function(){ function handleTopNavAnimation() { var top=$(window).scrollTop(); - + if($('#home').attr("data") == 'home'){ if(top>10){ + $('#site-nav').addClass('navbar-solid'); } else{ $('#site-nav').removeClass('navbar-solid'); } + } + else{ + $('#site-nav').addClass('navbar-solid-other'); + $("a").removeAttr("data-scroll"); + } + } /* @@ -66,4 +73,4 @@ $('#registration-form').submit(function(e){ * SmoothScroll */ -smoothScroll.init(); \ No newline at end of file +smoothScroll.init(); -- cgit