PageSourceSearch

https://www.discoverygreen.com/wp-content/themes/wwc/js/discovery.js?ver=1678727324

js discoverygreen.com collected 2026-10-02 04:16:21 UTC 1,692 bytes, 51 lines download raw bytes

1//jQuery(window).on('elementor/frontend/init', () => {
2//  elementorFrontend.hooks.addAction('frontend/element_ready/slides.default', function ($scope) {
3//    if ($scope.attr('id') == 'heroSlides') {
4//      setTimeout(function () {
5//        let imageCarousel = $scope.find('.swiper-container');
6//        let swiperInstance = imageCarousel.data('swiper');
7//        console.info(swiperInstance);
8//        let random = Math.floor(Math.random() * (11 - 0 + 1) + 0)
9//        swiperInstance.slideTo(random);
10//        swiperInstance.autoplay.start();
11//      }, 500);
12//
13//    }
14//  });
15//});
16//jQuery(document).on('elementor/popup/show', (event, id, instance) => {
17//  console.info(id)
18//  if (id === 434) {
19//
20//    jQuery('body').addClass('hasalert');
21//  }
22//});
23//jQuery(document).on('elementor/popup/hide', (event, id, instance) => {
24//  jQuery('body').removeClass('hasalert');
25//});
26
27jQuery(document).ready(function () {
28  jQuery('body').on('click', 'ul#menu-1-b3e4d2d > li > a', function (e) {
29    e.preventDefault();
30    var $this = jQuery(this);
31    if ($this.parent().hasClass('exp')) {
32      $this.parent().removeClass('exp');
33    } else {
34      jQuery("ul#menu-1-b3e4d2d > li").removeClass('exp');
35      $this.parent().addClass('exp');
36
37    }
38  });
39  jQuery('body').on('click', '.lang-btn a', function (e) {
40    e.preventDefault();
41    var $this = jQuery(this);
42    jQuery('.lang-btn').removeClass('active');
43    $this.parent().parent().parent().addClass('active');
44    var lng = $this.parent().parent().parent().attr('data-lg');
45    if (!lng) {
46      lng = 'en';
47    }
48    jQuery('.lang-box').removeClass('active');
49    jQuery('.lang-box.' + lng).addClass('active');
50  });
51});

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.