1jQuery("body").ready(function($) { 2 3 // Responsive Menu 4 $('.menu-toggle').on("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').on('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 let tabKey = e.keyCode === 9; 44 let 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"><span class="dashicons dashicons-search"></span></button>'); 62 63 let scroll = $(window).scrollTop(); 64 let scrollup = $('.to-top'); 65 66 $(window).scroll(function() { 67 if ($(this).scrollTop() > 1) { 68 scrollup.addClass('show'); // ÐобавÑме клаÑа show, когаÑо Ñе поÑви 69 } else { 70 scrollup.removeClass('show'); 71 } 72 }); 73 74 scrollup.on('click', function() { 75 $('html, body').animate({scrollTop: '0px'}, 400); 76 return false; 77 }); 78 79 80 function toggleSidebar() { 81 jQuery(".button").toggleClass("active"); 82 //jQuery("main-left").toggleClass("move-to-left"); 83 jQuery(".sidebar-item").toggleClass("active"); 84 jQuery(".menu-left").toggle('slide'); 85 } 86 87 jQuery(".button").on("click tap", function() { 88 toggleSidebar(); 89 }); 90 91 92}); 93 94 95document.addEventListener('DOMContentLoaded', function() { 96 97 let sBLiveClock = document.getElementById("live-clock"); 98 99 if(sBLiveClock){ 100 function liveNewsClock() { 101 let hours = document.getElementById("live-hours"); 102 let minutes = document.getElementById("live-minutes"); 103 let seconds = document.getElementById("live-seconds"); 104 let phase = document.getElementById("live-phase"); 105 106 107 let h = new Date().getHours(); 108 let m = new Date().getMinutes(); 109 let s = new Date().getSeconds(); 110 let am = "AM"; 111 112 if (h > 12) { 113 h = h - 12; 114 let am = "PM"; 115 } 116 117 h = h < 10 ? "0" + h : h; 118 m = m < 10 ? "0" + m : m; 119 s = s < 10 ? "0" + s : s; 120 121 hours.innerHTML = h; 122 minutes.innerHTML = m; 123 seconds.innerHTML = s; 124 phase.innerHTML = am; 125 } 126 127 let liveNewsInterval = setInterval(liveNewsClock, 1000); 128 } 129 130}); 131 132 133
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.