PageSourceSearch

https://top100influentialpeople.com/wp-content/themes/top-100-infl…/dist/js/scripts.js?ver=1769011355

js top100influentialpeople.com collected 2026-10-02 16:32:12 UTC 10,829 bytes, 337 lines download raw bytes

1"use strict";
2
3function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7jQuery(document).ready(function ($) {
8  var wow = new WOW({
9    boxClass: "anim",
10    // default
11    animateClass: "animated",
12    // default
13    offset: 0,
14    // default
15    mobile: true,
16    // default
17    live: true,
18    // default
19    callback: function callback(box) {
20      box.classList.remove("hidden");
21    }
22  });
23  wow.init();
24  setTimeout(function () {
25    $(".page-load-basic").addClass("fade-out");
26  }, 100);
27  setTimeout(function () {
28    $("body").addClass("loaded");
29    $("#page-loader").fadeOut(300);
30  }, 300);
31  enquire.register("screen and (max-width:1189px)", {
32    match: function match() {
33      $("#menuToggle").on("click", function () {
34        $("body").toggleClass("menu-open");
35        $(this).toggleClass("is-active");
36        $("#menu-main").removeClass("uno").toggleClass("scale-in-tr scale-out-tr");
37      });
38    },
39    unmatch: function unmatch() {
40      $("#menuToggle").removeClass("is-active");
41    }
42  });
43  enquire.register("screen and (min-width:768px)", {
44    match: function match() {
45      $("#menu-main .menu li ul").hide().removeClass("fallback");
46      $("#menu-main .menu li").hover(function () {
47        $("ul", this).stop().slideDown(100);
48      }, function () {
49        $("ul", this).stop().slideUp(100);
50      });
51      function goPop() {
52        setTimeout(function () {
53          $("#awardPop, #popBack").addClass("readyto");
54          setTimeout(function () {
55            $("#popBack").addClass("active");
56          }, 200);
57          setTimeout(function () {
58            $("#awardPop").addClass("active");
59          }, 700);
60        }, 8000);
61      }
62      function diePop() {
63        $("#awardPop, #popBack").removeClass("active");
64        setTimeout(function () {
65          $("#popBack").removeClass("readyto");
66        }, 100);
67        setTimeout(function () {
68          $("#awardPop").removeClass("readyto");
69        }, 400);
70      }
71      if (Cookies.get("getGuide")) {
72        // naaafin
73      } else {
74        goPop();
75      }
76      $("#popBack, #closeIt").click(function () {
77        Cookies.set("getGuide", "seen7", {
78          expires: 7
79        });
80        diePop();
81      });
82    },
83    unmatch: function unmatch() {}
84  });
85  $(".product .text").matchHeight();
86  $(".recent_winner .winner_name").matchHeight();
87  $(".award_winner .text_block").matchHeight();
88  $(".award_category .text_block").matchHeight();
89  $(".gallery_slider .carousel-cell").matchHeight();
90  $("#mc_mv_EMAIL").attr("placeholder", "Email Address");
91
92  //sliders
93  $("#testimonials").flickity({
94    cellAlign: "left",
95    contain: true,
96    pageDots: false,
97    arrowShape: {
98      x0: 10,
99      x1: 60,
100      y1: 50,
101      x2: 65,
102      y2: 45,
103      x3: 20
104    },
105    adaptiveHeight: true
106  });
107  $("#prev_winners").flickity({
108    cellAlign: "left",
109    contain: true,
110    pageDots: false,
111    arrowShape: {
112      x0: 10,
113      x1: 60,
114      y1: 50,
115      x2: 65,
116      y2: 45,
117      x3: 20
118    },
119    adaptiveHeight: true
120  });
121
122  //sliders
123  // Initialize Flickity slider
124  var flkty = $(".gallery-slider").flickity(_defineProperty({
125    cellAlign: "left",
126    setGallerySize: true,
127    percentPosition: false,
128    contain: false,
129    pageDots: true,
130    adaptiveHeight: false,
131    prevNextButtons: false,
132    wrapAround: true
133  }, "pageDots", ".dots"));
134
135  // Click event for previous button
136  $(".controls .previous").on("click", function () {
137    flkty.flickity("previous");
138  });
139
140  // Click event for next button
141  $(".controls .next").on("click", function () {
142    flkty.flickity("next");
143  });
144  $(".inline > .ginput_container > input").keyup(function () {
145    if ($(this).val().length === 0) {
146      $(this).closest("li").removeClass("active");
147    } else {
148      $(this).closest("li").addClass("active");
149    }
150  });
151  $('.payup.inline .ginput_full input[type="text"]').keyup(function () {
152    if ($(this).val().length === 0) {
153      $(this).closest(".ginput_full").removeClass("active");
154    } else {
155      $(this).closest(".ginput_full").addClass("active");
156    }
157  });
158  $(".inliner input").keyup(function () {
159    if ($(this).val().length === 0) {
160      $(this).closest("div").removeClass("active");
161    } else {
162      $(this).closest("div").addClass("active");
163    }
164  });
165  $("#content_search").searchFilter({
166    targetSelector: ".award_category",
167    charCount: 2
168  });
169  $('.fileupload input[type="file"]').change(function () {
170    var fileName = $(this).val().replace("C:\\fakepath\\", "");
171    $(this).closest(".fileupload").find("label").html(fileName);
172  });
173
174  //$(".judge .content > *:not(:first)").hide();
175  //judge read more
176  $(".judge").each(function () {
177    var $preview = $(this).find(".content.preview-block");
178    var $full = $(this).find(".content.full-block");
179    var $toggleBtn = $(this).find("#toggleContentBtn");
180
181    // Toggle the additional content and change the button text
182    $toggleBtn.on("click", function (e) {
183      e.preventDefault();
184      if ($full.hasClass("hidden")) {
185        $full.removeClass("hidden");
186        $preview.addClass("hidden");
187        $toggleBtn.text("Read Less");
188      } else {
189        $full.addClass("hidden");
190        $preview.removeClass("hidden");
191        $toggleBtn.text("Read More");
192      }
193    });
194  });
195
196  /*
197  ==========================
198  SMOOTH SCROLLING
199  ==========================
200  */
201  // Select all links with hashes
202  $('a[href*="#"]')
203  // Remove links that don't actually link to anything
204  .not('[href="#"]').not('[href="#0"]').on("click", function (event) {
205    // On-page links
206    if (location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") && location.hostname == this.hostname) {
207      // Figure out element to scroll to
208      var target = $(this.hash);
209      target = target.length ? target : $("[name=" + this.hash.slice(1) + "]");
210      // Does a scroll target exist?
211      if (target.length) {
212        // Only prevent default if animation is actually gonna happen
213        event.preventDefault();
214        $("html, body").animate({
215          scrollTop: target.offset().top - 125
216        }, 1000, function () {});
217      }
218    }
219  });
220
221  /*
222  =====================
223  TABLE WRAPPER
224  =====================
225  */
226
227  $(".rte table").wrap('<div class="table-wrap"></div>');
228
229  /*
230  =========================
231  ACCORDION
232  =========================
233  */
234
235  $(".accordion-item .toggle-header").on("click", function () {
236    $(this).parent(".accordion-item").toggleClass("active");
237    $(this).next(".toggle-content").slideToggle("slow");
238  });
239
240  /*
241  ==========================
242  FILTER CATEGORIES
243  ==========================
244  */
245
246  /*
247  =========================
248  ACCORDION
249  =========================
250  */
251  /*
252  =========================
253  ACCORDION
254  =========================
255  */
256  var allPanels = $(".accordion > .text").hide();
257  var allLabels = $(".accordion > .label > a");
258  console.log("allPanels", allPanels);
259  $(".accordion > .label > a").on("click", function (e) {
260    e.preventDefault();
261    var $this = $(this); // Add 'var' here
262    var $target = $this.parent().next();
263    if (!$target.hasClass("active")) {
264      allPanels.removeClass("active").slideUp();
265      allLabels.removeClass("active");
266      allLabels.parent().parent().removeClass("active");
267      $this.addClass("active");
268      $this.parent().parent().addClass("active");
269      allLabels.children("i").removeClass("fa-chevron-up");
270      allLabels.children("i").addClass("fa-chevron-down");
271      $target.addClass("active").slideDown();
272      $this.children("i").removeClass("fa-chevron-down");
273      $this.children("i").addClass("fa-chevron-up");
274    }
275    return false;
276  });
277  $(".category-search-form #catsearch").on("submit", function (e) {
278    e.preventDefault();
279
280    //Anchor down
281    var anchor_id = "#awards_categories";
282    $("html, body").animate({
283      scrollTop: $(anchor_id).offset().top - 200
284    }, 800);
285    var search_term = $(this).find("input#category_search").val();
286    $.ajax({
287      url: "/wp-admin/admin-ajax.php",
288      type: "POST",
289      data: {
290        action: "search_award_categories",
291        search_term: search_term
292      },
293      beforeSend: function beforeSend() {
294        $(".awards_categories .grid-container").fadeTo(600, 0, function () {
295          $(".awards_categories .grid-container").html('<div class="loading-spinner"></div>');
296        });
297        $(".awards_categories .grid-container").delay(300).fadeTo(400, 1);
298      },
299      success: function success(data) {
300        $(".awards_categories .grid-container").delay(800).fadeOut(700, function () {
301          $(".awards_categories .grid-container .loading-spinner").remove();
302          $(".awards_categories .grid-container").append(data);
303          $(".awards_categories .grid-container").fadeTo(400, 1);
304          $(".award_category .text_block").matchHeight();
305        });
306      }
307    });
308  });
309  $("#gform_browse_button_1_28").text("Upload");
310}); // ends doc ready function
311
312var menuItems = document.querySelectorAll("#menu-main > .menu-item-has-children");
313menuItems.forEach(function (item) {
314  var icon = document.createElement("i");
315  icon.classList.add("fa-light", "fa-chevron-down");
316  item.appendChild(icon);
317});
318document.addEventListener("DOMContentLoaded", function () {
319  var menuItemsMobile = document.querySelectorAll(".mobile-menu .menu-item-has-children");
320  console.log("menuItemsMobile:", menuItemsMobile);
321  menuItemsMobile.forEach(function (li) {
322    var link = li.querySelector(":scope > a");
323    if (!link) return;
324
325    // Add chevron inside the link (usually what you want)
326    var icon = document.createElement("i");
327    icon.classList.add("fa-light", "fa-chevron-down");
328    link.appendChild(icon);
329
330    // Toggle open on the LI so CSS can show/hide submenu
331    link.addEventListener("click", function (e) {
332      e.preventDefault();
333      li.classList.toggle("open");
334    });
335  });
336});
337//# sourceMappingURL=scripts.js.map

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.