1function vw_one_page_menu_open_nav() { 2 window.vw_one_page_responsiveMenu=true; 3 jQuery(".sidenav").addClass('show'); 4} 5function vw_one_page_menu_close_nav() { 6 window.vw_one_page_responsiveMenu=false; 7 jQuery(".sidenav").removeClass('show'); 8} 9 10jQuery(function($){ 11 "use strict"; 12 jQuery('.main-menu > ul').superfish({ 13 delay: 500, 14 animation: {opacity:'show',height:'show'}, 15 speed: 'fast' 16 }); 17}); 18 19jQuery(document).ready(function () { 20 window.vw_one_page_currentfocus=null; 21 vw_one_page_checkfocusdElement(); 22 var vw_one_page_body = document.querySelector('body'); 23 vw_one_page_body.addEventListener('keyup', vw_one_page_check_tab_press); 24 var vw_one_page_gotoHome = false; 25 var vw_one_page_gotoClose = false; 26 window.vw_one_page_responsiveMenu=false; 27 function vw_one_page_checkfocusdElement(){ 28 if(window.vw_one_page_currentfocus=document.activeElement.className){ 29 window.vw_one_page_currentfocus=document.activeElement.className; 30 } 31 } 32 function vw_one_page_check_tab_press(e) { 33 "use strict"; 34 e = e || event; 35 var activeElement; 36 37 if(window.innerWidth < 999){ 38 if (e.keyCode == 9) { 39 if(window.vw_one_page_responsiveMenu){ 40 if (!e.shiftKey) { 41 if(vw_one_page_gotoHome) { 42 jQuery( ".main-menu ul:first li:first a:first-child" ).focus(); 43 } 44 } 45 if (jQuery("a.closebtn.mobile-menu").is(":focus")) { 46 vw_one_page_gotoHome = true; 47 } else { 48 vw_one_page_gotoHome = false; 49 } 50 51 }else{ 52 53 if(window.vw_one_page_currentfocus=="responsivetoggle"){ 54 jQuery( "" ).focus(); 55 }}} 56 } 57 if (e.shiftKey && e.keyCode == 9) { 58 if(window.innerWidth < 999){ 59 if(window.vw_one_page_currentfocus=="header-search"){ 60 jQuery(".responsivetoggle").focus(); 61 }else{ 62 if(window.vw_one_page_responsiveMenu){ 63 if(vw_one_page_gotoClose){ 64 jQuery("a.closebtn.mobile-menu").focus(); 65 } 66 if (jQuery( ".main-menu ul:first li:first a:first-child" ).is(":focus")) { 67 vw_one_page_gotoClose = true; 68 } else { 69 vw_one_page_gotoClose = false; 70 } 71 72 }else{ 73 74 if(window.vw_one_page_responsiveMenu){ 75 }}}} 76 } 77 vw_one_page_checkfocusdElement(); 78 } 79}); 80 81(function( $ ) { 82 83 jQuery('document').ready(function($){ 84 setTimeout(function () { 85 jQuery("#preloader").fadeOut("slow"); 86 },1000); 87 }); 88 89 $(window).scroll(function(){ 90 var sticky = $('.header-sticky'), 91 scroll = $(window).scrollTop(); 92 93 if (scroll >= 100) sticky.addClass('header-fixed'); 94 else sticky.removeClass('header-fixed'); 95 }); 96 97 $(document).ready(function () { 98 $(window).scroll(function () { 99 if ($(this).scrollTop() > 100) { 100 $('.scrollup i').fadeIn(); 101 } else { 102 $('.scrollup i').fadeOut(); 103 } 104 }); 105 106 $('.scrollup i').click(function () { 107 $("html, body").animate({ 108 scrollTop: 0 109 }, 600); 110 return false; 111 }); 112 }); 113 114})( jQuery ); 115 116jQuery(document).ready(function () { 117 function vw_one_page_search_loop_focus(element) { 118 var vw_one_page_focus = element.find('select, input, textarea, button, a[href]'); 119 var vw_one_page_firstFocus = vw_one_page_focus[0]; 120 var vw_one_page_lastFocus = vw_one_page_focus[vw_one_page_focus.length - 1]; 121 var KEYCODE_TAB = 9; 122 123 element.on('keydown', function vw_one_page_search_loop_focus(e) { 124 var isTabPressed = (e.key === 'Tab' || e.keyCode === KEYCODE_TAB); 125 126 if (!isTabPressed) { 127 return; 128 } 129 130 if ( e.shiftKey ) /* shift + tab */ { 131 if (document.activeElement === vw_one_page_firstFocus) { 132 vw_one_page_lastFocus.focus(); 133 e.preventDefault(); 134 } 135 } else /* tab */ { 136 if (document.activeElement === vw_one_page_lastFocus) { 137 vw_one_page_firstFocus.focus(); 138 e.preventDefault(); 139 } 140 } 141 }); 142 } 143 jQuery('.search-box span a').click(function(){ 144 jQuery(".serach_outer").slideDown(1000); 145 vw_one_page_search_loop_focus(jQuery('.serach_outer')); 146 }); 147 148 jQuery('.closepop a').click(function(){ 149 jQuery(".serach_outer").slideUp(1000); 150 }); 151}); 152 153/*sticky copyright*/ 154window.addEventListener('scroll', function() { 155 var sticky = document.querySelector('.copyright-sticky'); 156 if (!sticky) return; 157 158 var scrollTop = window.scrollY || document.documentElement.scrollTop; 159 var windowHeight = window.innerHeight; 160 var documentHeight = document.documentElement.scrollHeight; 161 162 var isBottom = scrollTop + windowHeight >= documentHeight-100; 163 164 if (scrollTop >= 100 && !isBottom) { 165 sticky.classList.add('copyright-fixed'); 166 } else { 167 sticky.classList.remove('copyright-fixed'); 168 } 169});
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.