PageSourceSearch

https://albatross-racing.club/wp-content/themes/n7-golf-club/js/theme.init.js

js albatross-racing.club collected 2026-10-08 18:38:11 UTC 12,716 bytes, 540 lines download raw bytes

1/* global jQuery:false */
2/* global N7_GOLF_CLUB_STORAGE:false */
3
4
5// Theme-specific first load actions
6//==============================================
7function n7_golf_club_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
12
13
14// Comments
15//==============================================
16    // Checkbox with "I agree..."
17    if (jQuery('input[type="checkbox"][name="i_agree_privacy_policy"]:not(.inited),input[type="checkbox"][name="gdpr_terms"]:not(.inited),input[type="checkbox"][name="wpgdprc"]:not(.inited)').length > 0) {
18        jQuery('input[type="checkbox"][name="i_agree_privacy_policy"]:not(.inited),input[type="checkbox"][name="gdpr_terms"]:not(.inited),input[type="checkbox"][name="wpgdprc"]:not(.inited)')
19            .addClass('inited')
20            .on('change', function(e) {
21                if (jQuery(this).get(0).checked)
22                    jQuery(this).parents('form').find('button,input[type="submit"],a.sc_emailer_button').removeAttr('disabled');
23                else
24                    jQuery(this).parents('form').find('button,input[type="submit"],a.sc_emailer_button').attr('disabled', 'disabled');
25            }).trigger('change');
26    }
27}
28//
29//if (jQuery('.sc_emailer_form input[type="checkbox"][name="i_agree_privacy_policy"]:not(.go)').length > 0) {
30//    jQuery('.sc_emailer_form input[type="checkbox"][name="i_agree_privacy_policy"]:not(.go)')
31//        .addClass('go')
32//        .on('change', function(e) {
33//            if (jQuery(this).get(0).checked)
34//                jQuery(this).parents('form').find('a.sc_emailer_button').removeAttr('disabled');
35//            else
36//                jQuery(this).parents('form').find('a.sc_emailer_button').attr('disabled', 'disabled');
37//        }).trigger('change');
38//}
39
40
41// Theme-specific scroll actions
42//==============================================
43function n7_golf_club_theme_scroll_actions() {
44	"use strict";
45	// Put here your theme-specific code with scroll actions
46	// It will be called when page is scrolled (before core actions)
47}
48
49
50// Theme-specific resize actions
51//==============================================
52function n7_golf_club_theme_resize_actions() {
53	"use strict";
54	// Put here your theme-specific code with resize actions
55	// It will be called when window is resized (before core actions)
56	
57	maxh();
58	maxhprice();
59	
60}
61
62
63// Theme-specific shortcodes init
64//=====================================================
65function n7_golf_club_theme_sc_init(cont) {
66	"use strict";
67	// Put here your theme-specific code to init shortcodes
68	// It will be called before core init shortcodes
69	// @param cont - jQuery-container with shortcodes (init only inside this container)
70}
71
72
73// Theme-specific post-formats init
74//=====================================================
75function n7_golf_club_theme_init_post_formats() {
76	"use strict";
77	// Put here your theme-specific code to init post-formats
78	// It will be called before core init post_formats when page is loaded or after 'Load more' or 'Infinite scroll' actions
79}
80
81
82// Theme-specific GoogleMap styles
83//=====================================================
84function n7_golf_club_theme_googlemap_styles($styles) {
85	"use strict";
86	// Put here your theme-specific code to add GoogleMap styles
87	// It will be called before GoogleMap init when page is loaded
88	$styles['greyscale'] = [
89    	{ "stylers": [
90        	{ "saturation": -100 }
91            ]
92        }
93	];
94	$styles['inverse'] = [
95		{ "stylers": [
96			{ "invert_lightness": true },
97			{ "visibility": "on" }
98			]
99		}
100	];
101	$styles['simple'] = [
102    	{ stylers: [
103        	{ hue: "#00ffe6" },
104            { saturation: -20 }
105			]
106		},
107		{ featureType: "road",
108          elementType: "geometry",
109          stylers: [
110			{ lightness: 100 },
111           	{ visibility: "simplified" }
112            ]
113		},
114		{ featureType: "road",
115          elementType: "labels",
116          stylers: [
117          	{ visibility: "off" }
118            ]
119		}
120	];
121	$styles['dark'] = [
122		 {
123        "featureType": "all",
124        "elementType": "labels",
125        "stylers": [
126            {
127                "visibility": "on"
128            }
129        ]
130    },
131    {
132        "featureType": "all",
133        "elementType": "labels.text.fill",
134        "stylers": [
135            {
136                "saturation": 36
137            },
138            {
139                "color": "#000000"
140            },
141            {
142                "lightness": 40
143            }
144        ]
145    },
146    {
147        "featureType": "all",
148        "elementType": "labels.text.stroke",
149        "stylers": [
150            {
151                "visibility": "on"
152            },
153            {
154                "color": "#000000"
155            },
156            {
157                "lightness": 16
158            }
159        ]
160    },
161    {
162        "featureType": "all",
163        "elementType": "labels.icon",
164        "stylers": [
165            {
166                "visibility": "off"
167            }
168        ]
169    },
170    {
171        "featureType": "administrative",
172        "elementType": "geometry.fill",
173        "stylers": [
174            {
175                "color": "#000000"
176            },
177            {
178                "lightness": 20
179            }
180        ]
181    },
182    {
183        "featureType": "administrative",
184        "elementType": "geometry.stroke",
185        "stylers": [
186            {
187                "color": "#000000"
188            },
189            {
190                "lightness": 17
191            },
192            {
193                "weight": 1.2
194            }
195        ]
196    },
197    {
198        "featureType": "administrative.country",
199        "elementType": "labels.text",
200        "stylers": [
201            {
202                "visibility": "off"
203            }
204        ]
205    },
206    {
207        "featureType": "administrative.province",
208        "elementType": "labels.text",
209        "stylers": [
210            {
211                "visibility": "on"
212            }
213        ]
214    },
215    {
216        "featureType": "administrative.locality",
217        "elementType": "labels.text",
218        "stylers": [
219            {
220                "visibility": "off"
221            }
222        ]
223    },
224    {
225        "featureType": "administrative.neighborhood",
226        "elementType": "labels.text",
227        "stylers": [
228            {
229                "visibility": "off"
230            }
231        ]
232    },
233    {
234        "featureType": "administrative.land_parcel",
235        "elementType": "labels.text",
236        "stylers": [
237            {
238                "visibility": "off"
239            }
240        ]
241    },
242    {
243        "featureType": "landscape",
244        "elementType": "geometry",
245        "stylers": [
246            {
247                "color": "#000000"
248            },
249            {
250                "lightness": "20"
251            },
252            {
253                "gamma": "1.04"
254            },
255            {
256                "saturation": "0"
257            }
258        ]
259    },
260    {
261        "featureType": "landscape.man_made",
262        "elementType": "labels",
263        "stylers": [
264            {
265                "visibility": "off"
266            }
267        ]
268    },
269    {
270        "featureType": "landscape.natural",
271        "elementType": "labels.text",
272        "stylers": [
273            {
274                "visibility": "off"
275            }
276        ]
277    },
278    {
279        "featureType": "landscape.natural.landcover",
280        "elementType": "labels.text",
281        "stylers": [
282            {
283                "visibility": "off"
284            }
285        ]
286    },
287    {
288        "featureType": "landscape.natural.terrain",
289        "elementType": "labels.text",
290        "stylers": [
291            {
292                "visibility": "off"
293            }
294        ]
295    },
296    {
297        "featureType": "poi",
298        "elementType": "geometry",
299        "stylers": [
300            {
301                "color": "#000000"
302            },
303            {
304                "lightness": 21
305            }
306        ]
307    },
308    {
309        "featureType": "road",
310        "elementType": "labels",
311        "stylers": [
312            {
313                "visibility": "off"
314            }
315        ]
316    },
317    {
318        "featureType": "road",
319        "elementType": "labels.text",
320        "stylers": [
321            {
322                "visibility": "off"
323            }
324        ]
325    },
326    {
327        "featureType": "road.highway",
328        "elementType": "geometry.fill",
329        "stylers": [
330            {
331                "color": "#000000"
332            },
333            {
334                "lightness": 17
335            }
336        ]
337    },
338    {
339        "featureType": "road.highway",
340        "elementType": "geometry.stroke",
341        "stylers": [
342            {
343                "color": "#000000"
344            },
345            {
346                "lightness": 29
347            },
348            {
349                "weight": 0.2
350            }
351        ]
352    },
353    {
354        "featureType": "road.highway",
355        "elementType": "labels",
356        "stylers": [
357            {
358                "visibility": "off"
359            },
360            {
361                "lightness": "-64"
362            },
363            {
364                "saturation": "-100"
365            }
366        ]
367    },
368    {
369        "featureType": "road.highway",
370        "elementType": "labels.text",
371        "stylers": [
372            {
373                "visibility": "off"
374            }
375        ]
376    },
377    {
378        "featureType": "road.highway",
379        "elementType": "labels.icon",
380        "stylers": [
381            {
382                "visibility": "off"
383            }
384        ]
385    },
386    {
387        "featureType": "road.arterial",
388        "elementType": "geometry",
389        "stylers": [
390            {
391                "color": "#000000"
392            },
393            {
394                "lightness": "17"
395            }
396        ]
397    },
398    {
399        "featureType": "road.arterial",
400        "elementType": "geometry.stroke",
401        "stylers": [
402            {
403                "visibility": "on"
404            }
405        ]
406    },
407    {
408        "featureType": "road.arterial",
409        "elementType": "labels",
410        "stylers": [
411            {
412                "weight": "2.12"
413            },
414            {
415                "visibility": "off"
416            }
417        ]
418    },
419    {
420        "featureType": "road.arterial",
421        "elementType": "labels.text",
422        "stylers": [
423            {
424                "visibility": "off"
425            }
426        ]
427    },
428    {
429        "featureType": "road.local",
430        "elementType": "geometry",
431        "stylers": [
432            {
433                "color": "#000000"
434            },
435            {
436                "lightness": "18"
437            },
438            {
439                "visibility": "on"
440            },
441            {
442                "weight": "2.17"
443            }
444        ]
445    },
446    {
447        "featureType": "road.local",
448        "elementType": "geometry.stroke",
449        "stylers": [
450            {
451                "visibility": "off"
452            },
453            {
454                "lightness": "-32"
455            }
456        ]
457    },
458    {
459        "featureType": "road.local",
460        "elementType": "labels",
461        "stylers": [
462            {
463                "visibility": "off"
464            }
465        ]
466    },
467    {
468        "featureType": "transit",
469        "elementType": "geometry",
470        "stylers": [
471            {
472                "color": "#000000"
473            },
474            {
475                "lightness": 19
476            }
477        ]
478    },
479    {
480        "featureType": "water",
481        "elementType": "geometry",
482        "stylers": [
483            {
484                "color": "#282529"
485            },
486            {
487                "saturation": "-49"
488            },
489            {
490                "lightness": "-9"
491            }
492        ]
493    }
494	];
495	return $styles;
496}
497
498
499function maxh() {
500	"use strict";
501	if (jQuery('.maxHBox').length>0) {
502		jQuery('.maxHBox').each(function (){
503			"use strict";
504			var maxH = 0;
505			jQuery(this).find('.maxHBoxItem').each(function (){
506				"use strict";
507				if ( jQuery(this).height() > maxH ) {
508					maxH = jQuery(this).height();
509				}
510				console.log(maxH);
511			});
512			jQuery(this).find('.maxHBoxItem').height(maxH);
513			jQuery(this).find('.maxHBoxItem .sc_column_item_inner').height(maxH);
514			//console.log('xXx');
515		});
516	}
517}
518
519
520function maxhprice() {
521	"use strict";
522	if (jQuery('.maxHBoxPrice').length>0) {
523		jQuery('.maxHBoxPrice').each(function (){
524			"use strict";
525			var maxHPriceTitle = 0;
526			jQuery(this).find('.sc_price_block_description').each(function (){
527				"use strict";
528				if ( jQuery(this).height() > maxHPriceTitle ) {
529					maxHPriceTitle = jQuery(this).height();
530				}
531				console.log(maxHPriceTitle);
532			});
533			jQuery(this).find('.sc_price_block_description').height(maxHPriceTitle);
534			//console.log('xXx');
535		});
536	}
537}
538
539
540

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.