PageSourceSearch

https://tramites.penaflor.cl/assets/js/theme.init.js

js penaflor.cl collected 2026-10-02 06:45:12 UTC 8,343 bytes, 471 lines download raw bytes

1// Commom Plugins
2(function($) {
3
4	'use strict';
5
6	// Scroll to Top Button.
7	if (typeof theme.PluginScrollToTop !== 'undefined') {
8		theme.PluginScrollToTop.initialize();
9	}
10
11	// Tooltips
12	if ($.isFunction($.fn['tooltip'])) {
13		$('[data-tooltip]:not(.manual), [data-plugin-tooltip]:not(.manual)').tooltip();
14	}
15
16	// Popover
17	if ($.isFunction($.fn['popover'])) {
18		$(function() {
19			$('[data-plugin-popover]:not(.manual)').each(function() {
20				var $this = $(this),
21					opts;
22
23				var pluginOptions = $this.data('plugin-options');
24				if (pluginOptions)
25					opts = pluginOptions;
26
27				$this.popover(opts);
28			});
29		});
30	}
31
32	// Validations
33	if (typeof theme.PluginValidation !== 'undefined') {
34		theme.PluginValidation.initialize();
35	}
36
37	// Parallax
38	if (typeof theme.PluginParallax !== 'undefined') {
39		theme.PluginParallax.initialize();
40	}
41
42	// Match Height
43	if ($.isFunction($.fn['matchHeight'])) {
44
45		$('.match-height').matchHeight();
46
47		// Featured Boxes
48		$('.featured-boxes .featured-box').matchHeight();
49
50		// Featured Box Full
51		$('.featured-box-full').matchHeight();
52
53	}
54
55}).apply(this, [jQuery]);
56
57// Animate
58(function($) {
59
60	'use strict';
61
62	if ($.isFunction($.fn['themePluginAnimate'])) {
63
64		$(function() {
65			$('[data-plugin-animate], [data-appear-animation]').each(function() {
66				var $this = $(this),
67					opts;
68
69				var pluginOptions = $this.data('plugin-options');
70				if (pluginOptions)
71					opts = pluginOptions;
72
73				$this.themePluginAnimate(opts);
74			});
75		});
76
77	}
78
79}).apply(this, [jQuery]);
80
81// Carousel
82(function($) {
83
84	'use strict';
85
86	if ($.isFunction($.fn['themePluginCarousel'])) {
87
88		$(function() {
89			$('[data-plugin-carousel]:not(.manual), .owl-carousel:not(.manual)').each(function() {
90				var $this = $(this),
91					opts;
92
93				var pluginOptions = $this.data('plugin-options');
94				if (pluginOptions)
95					opts = pluginOptions;
96
97				$this.themePluginCarousel(opts);
98			});
99		});
100
101	}
102
103}).apply(this, [jQuery]);
104
105// Chart.Circular
106(function($) {
107
108	'use strict';
109
110	if ($.isFunction($.fn['themePluginChartCircular'])) {
111
112		$(function() {
113			$('[data-plugin-chart-circular]:not(.manual), .circular-bar-chart:not(.manual)').each(function() {
114				var $this = $(this),
115					opts;
116
117				var pluginOptions = $this.data('plugin-options');
118				if (pluginOptions)
119					opts = pluginOptions;
120
121				$this.themePluginChartCircular(opts);
122			});
123		});
124
125	}
126
127}).apply(this, [jQuery]);
128
129// Counter
130(function($) {
131
132	'use strict';
133
134	if ($.isFunction($.fn['themePluginCounter'])) {
135
136		$(function() {
137			$('[data-plugin-counter]:not(.manual), .counters [data-to]').each(function() {
138				var $this = $(this),
139					opts;
140
141				var pluginOptions = $this.data('plugin-options');
142				if (pluginOptions)
143					opts = pluginOptions;
144
145				$this.themePluginCounter(opts);
146			});
147		});
148
149	}
150
151}).apply(this, [jQuery]);
152
153// Lazy Load
154(function($) {
155
156	'use strict';
157
158	if ($.isFunction($.fn['themePluginLazyLoad'])) {
159
160		$(function() {
161			$('[data-plugin-lazyload]:not(.manual)').each(function() {
162				var $this = $(this),
163					opts;
164
165				var pluginOptions = $this.data('plugin-options');
166				if (pluginOptions)
167					opts = pluginOptions;
168
169				$this.themePluginLazyLoad(opts);
170			});
171		});
172
173	}
174
175}).apply(this, [jQuery]);
176
177// Lightbox
178(function($) {
179
180	'use strict';
181
182	if ($.isFunction($.fn['themePluginLightbox'])) {
183
184		$(function() {
185			$('[data-plugin-lightbox]:not(.manual), .lightbox:not(.manual)').each(function() {
186				var $this = $(this),
187					opts;
188
189				var pluginOptions = $this.data('plugin-options');
190				if (pluginOptions)
191					opts = pluginOptions;
192
193				$this.themePluginLightbox(opts);
194			});
195		});
196
197	}
198
199}).apply(this, [jQuery]);
200
201// Masonry
202(function($) {
203
204	'use strict';
205
206	if ($.isFunction($.fn['themePluginMasonry'])) {
207
208		$(function() {
209			$('[data-plugin-masonry]:not(.manual)').each(function() {
210				var $this = $(this),
211					opts;
212
213				var pluginOptions = $this.data('plugin-options');
214				if (pluginOptions)
215					opts = pluginOptions;
216
217				$this.themePluginMasonry(opts);
218			});
219		});
220
221	}
222
223}).apply(this, [jQuery]);
224
225// Match Height
226(function($) {
227
228	'use strict';
229
230	if ($.isFunction($.fn['themePluginMatchHeight'])) {
231
232		$(function() {
233			$('[data-plugin-match-height]:not(.manual)').each(function() {
234				var $this = $(this),
235					opts;
236
237				var pluginOptions = $this.data('plugin-options');
238				if (pluginOptions)
239					opts = pluginOptions;
240
241				$this.themePluginMatchHeight(opts);
242			});
243		});
244
245	}
246
247}).apply(this, [jQuery]);
248
249// Progress Bar
250(function($) {
251
252	'use strict';
253
254	if ($.isFunction($.fn['themePluginProgressBar'])) {
255
256		$(function() {
257			$('[data-plugin-progress-bar]:not(.manual), [data-appear-progress-animation]').each(function() {
258				var $this = $(this),
259					opts;
260
261				var pluginOptions = $this.data('plugin-options');
262				if (pluginOptions)
263					opts = pluginOptions;
264
265				$this.themePluginProgressBar(opts);
266			});
267		});
268
269	}
270
271}).apply(this, [jQuery]);
272
273// Revolution Slider
274(function($) {
275
276	'use strict';
277
278	if ($.isFunction($.fn['themePluginRevolutionSlider'])) {
279
280		$(function() {
281			$('[data-plugin-revolution-slider]:not(.manual), .slider-container .slider:not(.manual)').each(function() {
282				var $this = $(this),
283					opts;
284
285				var pluginOptions = $this.data('plugin-options');
286				if (pluginOptions)
287					opts = pluginOptions;
288
289				$this.themePluginRevolutionSlider(opts);
290			});
291		});
292
293	}
294
295}).apply(this, [jQuery]);
296
297// Sort
298(function($) {
299
300	'use strict';
301
302	if ($.isFunction($.fn['themePluginSort'])) {
303
304		$(function() {
305			$('[data-plugin-sort]:not(.manual), .sort-source:not(.manual)').each(function() {
306				var $this = $(this),
307					opts;
308
309				var pluginOptions = $this.data('plugin-options');
310				if (pluginOptions)
311					opts = pluginOptions;
312
313				$this.themePluginSort(opts);
314			});
315		});
316
317	}
318
319}).apply(this, [jQuery]);
320
321// Sticky
322(function($) {
323
324	'use strict';
325
326	if ($.isFunction($.fn['themePluginSticky'])) {
327
328		$(function() {
329			$('[data-plugin-sticky]:not(.manual)').each(function() {
330				var $this = $(this),
331					opts;
332
333				var pluginOptions = $this.data('plugin-options');
334				if (pluginOptions)
335					opts = pluginOptions;
336
337				$this.themePluginSticky(opts);
338			});
339		});
340
341	}
342
343}).apply(this, [jQuery]);
344
345// Toggle
346(function($) {
347
348	'use strict';
349
350	if ($.isFunction($.fn['themePluginToggle'])) {
351
352		$(function() {
353			$('[data-plugin-toggle]:not(.manual)').each(function() {
354				var $this = $(this),
355					opts;
356
357				var pluginOptions = $this.data('plugin-options');
358				if (pluginOptions)
359					opts = pluginOptions;
360
361				$this.themePluginToggle(opts);
362			});
363		});
364
365	}
366
367}).apply(this, [jQuery]);
368
369// Tweets
370(function($) {
371
372	'use strict';
373
374	if ($.isFunction($.fn['themePluginTweets'])) {
375
376		$(function() {
377			$('[data-plugin-tweets]:not(.manual)').each(function() {
378				var $this = $(this),
379					opts;
380
381				var pluginOptions = $this.data('plugin-options');
382				if (pluginOptions)
383					opts = pluginOptions;
384
385				$this.themePluginTweets(opts);
386			});
387		});
388
389	}
390
391}).apply(this, [jQuery]);
392
393// Video Background
394(function($) {
395
396	'use strict';
397
398	if ($.isFunction($.fn['themePluginVideoBackground'])) {
399
400		$(function() {
401			$('[data-plugin-video-background]:not(.manual)').each(function() {
402				var $this = $(this),
403					opts;
404
405				var pluginOptions = $this.data('plugin-options');
406				if (pluginOptions)
407					opts = pluginOptions;
408
409				$this.themePluginVideoBackground(opts);
410			});
411		});
412
413	}
414
415}).apply(this, [jQuery]);
416
417// Word Rotate
418(function($) {
419
420	'use strict';
421
422	if ($.isFunction($.fn['themePluginWordRotate'])) {
423
424		$(function() {
425			$('[data-plugin-word-rotate]:not(.manual), .word-rotate:not(.manual)').each(function() {
426				var $this = $(this),
427					opts;
428
429				var pluginOptions = $this.data('plugin-options');
430				if (pluginOptions)
431					opts = pluginOptions;
432
433				$this.themePluginWordRotate(opts);
434			});
435		});
436
437	}
438
439}).apply(this, [jQuery]);
440
441// Commom Partials
442(function($) {
443
444	'use strict';
445
446	// Sticky Header
447	if (typeof theme.StickyHeader !== 'undefined') {
448		theme.StickyHeader.initialize();
449	}
450
451	// Nav Menu
452	if (typeof theme.Nav !== 'undefined') {
453		theme.Nav.initialize();
454	}
455
456	// Search
457	if (typeof theme.Search !== 'undefined') {
458		theme.Search.initialize();
459	}
460
461	// Newsletter
462	if (typeof theme.Newsletter !== 'undefined') {
463		theme.Newsletter.initialize();
464	}
465
466	// Account
467	if (typeof theme.Account !== 'undefined') {
468		theme.Account.initialize();
469	}
470
471}).apply(this, [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.