PageSourceSearch

https://swteresa.pl/wp-content/themes/faith-hope/js/theme.init.js

js swteresa.pl collected 2026-10-09 00:32:10 UTC 7,519 bytes, 214 lines download raw bytes

1/* global jQuery:false */
2/* global FAITH_HOPE_STORAGE:false */
3
4
5// Theme-specific first load actions
6//==============================================
7function faith_hope_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// Theme-specific scroll actions
15//==============================================
16function faith_hope_theme_scroll_actions() {
17	"use strict";
18	// Put here your theme-specific code with scroll actions
19	// It will be called when page is scrolled (before core actions)
20}
21
22
23// Theme-specific resize actions
24//==============================================
25function faith_hope_theme_resize_actions() {
26	"use strict";
27	// Put here your theme-specific code with resize actions
28	// It will be called when window is resized (before core actions)
29}
30
31
32// Theme-specific shortcodes init
33//=====================================================
34function faith_hope_theme_sc_init(cont) {
35	"use strict";
36	// Put here your theme-specific code to init shortcodes
37	// It will be called before core init shortcodes
38	// @param cont - jQuery-container with shortcodes (init only inside this container)
39}
40
41
42// Theme-specific post-formats init
43//=====================================================
44function faith_hope_theme_init_post_formats() {
45	"use strict";
46	// Put here your theme-specific code to init post-formats
47	// It will be called before core init post_formats when page is loaded or after 'Load more' or 'Infinite scroll' actions
48
49	// Tribe Events buttons decoration (add 'sc_button' class)
50	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')
51		.addClass('sc_button sc_button_style_filled');
52
53	// All other buttons decoration (add 'hover' class)
54	if (FAITH_HOPE_STORAGE['button_hover'] && FAITH_HOPE_STORAGE['button_hover']!='default') {
55		jQuery('button:not(.search_submit):not([class*="sc_button_hover_"]),\
56				.sc_button:not(.sc_button_style_border):not([class*="sc_button_hover_"]),\
57				.woocommerce .button:not([class*="sc_button_hover_"]),.woocommerce-page .button:not([class*="sc_button_hover_"]),\
58				#buddypress a.button:not([class*="sc_button_hover_"])'
59				).addClass('sc_button_hover_'+FAITH_HOPE_STORAGE['button_hover']);
60		if (FAITH_HOPE_STORAGE['button_hover']!='arrow')
61			jQuery('input[type="submit"]:not([class*="sc_button_hover_"]),\
62					input[type="button"]:not([class*="sc_button_hover_"]),\
63					.isotope_filters_button,\
64					.scroll_to_top:not([class*="sc_button_hover_"]),\
65					.sc_slider_prev:not([class*="sc_button_hover_"]),.sc_slider_next:not([class*="sc_button_hover_"]),\
66					.tagcloud > a:not([class*="sc_button_hover_"])'
67					).addClass('sc_button_hover_'+FAITH_HOPE_STORAGE['button_hover']);
68	}
69
70	// All text fields decoration (except Calculated Fields Forms)
71
72	// Mark field as 'filled' on keypress
73	jQuery('[class*="sc_input_hover_"] input, [class*="sc_input_hover_"] textarea').each(function() {
74		if (jQuery(this).val()!='')
75			jQuery(this).addClass('filled');
76		else
77			jQuery(this).removeClass('filled');
78	});
79	jQuery('[class*="sc_input_hover_"] input, [class*="sc_input_hover_"] textarea').on('blur', function() {
80		if (jQuery(this).val()!='')
81			jQuery(this).addClass('filled');
82		else
83			jQuery(this).removeClass('filled');
84	});
85}
86
87
88// Theme-specific GoogleMap styles
89//=====================================================
90function faith_hope_theme_googlemap_styles($styles) {
91	"use strict";
92	// Put here your theme-specific code to add GoogleMap styles
93	// It will be called before GoogleMap init when page is loaded
94	$styles['greyscale'] = [
95    	{ "stylers": [
96        	{ "saturation": -100 }
97            ]
98        }
99	];
100	$styles['inverse'] = [{"featureType":"all","elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":"45"}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":"30"},{"weight":"1.2"},{"saturation":"0"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#353534"},{"lightness":"0"}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#353534"},{"lightness":"0"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":16}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":19}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#3b3b39"},{"lightness":"0"},{"gamma":"1"}]}];
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['apple'] = [
122		{ "featureType": "landscape.man_made",
123		  "elementType": "geometry",
124		  "stylers": [
125			{"color":"#f7f1df"}
126			]
127		},
128		{ "featureType": "landscape.natural",
129		  "elementType": "geometry",
130		  "stylers": [
131		  	{"color":"#d0e3b4"}
132			]
133		},
134		{ "featureType": "landscape.natural.terrain",
135		  "elementType": "geometry",
136		  "stylers": [
137		  	{"visibility":"off"}
138			]
139		},
140		{ "featureType": "poi",
141		  "elementType": "labels",
142		  "stylers": [
143		  	{"visibility":"off"}
144			]
145		},
146		{ "featureType": "poi.business",
147		  "elementType": "all",
148		  "stylers": [
149		  	{"visibility":"off"}
150			]
151		},
152		{ "featureType": "poi.medical",
153		  "elementType": "geometry",
154		  "stylers": [
155		  	{"color":"#fbd3da"}
156			]
157		},
158		{ "featureType": "poi.park",
159		  "elementType": "geometry",
160		  "stylers": [
161		  	{"color":"#bde6ab"}
162			]
163		},
164		{ "featureType": "road",
165		  "elementType": "geometry.stroke",
166		  "stylers": [
167		  	{"visibility":"off"}
168			]
169		},
170		{ "featureType": "road",
171		  "elementType": "labels",
172		  "stylers": [
173		  	{"visibility":"off"}
174			]
175		},
176		{ "featureType": "road.highway",
177		  "elementType": "geometry.fill",
178		  "stylers": [
179		  	{"color":"#ffe15f"}
180			]
181		},
182		{ "featureType": "road.highway",
183		  "elementType":"geometry.stroke",
184		  "stylers": [
185		  	{"color":"#efd151"}
186		  	]
187		},
188		{ "featureType": "road.arterial",
189		  "elementType": "geometry.fill",
190		  "stylers": [
191		  	{"color":"#ffffff"}
192			]
193		},
194		{ "featureType": "road.local",
195		  "elementType": "geometry.fill",
196		  "stylers": [
197		  	{"color":"black"}
198			]
199		},
200		{ "featureType": "transit.station.airport",
201		  "elementType": "geometry.fill",
202		  "stylers": [
203		  	{"color":"#cfb2db"}
204			]
205		},
206		{ "featureType": "water",
207		  "elementType": "geometry",
208		  "stylers": [
209		  	{"color":"#a2daf2"}
210			]
211		}
212	];
213	return $styles;
214}

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.