1var customMessages = { 2 requiredFields: 'Required field', 3 badEmail: 'Invalid e-mail address', 4 notConfirmed: 'The values do not match', 5}; 6 7// Commom Plugins 8(function($) { 9 10 'use strict'; 11 12 // Scroll to Top Button. 13 if (typeof theme.PluginScrollToTop !== 'undefined') { 14 theme.PluginScrollToTop.initialize(); 15 } 16 17 // Tooltips 18 if ($.isFunction($.fn['tooltip'])) { 19 $('[data-tooltip]:not(.manual), [data-plugin-tooltip]:not(.manual)').tooltip(); 20 } 21 22 // Popover 23 if ($.isFunction($.fn['popover'])) { 24 $(function() { 25 $('[data-plugin-popover]:not(.manual)').each(function() { 26 var $this = $(this), 27 opts; 28 29 var pluginOptions = $this.data('plugin-options'); 30 if (pluginOptions) 31 opts = pluginOptions; 32 33 $this.popover(opts); 34 }); 35 }); 36 } 37 38 // Validations 39 if (typeof theme.PluginValidation !== 'undefined') { 40 theme.PluginValidation.initialize(); 41 } 42 43 // Match Height 44 if ($.isFunction($.fn['matchHeight'])) { 45 46 $('.match-height').matchHeight(); 47 48 // Featured Boxes 49 $('.featured-boxes .featured-box').matchHeight(); 50 51 // Featured Box Full 52 $('.featured-box-full').matchHeight(); 53 54 } 55 56}).apply(this, [jQuery]); 57 58// Animate 59(function($) { 60 61 'use strict'; 62 63 if ($.isFunction($.fn['themePluginAnimate'])) { 64 65 $(function() { 66 $('[data-plugin-animate], [data-appear-animation]').each(function() { 67 var $this = $(this), 68 opts; 69 70 var pluginOptions = $this.data('plugin-options'); 71 if (pluginOptions) 72 opts = pluginOptions; 73 74 $this.themePluginAnimate(opts); 75 }); 76 }); 77 78 } 79 80}).apply(this, [jQuery]); 81 82// Counter 83(function($) { 84 85 'use strict'; 86 87 if ($.isFunction($.fn['themePluginCounter'])) { 88 89 $(function() { 90 $('[data-plugin-counter]:not(.manual), .counters [data-to]').each(function() { 91 var $this = $(this), 92 opts; 93 94 var pluginOptions = $this.data('plugin-options'); 95 if (pluginOptions) 96 opts = pluginOptions; 97 98 $this.themePluginCounter(opts); 99 }); 100 }); 101 102 } 103 104}).apply(this, [jQuery]); 105 106// Lightbox 107(function($) { 108 109 'use strict'; 110 111 if ($.isFunction($.fn['themePluginLightbox'])) { 112 113 $(function() { 114 $('[data-plugin-lightbox]:not(.manual), .lightbox:not(.manual)').each(function() { 115 var $this = $(this), 116 opts; 117 118 var pluginOptions = $this.data('plugin-options'); 119 if (pluginOptions) 120 opts = pluginOptions; 121 122 $this.themePluginLightbox(opts); 123 }); 124 }); 125 126 } 127 128}).apply(this, [jQuery]); 129 130// Match Height 131(function($) { 132 133 'use strict'; 134 135 if ($.isFunction($.fn['themePluginMatchHeight'])) { 136 137 $(function() { 138 $('[data-plugin-match-height]:not(.manual)').each(function() { 139 var $this = $(this), 140 opts; 141 142 var pluginOptions = $this.data('plugin-options'); 143 if (pluginOptions) 144 opts = pluginOptions; 145 146 $this.themePluginMatchHeight(opts); 147 }); 148 }); 149 150 } 151 152}).apply(this, [jQuery]); 153 154// Sticky 155(function($) { 156 157 'use strict'; 158 159 if ($.isFunction($.fn['themePluginSticky'])) { 160 161 $(function() { 162 $('[data-plugin-sticky]:not(.manual)').each(function() { 163 var $this = $(this), 164 opts; 165 166 var pluginOptions = $this.data('plugin-options'); 167 if (pluginOptions) 168 opts = pluginOptions; 169 170 // Fails with recent version(s) of jquery 171 // $this.themePluginSticky(opts); 172 }); 173 }); 174 175 } 176 177}).apply(this, [jQuery]); 178 179// Toggle 180(function($) { 181 182 'use strict'; 183 184 if ($.isFunction($.fn['themePluginToggle'])) { 185 186 $(function() { 187 $('[data-plugin-toggle]:not(.manual)').each(function() { 188 var $this = $(this), 189 opts; 190 191 var pluginOptions = $this.data('plugin-options'); 192 if (pluginOptions) 193 opts = pluginOptions; 194 195 $this.themePluginToggle(opts); 196 }); 197 }); 198 199 } 200 201}).apply(this, [jQuery]); 202 203// Commom Partials 204(function($) { 205 206 'use strict'; 207 208 // Sticky Header 209 if (typeof theme.StickyHeader !== 'undefined') { 210 setTimeout(function () { AdjustStickyOffsetForBillboard(); theme.StickyHeader.initialize(); },1000); 211 } 212 213 // Nav Menu 214 if (typeof theme.Nav !== 'undefined') { 215 theme.Nav.initialize(); 216 } 217 218 // Search 219 if (typeof theme.Search !== 'undefined') { 220 theme.Search.initialize(); 221 } 222 223}).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.