PageSourceSearch

https://cidadao.riobranco.mt.gov.br:8443/issweb/javax.faces.resource/public/js/theme.init.js

js riobranco.mt.gov.br collected 2026-10-02 20:28:57 UTC 11,756 bytes, 614 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 = theme.fn.getOptions($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	// Match Height
38	if ($.isFunction($.fn['matchHeight'])) {
39
40		$('.match-height').matchHeight();
41
42		// Featured Boxes
43		$('.featured-boxes .featured-box').matchHeight();
44
45		// Featured Box Full
46		$('.featured-box-full').matchHeight();
47
48	}
49
50}).apply(this, [jQuery]);
51
52// Animate
53(function($) {
54
55	'use strict';
56
57	if ($.isFunction($.fn['themePluginAnimate'])) {
58
59		$(function() {
60			$('[data-appear-animation]').each(function() {
61				var $this = $(this),
62					opts;
63
64				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
65				if (pluginOptions)
66					opts = pluginOptions;
67
68				$this.themePluginAnimate(opts);
69			});
70		});
71
72	}
73
74}).apply(this, [jQuery]);
75
76// Before / After
77(function($) {
78
79	'use strict';
80
81	if ($.isFunction($.fn['themePluginBeforeAfter'])) {
82
83		$(function() {
84			$('[data-plugin-before-after]:not(.manual)').each(function() {
85				var $this = $(this),
86					opts;
87
88				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
89				if (pluginOptions)
90					opts = pluginOptions;
91
92				$this.themePluginBeforeAfter(opts);
93			});
94		});
95
96	}
97
98}).apply(this, [jQuery]);
99
100// Carousel
101(function($) {
102
103	'use strict';
104
105	if ($.isFunction($.fn['themePluginCarousel'])) {
106
107		$(function() {
108			$('[data-plugin-carousel]:not(.manual), .owl-carousel:not(.manual)').each(function() {
109				var $this = $(this),
110					opts;
111
112				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
113				if (pluginOptions)
114					opts = pluginOptions;
115
116				$this.themePluginCarousel(opts);
117			});
118		});
119
120	}
121
122}).apply(this, [jQuery]);
123
124// Chart.Circular
125(function($) {
126
127	'use strict';
128
129	if ($.isFunction($.fn['themePluginChartCircular'])) {
130
131		$(function() {
132			$('[data-plugin-chart-circular]:not(.manual), .circular-bar-chart:not(.manual)').each(function() {
133				var $this = $(this),
134					opts;
135
136				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
137				if (pluginOptions)
138					opts = pluginOptions;
139
140				$this.themePluginChartCircular(opts);
141			});
142		});
143
144	}
145
146}).apply(this, [jQuery]);
147
148// Countdown
149(function($) {
150
151	'use strict';
152
153	if ($.isFunction($.fn['themePluginCountdown'])) {
154
155		$(function() {
156			$('[data-plugin-countdown]:not(.manual), .countdown').each(function() {
157				var $this = $(this),
158					opts;
159
160				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
161				if (pluginOptions)
162					opts = pluginOptions;
163
164				$this.themePluginCountdown(opts);
165			});
166		});
167
168	}
169
170}).apply(this, [jQuery]);
171
172// Counter
173(function($) {
174
175	'use strict';
176
177	if ($.isFunction($.fn['themePluginCounter'])) {
178
179		$(function() {
180			$('[data-plugin-counter]:not(.manual), .counters [data-to]').each(function() {
181				var $this = $(this),
182					opts;
183
184				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
185				if (pluginOptions)
186					opts = pluginOptions;
187
188				$this.themePluginCounter(opts);
189			});
190		});
191
192	}
193
194}).apply(this, [jQuery]);
195
196// Animated Icon
197(function($) {
198
199	'use strict';
200
201	if ($.isFunction($.fn['themePluginIcon'])) {
202
203		$(document).ready(function(){
204			$(function() {
205
206				$('[data-icon]:not(.svg-inline--fa)').each(function() {
207					var $this = $(this),
208						opts;
209
210					var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
211					if (pluginOptions)
212						opts = pluginOptions;
213
214					$this.themePluginIcon(opts);
215				});
216				
217			});
218		});
219	}
220
221}).apply(this, [jQuery]);
222
223// Lazy Load
224(function($) {
225
226	'use strict';
227
228	if ($.isFunction($.fn['themePluginLazyLoad'])) {
229
230		$(function() {
231			$('[data-plugin-lazyload]:not(.manual)').each(function() {
232				var $this = $(this),
233					opts;
234
235				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
236				if (pluginOptions)
237					opts = pluginOptions;
238
239				$this.themePluginLazyLoad(opts);
240			});
241		});
242
243	}
244
245}).apply(this, [jQuery]);
246
247// Lightbox
248(function($) {
249
250	'use strict';
251
252	if ($.isFunction($.fn['themePluginLightbox'])) {
253
254		$(function() {
255			$('[data-plugin-lightbox]:not(.manual), .lightbox:not(.manual)').each(function() {
256				var $this = $(this),
257					opts;
258
259				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
260				if (pluginOptions)
261					opts = pluginOptions;
262
263				$this.themePluginLightbox(opts);
264			});
265		});
266
267	}
268
269}).apply(this, [jQuery]);
270
271// Masonry
272(function($) {
273
274	'use strict';
275
276	if ($.isFunction($.fn['themePluginMasonry'])) {
277
278		$(function() {
279			$('[data-plugin-masonry]:not(.manual)').each(function() {
280				var $this = $(this),
281					opts;
282
283				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
284				if (pluginOptions)
285					opts = pluginOptions;
286
287				$this.themePluginMasonry(opts);
288			});
289		});
290
291	}
292
293}).apply(this, [jQuery]);
294
295// Match Height
296(function($) {
297
298	'use strict';
299
300	if ($.isFunction($.fn['themePluginMatchHeight'])) {
301
302		$(function() {
303			$('[data-plugin-match-height]:not(.manual)').each(function() {
304				var $this = $(this),
305					opts;
306
307				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
308				if (pluginOptions)
309					opts = pluginOptions;
310
311				$this.themePluginMatchHeight(opts);
312			});
313		});
314
315	}
316
317}).apply(this, [jQuery]);
318
319// Parallax
320(function($) {
321
322	'use strict';
323
324	if ($.isFunction($.fn['themePluginParallax'])) {
325
326		$(function() {
327			$('[data-plugin-parallax]:not(.manual)').each(function() {
328				var $this = $(this),
329					opts;
330
331				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
332				if (pluginOptions)
333					opts = pluginOptions;
334
335				$this.themePluginParallax(opts);
336			});
337		});
338
339	}
340
341}).apply(this, [jQuery]);
342
343// Progress Bar
344(function($) {
345
346	'use strict';
347
348	if ($.isFunction($.fn['themePluginProgressBar'])) {
349
350		$(function() {
351			$('[data-plugin-progress-bar]:not(.manual), [data-appear-progress-animation]').each(function() {
352				var $this = $(this),
353					opts;
354
355				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
356				if (pluginOptions)
357					opts = pluginOptions;
358
359				$this.themePluginProgressBar(opts);
360			});
361		});
362
363	}
364
365}).apply(this, [jQuery]);
366
367// Revolution Slider
368(function($) {
369
370	'use strict';
371
372	if ($.isFunction($.fn['themePluginRevolutionSlider'])) {
373
374		$(function() {
375			$('[data-plugin-revolution-slider]:not(.manual), .slider-container .slider:not(.manual)').each(function() {
376				var $this = $(this),
377					opts;
378
379				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
380				if (pluginOptions)
381					opts = pluginOptions;
382
383				$this.themePluginRevolutionSlider(opts);
384			});
385		});
386
387	}
388
389}).apply(this, [jQuery]);
390
391// Scrollable
392(function($) {
393
394	'use strict';
395
396	if ( $.isFunction($.fn[ 'nanoScroller' ]) ) {
397
398		$(function() {
399			$('[data-plugin-scrollable]').each(function() {
400				var $this = $( this ),
401					opts = {};
402
403				var pluginOptions = $this.data('plugin-options');
404				if (pluginOptions) {
405					opts = pluginOptions;
406				}
407
408				$this.themePluginScrollable(opts);
409			});
410		});
411
412	}
413
414}).apply(this, [jQuery]);
415
416// Section Scroll
417(function($) {
418
419	'use strict';
420
421	if ($.isFunction($.fn['themePluginSectionScroll'])) {
422
423		$(function() {
424			$('[data-plugin-section-scroll]:not(.manual)').each(function() {
425				var $this = $(this),
426					opts;
427
428				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
429				if (pluginOptions)
430					opts = pluginOptions;
431
432				$this.themePluginSectionScroll(opts);
433			});
434		});
435
436	}
437
438}).apply(this, [jQuery]);
439
440// Sort
441(function($) {
442
443	'use strict';
444
445	if ($.isFunction($.fn['themePluginSort'])) {
446
447		$(function() {
448			$('[data-plugin-sort]:not(.manual), .sort-source:not(.manual)').each(function() {
449				var $this = $(this),
450					opts;
451
452				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
453				if (pluginOptions)
454					opts = pluginOptions;
455
456				$this.themePluginSort(opts);
457			});
458		});
459
460	}
461
462}).apply(this, [jQuery]);
463
464// Star Rating
465(function($) {
466
467	'use strict';
468
469	if ($.isFunction($.fn['themePluginStarRating'])) {
470
471		$(function() {
472			$('[data-plugin-star-rating]:not(.manual)').each(function() {
473				var $this = $(this),
474					opts;
475
476				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
477				if (pluginOptions)
478					opts = pluginOptions;
479
480				$this.themePluginStarRating(opts);
481			});
482		});
483
484	}
485
486}).apply(this, [jQuery]);
487
488// Sticky
489(function($) {
490
491	'use strict';
492
493	if ($.isFunction($.fn['themePluginSticky'])) {
494
495		$(function() {
496			$('[data-plugin-sticky]:not(.manual)').each(function() {
497				var $this = $(this),
498					opts;
499
500				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
501				if (pluginOptions)
502					opts = pluginOptions;
503
504				$this.themePluginSticky(opts);
505			});
506		});
507
508	}
509
510}).apply(this, [jQuery]);
511
512// Toggle
513(function($) {
514
515	'use strict';
516
517	if ($.isFunction($.fn['themePluginToggle'])) {
518
519		$(function() {
520			$('[data-plugin-toggle]:not(.manual)').each(function() {
521				var $this = $(this),
522					opts;
523
524				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
525				if (pluginOptions)
526					opts = pluginOptions;
527
528				$this.themePluginToggle(opts);
529			});
530		});
531
532	}
533
534}).apply(this, [jQuery]);
535
536// Tweets
537(function($) {
538
539	'use strict';
540
541	if ($.isFunction($.fn['themePluginTweets'])) {
542
543		$(function() {
544			$('[data-plugin-tweets]:not(.manual)').each(function() {
545				var $this = $(this),
546					opts;
547
548				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
549				if (pluginOptions)
550					opts = pluginOptions;
551
552				$this.themePluginTweets(opts);
553			});
554		});
555
556	}
557
558}).apply(this, [jQuery]);
559
560// Video Background
561(function($) {
562
563	'use strict';
564
565	if ($.isFunction($.fn['themePluginVideoBackground'])) {
566
567		$(function() {
568			$('[data-plugin-video-background]:not(.manual)').each(function() {
569				var $this = $(this),
570					opts;
571
572				var pluginOptions = theme.fn.getOptions($this.data('plugin-options'));
573				if (pluginOptions)
574					opts = pluginOptions;
575
576				$this.themePluginVideoBackground(opts);
577			});
578		});
579
580	}
581
582}).apply(this, [jQuery]);
583
584// Commom Partials
585(function($) {
586
587	'use strict';
588
589	// Sticky Header
590	if (typeof theme.StickyHeader !== 'undefined') {
591		theme.StickyHeader.initialize();
592	}
593
594	// Nav Menu
595	if (typeof theme.Nav !== 'undefined') {
596		theme.Nav.initialize();
597	}
598
599	// Search
600	if (typeof theme.Search !== 'undefined') {
601		theme.Search.initialize();
602	}
603
604	// Newsletter
605	if (typeof theme.Newsletter !== 'undefined') {
606		theme.Newsletter.initialize();
607	}
608
609	// Account
610	if (typeof theme.Account !== 'undefined') {
611		theme.Account.initialize();
612	}
613
614}).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.