1jQuery(document).ready(function($) { 2 3 // Responsive Menu 4 $('.menu-toggle').click(function() { 5 $(this).toggleClass('active'); 6 $(this).parent().find('ul.nav-menu').slideToggle(); 7 $(this).parent().find('div.nav-menu > ul').slideToggle(); 8 }); 9 10 $('.dropdown-toggle').click(function() { 11 $(this).toggleClass('active'); 12 $(this).parent().find('.sub-menu').first().slideToggle(); 13 $(this).parent().find('.children').first().slideToggle(); 14 }); 15 16 if( $(window).width() < 1024 ) { 17 $('#site-navigation .nav-menu').find("li").last().bind( 'keydown', function(e) { 18 if( !e.shiftKey && e.which === 9 ) { 19 e.preventDefault(); 20 $('.site-header').find('.menu-toggle').focus(); 21 } 22 }); 23 } 24 else { 25 $('#site-navigation .nav-menu').find("li").unbind('keydown'); 26 } 27 28 $(window).resize(function() { 29 if( $(window).width() < 1024 ) { 30 $('#site-navigation .nav-menu').find("li").last().bind( 'keydown', function(e) { 31 if( !e.shiftKey && e.which === 9 ) { 32 e.preventDefault(); 33 $('.site-header').find('.menu-toggle').focus(); 34 } 35 }); 36 } 37 else { 38 $('#site-navigation .nav-menu').find("li").unbind('keydown'); 39 } 40 }); 41 42 $('.menu-toggle').on('keydown', function (e) { 43 var tabKey = e.keyCode === 9; 44 var shiftKey = e.shiftKey; 45 46 if( $('.menu-toggle').hasClass('active') ) { 47 if ( shiftKey && tabKey ) { 48 e.preventDefault(); 49 $('#site-navigation .nav-menu').find("li:last-child > a").focus(); 50 $('#site-navigation .nav-menu').find("li").last().bind( 'keydown', function(e) { 51 if( !e.shiftKey && e.which === 9 ) { 52 e.preventDefault(); 53 $('.site-header').find('.menu-toggle').focus(); 54 } 55 }); 56 } 57 } 58 }); 59 60 // Adds a search icon. 61 $('.search-form input[type="submit"]').replaceWith('<button type="submit" class="search-submit" value="Search"><svg id="icon-search" viewBox="0 0 30 32"><path class="path1" d="M20.571 14.857q0-3.304-2.348-5.652t-5.652-2.348-5.652 2.348-2.348 5.652 2.348 5.652 5.652 2.348 5.652-2.348 2.348-5.652zM29.714 29.714q0 0.929-0.679 1.607t-1.607 0.679q-0.964 0-1.607-0.679l-6.125-6.107q-3.196 2.214-7.125 2.214-2.554 0-4.884-0.991t-4.018-2.679-2.679-4.018-0.991-4.884 0.991-4.884 2.679-4.018 4.018-2.679 4.884-0.991 4.884 0.991 4.018 2.679 2.679 4.018 0.991 4.884q0 3.929-2.214 7.125l6.125 6.125q0.661 0.661 0.661 1.607z"></path></svg></button>'); 62 63 // Sets scroll to top. 64 var scroll = $(window).scrollTop(); 65 var scrollup = $('.to-top'); 66 67 $(window).scroll(function() { 68 if ($(this).scrollTop() > 1) { 69 scrollup.css({bottom:"25px"}); 70 } 71 else { 72 scrollup.css({bottom:"-100px"}); 73 } 74 }); 75 76 scrollup.click(function() { 77 $('html, body').animate({scrollTop: '0px'}, 800); 78 return false; 79 }); 80 81 // Slick 82 $('#section-slider-posts').slick(); 83 84});
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.