PageSourceSearch

https://www.eurob.org/wp-content/themes/cityguide-eurob/design/js/custom.js?ver=7.0.2

js eurob.org collected 2026-10-02 07:42:49 UTC 4,291 bytes, 143 lines download raw bytes

1/*
2 * AIT WordPress Theme
3 *
4 * Copyright (c) 2012, Affinity Information Technology, s.r.o. (http://ait-themes.com)
5 */
6
7/* Custom Classes Funtions */
8function renameUiClasses(){
9	var classes = [
10		"ui-accordion",
11		"ui-accordion-header", "ui-accordion-header-active", "ui-corner-top", "ui-accordion-icons",
12		"ui-accordion-header-icon", "ui-icon", "ui-icon-triangle-1-s", "ui-icon-triangle-1-e", "ui-accordion-content-active", "ui-accordion-content",
13		"ui-tabs", "ui-widget", "ui-tabs-vertical", "ui-tabs-horizontal",
14		"ui-tabs-nav", "ui-helper-reset", "ui-helper-clearfix", "ui-widget-header", "ui-corner-all",
15		/*"ui-state-default",*/ "ui-tabs-active", /*"ui-state-active",*/ "ui-corner-left", /*"ui-tabs-anchor",*/
16		"ui-tabs-panel", "ui-widget-content", "ui-corner-bottom", "ui-corner-all"
17	];
18	jQuery.each(classes, function(k, v){
19		var nClass = v.replace("ui-", "ait-");
20		jQuery(".elm-toggles-main ."+v).removeClass(v).addClass(nClass);
21	});
22}
23
24function removeUnwantedClasses(){
25	if(isResponsive(1024)){
26		if(jQuery("body").hasClass("preloading-enabled")){
27			jQuery("body").removeClass("preloading-enabled");
28		}
29	}
30}
31/* Custom Classes Funtions */
32
33/* Plugins Init Functions */
34function initWPGallery(){
35	jQuery(".gallery").each(function(){
36		var rel = jQuery(this).attr('id');
37		jQuery(this).find('.gallery-item').each(function(){
38			var link = jQuery(this).find('a');
39			link.attr('rel', rel);
40			link.colorbox({rel: rel});
41		});
42	});
43}
44
45function initColorbox(){
46	jQuery('a:not(.disable-default-colorbox)[href*=".jpg"],a:not(.disable-default-colorbox)[href*=".jpeg"],a:not(.disable-default-colorbox)[href*=".png"],a:not(.disable-default-colorbox)[href*=".gif"]').each(function(){
47	//jQuery('a[href*=".jpg"],a[href*=".jpeg"],a[href*=".png"],a[href*=".gif"]').each(function(){
48		if(typeof jQuery(this).attr('data-rel') === "undefined" || jQuery(this).attr('data-rel') === false || typeof jQuery(this).attr('rel') === "undefined" || jQuery(this).attr('rel') === false){
49			if(!isMobile()){
50				jQuery(this).colorbox({
51					maxWidth: "95%",
52					maxHeight: "95%",
53					onOpen: true,
54					onClosed: true,
55				});
56			} else {
57				jQuery(this).click(function(e){e.preventDefault();})
58				/*jQuery(this).colorbox({
59					maxWidth: "150%",
60					maxHeight: "150%",
61					onOpen: true,
62					onClosed: true,
63				});*/
64			}
65		}
66	});
67}
68
69function initRatings(){
70	jQuery('.item-rating').raty({
71		font		: true,
72		readOnly	: true,
73		halfShow	: true,
74		starHalf	: 'fa-star-half-o',
75		starOff		: 'fa-star-o',
76		starOn		: 'fa-star',
77		score		: function(){
78			return ((5*jQuery(this).attr('data-rating'))/100);
79		}
80	});
81}
82
83function initInfieldLabels(){
84	jQuery('.comment-form label').inFieldLabels();
85}
86
87function initSelectBox(){
88	jQuery('.selectbox').selectbox();
89
90	var selectId;
91	var oldStyle;
92	if(jQuery('body').hasClass('woocommerce-page')){
93		// wocommerce pages
94		// get all selects except the ones in the content
95		jQuery('select:not(.default-disabled)').not('#content select:not(.default-disabled)').selectbox({
96			onOpen: function(inst){
97				selectId = inst.settings.classHolder+"_"+inst.uid;
98				jQuery("#"+selectId).attr('style', 'z-index: 100 !important');
99			},
100			onClose: function(inst){
101				jQuery("#"+selectId).delay(100).queue(function(next){
102					jQuery(this).removeAttr("style");
103					next();
104				});
105			}
106		});
107
108		jQuery('#content .woocommerce-tabs select#rating').selectbox({
109			onOpen: function(inst){
110				selectId = inst.settings.classHolder+"_"+inst.uid;
111				jQuery("#"+selectId).attr('style', 'z-index: 100 !important');
112			},
113			onClose: function(inst){
114				jQuery("#"+selectId).delay(100).queue(function(next){
115					jQuery(this).removeAttr("style");
116					next();
117				});
118			}
119		});
120	} else {
121		// all other pages
122		jQuery('select:not(.default-disabled)').selectbox({
123			onOpen: function(inst){
124				selectId = inst.settings.classHolder+"_"+inst.uid;
125				jQuery("#"+selectId).attr('style', 'z-index: 100 !important');
126			},
127			onClose: function(inst){
128				jQuery("#"+selectId).delay(100).queue(function(next){
129					jQuery(this).removeAttr("style");
130					next();
131				});
132			}
133		});
134	}
135}
136
137function notificationClose(){
138	jQuery('.ait-sc-notification a.close').click(function(e){
139		e.preventDefault();
140		jQuery(this).parent().fadeOut('slow');
141	});
142}
143/* Plugins Init Functions */

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.