1jQuery.noConflict(); 2 3/**** Cache problem LESS files ***/ 4/*function destroyLessCache(templates/e4jeasyhiring/css) { // e.g. '/css/' or '/stylesheets/' 5 6 if (!window.localStorage || !less || less.env !== 'development') { 7 return; 8 } 9 var host = window.location.host; 10 var protocol = window.location.protocol; 11 var keyPrefix = protocol + '//' + host + pathToCss; 12 13 for (var key in window.localStorage) { 14 if (key.indexOf(keyPrefix) === 0) { 15 delete window.localStorage[key]; 16 } 17 } 18} 19/*** End Less Problem ***/ 20 21var resp_menu_on = false; 22 23function vikShowResponsiveMenu() { 24 jQuery(".nav-menu-active").toggle(); 25 jQuery(".e4j-body-page").toggleClass("e4j-body-fixed e4j-body-shifted"); 26 if(jQuery(".e4j-body-page").hasClass("e4j-body-shifted")) { 27 resp_menu_on = true; 28 }else { 29 resp_menu_on = false; 30 } 31} 32 33function vikcs_adapter() { 34 if (jQuery("#vikcs-slider")) { 35 var vcsl_height = jQuery("#vikcs-slider").css("height"); 36 if (parseInt(vcsl_height) > 0) { 37 jQuery("#slideadv").css("height", vcsl_height); 38 } 39 } 40} 41 42jQuery(document).ready(function() { 43 44 vikcs_adapter(); 45 46 /**** Menu MAINMENU position ***/ 47 var screen = jQuery(window).width(); 48 if (screen < 800) { 49 jQuery("#nav-menu-devices").addClass("nav-menu-active"); 50 51 } 52 jQuery(window).resize(function() { 53 var width = jQuery(window).width(); 54 if (width < 800) { 55 jQuery("#nav-menu-devices").addClass("nav-menu-active"); 56 } else { 57 jQuery("#nav-menu-devices").removeClass("nav-menu-active").removeAttr("style"); 58 } 59 vikcs_adapter(); 60 }); 61 62 var screen = jQuery(window).width(); 63 if (screen <= 1480) { 64 jQuery("#mainmenu .loginmenu").addClass("e4jsign-rsz"); 65 } 66 jQuery(window).resize(function() { 67 var width = jQuery(window).width(); 68 if (width <= 1480) { 69 jQuery("#mainmenu .loginmenu").addClass("e4jsign-rsz"); 70 } else { 71 jQuery("mainmenu .loginmenu").removeClass("e4jsign-rsz").removeAttr("style"); 72 } 73 vikcs_adapter(); 74 }); 75 76 /** Class fixed menu ***/ 77 78 var menu_lim = jQuery("#tbar-upmenu"); 79 var menu_selector = jQuery(".fixedmenu"); 80 var change_to_sticky = true; 81 var lim_pos = 75; 82 if(menu_lim.length) { 83 lim_pos = menu_lim.offset().top + menu_lim.outerHeight(true); 84 } 85 jQuery(window).scroll(function() { 86 var scrollpos = jQuery(window).scrollTop(); 87 if (scrollpos > lim_pos) { 88 if (change_to_sticky === true) { 89 menu_selector.addClass("fx-menu-slide"); 90 change_to_sticky = false; 91 } 92 } else { 93 if (change_to_sticky === false) { 94 menu_selector.removeClass("fx-menu-slide"); 95 change_to_sticky = true; 96 } 97 } 98 }); 99 100 var login_blocked = false; 101 jQuery("#mainmenu li.parent, .loginmenu, .topmenu li.parent").hover(function() { 102 jQuery(this).addClass("parent-open"); 103 }, function() { 104 if(!login_blocked) { 105 jQuery(this).removeClass("parent-open"); 106 } 107 }); 108 jQuery(".loginmenu .modlgn-username, .loginmenu .modlgn-passwd").focus(function() { 109 login_blocked = true; 110 }); 111 112 jQuery(document).mouseup(function (e) { 113 //Responsive Menu 114 var resp_menu_cont = jQuery("#nav-menu-devices"); 115 var resp_menu_button = jQuery("#menutitlemob"); 116 if(resp_menu_on && !resp_menu_cont.is(e.target) && resp_menu_cont.has(e.target).length === 0 && !resp_menu_button.is(e.target) && resp_menu_button.has(e.target).length === 0) { 117 resp_menu_on = false; 118 jQuery(".nav-menu-active").hide(); 119 jQuery(".e4j-body-page").removeClass("e4j-body-fixed e4j-body-shifted"); 120 } 121 //Login dropdown 122 var login_container = jQuery(".loginmenu"); 123 if (!login_container.is(e.target) && login_container.has(e.target).length === 0) { 124 login_blocked = false; 125 login_container.removeClass(".parent-open"); 126 login_container.trigger("mouseout"); 127 } 128 }); 129 130 131 /**** Menu SUBMENU position ***/ 132 var screen = jQuery(window).width(); 133 if (screen < 860) { 134 jQuery("#submenu .l-inline").addClass("menumobile"); 135 } 136 jQuery(window).resize(function() { 137 var width = jQuery(window).width(); 138 if (width < 860) { 139 jQuery("#submenu .l-inline").addClass("menumobile"); 140 } else { 141 jQuery("#submenu .l-inline").removeClass("menumobile").removeAttr("style"); 142 } 143 }); 144 145 jQuery("#submenu li.parent").hover(function() { 146 jQuery(this).find(".l-block:first").stop(true, true).delay(50).slideDown(400); 147 }, function() { 148 jQuery(this).find(".l-block:first").stop(true, true).slide
148Up(600); 149 }); 150 151 152 /**** Login Tab ***/ 153 jQuery(".logintab h3").click(function() { 154 jQuery(this).toggleClass('logintabopened'); 155 jQuery(".logintab .form-inline").fadeToggle(); 156 }); 157 jQuery(document).mouseup(function(e) { 158 var logintabcontainer = jQuery(".logintab .form-inline"); 159 if (!logintabcontainer.is(e.target) && logintabcontainer.has(e.target).length === 0) { 160 logintabcontainer.hide(); 161 jQuery(".logintab h3").removeClass("logintabopened"); 162 } 163 }); 164});
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.