PageSourceSearch

https://uonbi.ac.ke/sites/all/themes/Porto/js/theme.init.js?tm2od7

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