PageSourceSearch

https://campamentosveranoava.com/wp-content/themes/sevenhills/js/theme.init.js

js campamentosveranoava.com collected 2026-10-04 20:07:16 UTC 10,650 bytes, 277 lines download raw bytes

1/* global jQuery:false */
2/* global SEVENHILLS_STORAGE:false */
3
4
5// Theme-specific first load actions
6//==============================================
7function sevenhills_theme_ready_actions() {
8	"use strict";
9	// Put here your init code with theme-specific actions
10	// It will be called before core actions
11	jQuery('.pay').html('Pagar el segundo pago');
12	jQuery('#ubermenu-main-170').css('height','50px');
13	jQuery('.pay').css('margin-bottom','10px');
14	jQuery('#menu_mobile').on('click', function(){
15		jQuery('.header_mobile .side_wrap').removeClass('open');
16		jQuery('.header_mobile .mask').removeClass('show');
17		jQuery('html').removeClass('menu_mobile_open');
18		// Fix for Safari
19		if (sevenhills_browser_is_ios() && jQuery('body').hasClass('menu_mobile')) {
20			jQuery('body').removeClass('ios_fixed');
21		}
22	});
23
24	jQuery('#ferme').on('click', function(){
25		jQuery('.header_mobile .side_wrap').removeClass('open');
26		jQuery('.header_mobile .mask').removeClass('show');
27		jQuery('html').removeClass('menu_mobile_open');
28		// Fix for Safari
29		if (sevenhills_browser_is_ios() && jQuery('body').hasClass('menu_mobile')) {
30			jQuery('body').removeClass('ios_fixed');
31		}
32	});
33
34	$('a[href*=\\#]').on('click', function(event){     
35		
36		var cherche = this.hash.includes( 'actividades_' );
37
38		if(this.hash=="lepopup2")
39		{
40			
41		}
42		else if(this.hash=="")
43		{
44
45		}
46		else if(cherche==true)
47		{
48
49		}
50
51		else
52		{
53			event.preventDefault();
54			$('html,body').animate({scrollTop:$(this.hash).offset().top}, 500);
55		}
56		
57		
58	
59	});
60
61	
62	
63}
64
65
66
67// Theme-specific scroll actions
68//==============================================
69function sevenhills_theme_scroll_actions() {
70	"use strict";
71	// Put here your theme-specific code with scroll actions
72	// It will be called when page is scrolled (before core actions)
73}
74
75
76// Theme-specific resize actions
77//==============================================
78function sevenhills_theme_resize_actions() {
79	"use strict";
80	// Put here your theme-specific code with resize actions
81	// It will be called when window is resized (before core actions)
82}
83
84
85// Theme-specific shortcodes init
86//=====================================================
87function sevenhills_theme_sc_init(cont) {
88	"use strict";
89	// Put here your theme-specific code to init shortcodes
90	// It will be called before core init shortcodes
91	// @param cont - jQuery-container with shortcodes (init only inside this container)
92}
93
94
95// Theme-specific post-formats init
96//=====================================================
97function sevenhills_theme_init_post_formats() {
98	"use strict";
99	// Put here your theme-specific code to init post-formats
100	// It will be called before core init post_formats when page is loaded or after 'Load more' or 'Infinite scroll' actions
101	$('#myBtn:hidden').hide();
102	$(window).scroll(function() {
103		if ($(this).scrollTop() > 600) {
104			$('#myBtn:hidden').stop(true, true).fadeIn();
105		} else {
106			$('#myBtn').stop(true, true).fadeOut();
107		}
108	});
109	// Tribe Events buttons decoration (add 'sc_button' class)
110	jQuery('a.tribe-events-read-more,.tribe-events-button,.tribe-events-nav-previous a,.tribe-events-nav-next a,.tribe-events-widget-link a,.tribe-events-viewmore a')
111		.addClass('sc_button sc_button_style_filled');
112
113	// All other buttons decoration (add 'hover' class)
114	if (SEVENHILLS_STORAGE['button_hover'] && SEVENHILLS_STORAGE['button_hover']!='default') {
115		jQuery('button:not(.search_submit):not([class*="sc_button_hover_"]),\
116				.sc_button:not(.sc_button_style_border):not([class*="sc_button_hover_"]),\
117				.woocommerce .button:not([class*="sc_button_hover_"]),.woocommerce-page .button:not([class*="sc_button_hover_"]),\
118				#buddypress a.button:not([class*="sc_button_hover_"])'
119				).addClass('sc_button_hover_'+SEVENHILLS_STORAGE['button_hover']);
120		if (SEVENHILLS_STORAGE['button_hover']!='arrow')
121			jQuery('input[type="submit"]:not([class*="sc_button_hover_"]),\
122					input[type="button"]:not([class*="sc_button_hover_"]),\
123					.isotope_filters_button,\
124					.scroll_to_top:not([class*="sc_button_hover_"]),\
125					.sc_slider_prev:not([class*="sc_button_hover_"]),.sc_slider_next:not([class*="sc_button_hover_"]),\
126					.tagcloud > a:not([class*="sc_button_hover_"])'
127					).addClass('sc_button_hover_'+SEVENHILLS_STORAGE['button_hover']);
128	}
129
130	// All text fields decoration (except Calculated Fields Forms)
131	//if (SEVENHILLS_STORAGE['input_hover'])
132	//	jQuery('form:not([class*="cp_cff_"]):not([class*="sc_input_hover_"])').addClass('sc_input_hover_'+SEVENHILLS_STORAGE['input_hover']);
133
134	// Mark field as 'filled' on keypress
135	jQuery('[class*="sc_input_hover_"] input, [class*="sc_input_hover_"] textarea').each(function() {
136		if (jQuery(this).val()!='')
137			jQuery(this).addClass('filled');
138		else
139			jQuery(this).removeClass('filled');
140	});
141	jQuery('[class*="sc_input_hover_"] input, [class*="sc_input_hover_"] textarea').on('blur', function() {
142		if (jQuery(this).val()!='')
143			jQuery(this).addClass('filled');
144		else
145			jQuery(this).removeClass('filled');
146	});
147}
148
149
150// Theme-specific GoogleMap styles
151//=====================================================
152function sevenhills_theme_googlemap_styles($styles) {
153	"use strict";
154	// Put here your theme-specific code to add GoogleMap styles
155	// It will be called before GoogleMap init when page is loaded
156	$styles['greyscale'] = [{"featureType":"administrative","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"administrative.neighborhood","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"landscape","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"landscape.man_made","elementType":"geometry.fill","stylers":[{"color":"#ffb900"},{"lightness":"44"},{"gamma":"2.01"}]},{"featureType":"landscape.man_made","elementType":"geometry.stroke","stylers":[{"visibility":"on"},{"lightness":"-27"},{"saturation":"-12"}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"poi.attraction","elementType":"all","stylers":[{"visibility":"on"}]},{"featureType":"poi.business","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"poi.government","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"poi.government","elementType":"labels.text.fill","stylers":[{"visibility":"simplified"},{"lightness":"40"}]},{"featureType":"poi.medical","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"poi.park","elementType":"all","stylers":[{"visibility":"on"}]},{"featureType":"poi.school","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"all","stylers":[{"visibility":"on"},{"color":"#b3abab"},{"saturation":"-8"},{"lightness":"18"}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"visibility":"simplified"}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"simplified"}]},{"featureType":"road","elementType":"labels.text","stylers":[{"visibility":"on"},{"color":"#7e7b7b"}]},{"featureType":"road","elementType":"labels.text.stroke","stylers":[{"visibility":"off"}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"road.highway","elementType":"geometry","stylers":[{"visibility":"simplified"},{"saturation":"29"},{"lightness":"-42"},{"color":"#ecb22f"}]},{"featureType":"road.arterial","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"saturation":"25"},{"lightness":"8"}]},{"featureType":"road.arterial","elementType":"labels.text.fill","stylers":[{"lightness":"-62"}]},{"featureType":"road.local","elementType":"all","stylers":[{"visibility":"on"}]},{"featureType":"road.local","elementType":"labels.text","stylers":[{"lightness":"-29"}]},{"featureType":"road.local","elementType":"labels.text.stroke","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"transit.line","elementType":"geometry","stylers":[{"color":"#3f518c"}]},{"featureType":"transit.station.bus","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"all","stylers":[{"visibility":"simplified"},{"color":"#84afa3"},{"lightness":52}]}];
157	$styles['inverse'] = [
158		{ "stylers": [
159			{ "invert_lightness": true },
160			{ "visibility": "on" }
161			]
162		}
163	];
164	$styles['simple'] = [
165    	{ stylers: [
166        	{ hue: "#00ffe6" },
167            { saturation: -20 }
168			]
169		},
170		{ featureType: "road",
171          elementType: "geometry",
172          stylers: [
173			{ lightness: 100 },
174           	{ visibility: "simplified" }
175            ]
176		},
177		{ featureType: "road",
178          elementType: "labels",
179          stylers: [
180          	{ visibility: "off" }
181            ]
182		}
183	];
184	$styles['apple'] = [
185		{ "featureType": "landscape.man_made",
186		  "elementType": "geometry",
187		  "stylers": [
188			{"color":"#f7f1df"}
189			]
190		},
191		{ "featureType": "landscape.natural",
192		  "elementType": "geometry",
193		  "stylers": [
194		  	{"color":"#d0e3b4"}
195			]
196		},
197		{ "featureType": "landscape.natural.terrain",
198		  "elementType": "geometry",
199		  "stylers": [
200		  	{"visibility":"off"}
201			]
202		},
203		{ "featureType": "poi",
204		  "elementType": "labels",
205		  "stylers": [
206		  	{"visibility":"off"}
207			]
208		},
209		{ "featureType": "poi.business",
210		  "elementType": "all",
211		  "stylers": [
212		  	{"visibility":"off"}
213			]
214		},
215		{ "featureType": "poi.medical",
216		  "elementType": "geometry",
217		  "stylers": [
218		  	{"color":"#fbd3da"}
219			]
220		},
221		{ "featureType": "poi.park",
222		  "elementType": "geometry",
223		  "stylers": [
224		  	{"color":"#bde6ab"}
225			]
226		},
227		{ "featureType": "road",
228		  "elementType": "geometry.stroke",
229		  "stylers": [
230		  	{"visibility":"off"}
231			]
232		},
233		{ "featureType": "road",
234		  "elementType": "labels",
235		  "stylers": [
236		  	{"visibility":"off"}
237			]
238		},
239		{ "featureType": "road.highway",
240		  "elementType": "geometry.fill",
241		  "stylers": [
242		  	{"color":"#ffe15f"}
243			]
244		},
245		{ "featureType": "road.highway",
246		  "elementType":"geometry.stroke",
247		  "stylers": [
248		  	{"color":"#efd151"}
249		  	]
250		},
251		{ "featureType": "road.arterial",
252		  "elementType": "geometry.fill",
253		  "stylers": [
254		  	{"color":"#ffffff"}
255			]
256		},
257		{ "featureType": "road.local",
258		  "elementType": "geometry.fill",
259		  "stylers": [
260		  	{"color":"black"}
261			]
262		},
263		{ "featureType": "transit.station.airport",
264		  "elementType": "geometry.fill",
265		  "stylers": [
266		  	{"color":"#cfb2db"}
267			]
268		},
269		{ "featureType": "water",
270		  "elementType": "geometry",
271		  "stylers": [
272		  	{"color":"#a2daf2"}
273			]
274		}
275	];
276	return $styles;
277}

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.