1 var module_4100599 = (function() { 2 var __hs_messages = {}; 3 i18n_getmessage = function() { 4 return hs_i18n_getMessage(__hs_messages, hsVars['language'], arguments); 5 }; 6 i18n_getlanguage = function() { 7 return hsVars['language']; 8 }; 9//Don't scroll on moibile 10jQuery(document).ready(function() { 11 12 var clicked = "false"; 13 14 $('#agent-nav-icon').click(function(e) { 15 e.preventDefault(); 16 var overflowState = 'auto' 17 18 if (clicked == "false") { 19 overflowState = 'hidden'; 20 clicked = "true"; 21 } else { 22 overflowState = 'auto'; 23 clicked = "false"; 24 } 25 $('html, body').css('overflow', overflowState); 26 }); 27}); 28 29//Active menu 30$(function(){ 31 var current = window.location.href; //location.pathname; 32 $('.top-menu ul li a, .main-agent-nav-menu ul li a').each(function(){ 33 var $this = $(this); 34 // if the current path is like this link, make it active 35 if($this.attr('href').indexOf(current) !== -1){ 36 $this.addClass('active'); 37 }else{ 38 $this.removeClass('active'); 39 } 40 }) 41}) 42 43 44 45// var cururl = window.location.pathname; 46// var curpage = cururl.substr(cururl.lastIndexOf('/') + 1); 47// var hash = window.location.hash.substr(1); 48// if((curpage == "" || curpage == "/" || curpage == "admin") && hash=="") 49// { 50// //$(".topmenu > li:first-child").addClass("active"); 51// } 52// else 53// { 54// $(".topmenu ul li").each(function(){ 55// $(this).removeClass("active"); 56// }); 57// if(hash != "") 58// $(".topmenu ul li a[href*='"+hash+"']").parents("li").addClass("active"); 59// else 60// $(".topmenu ul li a[href*='"+curpage+"']").parents("li").addClass("active"); 61// } 62 })();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.