1var $ = jQuery; 2var selectWidgetOffSet; 3 4if ( true == $('.selectWidgetHeader').is(':visible') ) { 5 selectWidgetOffSet = $('.selectWidgetHeader').offset().top; 6} 7function topStickyHeader() { 8 if ($(window).scrollTop() >= selectWidgetOffSet ) { 9 $('body').addClass('asd-widget-search-fixed'); 10 } else { 11 $('body').removeClass('asd-widget-search-fixed'); 12 } 13} 14$(document).ready(function() { 15 topStickyHeader(); 16 contNavigation(); 17 $('.mobile-menu').on('click', function(e) { 18 if ( 981 > $(window).innerWidth() ) { 19 $('#top-menu-nav').toggleClass('opened'); 20 $(this).next().slideToggle(); 21 } 22 }); 23 $('#search_icon,.close_search_field').on('click', function(e) { 24 e.stopImmediatePropagation(); 25 $('body').toggleClass('active-search'); 26 $('.search-field').focus(); 27 }); 28 $('.site-header .site-navigation .menu-primary-menu-container .nav li.menu-item-has-children a').click(function(){ 29 if ( 980 < $(window).innerWidth() && 1025 > $(window).innerWidth()) { 30 $(this).next('.sub-menu').toggleClass('opened'); 31 } 32 33 }); 34}); 35$(window).scroll(function() { 36 topStickyHeader(); 37 if ( 400 < $(window).scrollTop() ) { 38 $('footer .back-to-top').addClass('visiable'); 39 } else { 40 $('footer .back-to-top').removeClass('visiable'); 41 } 42}); 43 44// Back To Top Navigation 45if ( 0 < $('.back-to-top').length ) { 46 $(document).on('click', '.back-to-top', function(e) { 47 e.preventDefault(); 48 $('html,body').animate({ 49 scrollTop: 0 50 }, 'slow'); 51 }); 52} 53 54// Function for Content Navigation 55function contNavigation() { 56 $('.content-res-menu a').on('click', function(e) { 57 var navHeight = $('.selectWidgetHeader').outerHeight(); 58 e.preventDefault(); 59 if(navHeight){ 60 $('html, body').animate({ 61 scrollTop: $('[id="' + $(this).attr('href').substr(1) + '"]').offset().top - navHeight - 10 62 }, 1000); 63 } else { 64 $('html, body').animate({ 65 scrollTop: $('[id="' + $(this).attr('href').substr(1) + '"]').offset().top - 10 66 }, 1000); 67 } 68 }); 69} 70 71// Home images fader 72 73$('.slideshow > li:gt(0)').hide(); 74 75setInterval(function() { 76 $('.slideshow > li:first') 77 .fadeOut(1000) 78 .next() 79 .fadeIn(1000) 80 .end() 81 .appendTo('.slideshow'); 82}, 3000); 83 84//Add Span Text slideanything plugin 85$(window).on('load', function() { 86 $('.owl-dot span').text('0'); 87 $('.owl-nav button').html('<span class="screen-reader-text">0</span>'); 88}); 89 90$( window ).resize(function() { 91 setTimeout(function(){ 92 $('.owl-dot span').text('0'); 93 $('.owl-nav button').html('<span class="screen-reader-text">0</span>'); 94 }, 1000); 95}); 96 97 98//Outside click hide menu 99$(document).click(function(e){ 100 if( $(e.target).closest("#top-menu-nav").length > 0 ) { 101 return true; 102 } 103 $('ul.sub-menu').removeClass('opened'); 104});
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.