PageSourceSearch

https://www.trofeo.online/wp-content/themes/zapedah/js/script.js?ver=7.1.3

js trofeo.online collected 2026-10-08 07:36:34 UTC 3,308 bytes, 138 lines download raw bytes

1(function ($) {
2	"use strict";
3
4	$.fn.changeElementType = function (newType) {
5		var attrs = {};
6		if (!(this[0] && this[0].attributes)) return;
7
8		$.each(this[0].attributes, function (idx, attr) {
9			attrs[attr.nodeName] = attr.nodeValue;
10		});
11		this.replaceWith(function () {
12			return $("<" + newType + "/>", attrs).append($(this).contents());
13		});
14	};
15
16	$(window).on("load", function () {
17		// makes sure the whole site is loaded
18
19		//sticky navigation
20		$(".for-sticky").sticky({
21			topSpacing: 0
22		});
23
24		//change image into  background in next/prev post
25		$(".pagimgbox").each(function () {
26			var src = $(this)
27				.children("img")
28				.attr("src");
29			if ($(this).children("img").length) {
30				$(this).css("background-image", "url(" + src + "");
31			}
32		});
33
34
35		//for slick navigation
36		$(".home-nav,.menu-box>.menu>ul,.zapedah-nav").slicknav({
37			label: "",
38			appendTo: ".mobile-menu-container",
39			closedSymbol: "+",
40			openedSymbol: "-",
41			allowParentLinks: true
42		});
43	});
44
45	// script popup image
46	$(".popup-img").magnificPopup({
47		type: "image"
48	});
49
50	// script popup image
51	$(".blog-popup-img").magnificPopup({
52		type: "image",
53		gallery: {
54			enabled: true
55		}
56	});
57
58	// Video responsive
59	$("body").fitVids();
60
61	//script for navigation(superfish)
62	$(".menu-box ul").superfish({
63		delay: 400, //delay on mouseout
64		animation: {
65			opacity: "show",
66			height: "show"
67		}, // fade-in and slide-down animation
68		animationOut: {
69			opacity: "hide",
70			height: "hide"
71		},
72		speed: 200, //  animation speed
73		speedOut: 200,
74		autoArrows: false // disable generation of arrow mark-up
75	});
76
77	//add image mask
78	$(".bg-with-mask").each(function () {
79		$(this).append('<div class="slider-mask"></div>');
80	});
81
82	//slider for blog slider
83	$(".blog-slider").slick({
84		autoplay: true,
85		dots: false,
86		arrows: false,
87		speed: 800,
88		fade: true,
89		pauseOnHover: false,
90		pauseOnFocus: false
91	});
92
93	//replace the data-background into background image
94	$(".blog-img-bg").each(function () {
95		var imG = $(this).data("background");
96		$(this).css("background-image", "url('" + imG + "') ");
97	});
98
99	//remove footer empty footer icon
100	if ($(".footer-icon").has("li").length == 0) {
101		$(".footer-icon").remove();
102	}
103
104	//change h5 class for custom footer
105	$(".zapedah-custom-footer div[class*='elementor-widget-wp-'] h5").each(
106		function () {
107			$(this).addClass("elementor-heading-title");
108		}
109	);
110
111	//sticky custom header
112	$(".custom-sticky-menu .elementor-section:has(.white-header.no-bg)")
113		.first()
114		.addClass("for-sticky");
115
116	//adding/removing sticky menu class
117	$(".for-sticky").on("sticky-start", function () {
118		$(this).addClass("zapedah-sticky-menu");
119		$(this)
120			.find(".zapedah-nav,.box-mobile")
121			.addClass("zapedah-stick");
122	});
123	$(".for-sticky").on("sticky-end", function () {
124		$(this).removeClass("zapedah-sticky-menu");
125		$(this)
126			.find(".zapedah-nav,.box-mobile")
127			.removeClass("zapedah-stick");
128	});
129
130	//add class for hovering team & hovering icon
131	$(
132		".elementor-widget-zapedah-team-hover,.elementor-widget-zapedah-texticon-hover"
133	).each(function () {
134		$(this)
135			.closest(".elementor-column-wrap")
136			.addClass("hovering");
137	});
138})(jQuery);

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.