PageSourceSearch

https://homegarden.ro/wp-content/themes/gogreen/js/shortcodes.js?ver=1.0

js homegarden.ro collected 2026-09-29 04:14:14 UTC 29,450 bytes, 947 lines download raw bytes

1/******/ (() => { // webpackBootstrap
2var __webpack_exports__ = {};
3(function ($) {
4  'use strict';
5
6  /*****************************************
7     *   Initialize Shortcodes
8     /*****************************************/
9  function initSections() {
10    const fullHeightSections = function () {
11      $('.w-section.w-full-height, .row.w-full-height').each(function () {
12        const $el = $(this);
13        const innerHeight = $(window).height() - (parseInt($el.css('padding-top')) + parseInt($el.css('padding-bottom')) + parseInt($el.css('margin-top')) + parseInt($el.css('margin-bottom')));
14        $el.css('min-height', innerHeight);
15      });
16    };
17    $(window).on('resize', wydeDebounce(function () {
18      fullHeightSections();
19    }));
20    fullHeightSections();
21    if (wyde.browser.md || wyde.browser.lg) {
22      initSectionParallax();
23    }
24  }
25  function initSectionParallax() {
26    setTimeout(function () {
27      $('.w-section.w-parallax, .row.w-parallax').wydeParallax();
28    }, 500);
29  }
30
31  /* Button */
32  function initButton() {
33    $(".w-link-button[href^='#'], a.w-button[href^='#'], a.w-ghost-button[href^='#']").on('click', function (event) {
34      const $el = $(this);
35      const hash = $el.attr('href');
36      if (!hash) {
37        return true;
38      } else if (hash == '#') {
39        event.preventDefault();
40        return false;
41      }
42      event.preventDefault();
43      let target = hash;
44      if (hash == '#nextsection') {
45        target = $el.parents('.w-section').next('.w-section');
46        if (!target.length) target = $('.w-section').first();
47      } else if (hash == '#prevsection') {
48        target = $el.parents('.w-section').prev('.w-section');
49        if (!target.length) target = $('.w-section').last();
50      }
51      wyde.page.scrollTo(target);
52      return false;
53    });
54    $('.w-link-button').each(function () {
55      const $el = $(this);
56      const outline = $el.hasClass('outline');
57      const icon = $el.hasClass('w-with-icon');
58      let color = $el.css('color');
59      if (!color) color = '';
60      let bgColor = '';
61      if (!outline) {
62        bgColor = $el.css('background-color');
63      }
64      let hoverColor = $el.data('hover-color');
65      if (!hoverColor) hoverColor = '';
66      $el.on('mouseenter focusin touchstart', function () {
67        if (hoverColor || !icon) {
68          if (outline) {
69            $el.css({
70              color: hoverColor,
71              backgroundColor: color
72            });
73          } else if ($el.hasClass('none')) {
74            $el.css({
75              color: hoverColor
76            });
77          } else {
78            $el.css({
79              color: bgColor,
80              backgroundColor: ''
81            });
82          }
83        }
84      }).on('mouseleave focusout', function () {
85        if (hoverColor || !icon) {
86          if (outline) {
87            $el.css({
88              color,
89              backgroundColor: ''
90            });
91          } else if ($el.hasClass('none')) {
92            $el.css({
93              color
94            });
95          } else {
96            $el.css({
97              color,
98              backgroundColor: bgColor
99            });
100          }
101        }
102      });
103    });
104  }
105
106  /* Icon Block */
107  function initIconBlock() {
108    $('.w-icon-block:not(.w-none):not(.w-effect-none)').each(function () {
109      const $el = $(this);
110      const color = $el.css('border-color');
111      $el.hover(function () {
112        $el.css('color', color);
113      }, function () {
114        $el.css('color', '');
115      });
116    });
117  }
118
119  /* Gallery Sliders */
120  function initGalleryCarousel(p) {
121    if (!p) p = document.body;
122    $(p).find('.w-fadeslider').wydeFadeSlider();
123  }
124
125  /* WooCommerce Products */
126  function initWooCommerceProducts() {
127    $(window).on('added_to_cart', function (event, fragments, cart_hash, button) {
128      $(button).next('.added_to_cart').show();
129      setTimeout(function () {
130        $(button).next('.added_to_cart').addClass('active');
131      }, 100);
132      setTimeout(function () {
133        $(button).next('.added_to_cart').removeClass('active');
134      }, 5000);
135      setTimeout(function () {
136        $(button).next('.added_to_cart').hide();
137      }, 5200);
138    });
139
140    /* Single Product Thumbnails */
141    $('.single-product .product-thumbnails').addClass('owl-carousel').owlCarousel({
142      navText: ['', ''],
143      items: 3,
144      nav: true,
145      dots: false,
146      margin: 8,
147      themeClass: ''
148    });
149    $('.single-product .woocommerce-product-gallery__wrapper a').attr('data-rel', 'lightcase:product');
150    $(".woocommerce-review-link[href^='#']").on('click', function (event) {
151      const $el = $(this);
152      const hash = $el.attr('href');
153      if (!hash) {
154        return true;
155      } else if (hash == '#') {
156        event.preventDefault();
157        return false;
158      }
159      event.preventDefault();
160      $('ul.wc-tabs li.reviews_tab').find('a').click();
161      wyde.page.scrollTo(hash);
162      return false;
163    });
164  }
165
166  /* Carousel */
167  function initCarousel(p) {
168    if (!p) p = document.body;
169    $(p).find('.owl-carousel').each(function () {
170      const $el = $(this);
171      $el.waitForImages({
172        finished() {
173          let items = 1;
174          if ($el.data('items') != undefined) items = parseInt($el.data('items'));
175          let loop = false;
176          if ($el.data('loop') != undefined) loop = $el.data('loop');
177          if ($el.find('>div').length <= 1) loop = false;
178          let animateIn = false;
179          let animateOut = false;
180          if ($el.data('transition')) {
181            switch ($el.data('transition')) {
182              case 'fade':
183                animateIn = 'fadeIn';
184                animateOut = 'fadeOut';
185                break;
186            }
187          }
188          let autoPlay = false;
189          if ($el.data('autoPlay') != undefined) autoPlay = $el.data('autoPlay');
190          let speed = 4000;
191          if ($el.data('speed') != undefined) speed = parseInt($el.data('speed')) * 1000;
192          let autoHeight = false;
193          if ($el.data('autoHeight') != undefined) autoHeight = $el.data('autoHeight');
194          let navigation = true;
195          if ($el.data('navigation') != undefined) navigation = $el.data('navigation');
196          let pagination = false;
197          if ($el.data('pagination') != undefined) pagination = $el.data('pagination');
198          let center = false;
199          if ($el.data('center') != undefined) center = $el.data('center');
200          $el.owlCarousel({
201            autoHeight,
202            navText: ['', ''],
203            items,
204            slideBy: items,
205            autoplay: autoPlay != false,
206            autoplayTimeout: autoPlay ? speed : false,
207            autoplaySpeed: 800,
208            autoplayHoverPause: autoPlay != false,
209            nav: navigation,
210            dots: pagination,
211            loop,
212            center,
213            themeClass: '',
214            animateIn,
215            animateOut,
216            responsive: {
217              0: {
218                items: 1,
219                slideBy: 1
220              },
221              559: {
222                items: items > 2 ? 2 : items,
223                slideBy: items > 2 ? 2 : items
224              },
225              992: {
226                items: items > 3 ? 3 : items,
227                slideBy: items > 3 ? 3 : items
228              },
229              1200: {
230                items,
231                slideBy: items
232              }
233            }
234          });
235        },
236        waitForAll: false
237      });
238    });
239    $(p).find('.portfolio-slider .post-media').each(function () {
240      const $el = $(this);
241      $el.addClass('owl-carousel').waitForImages({
242        finished() {
243          const loop = $el.find('> div').length > 1;
244          const items = 4;
245          $el.owlCarousel({
246            navText: ['', ''],
247            items,
248            autoplay: false,
249            autoplayHoverPause: false,
250            nav: true,
251            dots: false,
252            loop,
253            center: true,
254            themeClass: '',
255            responsive: {
256              0: {
257                items: 1,
258                slideBy: 1
259              },
260              559: {
261                items: items > 2 ? 2 : items,
262                slideBy: items > 2 ? 2 : items
263              },
264              992: {
265                items: items > 3 ? 3 : items,
266                slideBy: items > 3 ? 3 : items
267              },
268              1200: {
269                items,
270                slideBy: items
271              }
272            },
273            onInitialized() {
274              initLightbox(this.$stage.find('.cloned'));
275            }
276          });
277        },
278        waitForAll: false
279      });
280    });
281    $(p).find('.w-slider').each(function () {
282      const $el = $(this);
283      let animateIn = false;
284      let animateOut = false;
285      const transition = $el.data('transition');
286      if (transition) {
287        switch (transition) {
288          case 'fade':
289            animateIn = 'fadeIn';
290            animateOut = 'fadeOut';
291            break;
292        }
293      }
294      let autoPlay = false;
295      if ($el.data('autoPlay') != undefined) autoPlay = $el.data('autoPlay');
296      let speed = 4000;
297      if ($el.data('speed') != undefined) speed = parseInt($el.data('speed')) * 1000;
298      let navigation = false;
299      if ($el.data('navigation') != undefined) navigation = $el.data('navigation');
300      let pagination = false;
301      if ($el.data('pagination') != undefined) pagination = $el.data('pagination');
302      $el.waitForImages({
303        finished() {
304          const owl = $el.find('.w-slides').addClass('owl-carousel').owlCarousel({
305            autoHeight: true,
306            navText: ['', ''],
307            items: 2,
308            autoplay: autoPlay != false,
309            autoplayTimeout: autoPlay ? speed : false,
310            autoplaySpeed: false,
311            autoplayHoverPause: autoPlay != false,
312            center: true,
313            nav: navigation,
314            dots: pagination,
315            loop: true,
316            themeClass: '',
317            animateIn,
318            animateOut
319          });
320        }
321      });
322    });
323  }
324
325  /* Scroll More */
326  function initScrollMore() {
327    $('.w-scrollmore').each(function () {
328      const $el = $(this);
329      const nextSelector = '.w-showmore .w-next';
330      if (!$el.find(nextSelector).length) return;
331      let trigger = 3;
332      if ($el.data('trigger') != null) trigger = parseInt($el.data('trigger') || 0);
333      let contentSelector = '.w-item';
334      if ($el.data('selector') != null) contentSelector = $el.data('selector');
335      $el.wydeScrollmore({
336        autoTriggers: trigger,
337        nextSelector,
338        contentSelector,
339        callback(newElements) {
340          // Isotope masonry
341          const $view = $el.find('.w-view');
342          const iso = $view.data('isotope');
343          if (iso) iso.appended(newElements);
344
345          // Slider
346          initCarousel(newElements);
347          initGalleryCarousel(newElements);
348
349          // Ajax Page
350          if (wyde.page.ajax_page) {
351            wyde.page.updateLink(newElements);
352          }
353
354          // Lightbox
355          initLightbox(newElements);
356        }
357      });
358    });
359  }
360
361  /* Team Carousel */
362  function initTeamCarousel() {
363    $('.w-team-slider').each(function () {
364      const $el = $(this);
365      let maxHeight = $(window).height() - 100;
366      if (maxHeight > 500) maxHeight = 500;
367      $el.find('.cover-image').lightcase({
368        showTitle: false,
369        showCaption: false,
370        maxWidth: 1170,
371        maxHeight: maxHeight + 100,
372        inline: {
373          height: maxHeight + 30
374        },
375        onFinish: {
376          initCloseButton() {
377            $('#lightcase-content .member-content .w-close-button').on('click', function (event) {
378              event.preventDefault();
379              lightcase.close();
380              return false;
381            });
382          },
383          initScrollBar() {
384            setTimeout(function () {
385              $('#lightcase-content .member-detail').css('max-height', maxHeight).wydeScroller({
386                scrollbar: true
387              });
388              $(window).on('resize', wydeDebounce(function () {
389                $('#lightcase-content .member-detail').css('max-height', maxHeight).wydeScroller('refresh');
390              }));
391            }, 200);
392          }
393        }
394      });
395    });
396  }
397
398  /* Grid View */
399  function initGridView() {
400    $('.w-portfolio-grid, .w-blog-posts.w-masonry, .w-image-gallery.w-masonry, .portfolio-masonry .w-masonry').each(function () {
401      const $grid = $(this);
402      const isMasonry = $grid.hasClass('w-masonry') || $grid.hasClass('w-photoset');
403      const $view = $grid.find('.w-view');
404      const refreshGrid = function () {
405        if (wyde.browser.xs) {
406          if ($view.data('isotope')) {
407            $view.isotope('destroy');
408          }
409        } else {
410          $view.isotope({
411            itemSelector: '.w-item',
412            transitionDuration: '0.6s',
413            layoutMode: isMasonry ? 'masonry' : 'fitRows',
414            masonry: {
415              columnWidth: '.w-item:not(.w-w2)'
416            }
417          });
418        }
419      };
420      $(window).on('resize', wydeDebounce(function () {
421        refreshGrid();
422      }));
423      $grid.find('.w-filter').each(function () {
424        const $el = $(this);
425        const $filters = $el.parents('.w-filterable');
426        const $p = $filters.length ? $filters : $(document.body);
427        const minItems = parseInt($p.find('.w-view').width() / $p.find('.w-view li').width());
428        $el.find('li a').click(function (event) {
429          event.preventDefault();
430          let hash = getHash(this.href);
431          if (hash) {
432            hash = hash.replace('#', '.');
433            if (hash == '.all') hash = '*';
434            const $view = $p.find('.w-view').isotope({
435              filter: hash
436            });
437            const elems = $view.isotope('getFilteredItemElements');
438            if (elems.length < minItems && $p.hasClass('w-scrollmore')) {
439              $p.find('.w-showmore .w-next').trigger('click');
440            }
441          }
442          $el.find('li').removeClass('active');
443          $(this).parent().addClass('active');
444          return false;
445        });
446      });
447      $grid.waitForImages({
448        finished() {
449          refreshGrid();
450        },
451        waitForAll: false
452      });
453    });
454  }
455
456  /* Lightbox */
457  function initLightbox(el) {
458    if (!el) el = document.body;
459    let $elements = $(el);
460    if (!$elements.length) return;
461    if ($elements.prop('tagName') != 'A') $elements = $elements.find("a[data-rel^='lightcase']");
462    $elements.lightcase({
463      showTitle: window.wyde && wyde.page && wyde.page.lightbox_title == true,
464      showCaption: window.wyde && wyde.page && wyde.page.lightbox_title == true,
465      maxWidth: 1170,
466      maxHeight: $(window).height(),
467      showSequenceInfo: false,
468      iframe: {
469        width: 1280,
470        height: 720,
471        allowfullscreen: 1
472      }
473    });
474  }
475
476  /* Blog Posts */
477  function initBlogPosts() {
478    if (typeof $.fn.mediaelementplayer === 'function') {
479      setTimeout(function () {
480        $('audio.wp-audio-shortcode, video.wp-video-shortcode').mediaelementplayer();
481      }, 500);
482    }
483    $('.post-detail .meta-comment a').on('click', function () {
484      const $el = $(this);
485      const hash = getHash($el.attr('href'));
486      if (!hash) {
487        return true;
488      } else if (hash == '#') {
489        event.preventDefault();
490        return false;
491      }
492      event.preventDefault();
493      wyde.page.scrollTo(hash);
494      return false;
495    });
496  }
497
498  /* Main Slider */
499  function initMainSlider() {
500    $('.w-revslider').find('.w-scroll-button a').off('click').on('click', function (event) {
501      event.preventDefault();
502      const $nextSection = getNextSection($(this).parents('.w-section'));
503      if ($nextSection.length) {
504        wyde.page.scrollTo($nextSection);
505      }
506      return false;
507    });
508  }
509  function getNextSection(current) {
510    const $sections = $('.w-section');
511    const idx = $sections.index(current);
512    return $sections.eq(idx + 1);
513  }
514  function initTouchDevices() {
515    if (wyde.browser.touch) {
516      $('.w-portfolio-grid .w-item figure, .w-flickr').addClass('touch-hover');
517      $('.touch .touch-hover').unbind('mouseenter mouseleave').hover(function () {
518        $(this).addClass('hover');
519      }, function () {
520        $(this).removeClass('hover');
521      });
522    }
523  }
524
525  /**
526   * Generate VC Round Charts
527   *
528   * Legend must be generated manually. If color is array (gradient), then legend won't show it.
529   */
530  $.fn.vcRoundChart = function () {
531    this.each(function () {
532      let data,
533        gradient,
534        chart,
535        i,
536        j,
537        $this = $(this),
538        ctx = $this.find('canvas')[0].getContext('2d'),
539        stroke_width = $this.data('vcStrokeWidth') ? parseInt($this.data('vcStrokeWidth'), 10) : 0,
540        options = {
541          showTooltips: $this.data('vcTooltips'),
542          animationEasing: $this.data('vcAnimation'),
543          segmentStrokeColor: $this.data('vcStrokeColor'),
544          segmentShowStroke: 0 !== stroke_width,
545          segmentStrokeWidth: stroke_width,
546          responsive: true
547        },
548        color_keys = ['color', 'highlight'];
549
550      // If plugin has been called on already initialized element, reload it
551      if ($this.data('chart')) {
552        $this.data('chart').destroy();
553      }
554      data = $this.data('vcValues');
555      ctx.canvas.width = $this.width();
556      ctx.canvas.height = $this.width();
557
558      // If color/highlight is array (of 2 colors), replace it with generated gradient
559      for (i = data.length - 1; 0 <= i; i--) {
560        for (j = color_keys.length - 1; 0 <= j; j--) {
561          if ('object' === typeof data[i][color_keys[j]] && 2 === data[i][color_keys[j]].length) {
562            gradient = ctx.createLinearGradient(0, 0, 0, ctx.canvas.height);
563            gradient.addColorStop(0, data[i][color_keys[j]][0]);
564            gradient.addColorStop(1, data[i][color_keys[j]][1]);
565            data[i][color_keys[j]] = gradient;
566          }
567        }
568      }
569      if ('doughnut' === $this.data('vcType')) {
570        chart = new Chart(ctx).Doughnut(data, options);
571      } else {
572        chart = new Chart(ctx).Pie(data, options);
573      }
574      $this.data('vcChartId', chart.id);
575      // We can later access chart to call methods on it
576      $this.data('chart', chart);
577    });
578    return this;
579  };
580
581  /**
582   * Allows users to rewrite function inside theme.
583   * @param model_id
584   */
585  window.vc_round_charts = function (model_id) {
586    let selector = '.vc_round-chart';
587    if ('undefined' !== typeof model_id) {
588      selector = '[data-model-id="' + model_id + '"] ' + selector;
589    }
590    $(selector).vcRoundChart();
591  };
592
593  /**
594   * Generate VC Line Charts
595   *
596   * Legend must be generated manually. If color is array (gradient), then legend won't show it.
597   */
598  $.fn.vcLineChart = function () {
599    this.each(function () {
600      let data,
601        gradient,
602        chart,
603        i,
604        j,
605        $this = $(this),
606        ctx = $this.find('canvas')[0].getContext('2d'),
607        options = {
608          showTooltips: $this.data('vcTooltips'),
609          animationEasing: $this.data('vcAnimation'),
610          datasetFill: true,
611          responsive: true
612        },
613        color_keys = ['fillColor', 'strokeColor', 'highlightFill', 'highlightFill', 'pointHighlightFill', 'pointHighlightStroke'];
614
615      // If plugin has been called on already initialized element, reload it
616      if ($this.data('chart')) {
617        $this.data('chart').destroy();
618      }
619      data = $this.data('vcValues');
620      ctx.canvas.width = $this.width();
621      ctx.canvas.height = $this.width();
622
623      // If color/highlight is array (of 2 colors), replace it with generated gradient
624      for (i = data.datasets.length - 1; 0 <= i; i--) {
625        for (j = color_keys.length - 1; 0 <= j; j--) {
626          if ('object' === typeof data.datasets[i][color_keys[j]] && 2 === data.datasets[i][color_keys[j]].length) {
627            gradient = ctx.createLinearGradient(0, 0, 0, ctx.canvas.height);
628            gradient.addColorStop(0, data.datasets[i][color_keys[j]][0]);
629            gradient.addColorStop(1, data.datasets[i][color_keys[j]][1]);
630            data.datasets[i][color_keys[j]] = gradient;
631          }
632        }
633      }
634      if ('bar' === $this.data('vcType')) {
635        chart = new Chart(ctx).Bar(data, options);
636      } else {
637        chart = new Chart(ctx).Line(data, options);
638      }
639      $this.data('vcChartId', chart.id);
640      // We can later access chart to call methods on it
641      $this.data('chart', chart);
642    });
643    return this;
644  };
645  window.vc_line_charts = function (model_id) {
646    let selector = '.vc_line-chart';
647    if ('undefined' !== typeof model_id) {
648      selector = '[data-model-id="' + model_id + '"] ' + selector;
649    }
650    $(selector).vcLineChart();
651  };
652  function initVCCharts() {
653    !window.vc_iframe && vc_round_charts();
654    !window.vc_iframe && vc_line_charts();
655  }
656  function initRetinaDisplay() {
657    $('img[data-retina]').each(function () {
658      const $el = $(this);
659      const image = new Image();
660      image.src = $el.attr('src');
661      image.onload = function () {
662        $el.attr({
663          width: this.width,
664          height: this.height
665        });
666        $el.retina();
667      };
668    });
669  }
670  function initGMaps() {
671    $('.w-gmaps').each(function () {
672      const $el = $(this);
673
674      // If it has been initialized, exit function to prevent duplication.
675      if ($el.data('initialized') == true) return;
676      const options = {
677        gmaps: {
678          locations: false,
679          zoom: 8,
680          type: 2,
681          center: {
682            lat: 37.6,
683            lng: -95.665
684          }
685        },
686        color: '#ff0000',
687        height: 500,
688        mapStyles: []
689      };
690      if ($el.data('showInfo')) options.showInfo = true;
691      const gmaps = $.parseJSON(decodeURIComponent($el.data('maps')));
692      if (gmaps) options.gmaps = gmaps;
693      if ($el.data('locations')) {
694        options.gmaps.locations = $.extend({}, options.gmaps.locations, $.parseJSON(decodeURIComponent($el.data('locations'))) || {});
695      }
696      if ($el.data('pin')) {
697        $.each(options.gmaps.locations, function (i, v) {
698          options.gmaps.locations[i].icon = $el.data('pin');
699        });
700      }
701      if ($el.data('color')) options.color = $el.data('color');
702      if ($el.height()) options.height = $el.height();
703      options.mapStyles = [{
704        featureType: 'road.highway',
705        elementType: 'geometry.stroke',
706        stylers: [{
707          color: '#aaaaaa'
708        }]
709      }, {
710        featureType: 'road.highway',
711        elementType: 'geometry.fill',
712        stylers: [{
713          color: '#c6c6c6'
714        }]
715      }, {
716        featureType: 'road.arterial',
717        elementType: 'geometry.fill',
718        stylers: [{
719          color: '#e9e9e9'
720        }]
721      }, {
722        featureType: 'road.arterial',
723        elementType: 'geometry.stroke',
724        stylers: [{
725          color: '#cecece'
726        }]
727      }, {
728        featureType: 'road.local',
729        elementType: 'geometry.stroke',
730        stylers: [{
731          color: '#cecece'
732        }]
733      }, {
734        featureType: 'road.local',
735        elementType: 'geometry.fill',
736        stylers: [{
737          color: '#e9e9e9'
738        }]
739      }, {
740        featureType: 'landscape',
741        elementType: 'geometry.fill',
742        stylers: [{
743          color: '#f9f9f9'
744        }]
745      }, {
746        featureType: 'poi',
747        elementType: 'geometry',
748        stylers: [{
749          color: '#eceeed'
750        }]
751      }, {
752        featureType: 'transit.station',
753        elementType: 'geometry.fill',
754        stylers: [{
755          saturation: -100
756        }, {
757          lightness: 22
758        }]
759      }, {
760        featureType: 'administrative.locality',
761        elementType: 'labels.text.fill',
762        stylers: [{
763          color: options.color
764        }]
765      }, {
766        featureType: 'road',
767        elementType: 'labels',
768        stylers: [{
769          lightness: 1
770        }, {
771          gamma: 1.02
772        }, {
773          hue: options.color
774        }]
775      }, {
776        featureType: 'road.highway',
777        elementType: 'labels'
778      }, {
779        featureType: 'water',
780        stylers: [{
781          lightness: 48
782        }]
783      }];
784      $el.wydeGMaps(options);
785    });
786  }
787  window.initGMaps = initGMaps;
788  function initTabs() {
789    $('.w-tabs, .w-icon-tabs, .w-tour').each(function () {
790      const $el = $(this);
791      const interval = $el.data('interval') ? parseInt($el.data('interval')) : 0;
792      $el.wydeTabs({
793        interval
794      });
795    });
796  }
797  function initSocialStream() {
798    // Flickr Stream
799    $('.w-flickr').each(function () {
800      const $el = $(this);
801      $el.wydeFlickrStream({
802        id: $el.data('id'),
803        type: $el.data('type'),
804        size: $el.data('size'),
805        count: parseInt($el.data('count')),
806        columns: parseInt($el.data('columns'))
807      });
808    });
809
810    // Facebook Page
811    $('.w-facebook-box').each(function () {
812      const $el = $(this);
813      let width, height;
814      if ($el.data('width')) width = parseInt($el.data('width'));
815      if ($el.data('height')) height = parseInt($el.data('height'));
816      $el.wydeFacebookLike({
817        width,
818        height,
819        show_facepile: $el.data('showFacepile'),
820        small_header: $el.data('smallHeader'),
821        tabs: $el.data('tabs'),
822        page_url: $el.data('pageUrl')
823      });
824    });
825
826    // Instagram Feed
827    $('.w-instagram').each(function () {
828      const $el = $(this);
829      if ($el.hasClass('w-slider')) {
830        let items = 1;
831        if ($el.data('items') != undefined) items = parseInt($el.data('items'));
832        let loop = false;
833        if ($el.data('loop') != undefined) loop = $el.data('loop');
834        if ($el.find('>div').length <= 1) loop = false;
835        let animateIn = false;
836        let animateOut = false;
837        if ($el.data('transition')) {
838          switch ($el.data('transition')) {
839            case 'fade':
840              animateIn = 'fadeIn';
841              animateOut = 'fadeOut';
842              break;
843          }
844        }
845        let autoPlay = false;
846        if ($el.data('autoPlay') != undefined) autoPlay = $el.data('autoPlay');
847        let speed = 4000;
848        if ($el.data('speed') != undefined) speed = parseInt($el.data('speed')) * 1000;
849        let navigation = true;
850        if ($el.data('navigation') != undefined) navigation = $el.data('navigation');
851        let pagination = false;
852        if ($el.data('pagination') != undefined) pagination = $el.data('pagination');
853        const $view = $el.find('.w-instagram-photos');
854        if (pagination) $view.addClass('with-pagination');
855        $view.addClass('owl-carousel').owlCarousel({
856          navText: ['', ''],
857          items,
858          slideBy: items,
859          autoplay: autoPlay != false,
860          autoplayTimeout: autoPlay ? speed : false,
861          autoplaySpeed: 800,
862          autoplayHoverPause: autoPlay != false,
863          nav: navigation,
864          dots: pagination,
865          loop,
866          themeClass: '',
867          animateIn,
868          animateOut,
869          responsive: {
870            0: {
871              items: 1,
872              slideBy: 1
873            },
874            559: {
875              items: items > 2 ? 2 : items,
876              slideBy: items > 2 ? 2 : items
877            },
878            1200: {
879              items,
880              slideBy: items
881            }
882          }
883        });
884      }
885    });
886
887    // Twitter
888    if ($('.w-twitter').length) {
889      initTwitterWidget();
890      if (!twttr) return;
891      twttr.ready(function (twttr) {
892        window.twttr = twttr;
893        $('.w-twitter').each(function () {
894          const $el = $(this);
895          $el.wydeTwitterTimeline({
896            username: $el.data('name') || undefined,
897            count: $el.data('count') || undefined,
898            theme: $el.data('theme') || undefined,
899            borderColor: $el.data('borderColor') || undefined,
900            linkColor: $el.data('linkColor') || undefined,
901            width: $el.data('width') || undefined,
902            height: $el.data('height') || undefined,
903            transparent: $el.data('transparent') == true,
904            showHeader: $el.data('showHeader') == true,
905            showScrollbar: $el.data('showScrollbar') == true,
906            showBorder: $el.data('showBorder') == true
907          });
908        });
909      });
910    }
911  }
912
913  /*****************************************
914     Call on Wyde Page Ready event 
915     /*****************************************/
916  $(window).on('wyde.page.ready', function () {
917    if (!window.wyde) return;
918    initRetinaDisplay();
919    initButton();
920    initIconBlock();
921    initCarousel();
922    initGalleryCarousel();
923    initGridView();
924    initBlogPosts();
925    initWooCommerceProducts();
926    initScrollMore();
927    initGMaps();
928    initTabs();
929    initSocialStream();
930    $('.w-progress-bar').wydeProgressBar();
931    $('.w-accordion').wydeAccordion();
932    $('.w-toggle').wydeToggle();
933    $('.w-counter-box').wydeCounterBox();
934    $('.w-donut-chart').wydeDonutChart();
935    initTeamCarousel();
936    initLightbox();
937    initMainSlider();
938    initVCCharts();
939    initTouchDevices();
940    $('[data-animation]').wydeAnimated({
941      mobileEnabled: wyde.page.mobile_animation
942    });
943    initSections();
944  });
945})(jQuery);
946/******/ })()
947;

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.