PageSourceSearch

https://www.ayuntamientodearico.com/wp-content/themes/vio/assets/js/radiantthemes-custom.js?ver=1790941172

js ayuntamientodearico.com collected 2026-10-02 11:40:49 UTC 11,078 bytes, 314 lines download raw bytes

1(function($){
2	"use strict";
3	jQuery(document).on("ready", function(){
4		// SCROLL TO TOP
5		jQuery(window).on("scroll", function(){
6			if (jQuery(this).scrollTop()>100){
7				jQuery(".scrollup").addClass("active");
8			}else{
9				jQuery(".scrollup").removeClass("active");
10			}
11		});
12		jQuery(".scrollup").on("click", function(){
13	   		jQuery("html, body").animate({scrollTop:0},600);
14	  		return false;
15		});
16		// FLYOUT SEARCH BAR
17		jQuery(".header-flyout-searchbar i, .header-flyout-searchbar span[class*='ti-']").on("click", function(){
18			jQuery("body").toggleClass("flyout-searchbar-active");
19		});
20		jQuery(".flyout-search-close").on("click", function(){
21			jQuery("body").removeClass("flyout-searchbar-active");
22		});
23		// SIDEBAR SEARCH BUTTON CHANGE
24		jQuery(".search-form, .woocommerce-product-search").each(function(){
25			jQuery(this).find("input[type=submit]").replaceWith("<button type='submit'><i class='fa fa-search'></i></button>");
26		});
27		// BLOG COMMENT BUTTON CHANGE
28		jQuery(".comments-area .comment-form > p input[type='submit']").each(function(){
29			jQuery(this).replaceWith("<button type='submit'><span>" + jQuery(this).attr("value") + "</span></button>");
30		});
31		jQuery(".comments-area .comment-form > p input[type='reset']").each(function(){
32			jQuery(this).replaceWith("<button type='reset'><span>" + jQuery(this).attr("value") + "</span></button>");
33		});
34		// TOOLTIP
35		jQuery("[data-toggle='tooltip']").tooltip();
36		// GDPR NOTICE
37		jQuery(".gdpr-notice .close").on("click", function(){
38			jQuery.cookie("gdpr-notice", "closed", {
39				expires: 3, // 3 DAYS
40				path: '/',
41			});
42		});
43		if( jQuery.cookie("gdpr-notice") === "closed" ){
44		} else {
45			jQuery(".gdpr-notice").removeClass("i-am-hidden");
46		}
47		// HEADER RESPONSIVE NAV / MOBILE MENU
48		jQuery(".header-responsive-nav").each(function(){
49			jQuery(this).sidr({
50				side: 'right',
51				speed: 600,
52				displace: false,
53				renaming: false,
54				source: '.mobile-menu',
55				name: 'mobile-menu',
56				onOpen: function(){
57					jQuery("body").addClass("mobile-menu-open");
58				},
59				onClose: function(){
60					jQuery("body").removeClass("mobile-menu-open");
61				},
62			});
63			jQuery(".mobile-menu-close, .overlay").on("click", function(){
64				jQuery.sidr('close', 'mobile-menu');
65			});
66		});
67		// HAMBURGER SIDR
68		jQuery(".header-hamburger-menu").each(function(){
69			jQuery(this).sidr({
70				side: 'right',
71				speed: 400,
72				displace: false,
73				renaming: false,
74				source: '.hamburger-menu-holder',
75				name: 'hamburger-menu',
76				onOpen: function(){
77					jQuery("body").addClass("hamburger-menu-open");
78				},
79				onClose: function(){
80					jQuery("body").removeClass("hamburger-menu-open");
81				},
82			});
83			jQuery(".hamburger-menu-close-lines").on("click", function(){
84				jQuery.sidr('close', 'hamburger-menu');
85			});
86		});
87		// SIDEBAR MENU
88		jQuery("body[data-header-style='header-style-three']").each(function(){
89			jQuery(this).find(".vc_section, .vc_row").removeAttr("style data-vc-full-width data-vc-full-width-init data-vc-stretch-content");
90		});
91		jQuery(".responsive-sidemenu-open").each(function(){
92			jQuery(this).sidr({
93				side: 'left',
94				speed: 600,
95				displace: false,
96				renaming: false,
97				source: '.sidemenu-holder',
98				name: 'sidemenu',
99				onOpen: function(){
100					jQuery("body").addClass("sidemenu-open");
101				},
102				onClose: function(){
103					jQuery("body").removeClass("sidemenu-open");
104				},
105			});
106			jQuery(".responsive-sidemenu-close").on("click", function(){
107				jQuery.sidr('close', 'sidemenu');
108			});
109		});
110		jQuery("body[data-header-style='header-style-three'] .nav li").on("click", function(){
111			jQuery(this).children("ul").slideToggle(500);
112		});
113		// SIDEMENU SIDR
114		jQuery(".header-sidebar-menu-open, .mobile-sidebar-menu-open").each(function(){
115			jQuery(this).sidr({
116				side: 'left',
117				speed: 300,
118				displace: false,
119				renaming: false,
120				source: '.sidemenu-holder',
121				name: 'sidemenu',
122				onOpen: function(){
123					jQuery("body").addClass("sidemenu-open");
124				},
125				onClose: function(){
126					jQuery("body").removeClass("sidemenu-open");
127				},
128			});
129			jQuery(".sidemenu-close").on("click", function(){
130				jQuery.sidr('close', 'sidemenu');
131			});
132		});
133		jQuery("body[data-header-style='header-style-four'] .nav li").on("click", function(){
134			jQuery(this).children("ul").slideToggle(500);
135		});
136		// ANIOPEN MENU BAR
137		jQuery(".header-aniopen-menu").on("click", function(){
138			jQuery("body").toggleClass("aniopen-menu-active");
139		});
140		// FLYOUT MENU BAR
141		jQuery(".header-flyout-menu").on("click", function(){
142			jQuery("body").addClass("flyout-menu-active");
143		});
144		jQuery(".flyout-menu-close").on("click", function(){
145			jQuery("body").removeClass("flyout-menu-active");
146		});
147		jQuery("body[data-header-style='header-style-five'] .flyout-menu-nav li").on("click", function(){
148			jQuery(this).children("ul").slideToggle(500);
149		});
150		// SLIDEOUT MENU BAR
151		jQuery(".header-slideout-menu").on("click", function(){
152			jQuery("body").addClass("slideout-menu-active");
153		});
154		jQuery(".slideout-menu-close").on("click", function(){
155			jQuery("body").removeClass("slideout-menu-active");
156		});
157		jQuery("body[data-header-style='header-style-fourteen'] .slideout-menu-nav li").on("click", function(){
158			jQuery(this).children("ul").slideToggle(500);
159		});
160		// FLEXI MENU BAR
161		jQuery(".header-flexi-menu").on("click", function(){
162			jQuery("body").addClass("flexi-menu-active");
163		});
164		jQuery(".flexi-menu-close").on("click", function(){
165			jQuery("body").removeClass("flexi-menu-active");
166		});
167		jQuery("body[data-header-style='header-style-seven'] .flexi-menu-nav li").on("click", function(){
168			jQuery(this).children("ul").slideToggle(500);
169		});
170		// RADIANTTHEMES MEGA MENU
171		jQuery(".sidr .menu-item-has-children").each(function(){
172			jQuery(this).children("ul, .rt-mega-menu").css({
173				"display": "none",
174			});
175			jQuery(this).append("<span class='radiantthemes-open-submenu'></span>");
176			jQuery(this).find(".radiantthemes-open-submenu").on("click", function(){
177				jQuery(this).parent(".menu-item-has-children").toggleClass("radiantthemes-menu-open");
178				jQuery(this).parent(".menu-item-has-children").children("ul, .rt-mega-menu").slideToggle(700);
179			});
180		});
181		// PAGE TRANSITION
182		jQuery("body[data-page-transition='1'] a:not(.fancybox):not(.video-link):not([data-fancybox])").each(function(){
183			jQuery(this).on("click", function(event){
184				let PageLink = jQuery(this).attr("href");
185				if ( "#" == PageLink ) {
186				} else if ( PageLink.startsWith("#") ) {
187				} else {
188					event.preventDefault();
189					jQuery("body").addClass("page-transition-active");
190					setTimeout(function(){
191						window.location.href = PageLink ;
192					}, 700);
193				}
194			});
195		});
196		// PRODUCT QUANTITY
197		jQuery(".shop_single .quantity input[type=number]").each(function(){
198			jQuery(this).addClass("form-control");
199			jQuery(this).parent().addClass("input-group");
200			jQuery(this).before("<div class='input-group-addon quantity-decrease'>-</div>");
201			jQuery(this).after("<div class='input-group-addon quantity-increase'>+</div>");
202			jQuery(this).parent().find(".quantity-decrease").on("click", function(){
203				if ( jQuery(this).parent().find("input[type=number]").val() == jQuery(this).parent().find("input[type=number]").attr("min") ) {
204					alert("Sorry! You're already on lowest value.");
205				} else {
206					jQuery(this).parent().find("input[type=number]").val( +jQuery(this).parent().find("input[type=number]").val() - 1 );
207				}
208			});
209			jQuery(this).parent().find(".quantity-increase").on("click", function(){
210				jQuery(this).parent().find("input[type=number]").val( +jQuery(this).parent().find("input[type=number]").val() + 1 );
211			});
212		});
213		// MATCHHEIGHT
214		jQuery(".matchHeight").matchHeight();
215		// ONEPAGENAV
216		jQuery("ul.menu.single-page-mode").onePageNav({
217			currentClass: "current-menu-item",
218			changeHash: true,
219			scrollSpeed: 1000,
220			easing: "swing",
221		});
222		// WOW
223		var wow = new WOW({
224			boxClass: 'wow',
225			animateClass: 'animated',
226			mobile: true,
227			live: true,
228			scrollContainer: null,
229		});
230		wow.init();
231		// NICESCROLL
232		if( jQuery(window).width() > 767 ){
233			jQuery(".infinity-scroll").niceScroll({
234				cursorcolor: jQuery("body").data("nicescroll-cursorcolor"),
235				cursorwidth: jQuery("body").data("nicescroll-cursorwidth"),
236				cursorborder: "none",
237				cursorborderradius: "0",
238			});
239		}
240		// STICKY
241		jQuery(".radiantthemes-sticky-style-one").sticky();
242		jQuery(window).on("scroll", function(){
243			jQuery(".radiantthemes-sticky-style-two").each(function(){
244				if ( jQuery(window).scrollTop() > ( jQuery(this).innerHeight() + 75 ) ) {
245					jQuery(this).addClass("delayed-sticky-mode");
246				} else {
247					jQuery(this).removeClass("delayed-sticky-mode");
248				}
249				if ( jQuery(window).scrollTop() > ( jQuery(this).innerHeight() + 150 ) ) {
250					jQuery(this).addClass("delayed-sticky-mode-acivate");
251					jQuery(".wraper_header").css({
252						"padding-bottom" : jQuery(this).innerHeight() + "px",
253					});
254				} else {
255					jQuery(this).removeClass("delayed-sticky-mode-acivate");
256					jQuery(".wraper_header").css({
257						"padding-bottom" : "0",
258					});
259				}
260				if ( jQuery(window).scrollTop() > jQuery(this).data("delay") ) {
261					jQuery(this).addClass("i-am-delayed-sticky");
262				} else {
263					jQuery(this).removeClass("i-am-delayed-sticky");
264				}
265			});
266		});
267		// RATINA
268		jQuery("img").attr("data-no-retina", "");
269		jQuery(".radiantthemes-retina img").removeAttr("data-no-retina");
270		// FANCYBOX
271        jQuery(".fancybox").fancybox({
272            animationEffect: "zoom-in-out",
273            animationDuration: 500,
274            zoomOpacity: "auto",
275        });
276	});
277	jQuery(window).on("load", function(){
278		// PROLOADER
279		setTimeout(function(){
280			jQuery(".preloader").addClass("loaded");
281	    }, jQuery(".preloader").data("preloader-timeout") );
282	    // PAGE TRANSITION
283		setTimeout(function(){
284			jQuery(".page-transition-layer").removeClass("i-am-active");
285		}, 700);
286		// MATCHHEIGHT
287		setTimeout(function(){
288			jQuery(".matchHeight").matchHeight();
289	    }, 2000);
290	    // ISOTOPE
291		setTimeout(function(){
292			jQuery(".isotope-blog-style").isotope({
293				itemSelector: '.isotope-blog-style-item',
294				layoutMode: 'masonry',
295			});
296		}, 100);
297		// STUCKING FOOTER
298		if ( jQuery(window).width() > 768 ) {
299			jQuery(document).ready( StuckingFooter );
300			jQuery(window).resize( StuckingFooter );
301			function StuckingFooter(){
302				jQuery(".footer-custom-stucking-container").css({
303					"height" : jQuery(".footer-custom-stucking-mode").innerHeight() ,
304				});
305			};
306		}
307		// RADIANTTHEMES COUNTER
308		setTimeout(function(){
309			jQuery(".radiantthemes-counterup").each(function(){
310				jQuery(this).text( jQuery(this).data("counterup-value") );
311			});
312		}, 1);
313	});
314})(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.