PageSourceSearch

https://www.polycliniquefarah.com/wp-content/themes/apexclinic/js/radiantthemes-custom.js?ver=1790898311

js polycliniquefarah.com collected 2026-10-01 23:45:38 UTC 6,390 bytes, 177 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		// FLOATING SEARCH BAR
17		jQuery(".floating-searchbar i").on("click", function(){
18			jQuery("body").toggleClass("floating-searchbar-active");
19		});
20		// FLYOUT SEARCH BAR
21		jQuery(".flyout-searchbar-toggle i").on("click", function(){
22			jQuery("body").toggleClass("flyout-searchbar-active");
23		});
24		jQuery(".flyout-search-close").on("click", function(){
25			jQuery("body").removeClass("flyout-searchbar-active");
26		});
27		// HEADER STYLE SEVEN TOP BAR MENU
28		jQuery(".top-bar-toggle, .header-full-width-menu").on("click", function(){
29            jQuery("body").toggleClass("top-bar-menu-open");
30        });
31		// HEADER STYLE NINE FUL WIDTH MENU
32		jQuery(".nav-icon").on("click", function(){
33            jQuery("body").toggleClass("full-open");
34        });
35		jQuery(".wraper_fullwidth_menu .full-inner nav ul li.menu-item-has-children").each(function(){
36			jQuery(this).children("a").on("click", function(DisableClick){
37				DisableClick.preventDefault();
38				jQuery(this).parent().children("ul").slideToggle(500);
39			});
40		});
41		// SIDEBAR SEARCH BUTTON CHANGE
42		jQuery(".search-form, .woocommerce-product-search").each(function(){
43			jQuery(this).find("input[type=submit]").replaceWith("<button type='submit'><i class='fa fa-search'></i></button>");
44		});
45		// BLOG COMMENT BUTTON CHANGE
46		jQuery(".comments-area .comment-form > p input[type='submit']").each(function(){
47			jQuery(this).replaceWith("<button type='submit'><span>Post Comment</span></button>");
48		});
49		jQuery(".comments-area .comment-form > p input[type='reset']").each(function(){
50			jQuery(this).replaceWith("<button type='reset'><span>Reset Comment</span></button>");
51		});
52		// TOOLTIP
53		jQuery("[data-toggle='tooltip']").tooltip();
54		// MOBILE MENU
55		jQuery(".responsive-nav").each(function(){
56			jQuery(this).sidr({
57				side: 'right',
58				speed: 600,
59				displace: false,
60				renaming: false,
61				source: '.mobile-menu',
62				name: 'mobile-menu',
63				onOpen: function(){
64					jQuery("body").addClass("mobile-menu-open");
65				},
66				onClose: function(){
67					jQuery("body").removeClass("mobile-menu-open");
68				},
69			});
70			jQuery(".mobile-menu-close").on("click", function(){
71				jQuery.sidr('close', 'mobile-menu');
72			});
73		});
74		// HAMBURGER SIDR
75		jQuery(".header-hamburger").each(function(){
76			jQuery(this).sidr({
77				side: 'right',
78				speed: 600,
79				displace: false,
80				renaming: false,
81				source: '.hamburger-menu-holder',
82				name: 'hamburger-menu',
83				onOpen: function(){
84					jQuery("body").addClass("hamburger-menu-open");
85				},
86				onClose: function(){
87					jQuery("body").removeClass("hamburger-menu-open");
88				},
89			});
90			jQuery(".hamburger-menu-close").on("click", function(){
91				jQuery.sidr('close', 'hamburger-menu');
92			});
93		});
94		// RADIANTTHEMES MEGA MENU
95		jQuery(".sidr .menu-item-has-children").each(function(){
96			jQuery(this).children("ul, .rt-mega-menu").css({
97				"display": "none",
98			});
99			jQuery(this).append("<span class='radiantthemes-open-submenu'></span>");
100			jQuery(this).find(".radiantthemes-open-submenu").on("click", function(){
101				jQuery(this).parent(".menu-item-has-children").toggleClass("radiantthemes-menu-open");
102				jQuery(this).parent(".menu-item-has-children").children("ul, .rt-mega-menu").slideToggle(700);
103			});
104		});
105		// PAGE TRANSITION
106		jQuery("body[data-page-transition='1'] a:not(.fancybox):not(.video-link)").each(function(){
107			jQuery(this).on("click", function(event){
108				let PageLink = jQuery(this).attr("href");
109				if ( "#" == PageLink ) {
110				} else if ( PageLink.startsWith("#") ) {
111				} else {
112					event.preventDefault();
113					jQuery("body").addClass("page-transition-active");
114					setTimeout(function(){
115						window.location.href = PageLink ;
116					}, 700);
117				}
118			});
119		});
120		// PRODUCT QUANTITY
121		jQuery(".shop_single .quantity input[type=number]").each(function(){
122			jQuery(this).addClass("form-control");
123			jQuery(this).parent().addClass("input-group");
124			jQuery(this).before("<div class='input-group-addon quantity-decrease'>-</div>");
125			jQuery(this).after("<div class='input-group-addon quantity-increase'>+</div>");
126			jQuery(this).parent().find(".quantity-decrease").on("click", function(){
127				if ( jQuery(this).parent().find("input[type=number]").val() == jQuery(this).parent().find("input[type=number]").attr("min") ) {
128					alert("Sorry! You're already on lowest value.");
129				} else {
130					jQuery(this).parent().find("input[type=number]").val( +jQuery(this).parent().find("input[type=number]").val() - 1 );
131				}
132			});
133			jQuery(this).parent().find(".quantity-increase").on("click", function(){
134				jQuery(this).parent().find("input[type=number]").val( +jQuery(this).parent().find("input[type=number]").val() + 1 );
135			});
136		});
137		// MATCHHEIGHT
138		jQuery(".matchHeight").matchHeight();
139		// WOW
140		var wow = new WOW({
141			boxClass: 'wow',
142			animateClass: 'animated',
143			mobile: true,
144			live: true,
145			scrollContainer: null,
146		});
147		wow.init();
148		// NICESCROLL
149		if( jQuery(window).width() > 767 ){
150			jQuery(".infinity-scroll").niceScroll({
151				cursorcolor: jQuery("body").data("nicescroll-cursorcolor"),
152				cursorwidth: jQuery("body").data("nicescroll-cursorwidth"),
153				cursorborder: "none",
154				cursorborderradius: "0",
155			});
156		}
157		// STICKY
158		jQuery(".i-am-sticky").sticky();
159		// RATINA
160		jQuery("img").attr("data-no-retina", "");
161		jQuery(".radiantthemes-retina img").removeAttr("data-no-retina");
162	});
163	jQuery(window).on("load", function(){
164		// PROLOADER
165		setTimeout(function(){
166			jQuery(".preloader").addClass("loaded");
167	    }, jQuery(".preloader").data("preloader-timeout") );
168	    // PAGE TRANSITION
169		setTimeout(function(){
170			jQuery(".page-transition-layer").removeClass("i-am-active");
171		}, 700);
172		// MATCHHEIGHT
173		setTimeout(function(){
174			jQuery(".matchHeight").matchHeight();
175	    }, 2000);
176	});
177})(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.