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 var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')) 13 var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) { 14 return new bootstrap.Tooltip(tooltipTriggerEl) 15 }); 16 17 // Popovers 18 var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')) 19 var popoverList = popoverTriggerList.map(function (popoverTriggerEl) { 20 return new bootstrap.Popover(popoverTriggerEl) 21 }); 22 23 // Validations 24 if ( $.isFunction($.validator) && typeof theme.PluginValidation !== 'undefined') { 25 theme.PluginValidation.initialize(); 26 } 27 28 // Animate 29 if ($.isFunction($.fn['themePluginAnimate']) && $('[data-appear-animation]').length) { 30 theme.fn.dynIntObsInit( '[data-appear-animation], [data-appear-animation-svg]', 'themePluginAnimate', theme.PluginAnimate.defaults ); 31 } 32 33 // Animated Content 34 if ($.isFunction($.fn['themePluginAnimatedContent'])) { 35 theme.fn.intObsInit( '[data-plugin-animated-letters]:not(.manual), .animated-letters', 'themePluginAnimatedContent' ); 36 theme.fn.intObsInit( '[data-plugin-animated-words]:not(.manual), .animated-words', 'themePluginAnimatedContent' ); 37 } 38 39 // Before / After 40 if ($.isFunction($.fn['themePluginBeforeAfter']) && $('[data-plugin-before-after]').length) { 41 theme.fn.intObsInit( '[data-plugin-before-after]:not(.manual)', 'themePluginBeforeAfter' ); 42 } 43 44 // Carousel Light 45 if ($.isFunction($.fn['themePluginCarouselLight']) && $('.owl-carousel-light').length) { 46 theme.fn.intObsInit( '.owl-carousel-light', 'themePluginCarouselLight' ); 47 } 48 49 // Carousel 50 if ($.isFunction($.fn['themePluginCarousel']) && $('[data-plugin-carousel]:not(.manual), .owl-carousel:not(.manual)').length) { 51 theme.fn.intObsInit( '[data-plugin-carousel]:not(.manual), .owl-carousel:not(.manual)', 'themePluginCarousel' ); 52 } 53 54 // Chart.Circular 55 if ($.isFunction($.fn['themePluginChartCircular']) && ( $('[data-plugin-chart-circular]').length || $('.circular-bar-chart').length )) { 56 theme.fn.dynIntObsInit( '[data-plugin-chart-circular]:not(.manual), .circular-bar-chart:not(.manual)', 'themePluginChartCircular', theme.PluginChartCircular.defaults ); 57 } 58 59 // Countdown 60 if ($.isFunction($.fn['themePluginCountdown']) && ( $('[data-plugin-countdown]').length || $('.countdown').length )) { 61 theme.fn.intObsInit( '[data-plugin-countdown]:not(.manual), .countdown', 'themePluginCountdown' ); 62 } 63 64 // Counter 65 if ($.isFunction($.fn['themePluginCounter']) && ( $('[data-plugin-counter]').length || $('.counters [data-to]').length )) { 66 theme.fn.dynIntObsInit( '[data-plugin-counter]:not(.manual), .counters [data-to]', 'themePluginCounter', theme.PluginCounter.defaults ); 67 } 68 69 // Cursor Effect 70 if ($.isFunction($.fn['themePluginCursorEffect']) && $('[data-plugin-cursor-effect]').length ) { 71 theme.fn.intObsInit( '[data-plugin-cursor-effect]:not(.manual)', 'themePluginCursorEffect' ); 72 } 73 74 // Float Element 75 if ($.isFunction($.fn['themePluginFloatElement']) && $('[data-plugin-float-element]').length) { 76 theme.fn.intObsInit( '[data-plugin-float-element], [data-plugin-float-element-svg]', 'themePluginFloatElement' ); 77 } 78 79 // GDPR 80 if ($.isFunction($.fn['themePluginGDPR']) && $('[data-plugin-gdpr]').length) { 81 82 $(function() { 83 $('[data-plugin-gdpr]:not(.manual)').each(function() { 84 var $this = $(this), 85 opts; 86 87 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 88 if (pluginOptions) 89 opts = pluginOptions; 90 91 $this.themePluginGDPR(opts); 92 }); 93 }); 94 95 } 96 97 // GDPR Wrapper 98 if ($.isFunction($.fn['themePluginGDPRWrapper']) && $('[data-plugin-gdpr-wrapper]').length) { 99 100 $(function() { 101 $('[data-plugin-gdpr-wrapper]:not(.manual)').each(function() { 102 var $this = $(this), 103 opts; 104 105 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 106 if (pluginOptions) 107 opts = pluginOptions; 108 109 $this.themePluginGDPRWrapper(opts); 110 }); 111 }); 112 113 } 114 115 // Hover Effect 116 if ($.isFunction($.fn['themePluginHoverEffect']) && $('[data-plugin-hover-effect], .hover-effect-3d').length) { 117 theme.fn.intObsInit( '[data-plugin-hover-effect]:not(.manual), .hover-effect-3d:not(.manual)', 'themePluginHoverEffect' ); 118 } 119 120 // Animated Icon 121 if ($.isFunction($.fn['themePluginIcon']) && $('[data-icon]').length) { 122 theme.fn.dynIntObsInit( '[data-icon]:not(.svg-inline--fa)', 'themePluginIcon', theme.PluginIcon.defaults ); 123 } 124 125 // In Viewport Style 126 if ($.isFunction($.fn['themePluginInViewportStyle']) && $('[data-inviewport-style]').length) { 127 128 $(function() { 129 $('[data-inviewport-style]:not(.manual)').each(function() { 130 var $this = $(this), 131 opts; 132 133 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 134 if (pluginOptions) 135 opts = pluginOptions; 136 137 $this.themePluginInViewportStyle(opts); 138 }); 139 }); 140 141 } 142 143 // Lightbox 144 if ($.isFunction($.fn['themePluginLightbox']) && ( $('[data-plugin-lightbox]').length || $('.lightbox').length )) { 145 theme.fn.execOnceTroughEvent( '[data-plugin-lightbox]:not(.manual), .lightbox:not(.manual)', 'mouseover.trigger.lightbox', function(){ 146 var $this = $(this), 147 opts; 148 149 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 150 if (pluginOptions) 151 opts = pluginOptions; 152 153 $this.themePluginLightbox(opts); 154 }); 155 } 156 157 // Masonry 158 if ($.isFunction($.fn['themePluginMasonry']) && $('[data-plugin-masonry]').length) { 159 160 $(function() { 161 $('[data-plugin-masonry]:not(.manual)').each(function() { 162 var $this = $(this), 163 opts; 164 165 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 166 if (pluginOptions) 167 opts = pluginOptions; 168 169 $this.themePluginMasonry(opts); 170 }); 171 }); 172 173 } 174 175 // Match Height 176 if ($.isFunction($.fn['themePluginMatchHeight']) && $('[data-plugin-match-height]').length) { 177 178 $(function() { 179 $('[data-plugin-match-height]:not(.manual)').each(function() { 180 var $this = $(this), 181 opts; 182 183 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 184 if (pluginOptions) 185 opts = pluginOptions; 186 187 $this.themePluginMatchHeight(opts); 188 }); 189 }); 190 191 } 192 193 // Parallax 194 if ($.isFunction($.fn['themePluginParallax']) && $('[data-plugin-parallax]').length) { 195 theme.fn.intObsInit( '[data-plugin-parallax]:not(.manual)', 'themePluginParallax' ); 196 } 197 198 // Progress Bar 199 if ($.isFunction($.fn['themePluginProgressBar']) && ( $('[data-plugin-progress-bar]') || $('[data-appear-progress-animation]').length )) { 200 theme.fn.dynIntObsInit( '[data-plugin-progress-bar]:not(.manual), [data-appear-progress-animation]', 'themePluginProgressBar', theme.PluginProgressBar.defaults ); 201 } 202 203 // Random Images 204 if ($.isFunction($.fn['themePluginRandomImages']) && $('[data-plugin-random-images]').length) { 205 theme.fn.dynIntObsInit( '.plugin-random-images', 'themePluginRandomImages', theme.PluginRandomImages.defaults ); 206 } 207 208 // Read More 209 if ($.isFunction($.fn['themePluginReadMore']) && $('[data-plugin-readmore]').length) { 210 theme.fn.intObsInit( '[data-plugin-readmore]:not(.manual)', 'themePluginReadMore' ); 211 } 212 213 // Revolution Slider 214 if ($.isFunction($.fn['themePluginRevolutionSlider']) && ( $('[data-plugin-revolution-slider]').length || $('.slider-container .slider').length )) { 215 216 $(function() { 217 $('[data-plugin-revolution-slider]:not(.manual), .slider-container .slider:not(.manual)').each(function() { 218 var $this = $(this), 219 opts; 220 221 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 222 if (pluginOptions) 223 opts = pluginOptions; 224 225 $this.themePluginRevolutionSlider(opts); 226 }); 227 }); 228 229 } 230 231 // Scroll Spy 232 if ($.isFunction($.fn['themePluginScrollSpy']) && $('[data-plugin-scroll-spy]').length) { 233 234 $(function() { 235 $('[data-plugin-scroll-spy]:not(.manual)').each(function() { 236 var $this = $(this), 237 opts; 238 239 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 240 if (pluginOptions) 241 opts = pluginOptions; 242 243 $this.themePluginScrollSpy(opts); 244 }); 245 }); 246 247 } 248 249 // Scrollable 250 if ( $.isFunction($.fn[ 'nanoScroller' ]) && $('[data-plugin-scrollable]').length ) { 251 theme.fn.intObsInit( '[data-plugin-scrollable]', 'themePluginScrollable' ); 252 } 253 254 // Section Scroll 255 if ($.isFunction($.fn['themePluginSectionScroll']) && $('[data-plugin-section-scroll]').length) { 256 257 $(function() { 258 $('[data-plugin-section-scroll]:not(.manual)').each(function() { 259 var $this = $(this), 260 opts; 261 262 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 263 if (pluginOptions) 264 opts = pluginOptions; 265 266 $this.themePluginSectionScroll(opts); 267 }); 268 }); 269 270 } 271 272 // Sort 273 if ($.isFunction($.fn['themePluginSort']) && ( $('[data-plugin-sort]').length || $('.sort-source').length )) { 274 theme.fn.intObsInit( '[data-plugin-sort]:not(.manual), .sort-source:not(.manual)', 'themePluginSort' ); 275 } 276 277 // Star Rating 278 if ($.isFunction($.fn['themePluginStarRating']) && $('[data-plugin-star-rating]').length) { 279 theme.fn.intObsInit( '[data-plugin-star-rating]:not(.manual)', 'themePluginStarRating' ); 280 } 281 282 // Sticky 283 if ($.isFunction($.fn['themePluginSticky']) && $('[data-plugin-sticky]').length) { 284 theme.fn.execOnceTroughWindowEvent( window, 'scroll.trigger.sticky', function(){
285 $('[data-plugin-sticky]:not(.manual)').each(function() { 286 var $this = $(this), 287 opts; 288 289 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 290 if (pluginOptions) 291 opts = pluginOptions; 292 293 $this.themePluginSticky(opts); 294 }); 295 }); 296 } 297 298 // Toggle 299 if ($.isFunction($.fn['themePluginToggle']) && $('[data-plugin-toggle]').length) { 300 theme.fn.intObsInit( '[data-plugin-toggle]:not(.manual)', 'themePluginToggle' ); 301 } 302 303 // Tweets 304 if ($.isFunction($.fn['themePluginTweets']) && $('[data-plugin-tweets]').length) { 305 306 $(function() { 307 $('[data-plugin-tweets]:not(.manual)').each(function() { 308 var $this = $(this), 309 opts; 310 311 var pluginOptions = theme.fn.getOptions($this.data('plugin-options')); 312 if (pluginOptions) 313 opts = pluginOptions; 314 315 $this.themePluginTweets(opts); 316 }); 317 }); 318 319 } 320 321 // Video Background 322 if ($.isFunction($.fn['themePluginVideoBackground']) && $('[data-plugin-video-background]').length) { 323 theme.fn.intObsInit( '[data-plugin-video-background]:not(.manual)', 'themePluginVideoBackground' ); 324 } 325 326 // Sticky Header 327 if (typeof theme.StickyHeader !== 'undefined') { 328 theme.StickyHeader.initialize(); 329 } 330 331 // Nav Menu 332 if (typeof theme.Nav !== 'undefined') { 333 theme.Nav.initialize(); 334 } 335 336 // Search 337 if (typeof theme.Search !== 'undefined' && ( $('#searchForm').length || $('.header-nav-features-search-reveal').length )) { 338 theme.Search.initialize(); 339 } 340 341 // Newsletter 342 if (typeof theme.Newsletter !== 'undefined' && $('#newsletterForm').length) { 343 theme.fn.intObs( '#newsletterForm', 'theme.Newsletter.initialize();', {} ); 344 } 345 346 // Account 347 if (typeof theme.Account !== 'undefined' && ( $('#headerAccount').length || $('#headerSignUp').length || $('#headerSignIn').length || $('#headerRecover').length || $('#headerRecoverCancel').length )) { 348 theme.Account.initialize(); 349 } 350 351}).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.