PageSourceSearch

https://www.acteonline.org/wp-content/themes/acte/assets/js/theme.js?time=1790845194

js acteonline.org collected 2026-10-01 09:15:56 UTC 26,087 bytes, 827 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    jQuery(
189      ".get-involved .image-area img"
190    ).removeClass("active");
191
192    jQuery(
193      ".get-involved .image-area img:eq(" +
194        order +
195        ")"
196    ).addClass("active");
197  });
198
199  jQuery(
200    "header .content-area .navbar .container-fluid .menu-top .search-top img"
201  ).on("click", function (e) {
202    e.preventDefault();
203    jQuery(
204      "header .content-area .navbar .container-fluid .menu-top .search-top"
205    ).toggleClass("active");
206
207    setTimeout(function () {
208      if (
209        jQuery(
210          "header .content-area .navbar .container-fluid .menu-top .search-top input"
211        ).val() == ""
212      ) {
213        jQuery(
214          "header .content-area .navbar .container-fluid .menu-top .search-top"
215        ).removeClass("active");
216      }
217    }, 5000);
218  });
219
220  jQuery(
221    "header .content-area .navbar .container-fluid .navbar-collapse .navbar-nav .nav-item.has-megamenu .nav-link"
222  ).on("click", function (e) {
223    e.preventDefault();
224    jQuery(this).toggleClass("active");
225    jQuery(this).siblings(".megamenu").toggleClass("active");
226  });
227
228  // ===========================
229  // ===========================
230  // ===========================
231  // ===========================
232  // ===========================
233  // ===========================
234  // ===========================
235  // ===========================
236  // ===========================
237  // ===========================
238  // ===========================
239  // ===========================
240
241  if (document.querySelector(".news-insights .news-slider")) {
242    jQuery(".news-insights .news-slider").slick({
243      infinite: true,
244      dots: false,
245      nav: false,
246      arrows: true,
247      speed: 300,
248      slidesToShow: 1,
249      autoplay: true,
250      autoplaySpeed: 5000,
251      useTransform: false,
252    });
253    function triggerScroll(targetObj) {
254      let targetName = targetObj.attr("class"); //for console.log
255      let targetFlag = false;
256      let scrollTop = jQuery(window).scrollTop();
257      let scrollBottom = scrollTop + jQuery(window).height();
258      let targetTop = targetObj.offset().top;
259      let targetBottom = targetTop + targetObj.height(); // while loading
260      if (scrollBottom > targetTop && scrollTop < targetBottom) {
261        if (!targetFlag) {
262          console.log(targetName + " is in sight"); //for console.log
263          targetObj.slick("slickPlay");
264          targetFlag = true;
265        }
266      } else {
267        console.log(targetName + " is not in sight"); //for console.log
268        targetObj.slick("slickPause");
269        targetFlag = false;
270      }
271
272      jQuery(window).on("scroll", function () {
273        scrollTop = jQuery(window).scrollTop();
274        scrollBottom = scrollTop + jQuery(window).height();
275        targetTop = targetObj.offset().top;
276        targetBottom = targetTop + targetObj.height();
277        if (scrollBottom > targetTop && scrollTop < targetBottom) {
278          // Start autoplay when entering the viewport
279          if (!targetFlag) {
280            console.log(targetName + " is in sight"); //確認用
281            targetObj.slick("slickPlay");
282            targetFlag = true;
283          }
284        } else {
285          // Stop autoplay when you get out of the viewport
286          if (targetFlag) {
287            console.log(targetName + " is not in sight"); //for console.log
288            targetObj.slick("slickPause");
289            targetFlag = false;
290          }
291        }
292      });
293    }
294    // Execute function
295    triggerScroll(jQuery(".news-insights .news-slider"));
296  }
297
298  jQuery(".firm-history-slider").slick({
299    infinite: false,
300    dots: false,
301    nav: false,
302    arrows: true,
303    speed: 300,
304    slidesToShow: 4,
305    autoplay: false,
306    // autoplaySpeed: 5000,
307    useTransform: false,
308    variableWidth: true,
309    responsive: [
310      {
311        breakpoint: 1300,
312        settings: {
313          slidesToShow: 3,
314          variableWidth: false,
315        },
316      },
317      {
318        breakpoint: 768,
319        settings: {
320          slidesToShow: 1,
321          variableWidth: false,
322        },
323      },
324    ],
325  });
326
327  const modals = document.querySelectorAll(".modal");
328  modals.forEach((modal) => {
329    let currentModal = bootstrap.Modal.getInstance(modal);
330    if (currentModal) currentModal.hide();
331  });
332
333  // jQuery(
334  //   ".contact-us-form-section .content-area .contact-us-container .contact-select .filter-box .select-items div"
335  // ).on("click", function () {
336  //   var order = jQuery(this).index();
337  //   console.log("asdf");
338  //   jQuery(
339  //     ".contact-us-form-section .content-area .contact-us-container .tab-content .tab-pane"
340  //   ).removeClass("show active");
341
342  //   jQuery(
343  //     ".contact-us-form-section .content-area .contact-us-container .tab-content .tab-pane:eq(" +
344  //       order +
345  //       ")"
346  //   ).addClass("show active");
347  // });
348
349  // ===============================================
350  // ===============================================
351  // ===============================================
352  // ===============================================
353  // ===============================================
354  // ===============================================
355  // ===============================================
356  // ===============================================
357  // ===============================================
358  // ===============================================
359  // ===============================================
360  // ===============================================
361  // ===============================================
362
363  if (document.querySelector(".testimonial-slider-area")) {
364    jQuery(".testimonial-slider-area").slick({
365      infinite: true,
366      dots: false,
367      nav: false,
368      arrows: true,
369      speed: 300,
370      slidesToShow: 1,
371      autoplay: true,
372      autoplaySpeed: 5000,
373      useTransform: false,
374    });
375    function triggerScroll(targetObj) {
376      let targetName = targetObj.attr("class"); //for console.log
377      let targetFlag = false;
378      let scrollTop = jQuery(window).scrollTop();
379      let scrollBottom = scrollTop + jQuery(window).height();
380      let targetTop = targetObj.offset().top;
381      let targetBottom = targetTop + targetObj.height(); // while loading
382      if (scrollBottom > targetTop && scrollTop < targetBottom) {
383        if (!targetFlag) {
384          console.log(targetName + " is in sight"); //for console.log
385          targetObj.slick("slickPlay");
386          targetFlag = true;
387        }
388      } else {
389        console.log(targetName + " is not in sight"); //for console.log
390        targetObj.slick("slickPause");
391        targetFlag = false;
392      }
393
394      jQuery(window).on("scroll", function () {
395        scrollTop = jQuery(window).scrollTop();
396        scrollBottom = scrollTop + jQuery(window).height();
397        targetTop = targetObj.offset().top;
398        targetBottom = targetTop + targetObj.height();
399        if (scrollBottom > targetTop && scrollTop < targetBottom) {
400          // Start autoplay when entering the viewport
401          if (!targetFlag) {
402            console.log(targetName + " is in sight"); //確認用
403            targetObj.slick("slickPlay");
404            targetFlag = true;
405          }
406        } else {
407          // Stop autoplay when you get out of the viewport
408          if (targetFlag) {
409            console.log(targetName + " is not in sight"); //for console.log
410            targetObj.slick("slickPause");
411            targetFlag = false;
412          }
413        }
414      });
415    }
416    // Execute function
417    triggerScroll(jQuery(".testimonial-slider-area"));
418  }
419
420  // if (document.querySelector(".video_bg_sliders")) {
421  //   jQuery(".video_bg_sliders").slick({
422  //     infinite: true,
423  //     dots: true,
424  //     nav: false,
425  //     arrows: false,
426  //     slidesToShow: 1,
427  //     autoplay: false,
428  //   });
429
430  //   jQuery(".video_bg_sliders").on(
431  //     "afterChange",
432  //     function (event, slick, currentSlide, nextSlide) {
433  //       jQuery(
434  //         `.home_banner .content_area .text_area .slider_tab .tab_title[data-index=${currentSlide}]`
435  //       ).trigger("click");
436  //       console.log(currentSlide);
437  //     }
438  //   );
439  //   function triggerScroll(targetObj) {
440  //     let targetName = targetObj.attr("class"); //for console.log
441  //     let targetFlag = false;
442  //     let scrollTop = jQuery(window).scrollTop();
443  //     let scrollBottom = scrollTop + jQuery(window).height();
444  //     let targetTop = targetObj.offset().top;
445  //     let targetBottom = targetTop + targetObj.height(); // while loading
446  //     if (scrollBottom > targetTop && scrollTop < targetBottom) {
447  //       if (!targetFlag) {
448  //         console.log(targetName + " is in sight"); //for console.log
449  //         targetObj.slick("slickPlay");
450  //         targetFlag = true;
451  //       }
452  //     } else {
453  //       console.log(targetName + " is not in sight"); //for console.log
454  //       targetObj.slick("slickPause");
455  //       targetFlag = false;
456  //     }
457
458  //     jQuery(window).on("scroll", function () {
459  //       scrollTop = jQuery(window).scrollTop();
460  //       scrollBottom = scrollTop + jQuery(window).height();
461  //       targetTop = targetObj.offset().top;
462  //       targetBottom = targetTop + targetObj.height();
463  //       if (scrollBottom > targetTop && scrollTop < targetBottom) {
464  //         // Start autoplay when entering the viewport
465  //         if (!targetFlag) {
466  //           console.log(targetName + " is in sight"); //確認用
467  //           targetObj.slick("slickPlay");
468  //           targetFlag = true;
469  //         }
470  //       } else {
471  //         // Stop autoplay when you get out of the viewport
472  //         if (targetFlag) {
473  //           console.log(targetName + " is not in sight"); //for console.log
474  //           targetObj.slick("slickPause");
475  //           targetFlag = false;
476  //         }
477  //       }
478  //     });
479  //   }
480  //   // Execute function
481  //   // triggerScroll(jQuery(".video_bg_sliders"));
482  // }
483
484  jQuery(function () {
485    let url = window.location.pathname.split("/").pop();
486
487    // Add active nav class based on url
488    jQuery(
489      "header .content-area .navbar .navbar-collapse .navbar-nav .nav-item .nav-link"
490    ).each(function () {
491      if (
492        jQuery(this).attr("href") == url ||
493        jQuery(this).attr("href") == "" ||
494        jQuery(this)
495          .siblings(".dropdown-menu")
496          .children("li")
497          .children(".dropdown-item")
498          .attr("href") == url
499      ) {
500        jQuery(this)
501          .closest(".content-area .navbar-nav .nav-item .nav-link")
502          .addClass("active");
503      }
504    });
505
506    jQuery("footer .footer-box .footer-column ul li a").each(function () {
507      if (
508        jQuery(this).attr("href") == url ||
509        jQuery(this).attr("href") == "  "
510      ) {
511        jQuery(this).addClass("active");
512      }
513    });
514  });
515
516  jQuery("#numberOnly").on("input blur paste", function () {
517    jQuery(this).val(jQuery(this).val().replace(/\D/g, ""));
518  });
519
520  // if (window.outerWidth < 1200) {
521  //   jQuery("header .navbar-toggler").click(function () {
522  //     if (jQuery("body").hasClass("scroll-lock")) {
523  //       jQuery("body").removeClass("scroll-lock");
524  //     } else {
525  //       jQuery("body").addClass("scroll-lock");
526  //     }
527  //   });
528  // }
529
530  jQuery(".side-navbar .navbar-toggle").click(function () {
531    // jQuery("body").addClass("scroll-lock");
532    jQuery(".mega-menu").addClass("active");
533  });
534  jQuery(".mobile-navbar .mobile-navbar-toggle").click(function () {
535    // jQuery("body").addClass("scroll-lock");
536    jQuery(".mega-menu").addClass("active");
537  });
538  jQuery(".close-megamenu").click(function () {
539    // jQuery("body").removeClass("scroll-lock");
540    jQuery(".mega-menu").removeClass("active");
541  });
542
543  var x, i, j, l, ll, selElmnt, a, b, c;
544  /* Look for any elements with the class "custom-select": */
545  x = document.getElementsByClassName("custom-select");
546  l = x.length;
547  for (i = 0; i < l; i++) {
548    selElmnt = x[i].getElementsByTagName("select")[0];
549    ll = selElmnt.length;
550    /* For each element, create a new DIV that will act as the selected item: */
551    a = document.createElement("DIV");
552    a.setAttribute("class", "select-selected");
553    a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML;
554    x[i].appendChild(a);
555    /* For each element, create a new DIV that will contain the option list: */
556    b = document.createElement("DIV");
557    b.setAttribute("class", "select-items select-hide");
558    for (j = 1; j < ll; j++) {
559      /* For each option in the original select element,
560      create a new DIV that will act as an option item: */
561      c = document.createElement("DIV");
562      c.setAttribute('data-value', selElmnt.options[j].value);
563      c.innerHTML = selElmnt.options[j].innerHTML;
564      c.addEventListener("click", function (e) {
565        /* When an item is clicked, update the original select box,
566        and the selected item: */
567        var y, i, k, s, h, sl, yl;
568        s = this.parentNode.parentNode.getElementsByTagName("select")[0];
569        sl = s.length;
570        h = this.parentNode.previousSibling;
571        for (i = 0; i < sl; i++) {
572          if (s.options[i].innerHTML == this.innerHTML) {
573            s.selectedIndex = i;
574            h.innerHTML = this.innerHTML;
575            y = this.parentNode.getElementsByClassName("same-as-selected");
576            yl = y.length;
577            for (k = 0; k < yl; k++) {
578              y[k].removeAttribute("class");
579            }
580            this.setAttribute("class", "same-as-selected");
581            break;
582          }
583        }
584        h.click();
585        jQuery(".filter-reset-button").removeClass("invisible");
586        jQuery(".reset-filter-box").removeClass("invisible");
587      });
588      b.appendChild(c);
589    }
590    x[i].appendChild(b);
591    a.addEventListener("click", function (e) {
592      /* When the select box is clicked, close any other select boxes,
593      and open/close the current select box: */
594      e.stopPropagation();
595      closeAllSelect(this);
596      this.nextSibling.classList.toggle("select-hide");
597      this.classList.toggle("select-arrow-active");
598    });
599  }
600
601  function closeAllSelect(elmnt) {
602    /* A function that will close all select boxes in the document,
603    except the current select box: */
604    var x,
605      y,
606      i,
607      xl,
608      yl,
609      arrNo = [];
610    x = document.getElementsByClassName("select-items");
611    y = document.getElementsByClassName("select-selected");
612    xl = x.length;
613    yl = y.length;
614    for (i = 0; i < yl; i++) {
615      if (elmnt == y[i]) {
616        arrNo.push(i);
617      } else {
618        y[i].classList.remove("select-arrow-active");
619      }
620    }
621    for (i = 0; i < xl; i++) {
622      if (arrNo.indexOf(i)) {
623        x[i].classList.add("select-hide");
624      }
625    }
626  }
627
628  /* If the user clicks anywhere outside the select box,
629  then close all select boxes: */
630  document.addEventListener("click", closeAllSelect);
631
632  jQuery(".filter-reset-button").click(function () {
633    jQuery(this).addClass("invisible");
634    jQuery(".select-selected").each(function () {
635      var text = jQuery(this)
636        .siblings(".form-select")
637        .children("option:first-child()")
638        .text();
639      console.log(text);
640      jQuery(this).text(text);
641    });
642    jQuery(".select-items div").removeClass();
643  });
644
645  jQuery(".mobile-filter .filter-toggle").click(function () {
646    // if (jQuery("body").hasClass("scroll-lock")) {
647    //   jQuery("body").removeClass("scroll-lock");
648    //   jQuery("header").removeClass("invisible");
649    // } else {
650    //   setTimeout(() => {
651    //     jQuery("body").addClass("scroll-lock");
652    //   }, "400");
653    //   jQuery("header").addClass("invisible");
654    // }
655    if (jQuery("header").hasClass("invisible")) {
656      jQuery("header").removeClass("invisible");
657    } else {
658      jQuery("header").addClass("invisible");
659    }
660    jQuery(this).parent().siblings(".filter-box-container").addClass("active");
661  });
662  jQuery(".filter-box-apply").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  jQuery(".close-filter-box").click(function () {
674    jQuery(this).parent().removeClass("active");
675    jQuery("body").removeClass("scroll-lock");
676    jQuery("header").removeClass("invisible");
677    // jQuery("html, body").animate(
678    //   {
679    //     scrollTop: jQuery(".mobile-filter").offset().top - 0,
680    //   },
681    //   50
682    // );
683  });
684
685  // jQuery(".how-we-help-box").click(function () {
686  //   jQuery(this).toggleClass("active");
687  // });
688
689  jQuery(function () {
690    jQuery(
691      ".perspectives-insights-archive .content-area .archives-boxes .archive-box"
692    )
693      .slice(0, 12)
694      .show();
695    jQuery(
696      ".perspectives-insights-archive .content-area .archive-load-more .btn"
697    ).on("click", function (e) {
698      e.preventDefault();
699      jQuery(
700        ".perspectives-insights-archive .content-area .archives-boxes .archive-box:hidden"
701      )
702        .slice(0, 12)
703        .slideDown();
704      if (
705        jQuery(
706          ".perspectives-insights-archive .content-area .archives-boxes .archive-box:hidden"
707        ).length == 0
708      ) {
709        jQuery(
710          ".perspectives-insights-archive .content-area .archive-load-more .btn"
711        ).fadeOut("slow");
712      }
713    });
714  });
715
716  jQuery(".filter-box .filter-selector").on("click", function (e) {
717    jQuery(this)
718      .parent()
719      .siblings()
720      .children(".filter-selector")
721      .addClass("collapsed");
722    jQuery(this)
723      .parent()
724      .siblings()
725      .children(".filter-check")
726      .addClass("collapsed");
727    jQuery(this)
728      .parent()
729      .siblings()
730      .children(".filter-check")
731      .removeClass("show");
732  });
733
734  if(jQuery('.rellax').length) {
735    var rellax = new Rellax(".rellax", {
736      horizontal: true,
737    });
738  }
739
740  jQuery("#comp-upload-pitch").on("change", function () {
741    jQuery(this).addClass("uploaded");
742  });
743
744  (function () {
745    "use strict";
746
747    var section = document.querySelectorAll(".fullwidth-section");
748    var sections = {};
749    var i = 0;
750    var sectionHeight = jQuery(section).height() + 118 - 118;
751
752    Array.prototype.forEach.call(section, function (e) {
753      sections[e.id] = e.offsetTop + sectionHeight;
754    });
755
756    window.onscroll = function () {
757      var scrollPosition =
758        document.documentElement.scrollTop || document.body.scrollTop;
759      for (i in sections) {
760        if (sections[i] <= scrollPosition) {
761          jQuery("header").addClass("white-border");
762        } else {
763          jQuery("header").removeClass("white-border");
764        }
765      }
766    };
767  })();
768
769  var html_height = jQuery(document).height();
770  var mb_scaled = -0.2 * html_height;
771  jQuery("body").css("margin-bottom", mb_scaled);
772
773  jQuery(
774    ".contact-us-form-section .content-area .contact-us-container .contact-select .filter-box .select-items div"
775  ).on("click", function () {
776    var order = jQuery(this).index();
777    jQuery(
778      ".contact-us-form-section .content-area .contact-us-container .tab-content .tab-pane"
779    ).removeClass("show active");
780    jQuery(
781      ".contact-us-form-section .content-area .contact-us-container .tab-content .tab-pane:eq(" +
782        order +
783        ")"
784    ).addClass("show active");
785  });
786
787  AOS.refresh();
788});
789
790// jQuery(window).on("resize", function () {
791//   var html_height = jQuery(document).height();
792//   var mb_scaled = -0.2 * html_height;
793//   jQuery("body").css("margin-bottom", mb_scaled);
794// });
795
796jQueryslickPhoto = false;
797function photoSlider() {
798  if (jQuery(window).width() < 767) {
799    if (!jQueryslickPhoto) {
800      jQuery(".photos .photo-boxes").slick({
801        infinite: true,
802        dots: false,
803        nav: false,
804        arrows: true,
805        speed: 300,
806        slidesToShow: 1,
807        autoplay: true,
808        pauseOnHover: false,
809        autoplaySpeed: 5000,
810        useTransform: false,
811      });
812      jQueryslickPhoto = true;
813    }
814  } else if (jQuery(window).width() > 768) {
815    if (jQueryslickPhoto) {
816      jQuery(".photos .photo-boxes").slick("unslick");
817      jQueryslickPhoto = false;
818    }
819  }
820}
821
822jQuery(document).ready(function () {
823  photoSlider();
824});
825jQuery(window).on("resize", function () {
826  photoSlider();
827});

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.