1jQuery(document).ready(function($){ 'use strict'; 2 // Toggle Close & Open Toolbox 3 $(document).on('click', '.wppb-edit-show-hide .wppb-edit-show-toggle', function(event){ 4 event.preventDefault(); 5 jQuery("body").toggleClass("wppb-pagetoops-editor-hide"); 6 }); 7 8 //Animated Number 9 $.fn.wppbanimateNumbers = function(stop, commas, duration, ease) { 10 return this.each(function() { 11 var $this = $(this); 12 var start = parseInt($this.text().replace(/,/g, "")); 13 commas = (commas === undefined) ? true : commas; 14 $({value: start}).animate({value: stop}, { 15 duration: duration === undefined ? 1000 : duration, 16 easing: ease === undefined ? "swing" : ease, 17 step: function() { 18 $this.text(Math.floor(this.value)); 19 if (commas) { $this.text($this.text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,")); } 20 }, 21 complete: function() { 22 if (parseInt($this.text()) !== stop) { 23 $this.text(stop); 24 if (commas){ $this.text($this.text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,")); } 25 } 26 } 27 }); 28 }); 29 } 30 31 $(document).on('rendered_addon', function(e, addon){ 32 let iframe = window.frames['wppb-builder-view'].window.document; 33 if (typeof addon.type !== 'undefined' && ( addon.type === 'addon' || addon.type === 'inner_addon' ) && ( addon.name === 'wppb_animated_number')){ 34 // let counterContainer = $( iframe ).find('.wppb-counter-number'); 35 $( iframe ).find('.wppb-counter-number').each(function() { 36 var $this = $(this); 37 $this.wppbanimateNumbers( $this.data('digit'), false, $this.data('duration'), 'swing' ); 38 $this.unbind('inview'); 39 }); 40 } 41 42 $( iframe ).find( '.wppb-pie-chart' ).each(function() { 43 let $this = $(this); 44 $this.easyPieChart({ 45 barColor: $this.data('barcolor'), 46 trackColor: $this.data('trackcolor'), 47 scaleColor: false, 48 lineWidth: $this.data('width'), 49 size: $this.data('size'), 50 onStep: function (from, to, percent) { 51 $this.find('.wppb-chart-percent > span').text(Math.round(percent) + '%'); 52 } 53 }); 54 }); 55 }); 56 57 // Animated Number 58 $(document).on( 'inview', '.wppb-counter-number', function (event, visible, visiblePartX, visiblePartY) { 59 var $this = $(this); 60 if (visible) { 61 $this.wppbanimateNumbers($this.data('digit'), false, $this.data('duration'), 'swing'); 62 $this.unbind('inview'); 63 } 64 }); 65 66 // Pie Chart Inview 67 $(document).on( 'inview', '.wppb-pie-chart', function (event, visible, visiblePartX, visiblePartY) { 68 var $this = $(this); 69 if ($this.easyPieChart) { 70 if (visible) { 71 $this.easyPieChart({ 72 barColor: $this.data('barcolor'), 73 trackColor: $this.data('trackcolor'), 74 scaleColor: false, 75 lineWidth: $this.data('width'), 76 size: $this.data('size'), 77 onStep: function (from, to, percent) { 78 $this.find('.wppb-chart-percent > span').text(Math.round(percent) + '%'); 79 } 80 }); 81 $this.unbind('inview'); 82 } 83 } 84 }); 85 86 // Image Popup & Video PopUp 87 if( typeof $( document ).magnificPopup !== 'undefined' ){ 88 $('.wppb-video-popup').magnificPopup({ 89 type: 'iframe', 90 rtl: true, 91 mainClass: 'mfp-fade', 92 removalDelay: 300, 93 preloader: false, 94 fixedContentPos: false 95 }); 96 $('.wppb-image-popup').magnificPopup({ 97 type: 'image', 98 closeOnContentClick: true, 99 mainClass: 'mfp-img-mobile', 100 image: { verticalFit: true }, 101 gallery: { enabled: true } 102 }); 103 } 104 105 // Accordion (Done) 106 $(document).on('click', '.wppb-accordion-title', function(){ 107 let $items = $(this).closest('.wppb-accordion-items').find('>div'); 108 let $handlers = $items.find('.wppb-accordion-title'); 109 let $panels = $items.find('.wppb-panel-collapse'); 110 if( $(this).hasClass('active') ) { 111 $(this).removeClass('active'); 112 $panels.slideUp(); 113 } else { 114 $handlers.removeClass('active'); 115 $panels.slideUp(); 116 $(this).addClass('active').next().slideDown(); 117 } 118 }); 119 120 // Tab 121 $(document).on('click', 'ul.wppb-tab-nav .wppb-tab-nav-list', function(){ 122 $(this).closest('ul').find('li').removeClass('active'); 123 $(this).closest('.wppb-tab-addon-content').find('.wppb-tab-content-wrap').find('.wppb-tab-content').removeClass('active'); 124 $(this).addClass('active'); 125 $( "#"+$(this).attr('data-tab') ).addClass('active'); 126 }); 127 128 // Testimonial & Person Carousel Backend 129 $(document).on('rendered_addon', function(e, addon){ 130 if (typeof addon.type !== 'undefined' && ( addon.type === 'addon' || addon.type === 'inner_addon' ) && ( addon.name === 'wppb_testimonial_carousel' || addon.name === 'wppb_person_carousel' )){ 131 let Container = '';
132 let iframe = window.frames['wppb-builder-view'].window.document; 133 if( addon.name == 'wppb_person_carousel' ){ Container = $( iframe ).find('.wppb-person-content-carousel'); } 134 if( addon.name == 'wppb_testimonial_carousel' ){ Container = $( iframe ).find('.wppb-testimonial-content-carousel'); } 135 if( Container.length > 0 ){ 136 slickSliderCallback( Container.data('autoplay'), Container.data('speed'), Container.data('showdots'), Container.data('shownav'), Container.data('col'), Container, 'backend' ); 137 } 138 } 139 }); 140 141 // Testimonial & Person Carousel Frontend 142 let testimonial = $('.wppb-testimonial-content-carousel'); 143 let person = $('.wppb-person-content-carousel'); 144 if( testimonial.length > 0 ){ 145 slickSliderCallback( testimonial.data('autoplay'), testimonial.data('speed'), testimonial.data('showdots'), testimonial.data('shownav'), testimonial.data('col'), testimonial, 'frontend' ); 146 } 147 if( person.length > 0 ){ 148 slickSliderCallback( person.data('autoplay'), person.data('speed') ,person.data('showdots'), person.data('shownav'), person.data('col'), person, 'frontend' ); 149 } 150 function slickSliderCallback( auto,speed, dot, nav, col, Container, type ){ 151 let argument = { 152 autoplay: auto, 153 dots: dot, 154 arrows: nav, 155 speed: speed, 156 slidesToShow: col, 157 slidesToScroll: col, 158 responsive: [ 159 { breakpoint: 1024, settings: { slidesToShow: col, slidesToScroll: col } }, 160 { breakpoint: 850, settings: { slidesToShow: 1, slidesToScroll: 1 } }, 161 { breakpoint: 600, settings: { slidesToShow: 1, slidesToScroll: 1 } } 162 ] 163 }; 164 if( nav == true ){ 165 argument.nextArrow = '<span class="wppb-carousel-prev"><i class="fas fa-angle-right"></i></span>'; 166 argument.prevArrow = '<span class="wppb-carousel-next"><i class="fas fa-angle-left"></i></span>'; 167 } 168 if( type == 'backend' ){ 169 Container.not('.slick-initialized').slick(argument); 170 Container.each(function(){ 171 if (!$(this).hasClass('slick-initialized')){ 172 $(this).slick(); 173 } 174 }); 175 } 176 if( type == 'frontend' ){ 177 Container.slick(argument); 178 } 179 } 180 181 182 // Alert Addons Close 183 $(document).on('click','.wppb-close-alert', function(){ 184 $(this).closest('.wppb-alert-addon').fadeOut(200); 185 }); 186 187 188 // Flip Box Addons 189 $(document).on('click', '.wppb-flip-box-content.flipon-click .wppb-flipbox-panel, .threeD_style.flipon-click .threeD-content-wrap', function () { 190 $(this).toggleClass('flip'); 191 }); 192 $(document).on('mouseenter', '.wppb-flip-box-content.flipon-hover .wppb-flipbox-panel, .threeD_style.flipon-hover .threeD-content-wrap', function () { 193 $(this).addClass('flip'); 194 }); 195 $(document).on('mouseleave', '.wppb-flip-box-content.flipon-hover .wppb-flipbox-panel, .threeD_style.flipon-hover .threeD-content-wrap', function () { 196 $(this).removeClass('flip'); 197 }); 198 199 200 // Widget Live Change 201 let widget_live_change = function(){ 202 let formOperation = { 203 init : function(){ 204 this.fire_live_change(); 205 }, 206 fire_live_change : function(){ 207 $(document).on('widget-added', function(){ 208 $('.wppb-form-widget').on('change', function(){ 209 let wppb_form_widget = $('.wppb-form-widget'); 210 let widgetFormInput = wppb_form_widget.closest('form').serializeArray(); 211 if (wppb_form_widget.length) { 212 let widgetFormData = {}; 213 let id_base = wppb_form_widget.find('[name="id_base"]').val(); 214 let widget_input_base_name = jQuery('[name="widget_input_base_name"]').val(); 215 let wppb_widget_id = wppb_form_widget.find('[name="widget-id"]').val(); 216 wppb_widget_id = parseInt(wppb_widget_id.replace('widget-', '')); 217 218 if( widgetFormInput.length ){ 219 __.forEach(widgetFormInput, function (input, index) { 220 let input_name = input.name.replace(widget_input_base_name, ''); 221 input_name = input_name.replace('[', '').replace(']', ''); 222 widgetFormData[input_name] = input.value; 223 }); 224 widgetFormData['wppb_widget_id'] = wppb_widget_id; 225 widgetFormData['wppb_widget_id_base'] = id_base; 226 widgetFormData['addon_type'] = 'widget'; 227 } 228 $.ajax({ 229 type: 'POST', 230 url: page_data.ajaxurl, 231 dataType: 'json', 232 data: { 233 action: 'wppb_render_widget', 234 widget: {settings: widgetFormData, id: wppb_widget_id}, 235 }, 236 success: function (response) {
237 $("#wppb-builder-view").contents().find("body").find(('#wppb-addon-'+wppb_widget_id)).html(response.data.html); 238 } 239 }); 240 } 241 }); 242 }); 243 } 244 }; 245 return formOperation; 246 }; 247 widget_live_change().init(); 248 249}); 250 251 252/* ! WOW - v1.0.1 - 2014-08-15 253 * Copyright (c) 2014 Matthieu Aussaguel; Licensed MIT */ 254;(function() { 255 var a, b, c, d = function(a, b) { 256 return function() { 257 return a.apply(b, arguments) 258 } 259 }, 260 e = [].indexOf || function(a) { 261 for (var b = 0, c = this.length; c > b; b++) 262 if (b in this && this[b] === a) return b; 263 return -1 264 }; 265 b = function() { 266 function a() {} 267 return a.prototype.extend = function(a, b) { 268 var c, d; 269 for (c in b) d = b[c], null == a[c] && (a[c] = d); 270 return a 271 }, a.prototype.isMobile = function(a) { 272 return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a) 273 }, a 274 }(), c = this.WeakMap || this.MozWeakMap || (c = function() { 275 function a() { 276 this.keys = [], this.values = [] 277 } 278 return a.prototype.get = function(a) { 279 var b, c, d, e, f; 280 for (f = this.keys, b = d = 0, e = f.length; e > d; b = ++d) 281 if (c = f[b], c === a) return this.values[b] 282 }, a.prototype.set = function(a, b) { 283 var c, d, e, f, g; 284 for (g = this.keys, c = e = 0, f = g.length; f > e; c = ++e) 285 if (d = g[c], d === a) return void(this.values[c] = b); 286 return this.keys.push(a), this.values.push(b) 287 }, a 288 }()), a = this.MutationObserver || this.WebkitMutationObserver || this.MozMutationObserver || (a = function() { 289 function a() { 290 console.warn("MutationObserver is not supported by your browser."), console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.") 291 } 292 return a.notSupported = !0, a.prototype.observe = function() {}, a 293 }()), this.WPPBWOW = function() { 294 function f(a) { 295 null == a && (a = {}), this.scrollCallback = d(this.scrollCallback, this), this.scrollHandler = d(this.scrollHandler, this), this.start = d(this.start, this), this.scrolled = !0, this.config = this.util().extend(a, this.defaults), this.animationNameCache = new c 296 } 297 return f.prototype.defaults = { 298 boxClass: "wppb-wow", 299 animateClass: "wppb-animated", 300 offset: 0, 301 mobile: !0, 302 live: !0 303 }, f.prototype.init = function() { 304 var a; 305 return this.element = window.document.documentElement, "interactive" === (a = document.readyState) || "complete" === a ? this.start() : document.addEventListener("DOMContentLoaded", this.start), this.finished = [] 306 }, f.prototype.start = function() { 307 var b, c, d, e; 308 if (this.stopped = !1, this.boxes = function() { 309 var a, c, d, e; 310 for (d = this.element.querySelectorAll("." + this.config.boxClass), e = [], a = 0, c = d.length; c > a; a++) b = d[a], e.push(b); 311 return e 312 }.call(this), this.all = function() { 313 var a, c, d, e; 314 for (d = this.boxes, e = [], a = 0, c = d.length; c > a; a++) b = d[a], e.push(b); 315 return e 316 }.call(this), this.boxes.length); 317 if (this.disabled()) this.resetStyle(); 318 else { 319 for (e = this.boxes, c = 0, d = e.length; d > c; c++) b = e[c], this.applyStyle(b, !0); 320 window.addEventListener("scroll", this.scrollHandler, !1), window.addEventListener("resize", this.scrollHandler, !1), this.interval = setInterval(this.scrollCallback, 50) 321 } 322 return this.config.live ? new a(function(a) { 323 return function(b) { 324 var c, d, e, f, g; 325 for (g = [], e = 0, f = b.length; f > e;
vendor: 5,603 bytes, lines 325-428
325 e++) d = b[e], g.push(function() { 326 var a, b, e, f; 327 for (e = d.addedNodes || [], f = [], a = 0, b = e.length; b > a; a++) c = e[a], f.push(this.doSync(c)); 328 return f 329 }.call(a)); 330 return g 331 } 332 }(this)).observe(document.body, { 333 childList: !0, 334 subtree: !0 335 }) : void 0 336 }, f.prototype.stop = function() { 337 return this.stopped = !0, window.removeEventListener("scroll", this.scrollHandler, !1), window.removeEventListener("resize", this.scrollHandler, !1), null != this.interval ? clearInterval(this.interval) : void 0 338 }, f.prototype.sync = function() { 339 return a.notSupported ? this.doSync(this.element) : void 0 340 }, f.prototype.doSync = function(a) { 341 var b, c, d, f, g; 342 if (!this.stopped) { 343 if (null == a && (a = this.element), 1 !== a.nodeType) return; 344 for (a = a.parentNode || a, f = a.querySelectorAll("." + this.config.boxClass), g = [], c = 0, d = f.length; d > c; c++) b = f[c], e.call(this.all, b) < 0 ? (this.applyStyle(b, !0), this.boxes.push(b), this.all.push(b), g.push(this.scrolled = !0)) : g.push(void 0); 345 return g 346 } 347 }, f.prototype.show = function(a) { 348 return this.applyStyle(a), a.className = "" + a.className + " " + this.config.animateClass 349 }, f.prototype.applyStyle = function(a, b) { 350 var c, d, e; 351 return d = a.getAttribute("data-wow-duration"), c = a.getAttribute("data-wow-delay"), e = a.getAttribute("data-wow-iteration"), this.animate(function(f) { 352 return function() { 353 return f.customStyle(a, b, d, c, e) 354 } 355 }(this)) 356 }, f.prototype.animate = function() { 357 return "requestAnimationFrame" in window ? function(a) { 358 return window.requestAnimationFrame(a) 359 } : function(a) { 360 return a() 361 } 362 }(), f.prototype.resetStyle = function() { 363 var a, b, c, d, e; 364 for (d = this.boxes, e = [], b = 0, c = d.length; c > b; b++) a = d[b], e.push(a.setAttribute("style", "visibility: visible;")); 365 return e 366 }, f.prototype.customStyle = function(a, b, c, d, e) { 367 return b && this.cacheAnimationName(a), a.style.visibility = b ? "hidden" : "visible", c && this.vendorSet(a.style, { 368 animationDuration: c 369 }), d && this.vendorSet(a.style, { 370 animationDelay: d 371 }), e && this.vendorSet(a.style, { 372 animationIterationCount: e 373 }), this.vendorSet(a.style, { 374 animationName: b ? "none" : this.cachedAnimationName(a) 375 }), a 376 }, f.prototype.vendors = ["moz", "webkit"], f.prototype.vendorSet = function(a, b) { 377 var c, d, e, f; 378 f = []; 379 for (c in b) d = b[c], a["" + c] = d, f.push(function() { 380 var b, f, g, h; 381 for (g = this.vendors, h = [], b = 0, f = g.length; f > b; b++) e = g[b], h.push(a["" + e + c.charAt(0).toUpperCase() + c.substr(1)] = d); 382 return h 383 }.call(this)); 384 return f 385 }, f.prototype.vendorCSS = function(a, b) { 386 var c, d, e, f, g, h; 387 for (d = window.getComputedStyle(a), c = d.getPropertyCSSValue(b), h = this.vendors, f = 0, g = h.length; g > f; f++) e = h[f], c = c || d.getPropertyCSSValue("-" + e + "-" + b); 388 return c 389 }, f.prototype.animationName = function(a) { 390 var b; 391 try { 392 b = this.vendorCSS(a, "animation-name").cssText 393 } catch (c) { 394 b = window.getComputedStyle(a).getPropertyValue("animation-name") 395 } 396 return "none" === b ? "" : b 397 }, f.prototype.cacheAnimationName = function(a) { 398 return this.animationNameCache.set(a, this.animationName(a)) 399 }, f.prototype.cachedAnimationName = function(a) { 400 return this.animationNameCache.get(a) 401 }, f.prototype.scrollHandler = function() { 402 return this.scrolled = !0 403 }, f.prototype.scrollCallback = function() { 404 var a; 405 return !this.scrolled || (this.scrolled = !1, this.boxes = function() { 406 var b, c, d, e; 407 for (d = this.boxes, e = [], b = 0, c = d.length; c > b; b++) a = d[b], a && (this.isVisible(a) ? this.show(a) : e.push(a)); 408 return e 409 }.call(this), this.boxes.length || this.config.live) ? void 0 : this.stop() 410 }, f.prototype.offsetTop = function(a) { 411 for (var b; void 0 === a.offsetTop;) a = a.parentNode; 412 for (b = a.offsetTop; a = a.offsetParent;) b += a.offsetTop; 413 return b 414 }, f.prototype.isVisible = function(a) { 415 var b, c, d, e, f; 416 return c = a.getAttribute("data-wow-offset") || this.config.offset, f = window.pageYOffset, e = f + Math.min(this.element.clientHeight, innerHeight) - c, d = this.offsetTop(a), b = d + a.clientHeight, e >= d && b >= f 417 }, f.prototype.util = function() { 418 return null != this._util ? this._util : this._util = new b 419 }, f.prototype.disabled = function() { 420 return !this.config.mobile && this.util().isMobile(navigator.userAgent) 421 }, f 422 }() 423}).call(this); 424 425//Initiat WOW JS 426jQuery(function($){ 427 new WPPBWOW().init(); 428});
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.