1(function($) { 2 "use strict"; 3jQuery(window).on('load', function() { 4 // Enable Hover for Bootstrap Nav Dropdowns 5 jQuery('.dropdown-toggle').keyup(function(e) { 6 if (e.keyCode == 9) { 7 $(this).dropdown('toggle'); 8 } 9 }); 10}); 11/* ================================= 12=== STICKY HEADER ==== 13=================================== */ 14function homefeatured() { 15 jQuery(".featuredcat").owlCarousel({ 16 autoPlay: 3000, //Set AutoPlay to 3 seconds 17 pagination: false, 18 items : 3, 19 itemsDesktop : [1199,1], 20 itemsDesktopSmall : [979,2], 21 navigation : false, 22 navigationText: [ 23 "<i class='fa fa-angle-left'></i>", 24 "<i class='fa fa-angle-right'></i>" 25 ] 26 }); 27} 28homefeatured(); 29function homemain() { 30 jQuery(".homemain").owlCarousel({ 31 autoPlay: 3000, //Set AutoPlay to 3 seconds 32 singleItem:true, 33 pagination: false, 34 navigation : true, 35 navigationText: [ 36 "<i class='fa fa-angle-left'></i>", 37 "<i class='fa fa-angle-right'></i>" 38 ] 39 }); 40} 41homemain(); 42 43// post crousel 44function postcrousel() { 45 jQuery(".postcrousel").owlCarousel({ 46 autoPlay: 3000, //Set AutoPlay to 3 seconds 47 items : 1, 48 itemsDesktop : [1199,1], 49 itemsDesktopSmall : [979,1], 50 itemsTablet: [768, 1], 51 pagination : false, 52 navigation : true, 53 navigationText: [ 54 "<i class='fa fa-angle-left'></i>", 55 "<i class='fa fa-angle-right'></i>" 56 ] 57 }); 58} 59postcrousel(); 60 61// colmnthree crousel 62function colmnthree() { 63 jQuery(".colmnthree").owlCarousel({ 64 autoPlay: 3000, //Set AutoPlay to 3 seconds 65 items : 3, 66 itemsDesktop : [1199,3], 67 itemsDesktopSmall : [979,2], 68 pagination : false, 69 navigation : true, 70 navigationText: [ 71 "<i class='fa fa-angle-left'></i>", 72 "<i class='fa fa-angle-right'></i>" 73 ] 74 }); 75} 76colmnthree(); 77 78// realatedpost 79function realatedpost() { 80 jQuery(".realatedpost").owlCarousel({ 81 autoPlay: 3000, //Set AutoPlay to 3 seconds 82 items : 3, 83 itemsDesktop : [1199,3], 84 itemsDesktopSmall : [979,2], 85 pagination : false, 86 navigation : true, 87 navigationText: [ 88 "<i class='fa fa-angle-left'></i>", 89 "<i class='fa fa-angle-right'></i>" 90 ] 91 }); 92} 93realatedpost(); 94// realatedpost 95 96/* ================================= 97=== SCROLL TOP ==== 98=================================== */ 99jQuery(".ta_upscr").hide(); 100function taupr() { 101 jQuery(window).on('scroll', function() { 102 if ($(this).scrollTop() > 500) { 103 $('.ta_upscr').fadeIn(); 104 } else { 105 $('.ta_upscr').fadeOut(); 106 } 107 }); 108 $('a.ta_upscr').on('click', function() { 109 $('body,html').animate({ 110 scrollTop: 0 111 }, 800); 112 return false; 113 }); 114} 115taupr(); 116function marquee() { 117 jQuery('.marquee').marquee({ 118 speed: 50, 119 direction: 'left', 120 delayBeforeStart: 0, 121 duplicated: true, 122 pauseOnHover: true, 123 startVisible: true 124 }); 125} 126marquee(); 127})(jQuery); 128 129function colmnthree() { 130 jQuery(".colmnthree").owlCarousel({ 131 autoPlay: 3000, //Set AutoPlay to 3 seconds 132 pagination: false, 133 items : 1, 134 itemsDesktop : [1199,1], 135 itemsDesktopSmall : [979,1], 136 navigation : false, 137 navigationText: [ 138 "<i class='fa fa-angle-left'></i>", 139 "<i class='fa fa-angle-right'></i>" 140 ] 141 }); 142} 143colmnthree(); 144 145 146function addKeydownListener() { 147 document.addEventListener('keydown', keydownHandler); 148} 149function removeKeydownListener() { 150 document.removeEventListener('keydown', keydownHandler); 151} 152function keydownHandler(event) { 153 if (event.key === 'Tab') { 154 var focusedElement = document.activeElement; 155 var parentElement = document.getElementById('navbar-wp'); 156 var ulParent = parentElement.querySelector("ul.nav.navbar-nav"); 157 var lastChild = ulParent.lastElementChild.firstElementChild; 158 159 // Check if the focused element is the last child 160 if (focusedElement === lastChild) { 161 // Prevent the default tab behavior 162 event.preventDefault(); 163 164 // Perform your actions here 165 const returnFocus = document.querySelector('button.navbar-toggler'); 166 returnFocus.click(); 167 returnFocus.focus(); 168 } 169 } 170} 171function checkWindowSize() { 172 if (window.innerWidth < 992) { 173 addKeydownListener(); 174 } else { 175 removeKeydownListener(); 176 } 177} 178 179checkWindowSize(); 180window.addEventListener('resize', checkWindowSize); 181 182/* ================================= 183=== PRELOADER ==== 184=================================== */ 185const loader = document.getElementById("preloader"); 186 187if (loader) { 188 document.body.style.overflow = "hidden"; 189 window.addEventListener("load", () => { 190 loader.style.display = "none"; 191 document.body.style.overflow = ""; 192 });
193}
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.