PageSourceSearch

https://archerknox.pages.dev/wp-content/themes/news-press-release/js/build/custom.js?ver=2.4

js archerknox.pages.dev collected 2026-10-03 06:29:25 UTC 3,248 bytes, 129 lines download raw bytes

1jQuery(document).ready(function ($) {
2
3	var owl = jQuery('.banner .owl-carousel');
4		owl.owlCarousel({
5			margin:20,
6			nav: true,
7			autoplay : true,
8			lazyLoad: true,
9			autoplayTimeout: 3000,
10			loop: false,
11			dots:false,
12			navText : ['<i class="fas fa-arrow-left"></i>','<i class="fas fa-arrow-right"></i> '],
13			responsive: {
14			0: {
15				items: 1
16			},
17			600: {
18				items: 1
19			},
20			1000: {
21				items: 1
22			}
23		},
24		autoplayHoverPause : true,
25		mouseDrag: true
26	});
27
28	var owl = jQuery('.trending_post .owl-carousel');
29		owl.owlCarousel({
30			margin:20,
31			nav: false,
32			autoplay : true,
33			lazyLoad: true,
34			autoplayTimeout: 3000,
35			loop: false,
36			dots: false,
37			navText : ['<i class="fas fa-arrow-left"></i>','<i class="fas fa-arrow-right"></i> '],
38			responsive: {
39			0: {
40				items: 1
41			},
42			600: {
43				items: 1
44			},
45			1000: {
46				items: 1
47			}
48		},
49		autoplayHoverPause : true,
50		mouseDrag: true
51	});
52
53	$('.mobile-nav .toggle-button').on( 'click', function() {
54		$('.mobile-nav .main-navigation').slideToggle();
55	});
56
57	$('.mobile-nav-wrap .close ').on( 'click', function() {
58		$('.mobile-nav .main-navigation').slideToggle();
59
60	});
61
62	$('<button class="submenu-toggle"></button>').insertAfter($('.mobile-nav ul .menu-item-has-children > a'));
63	$('.mobile-nav ul li .submenu-toggle').on( 'click', function() {
64		$(this).next().slideToggle();
65		$(this).toggleClass('open');
66	});
67
68	//accessible menu for edge
69	 $("#site-navigation ul li a").on( 'focus', function() {
70	   $(this).parents("li").addClass("focus");
71	}).on( 'blur', function() {
72	    $(this).parents("li").removeClass("focus");
73	 });
74});
75
76window.addEventListener('load', (event) => {
77    jQuery(".preloader").delay(1000).fadeOut("slow");
78});
79
80var btn = jQuery('#button');
81
82jQuery(window).scroll(function() {
83  if (jQuery(window).scrollTop() > 300) {
84    btn.addClass('show');
85  } else {
86    btn.removeClass('show');
87  }
88});
89btn.on('click', function(e) {
90  e.preventDefault();
91  jQuery('html, body').animate({scrollTop:0}, '300');
92});
93
94jQuery(window).scroll(function() {
95    var data_sticky = jQuery(' #header-box').attr('data-sticky');
96
97    if (data_sticky == 1) {
98      if (jQuery(this).scrollTop() > 1){  
99        jQuery('#header-box').addClass("sticky-head");
100      } else {
101        jQuery('#header-box').removeClass("sticky-head");
102      }
103    }
104});
105
106function preloderFunction() {
107    setTimeout(function() {           
108        document.getElementById("page-top").scrollIntoView();
109        
110        $('#ctn-preloader').addClass('loaded');  
111        // Once the preloader has finished, the scroll appears 
112        $('body').removeClass('no-scroll-y');
113
114        if ($('#ctn-preloader').hasClass('loaded')) {
115            // It is so that once the preloader is gone, the entire preloader section will removed
116            $('#preloader').delay(1000).queue(function() {
117                $(this).remove();
118                
119                // If you want to do something after removing preloader:
120                afterLoad();
121                
122            });
123        }
124    }, 3000);
125}
126function afterLoad() {
127    // After Load function body!
128}
129

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.