Tuesday, August 29, 2017

Detect the url and filter the url and hide some id which we do not need

var $ = jQuery.noConflict();
  $(document).ready(function() {
   var url = window.location.href;
     var a = window.location.pathname;
       c = a.substring(1);
       //console.log(c);
       if(c==''||c=='bienvenue-langue'||c=='bienvenue'||c=='welcome'){
       //console.log('need to remove header section');
       $('#header-block').css("cssText", "display:none !important;");
       $('#top-b').css("cssText", "display:none !important;");
       }
     
  //$('#maininner').css("cssText", "min-height: 1400px !important;");
 });