1window.addEventListener("load", function () { 2 jQuery(document).ready(function ($) { 3 "use strict"; 4 $("body").addClass("page-loaded"); 5 var myCursor = jQuery('.theme-custom-cursor'); 6 if (myCursor.length) { 7 if ($('body')) { 8 const e = document.querySelector('.theme-cursor-secondary'), 9 t = document.querySelector('.theme-cursor-primary'); 10 let n, i = 0, 11 o = !1; 12 window.onmousemove = function (s) { 13 o || (t.style.transform = "translate(" + s.clientX + "px, " + s.clientY + "px)"), e.style.transform = "translate(" + s.clientX + "px, " + s.clientY + "px)", n = s.clientY, i = s.clientX 14 }, $('body').on("mouseenter", "a, button, .twp-carousel-prev, .twp-carousel-next, input[type=\"submit\"], .cursor-pointer", function () { 15 e.classList.add('cursor-hover'), t.classList.add('cursor-hover') 16 }), $('body').on("mouseleave", "a, button, .twp-carousel-prev, .twp-carousel-next, input[type=\"submit\"], .cursor-pointer", function () { 17 $(this).is("a") && $(this).closest(".cursor-pointer").length || (e.classList.remove('cursor-hover'), t.classList.remove('cursor-hover')) 18 }), e.style.visibility = "visible", t.style.visibility = "visible" 19 } 20 } 21 }); 22}); 23jQuery(document).ready(function ($) { 24 "use strict"; 25 setInterval(myTimer, 1000); 26 27 function myTimer() { 28 const date = new Date(); 29 document.getElementById("twp-time-clock").innerHTML = date.toLocaleTimeString(); 30 } 31 32 $(function () { 33 AOS.init({ 34 duration: 1200, 35 easing: 'ease-in-out-back' 36 }); 37 }); 38 var isMobile = false; 39 if (/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 40 $('html').addClass('touch'); 41 isMobile = true; 42 } else { 43 $('html').addClass('no-touch'); 44 isMobile = false; 45 } 46 // Slide Left Right End 47 // Banner Slider 48 var swiper = new Swiper('.theme-main-slider', { 49 slidesPerView: 1, 50 loop: true, 51 pagination: { 52 el: '.swiper-pagination', 53 type: 'fraction', 54 }, 55 autoplay: { 56 disableOnInteraction: false, 57 delay: 6000 58 }, 59 speed: 1000, 60 simulateTouch: false, 61 roundLengths: true, 62 keyboard: true, 63 mousewheel: false, 64 navigation: { 65 nextEl: '.swiper-button-next', 66 prevEl: '.swiper-button-prev', 67 } 68 }); 69 // Carousel Slider 70 var swiper = new Swiper('.twp-carousel-slider', { 71 autoplay: { 72 delay: 4000, 73 disableOnInteraction: false, 74 }, 75 loop: true, 76 spaceBetween: 50, 77 navigation: { 78 nextEl: '.twp-carousel-next', 79 prevEl: '.twp-carousel-prev', 80 }, 81 breakpoints: { 82 480: { 83 slidesPerView: 1, 84 }, 85 640: { 86 slidesPerView: 2, 87 }, 88 768: { 89 slidesPerView: 2, 90 }, 91 1024: { 92 slidesPerView: 3, 93 }, 94 1200: { 95 slidesPerView: 'auto', 96 }, 97 } 98 }); 99 // Hide Comments 100 $('.joyce-no-comment .booster-block.booster-ratings-block, .joyce-no-comment .comment-form-ratings, .joyce-no-comment .twp-star-rating').hide(); 101 // Scroll To 102 $(".scroll-content").click(function () { 103 $('html, body').animate({ 104 scrollTop: $("#site-content").offset().top 105 }, 500); 106 }); 107 if (joyce_custom.single_post == 1 && joyce_custom.joyce_ed_post_reaction) { 108 $('.tpk-single-rating').remove(); 109 $('.tpk-comment-rating-label').remove(); 110 $('.comments-rating').remove(); 111 $('.tpk-star-rating').remove(); 112 } 113 $('.theme-article-post.post').each(function () { 114 $(this).addClass('twp-article-loded'); 115 });
116 $('.submenu-toggle').click(function () { 117 $(this).toggleClass('button-toggle-active'); 118 var currentClass = $(this).attr('data-toggle-target'); 119 $(currentClass).toggleClass('submenu-toggle-active'); 120 }); 121 $('.navbar-control-search').click(function () { 122 $('.header-searchbar').toggleClass('header-searchbar-active'); 123 $('#search-closer').focus(); 124 }); 125 $('.header-searchbar').click(function () { 126 $('.header-searchbar').removeClass('header-searchbar-active'); 127 }); 128 $(".header-searchbar-inner").click(function (e) { 129 e.stopPropagation(); //stops click event from reaching document 130 }); 131 $('#search-closer').click(function () { 132 $('.header-searchbar').removeClass('header-searchbar-active'); 133 setTimeout(function () { 134 $('.navbar-control-search').focus(); 135 }, 300); 136 }); 137 $('.navbar-control-search').click(function () { 138 setTimeout(function () { 139 $('.header-searchbar .search-field').focus(); 140 }, 300); 141 }); 142 $('input, a, button').on('focus', function () { 143 if ($('.header-searchbar').hasClass('header-searchbar-active')) { 144 if (!$(this).parents('.header-searchbar').length) { 145 $('.header-searchbar .search-field').focus(); 146 $('.header-searchbar-area .search-field-default').focus(); 147 } 148 } 149 }); 150 $('.skip-link-search-start').focus(function () { 151 $('#search-closer').focus(); 152 }); 153 $('.skip-link-search-end').focus(function () { 154 $('.header-searchbar .search-field').focus(); 155 }); 156 $('.skip-link-menu-start').focus(function () { 157 if (!$("#offcanvas-menu #primary-nav-offcanvas").length == 0) { 158 $("#offcanvas-menu #primary-nav-offcanvas ul li:last-child a").focus(); 159 } 160 if (!$("#offcanvas-menu #social-nav-offcanvas").length == 0) { 161 $("#offcanvas-menu #social-nav-offcanvas ul li:last-child a").focus(); 162 } 163 }); 164 $(document).keyup(function (j) { 165 if (j.key === "Escape") { // escape key maps to keycode `27` 166 if ($('.header-searchbar').hasClass('header-searchbar-active')) { 167 $('.header-searchbar').removeClass('header-searchbar-active'); 168 setTimeout(function () { 169 $('.navbar-control-search').focus(); 170 }, 300); 171 setTimeout(function () { 172 $('.aside-search-js').focus(); 173 }, 300); 174 } 175 if ($('#offcanvas-menu').hasClass('offcanvas-menu-active')) { 176 $('.header-searchbar').removeClass('header-searchbar-active'); 177 $('#offcanvas-menu').removeClass('offcanvas-menu-active'); 178 $('.navbar-control-offcanvas').removeClass('active'); 179 $('body').removeClass('body-scroll-locked'); 180 $('html').removeAttr('style'); 181 setTimeout(function () { 182 $('.navbar-control-offcanvas').focus(); 183 }, 300); 184 } 185 } 186 }); 187 $('.twp-nav-tabs .tab').on('click', function (event) { 188 var tabid = $(this).attr('id'); 189 $(this).closest('.tabbed-container').find('.tab').removeClass('active'); 190 $(this).addClass('active'); 191 $(this).closest('.tabbed-container').find('.tab-pane').removeClass('active'); 192 $('#content-' + tabid).addClass('active'); 193 }); 194 $('.navbar-control-offcanvas').click(function () { 195 $(this).addClass('active'); 196 $('body').addClass('body-scroll-locked'); 197 $('#offcanvas-menu').toggleClass('offcanvas-menu-active'); 198 $('.button-offcanvas-close').focus(); 199 }); 200 $('.offcanvas-close .button-offcanvas-close').click(function () { 201 $('#offcanvas-menu').removeClass('offcanvas-menu-active'); 202 $('.navbar-control-offcanvas').removeClass('active'); 203 $('body').removeClass('body-scroll-locked'); 204 setTimeout(function () { 205 $('.navbar-control-offcanvas').focus(); 206 }, 300); 207 });
208 $('#offcanvas-menu').click(function () { 209 $('#offcanvas-menu').removeClass('offcanvas-menu-active'); 210 $('.navbar-control-offcanvas').removeClass('active'); 211 $('body').removeClass('body-scroll-locked'); 212 }); 213 $(".offcanvas-wraper").click(function (e) { 214 e.stopPropagation(); //stops click event from reaching document 215 }); 216 $('.skip-link-menu-end').on('focus', function () { 217 $('.button-offcanvas-close').focus(); 218 }); 219 var pageSection = $(".data-bg"); 220 pageSection.each(function (indx) { 221 if ($(this).attr("data-background")) { 222 $(this).css("background-image", "url(" + $(this).data("background") + ")"); 223 } 224 }); 225 $('.to-the-top').click(function () { 226 $("html, body").animate({ 227 scrollTop: 0 228 }, 700); 229 return false; 230 }); 231});
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.