1(function($) { 2 "use strict"; 3/* ================================= 4=== home -slider ==== 5=================================== */ 6function homemain() { 7 var homemain = new Swiper('.homemain', { 8 direction: 'horizontal', 9 loop: true, 10 autoplay: { 11 delay: 3000, 12 }, 13 speed: 700, 14 slidesPerView: 1, 15 // Navigation arrows 16 navigation: { 17 nextEl: '.swiper-button-next', 18 prevEl: '.swiper-button-prev' 19 }, 20 21 }); 22} 23homemain(); 24 25/* ================================= 26=== SCROLL TOP ==== 27=================================== */ 28jQuery(".bs_upscr").hide(); 29function taupr() { 30 jQuery(window).on('scroll', function() { 31 if ($(this).scrollTop() > 500) { 32 $('.bs_upscr').fadeIn(); 33 } else { 34 $('.bs_upscr').fadeOut(); 35 } 36 }); 37 $('a.bs_upscr').on('click', function() { 38 $('body,html').animate({ 39 scrollTop: 0 40 }, 800); 41 return false; 42 }); 43} 44taupr(); 45})(jQuery); 46 47function addKeydownListener() { 48 document.addEventListener('keydown', keydownHandler); 49} 50function removeKeydownListener() { 51 document.removeEventListener('keydown', keydownHandler); 52} 53function keydownHandler(event) { 54 if (event.key === 'Tab') { 55 var focusedElement = document.activeElement; 56 var parentElement = document.getElementById('navbar-wp'); 57 var ulParent = parentElement.querySelector("ul.nav.navbar-nav"); 58 var lastChild = ulParent.lastElementChild.firstElementChild; 59 60 // Check if the focused element is the last child 61 if (focusedElement === lastChild) { 62 // Prevent the default tab behavior 63 event.preventDefault(); 64 65 // Perform your actions here 66 const returnFocus = document.querySelector('button.navbar-toggler.x'); 67 returnFocus.click(); 68 returnFocus.focus(); 69 } 70 } 71} 72function checkWindowSize() { 73 if (window.innerWidth < 992) { 74 addKeydownListener(); 75 } else { 76 removeKeydownListener(); 77 } 78} 79 80checkWindowSize(); 81window.addEventListener('resize', checkWindowSize); 82 83document.addEventListener('DOMContentLoaded', function() { 84 var pageTitle = document.querySelector('.bs-card-box.page-entry-title + .row .page-title'); 85 if (pageTitle) { 86 pageTitle.remove(); 87 } 88});
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.