PageSourceSearch

https://web.acteonline.org/App_Themes/V3-ISG-ACTE-Responsive/theme.js

js acteonline.org collected 2026-09-24 08:46:18 UTC 25,790 bytes, 814 lines download raw bytes

1jQuery(document).ready(function () {
2  var OSName = "unknown";
3  if (navigator.appVersion.indexOf("Win") != -1) OSName = "windows";
4  if (navigator.appVersion.indexOf("Mac") != -1) OSName = "mac";
5  if (navigator.appVersion.indexOf("X11") != -1) OSName = "unix";
6  if (navigator.appVersion.indexOf("Linux") != -1) OSName = "Linux";
7  jQuery("body").addClass(OSName);
8
9  jQuery("header .navbar-toggler").click(function () {
10    jQuery("header").toggleClass("active");
11  });
12});
13
14function smoothscroll() {
15  jQuery(".smoothscroll").on("click", function (e) {
16    e.preventDefault();
17    jQuerytarget = jQuery(this.hash);
18    jQueryspace = 0;
19    jQuery("html, body")
20      .stop()
21      .animate(
22        {
23          scrollTop: jQuerytarget.offset().top - jQueryspace,
24        },
25        500
26      );
27  });
28}
29
30var lastScrollTop = 0;
31jQuery(window).scroll(function () {
32  var scroll = jQuery(window).scrollTop();
33
34  if (scroll > lastScrollTop) {
35    if (scroll <= 113) {
36      jQuery("header").removeClass("scrolled");
37    }
38    if (scroll >= 114) {
39      jQuery("header").addClass("scrolled");
40      jQuery("header").removeClass("start");
41      jQuery(".megamenu").addClass("inactive");
42    }
43  } else {
44    jQuery("header").removeClass("scrolled");
45    jQuery(".megamenu").removeClass("inactive");
46    if (scroll <= 276) {
47      jQuery("header").addClass("start");
48    }
49  }
50  lastScrollTop = scroll;
51});
52
53jQuery(window).on("load", function () {
54  AOS.init({
55    duration: 1400,
56    once: true,
57    anchorPlacement: "top-bottom",
58  });
59
60  smoothscroll();
61
62  var scroll = jQuery(window).scrollTop();
63
64  if (scroll <= 1) {
65    jQuery("header").removeClass("scrolled");
66  }
67
68  if (scroll >= 10) {
69    jQuery("header").addClass("scrolled");
70  }
71
72  jQuery(
73    "header .content-area .navbar .container-fluid .navbar-collapse .navbar-nav .nav-item .nav-link.toggle-menu"
74  ).on("click", function (e) {
75    e.preventDefault();
76    var scroll = jQuery(window).scrollTop();
77    document.body.style.position = "fixed";
78    document.body.style.top = "-" + scroll + "px";
79    // jQuery("body").addClass("scroll-lock");
80    jQuery(".menu-full").addClass("active");
81  });
82
83  jQuery(".menu-full .top-area .close-menu-full").on("click", function (e) {
84    e.preventDefault();
85    const scrollY = document.body.style.top;
86    document.body.style.position = "";
87    document.body.style.top = "";
88    window.scrollTo(0, parseInt(scrollY || "0") * -1);
89    // jQuery("body").removeClass("scroll-lock");
90    jQuery(".menu-full").removeClass("active");
91  });
92
93  if (document.querySelector(".home-slider .slider-area")) {
94    jQuery(".home-slider .slider-area").slick({
95      infinite: true,
96      dots: true,
97      nav: false,
98      arrows: false,
99      speed: 300,
100      slidesToShow: 1,
101      autoplay: true,
102      pauseOnHover: false,
103      autoplaySpeed: 5000,
104      useTransform: false,
105    });
106    function triggerScroll(targetObj) {
107      let targetName = targetObj.attr("class"); //for console.log
108      let targetFlag = false;
109      let scrollTop = jQuery(window).scrollTop();
110      let scrollBottom = scrollTop + jQuery(window).height();
111      let targetTop = targetObj.offset().top;
112      let targetBottom = targetTop + targetObj.height(); // while loading
113      if (scrollBottom > targetTop && scrollTop < targetBottom) {
114        if (!targetFlag) {
115          console.log(targetName + " is in sight"); //for console.log
116          targetObj.slick("slickPlay");
117          targetFlag = true;
118        }
119      } else {
120        console.log(targetName + " is not in sight"); //for console.log
121        targetObj.slick("slickPause");
122        targetFlag = false;
123      }
124
125      jQuery(window).on("scroll", function () {
126        scrollTop = jQuery(window).scrollTop();
127        scrollBottom = scrollTop + jQuery(window).height();
128        targetTop = targetObj.offset().top + 200;
129        targetBottom = targetTop + targetObj.height();
130        if (scrollBottom > targetTop && scrollTop < targetBottom) {
131          // Start autoplay when entering the viewport
132          if (!targetFlag) {
133            console.log(targetName + " is in sight"); //確認用
134            targetObj.slick("slickPlay");
135            targetFlag = true;
136          }
137        } else {
138          // Stop autoplay when you get out of the viewport
139          if (targetFlag) {
140            console.log(targetName + " is not in sight"); //for console.log
141            targetObj.slick("slickPause");
142            targetFlag = false;
143          }
144        }
145      });
146    }
147    // Execute function
148    triggerScroll(jQuery(".home-slider .slider-area"));
149  }
150
151  function adjustImageWidth(image) {
152    var widthBase = 130;
153    var scaleFactor = 0.525;
154    var imageRatio = image.naturalWidth / image.naturalHeight;
155    image.width = Math.pow(imageRatio, scaleFactor) * widthBase;
156  }
157
158  var images = document.querySelectorAll(
159    ".companies .content-area .companies-boxes .companies-box .logo-area img"
160  );
161
162  images.forEach(adjustImageWidth);
163
164  jQuery(
165    ".get-involved .content-area .text-box .left-area .link-toggle a"
166  ).click(function () {
167    var order = jQuery(this).index();
168
169    jQuery(
170      ".get-involved .content-area .text-box .left-area .link-toggle a"
171    ).removeClass("active");
172
173    jQuery(
174      ".get-involved .content-area .text-box .left-area .link-toggle a:eq(" +
175        order +
176        ")"
177    ).addClass("active");
178
179    jQuery(
180      ".get-involved .content-area .text-box .right-area .involved-content"
181    ).removeClass("active");
182    jQuery(
183      ".get-involved .content-area .text-box .right-area .involved-content:eq(" +
184        order +
185        ")"
186    ).addClass("active");
187  });
188
189  jQuery(
190    "header .content-area .navbar .container-fluid .menu-top .search-top img"
191  ).on("click", function (e) {
192    e.preventDefault();
193    jQuery(
194      "header .content-area .navbar .container-fluid .menu-top .search-top"
195    ).toggleClass("active");
196
197    setTimeout(function () {
198      if (
199        jQuery(
200          "header .content-area .navbar .container-fluid .menu-top .search-top input"
201        ).val() == ""
202      ) {
203        jQuery(
204          "header .content-area .navbar .container-fluid .menu-top .search-top"
205        ).removeClass("active");
206      }
207    }, 5000);
208  });
209
210  jQuery(
211    "header .content-area .navbar .container-fluid .navbar-collapse .navbar-nav .nav-item.has-megamenu .nav-link"
212  ).on("click", function (e) {
213    e.preventDefault();
214    jQuery(this).toggleClass("active");
215    jQuery(this).siblings(".megamenu").toggleClass("active");
216  });
217
218  // ===========================
219  // ===========================
220  // ===========================
221  // ===========================
222  // ===========================
223  // ===========================
224  // ===========================
225  // ===========================
226  // ===========================
227  // ===========================
228  // ===========================
229  // ===========================
230
231  if (document.querySelector(".news-insights .news-slider")) {
232    jQuery(".news-insights .news-slider").slick({
233      infinite: true,
234      dots: false,
235      nav: false,
236      arrows: true,
237      speed: 300,
238      slidesToShow: 1,
239      autoplay: true,
240      autoplaySpeed: 5000,
241      useTransform: false,
242    });
243    function triggerScroll(targetObj) {
244      let targetName = targetObj.attr("class"); //for console.log
245      let targetFlag = false;
246      let scrollTop = jQuery(window).scrollTop();
247      let scrollBottom = scrollTop + jQuery(window).height();
248      let targetTop = targetObj.offset().top;
249      let targetBottom = targetTop + targetObj.height(); // while loading
250      if (scrollBottom > targetTop && scrollTop < targetBottom) {
251        if (!targetFlag) {
252          console.log(targetName + " is in sight"); //for console.log
253          targetObj.slick("slickPlay");
254          targetFlag = true;
255        }
256      } else {
257        console.log(targetName + " is not in sight"); //for console.log
258        targetObj.slick("slickPause");
259        targetFlag = false;
260      }
261
262      jQuery(window).on("scroll", function () {
263        scrollTop = jQuery(window).scrollTop();
264        scrollBottom = scrollTop + jQuery(window).height();
265        targetTop = targetObj.offset().top;
266        targetBottom = targetTop + targetObj.height();
267        if (scrollBottom > targetTop && scrollTop < targetBottom) {
268          // Start autoplay when entering the viewport
269          if (!targetFlag) {
270            console.log(targetName + " is in sight"); //確認用
271            targetObj.slick("slickPlay");
272            targetFlag = true;
273          }
274        } else {
275          // Stop autoplay when you get out of the viewport
276          if (targetFlag) {
277            console.log(targetName + " is not in sight"); //for console.log
278            targetObj.slick("slickPause");
279            targetFlag = false;
280          }
281        }
282      });
283    }
284    // Execute function
285    triggerScroll(jQuery(".news-insights .news-slider"));
286  }
287
288  jQuery(".firm-history-slider").slick({
289    infinite: false,
290    dots: false,
291    nav: false,
292    arrows: true,
293    speed: 300,
294    slidesToShow: 4,
295    autoplay: false,
296    // autoplaySpeed: 5000,
297    useTransform: false,
298    variableWidth: true,
299    responsive: [
300      {
301        breakpoint: 1300,
302        settings: {
303          slidesToShow: 3,
304          variableWidth: false,
305        },
306      },
307      {
308        breakpoint: 768,
309        settings: {
310          slidesToShow: 1,
311          variableWidth: false,
312        },
313      },
314    ],
315  });
316
317  const modals = document.querySelectorAll(".modal");
318  modals.forEach((modal) => {
319    let currentModal = bootstrap.Modal.getInstance(modal);
320    if (currentModal) currentModal.hide();
321  });
322
323  // jQuery(
324  //   ".contact-us-form-section .content-area .contact-us-container .contact-select .filter-box .select-items div"
325  // ).on("click", function () {
326  //   var order = jQuery(this).index();
327  //   console.log("asdf");
328  //   jQuery(
329  //     ".contact-us-form-section .content-area .contact-us-container .tab-content .tab-pane"
330  //   ).removeClass("show active");
331
332  //   jQuery(
333  //     ".contact-us-form-section .content-area .contact-us-container .tab-content .tab-pane:eq(" +
334  //       order +
335  //       ")"
336  //   ).addClass("show active");
337  // });
338
339  // ===============================================
340  // ===============================================
341  // ===============================================
342  // ===============================================
343  // ===============================================
344  // ===============================================
345  // ===============================================
346  // ===============================================
347  // ===============================================
348  // ===============================================
349  // ===============================================
350  // ===============================================
351  // ===============================================
352
353  if (document.querySelector(".testimonial-slider-area")) {
354    jQuery(".testimonial-slider-area").slick({
355      infinite: true,
356      dots: false,
357      nav: false,
358      arrows: true,
359      speed: 300,
360      slidesToShow: 1,
361      autoplay: true,
362      autoplaySpeed: 5000,
363      useTransform: false,
364    });
365    function triggerScroll(targetObj) {
366      let targetName = targetObj.attr("class"); //for console.log
367      let targetFlag = false;
368      let scrollTop = jQuery(window).scrollTop();
369      let scrollBottom = scrollTop + jQuery(window).height();
370      let targetTop = targetObj.offset().top;
371      let targetBottom = targetTop + targetObj.height(); // while loading
372      if (scrollBottom > targetTop && scrollTop < targetBottom) {
373        if (!targetFlag) {
374          console.log(targetName + " is in sight"); //for console.log
375          targetObj.slick("slickPlay");
376          targetFlag = true;
377        }
378      } else {
379        console.log(targetName + " is not in sight"); //for console.log
380        targetObj.slick("slickPause");
381        targetFlag = false;
382      }
383
384      jQuery(window).on("scroll", function () {
385        scrollTop = jQuery(window).scrollTop();
386        scrollBottom = scrollTop + jQuery(window).height();
387        targetTop = targetObj.offset().top;
388        targetBottom = targetTop + targetObj.height();
389        if (scrollBottom > targetTop && scrollTop < targetBottom) {
390          // Start autoplay when entering the viewport
391          if (!targetFlag) {
392            console.log(targetName + " is in sight"); //確認用
393            targetObj.slick("slickPlay");
394            targetFlag = true;
395          }
396        } else {
397          // Stop autoplay when you get out of the viewport
398          if (targetFlag) {
399            console.log(targetName + " is not in sight"); //for console.log
400            targetObj.slick("slickPause");
401            targetFlag = false;
402          }
403        }
404      });
405    }
406    // Execute function
407    triggerScroll(jQuery(".testimonial-slider-area"));
408  }
409
410  // if (document.querySelector(".video_bg_sliders")) {
411  //   jQuery(".video_bg_sliders").slick({
412  //     infinite: true,
413  //     dots: true,
414  //     nav: false,
415  //     arrows: false,
416  //     slidesToShow: 1,
417  //     autoplay: false,
418  //   });
419
420  //   jQuery(".video_bg_sliders").on(
421  //     "afterChange",
422  //     function (event, slick, currentSlide, nextSlide) {
423  //       jQuery(
424  //         `.home_banner .content_area .text_area .slider_tab .tab_title[data-index=${currentSlide}]`
425  //       ).trigger("click");
426  //       console.log(currentSlide);
427  //     }
428  //   );
429  //   function triggerScroll(targetObj) {
430  //     let targetName = targetObj.attr("class"); //for console.log
431  //     let targetFlag = false;
432  //     let scrollTop = jQuery(window).scrollTop();
433  //     let scrollBottom = scrollTop + jQuery(window).height();
434  //     let targetTop = targetObj.offset().top;
435  //     let targetBottom = targetTop + targetObj.height(); // while loading
436  //     if (scrollBottom > targetTop && scrollTop < targetBottom) {
437  //       if (!targetFlag) {
438  //         console.log(targetName + " is in sight"); //for console.log
439  //         targetObj.slick("slickPlay");
440  //         targetFlag = true;
441  //       }
442  //     } else {
443  //       console.log(targetName + " is not in sight"); //for console.log
444  //       targetObj.slick("slickPause");
445  //       targetFlag = false;
446  //     }
447
448  //     jQuery(window).on("scroll", function () {
449  //       scrollTop = jQuery(window).scrollTop();
450  //       scrollBottom = scrollTop + jQuery(window).height();
451  //       targetTop = targetObj.offset().top;
452  //       targetBottom = targetTop + targetObj.height();
453  //       if (scrollBottom > targetTop && scrollTop < targetBottom) {
454  //         // Start autoplay when entering the viewport
455  //         if (!targetFlag) {
456  //           console.log(targetName + " is in sight"); //確認用
457  //           targetObj.slick("slickPlay");
458  //           targetFlag = true;
459  //         }
460  //       } else {
461  //         // Stop autoplay when you get out of the viewport
462  //         if (targetFlag) {
463  //           console.log(targetName + " is not in sight"); //for console.log
464  //           targetObj.slick("slickPause");
465  //           targetFlag = false;
466  //         }
467  //       }
468  //     });
469  //   }
470  //   // Execute function
471  //   // triggerScroll(jQuery(".video_bg_sliders"));
472  // }
473
474  jQuery(function () {
475    let url = window.location.pathname.split("/").pop();
476
477    // Add active nav class based on url
478    jQuery(
479      "header .content-area .navbar .navbar-collapse .navbar-nav .nav-item .nav-link"
480    ).each(function () {
481      if (
482        jQuery(this).attr("href") == url ||
483        jQuery(this).attr("href") == "" ||
484        jQuery(this)
485          .siblings(".dropdown-menu")
486          .children("li")
487          .children(".dropdown-item")
488          .attr("href") == url
489      ) {
490        jQuery(this)
491          .closest(".content-area .navbar-nav .nav-item .nav-link")
492          .addClass("active");
493      }
494    });
495
496    jQuery("footer .footer-box .footer-column ul li a").each(function () {
497      if (
498        jQuery(this).attr("href") == url ||
499        jQuery(this).attr("href") == "  "
500      ) {
501        jQuery(this).addClass("active");
502      }
503    });
504  });
505
506  jQuery("#numberOnly").on("input blur paste", function () {
507    jQuery(this).val(jQuery(this).val().replace(/\D/g, ""));
508  });
509
510  // if (window.outerWidth < 1200) {
511  //   jQuery("header .navbar-toggler").click(function () {
512  //     if (jQuery("body").hasClass("scroll-lock")) {
513  //       jQuery("body").removeClass("scroll-lock");
514  //     } else {
515  //       jQuery("body").addClass("scroll-lock");
516  //     }
517  //   });
518  // }
519
520  jQuery(".side-navbar .navbar-toggle").click(function () {
521    // jQuery("body").addClass("scroll-lock");
522    jQuery(".mega-menu").addClass("active");
523  });
524  jQuery(".mobile-navbar .mobile-navbar-toggle").click(function () {
525    // jQuery("body").addClass("scroll-lock");
526    jQuery(".mega-menu").addClass("active");
527  });
528  jQuery(".close-megamenu").click(function () {
529    // jQuery("body").removeClass("scroll-lock");
530    jQuery(".mega-menu").removeClass("active");
531  });
532
533  var x, i, j, l, ll, selElmnt, a, b, c;
534  /* Look for any elements with the class "custom-select": */
535  x = document.getElementsByClassName("custom-select");
536  l = x.length;
537  for (i = 0; i < l; i++) {
538    selElmnt = x[i].getElementsByTagName("select")[0];
539    ll = selElmnt.length;
540    /* For each element, create a new DIV that will act as the selected item: */
541    a = document.createElement("DIV");
542    a.setAttribute("class", "select-selected");
543    a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML;
544    x[i].appendChild(a);
545    /* For each element, create a new DIV that will contain the option list: */
546    b = document.createElement("DIV");
547    b.setAttribute("class", "select-items select-hide");
548    for (j = 1; j < ll; j++) {
549      /* For each option in the original select element,
550      create a new DIV that will act as an option item: */
551      c = document.createElement("DIV");
552      c.innerHTML = selElmnt.options[j].innerHTML;
553      c.addEventListener("click", function (e) {
554        /* When an item is clicked, update the original select box,
555        and the selected item: */
556        var y, i, k, s, h, sl, yl;
557        s = this.parentNode.parentNode.getElementsByTagName("select")[0];
558        sl = s.length;
559        h = this.parentNode.previousSibling;
560        for (i = 0; i < sl; i++) {
561          if (s.options[i].innerHTML == this.innerHTML) {
562            s.selectedIndex = i;
563            h.innerHTML = this.innerHTML;
564            y = this.parentNode.getElementsByClassName("same-as-selected");
565            yl = y.length;
566            for (k = 0; k < yl; k++) {
567              y[k].removeAttribute("class");
568            }
569            this.setAttribute("class", "same-as-selected");
570            break;
571          }
572        }
573        h.click();
574        jQuery(".filter-reset-button").removeClass("invisible");
575        jQuery(".reset-filter-box").removeClass("invisible");
576      });
577      b.appendChild(c);
578    }
579    x[i].appendChild(b);
580    a.addEventListener("click", function (e) {
581      /* When the select box is clicked, close any other select boxes,
582      and open/close the current select box: */
583      e.stopPropagation();
584      closeAllSelect(this);
585      this.nextSibling.classList.toggle("select-hide");
586      this.classList.toggle("select-arrow-active");
587    });
588  }
589
590  function closeAllSelect(elmnt) {
591    /* A function that will close all select boxes in the document,
592    except the current select box: */
593    var x,
594      y,
595      i,
596      xl,
597      yl,
598      arrNo = [];
599    x = document.getElementsByClassName("select-items");
600    y = document.getElementsByClassName("select-selected");
601    xl = x.length;
602    yl = y.length;
603    for (i = 0; i < yl; i++) {
604      if (elmnt == y[i]) {
605        arrNo.push(i);
606      } else {
607        y[i].classList.remove("select-arrow-active");
608      }
609    }
610    for (i = 0; i < xl; i++) {
611      if (arrNo.indexOf(i)) {
612        x[i].classList.add("select-hide");
613      }
614    }
615  }
616
617  /* If the user clicks anywhere outside the select box,
618  then close all select boxes: */
619  document.addEventListener("click", closeAllSelect);
620
621  jQuery(".filter-reset-button").click(function () {
622    jQuery(this).addClass("invisible");
623    jQuery(".select-selected").each(function () {
624      var text = jQuery(this)
625        .siblings(".form-select")
626        .children("option:first-child()")
627        .text();
628      console.log(text);
629      jQuery(this).text(text);
630    });
631    jQuery(".select-items div").removeClass();
632  });
633
634  jQuery(".mobile-filter .filter-toggle").click(function () {
635    // if (jQuery("body").hasClass("scroll-lock")) {
636    //   jQuery("body").removeClass("scroll-lock");
637    //   jQuery("header").removeClass("invisible");
638    // } else {
639    //   setTimeout(() => {
640    //     jQuery("body").addClass("scroll-lock");
641    //   }, "400");
642    //   jQuery("header").addClass("invisible");
643    // }
644    if (jQuery("header").hasClass("invisible")) {
645      jQuery("header").removeClass("invisible");
646    } else {
647      jQuery("header").addClass("invisible");
648    }
649    jQuery(this).parent().siblings(".filter-box-container").addClass("active");
650  });
651  jQuery(".filter-box-apply").click(function () {
652    jQuery(this).parent().removeClass("active");
653    jQuery("body").removeClass("scroll-lock");
654    jQuery("header").removeClass("invisible");
655    // jQuery("html, body").animate(
656    //   {
657    //     scrollTop: jQuery(".mobile-filter").offset().top - 0,
658    //   },
659    //   50
660    // );
661  });
662  jQuery(".close-filter-box").click(function () {
663    jQuery(this).parent().removeClass("active");
664    jQuery("body").removeClass("scroll-lock");
665    jQuery("header").removeClass("invisible");
666    // jQuery("html, body").animate(
667    //   {
668    //     scrollTop: jQuery(".mobile-filter").offset().top - 0,
669    //   },
670    //   50
671    // );
672  });
673
674  // jQuery(".how-we-help-box").click(function () {
675  //   jQuery(this).toggleClass("active");
676  // });
677
678  jQuery(function () {
679    jQuery(
680      ".perspectives-insights-archive .content-area .archives-boxes .archive-box"
681    )
682      .slice(0, 12)
683      .show();
684    jQuery(
685      ".perspectives-insights-archive .content-area .archive-load-more .btn"
686    ).on("click", function (e) {
687      e.preventDefault();
688      jQuery(
689        ".perspectives-insights-archive .content-area .archives-boxes .archive-box:hidden"
690      )
691        .slice(0, 12)
692        .slideDown();
693      if (
694        jQuery(
695          ".perspectives-insights-archive .content-area .archives-boxes .archive-box:hidden"
696        ).length == 0
697      ) {
698        jQuery(
699          ".perspectives-insights-archive .content-area .archive-load-more .btn"
700        ).fadeOut("slow");
701      }
702    });
703  });
704
705  jQuery(".filter-box .filter-selector").on("click", function (e) {
706    jQuery(this)
707      .parent()
708      .siblings()
709      .children(".filter-selector")
710      .addClass("collapsed");
711    jQuery(this)
712      .parent()
713      .siblings()
714      .children(".filter-check")
715      .addClass("collapsed");
716    jQuery(this)
717      .parent()
718      .siblings()
719      .children(".filter-check")
720      .removeClass("show");
721  });
722
723  var rellax = new Rellax(".rellax", {
724    horizontal: true,
725  });
726
727  jQuery("#comp-upload-pitch").on("change", function () {
728    jQuery(this).addClass("uploaded");
729  });
730
731  (function () {
732    "use strict";
733
734    var section = document.querySelectorAll(".fullwidth-section");
735    var sections = {};
736    var i = 0;
737    var sectionHeight = jQuery(section).height() + 118 - 118;
738
739    Array.prototype.forEach.call(section, function (e) {
740      sections[e.id] = e.offsetTop + sectionHeight;
741    });
742
743    window.onscroll = function () {
744      var scrollPosition =
745        document.documentElement.scrollTop || document.body.scrollTop;
746      for (i in sections) {
747        if (sections[i] <= scrollPosition) {
748          jQuery("header").addClass("white-border");
749        } else {
750          jQuery("header").removeClass("white-border");
751        }
752      }
753    };
754  })();
755
756  var html_height = jQuery(document).height();
757  var mb_scaled = -0.2 * html_height;
758  jQuery("body").css("margin-bottom", mb_scaled);
759
760  jQuery(
761    ".contact-us-form-section .content-area .contact-us-container .contact-select .filter-box .select-items div"
762  ).on("click", function () {
763    var order = jQuery(this).index();
764    jQuery(
765      ".contact-us-form-section .content-area .contact-us-container .tab-content .tab-pane"
766    ).removeClass("show active");
767    jQuery(
768      ".contact-us-form-section .content-area .contact-us-container .tab-content .tab-pane:eq(" +
769        order +
770        ")"
771    ).addClass("show active");
772  });
773
774  AOS.refresh();
775});
776
777// jQuery(window).on("resize", function () {
778//   var html_height = jQuery(document).height();
779//   var mb_scaled = -0.2 * html_height;
780//   jQuery("body").css("margin-bottom", mb_scaled);
781// });
782
783jQueryslickPhoto = false;
784function photoSlider() {
785  if (jQuery(window).width() < 767) {
786    if (!jQueryslickPhoto) {
787      jQuery(".photos .photo-boxes").slick({
788        infinite: true,
789        dots: false,
790        nav: false,
791        arrows: true,
792        speed: 300,
793        slidesToShow: 1,
794        autoplay: true,
795        pauseOnHover: false,
796        autoplaySpeed: 5000,
797        useTransform: false,
798      });
799      jQueryslickPhoto = true;
800    }
801  } else if (jQuery(window).width() > 768) {
802    if (jQueryslickPhoto) {
803      jQuery(".photos .photo-boxes").slick("unslick");
804      jQueryslickPhoto = false;
805    }
806  }
807}
808
809jQuery(document).ready(function () {
810  photoSlider();
811});
812jQuery(window).on("resize", function () {
813  photoSlider();
814});

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.