PageSourceSearch

https://www.wampexwestafrica.com/wp-content/themes/dmg-hs-new-theme/assets/js/main.min.js?ver=31

js wampexwestafrica.com collected 2026-10-06 19:03:24 UTC 17,313 bytes, 492 lines download raw bytes

1
2
3
4function bannerHeight() {
5  var hederheight = document.querySelector("header").offsetHeight;
6  var statitics = document.querySelector(".statistics-section");
7  var feaheight = document.querySelector(".featured-message");
8  var TotalMiscHeight = 0;
9  if (statitics) {
10    TotalMiscHeight += statitics.offsetHeight;
11  }
12  if (feaheight) {
13    TotalMiscHeight += feaheight.offsetHeight;
14  }
15  TotalMiscHeight += hederheight;
16  var bannerHeight = jQuery(window).height() - TotalMiscHeight;
17  
18  jQuery(".full-height .banner-wrap,.banner-section.embedded-yt-video , .banner-section.banner-with-sideimg").css(
19    "min-height",
20    bannerHeight + 1
21  );
22  
23  jQuery(".full-height .bg-img-inner").css("min-height", bannerHeight + 1);
24
25}
26window.onload = function() {
27  bannerHeight();
28  
29};
30document.addEventListener("DOMContentLoaded", function () {
31  // Code to be executed when the DOM is fully loaded
32  bannerHeight();
33
34});
35
36window.addEventListener("resize", function () {
37  // Code to be executed when the window is resized
38  bannerHeight();
39 
40});
41
42
43
44
45
46function setBannerPatternHeight() {
47  document.addEventListener("DOMContentLoaded", function() {
48    var header = document.querySelector("header");
49    var statistics = document.querySelector(".statistics-section");
50    var featuredMessage = document.querySelector(".featured-message");
51    var bannerContent = document.querySelector(".banner-content");
52    
53    var headerHeight = header ? header.offsetHeight : 0;
54    var bannerTextHeight = bannerContent ? bannerContent.offsetHeight : 0;
55    var totalMiscHeight = headerHeight;
56
57    if (statistics) {
58      totalMiscHeight += statistics.offsetHeight;
59    }
60    if (featuredMessage) {
61      totalMiscHeight += featuredMessage.offsetHeight;
62    }
63
64    var bannerHeight = window.innerHeight - totalMiscHeight;
65
66    var bannerPatternImg = document.querySelector(".banner-pattern img");
67    if (bannerPatternImg) {
68      bannerPatternImg.style.maxHeight = (bannerHeight - (bannerTextHeight + 20)) + "px";
69      bannerPatternImg.style.width = "auto";
70    }
71  });
72}
73
74// Check viewport width and apply height adjustment if less than 1024 pixels
75if (jQuery(window).width() < 1024) {
76  setBannerPatternHeight(); // Call the function to set height initially
77
78  // Listen for window resize events and adjust height accordingly
79  jQuery(window).resize(function() {
80      if (jQuery(window).width() < 1024) {
81          setBannerPatternHeight();
82      } else {
83          // Reset the height if viewport width is 1024 pixels or more
84          jQuery(".banner-pattern img").css("min-height", ""); // Reset to default
85          jQuery(".banner-pattern img").css("width", ""); // Reset to default
86      }
87  });
88}
89
90
91
92
93function main_padding() {
94  jQuery("html").css("cssText", "margin-top: 0px !important;");
95  var e = jQuery("header").outerHeight();
96  jQuery(".inner-page .fixed-sidebar").css("top", e),
97    jQuery("main").css("margin-top", e),
98    jQuery(".navigation-wrap").css("padding-top", e);
99}
100
101function statisticsSlider() {
102  jQuery(window).width() < 768
103    ? jQueryslickStatistics ||
104      (jQuery(".statistics-box").length > 1 &&
105        jQuery(".statistics-content").slick({
106          dots: false,
107          infinite: !0,
108          speed: 500,
109          slidesToShow: 1,
110          slidesToScroll: 1,
111          autoplay: !0,
112          autoplaySpeed: 2500,
113          arrows: true,
114          prevArrow: '<button type="button" class="slick-prev"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"> <style type="text/css"> .st0{fill:#FFFFFF;} </style> <g> <path class="st0" d="M423.9,510.9c5.3,0,10.4,0.1,13.6-5.3c3.2-5.5,0.2-9.8-2.5-14.3c-48.1-76.4-96.2-152.9-144.5-229.3 c-2.8-4.4-3-7.3-0.2-11.8c48.3-76.3,96.5-152.8,144.5-229.3c2-3.2,4.2-7.6,3.6-11c-0.6-3.1-4.5-6.1-7.6-8.1c-2-1.3-5.2-0.7-7.9-0.7 c-60,0-120,0.1-179.9-0.2c-8.3,0-13.6,2.6-18.1,9.8c-49.3,78.9-98.9,157.6-148.6,236.3c-4,6.3-4.1,11.5-0.1,17.9 c50,79.2,99.9,158.6,149.7,238c3.6,5.8,8.1,8.2,14.9,8.1c30.8-0.2,61.6-0.1,92.3-0.1C363.3,510.9,393.6,510.9,423.9,510.9z"/> </g> </svg></button>', // SVG for previous arrow
115        nextArrow: '<button type="button" class="slick-next"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"> <style type="text/css"> .st0{fill:#FFFFFF;} </style> <g> <path class="st0" d="M179,510.9c30.8,0,61.6-0.1,92.3,0.1c6.8,0.1,11.2-2.3,14.9-8.1c49.8-79.4,99.6-158.7,149.7-238 c4-6.4,4-11.5-0.1-17.9c-49.7-78.7-99.3-157.4-148.6-236.3c-4.5-7.2-9.8-9.8-18.1-9.8c-60,0.3-120,0.1-179.9,0.2 c-2.7,0-5.9-0.6-7.9,0.7c-3.1,2-7,5-7.6,8.1c-0.6,3.3,1.5,7.7,3.6,11c48,76.5,96.2,153,144.5,229.3c2.9,4.6,2.6,7.5-0.2,11.8 C173.3,338.4,125.2,414.9,77,491.3c-2.8,4.4-5.7,8.8-2.5,
11514.3c3.1,5.4,8.3,5.3,13.6,5.3C118.4,510.9,148.7,510.9,179,510.9z"/> </g> </svg> </button>', // SVG for next arrow
116        }),
117      (jQueryslickStatistics = !0))
118    : jQuery(window).width() > 767 &&
119      jQueryslickStatistics &&
120      (jQuery(".statistics-content").slick("unslick"),
121      (jQueryslickStatistics = !1));
122}
123
124function speakerSlider() {
125  // console.log('working');
126  // jQuery(window).width() < 768
127  //   ? jQueryslickSpeaker ||
128  //     (jQuery(".speaker-wrap .speaker-box").length > 1 &&
129  //       jQuery(".speaker-wrap").slick({
130  //         dots: !1,
131  //          //infinite: !0,
132  //         speed: 500,
133  //         slidesToShow: 1,
134  //         slidesToScroll: 1,
135  //         autoplay: !0,
136  //         autoplaySpeed: 2500,
137  //         arrows: !0,
138  //       }),
139  //     (jQueryslickSpeaker = !0))
140  //   : jQuery(window).width() > 767 &&
141  //     jQueryslickSpeaker &&
142  //     (jQuery(".speaker-wrap").slick("unslick"), (jQueryslickSpeaker = !1));
143}
144
145jQuery(document).ready(function () {
146  var e;
147
148  jQuery(".nav-ovrlay").on("click", function () {
149    jQuery(this).hasClass("menu-wrapper-on")
150      ? jQuery(this).removeClass("menu-wrapper-on")
151      : jQuery(this).addClass("menu-wrapper-on"),
152      jQuery(".menu-btn").hasClass("menu-btn-on")
153        ? jQuery(".menu-btn").removeClass("menu-btn-on")
154        : jQuery(".menu-btn").addClass("menu-btn-on"),
155      jQuery(".navigation-wrap").toggleClass("open"),
156      jQuery("body").toggleClass("body-hidden");
157  });
158  jQuery(".nav_close-inner").on("click", function () {
159    jQuery(this).hasClass("menu-wrapper-on")
160      ? jQuery(this).removeClass("menu-wrapper-on")
161      : jQuery(this).addClass("menu-wrapper-on"),
162      jQuery(".menu-btn").hasClass("menu-btn-on")
163        ? jQuery(".menu-btn").removeClass("menu-btn-on")
164        : jQuery(".menu-btn").addClass("menu-btn-on"),
165      jQuery(".navigation-wrap").toggleClass("open"),
166      jQuery("body").toggleClass("body-hidden");
167  });
168  jQuery(".menu-wrapper").on("click", function () {
169    jQuery(this).hasClass("menu-wrapper-on")
170      ? jQuery(this).removeClass("menu-wrapper-on")
171      : jQuery(this).addClass("menu-wrapper-on"),
172      jQuery(".menu-btn").hasClass("menu-btn-on")
173        ? jQuery(".menu-btn").removeClass("menu-btn-on")
174        : jQuery(".menu-btn").addClass("menu-btn-on"),
175      jQuery(".navigation-wrap").toggleClass("open"),
176      jQuery("body").toggleClass("body-hidden");
177    // }), jQuery(".menu-item-has-children").mouseover(function () {
178    //     jQuery(this).find(".sub-menu").addClass("open"), jQuery(this).addClass("open")
179    // }), jQuery(".menu-item-has-children").mouseleave(function () {
180    //     jQuery(this).find(".sub-menu").removeClass("open"), jQuery(this).removeClass("open")
181  });
182  const items = document.querySelectorAll(".menu-item .for-mobile");
183  const itemsitem = document.querySelector(".menu-item");
184  const submenuAll = document.querySelectorAll(".sub-menu");
185  const menuwrapper = document.querySelector(".menu-wrapper");
186  const menuitemall = document.querySelectorAll(".menu-item");
187  items.forEach((item) => {
188    item.addEventListener("click", () => {
189      // console.log("clicked")
190      if (item.closest("li").classList.contains("open")) {
191        item.closest("li").classList.remove("open");
192        const submenu = item.closest("li").querySelector("ul");
193
194        submenu.classList.remove("open");
195      } else {
196        for (menuitemallArray of menuitemall) {
197          menuitemallArray.classList.remove("open");
198        }
199        item.closest("li").classList.add("open");
200        const submenu = item.closest("li").querySelector("ul");
201        for (submenuAllArray of submenuAll) {
202          submenuAllArray.classList.remove("open");
203        }
204        submenu.classList.add("open");
205      }
206      // console.log(submenu);
207    });
208
209    menuwrapper.addEventListener("click", () => {
210      item.closest("li").classList.remove("open");
211      const submenu = item.closest("li").querySelector("ul");
212
213      submenu.classList.remove("open");
214    });
215  });
216
217  var s = 0,
218    o = jQuery("header").outerHeight();
219  jQuery(window).scroll(function (s) {
220    e = !0;
221  }),
222    setInterval(function () {
223      e &&
224        ((function () {
225          var e = jQuery(this).scrollTop();
226          Math.abs(s - e) <= 5 ||
227            (e > s && e >= o
228              ? jQuery("header").removeClass("nav-down").addClass("nav-up")
229              : e + jQuery(window).height() <= jQuery(document).height() &&
230                jQuery("header").removeClass("nav-up").addClass("nav-down"),
231            (s = e));
232        })(),
233        (e = !1));
234    }, 250),
235    jQuery(window).scroll(function () {
236      jQuery(window).scrollTop() > o
237        ? jQuery("body").addClass("scrolled")
238        : jQuery("body").removeClass("scrolled");
239    }),
240    jQuery(".search-icon").click(function () {
241      jQuery(".search-form-header").show(),
242        jQuery(".search-form-header .form-group input").focus();
243    }),
244    jQuery(".close-icon").click(function () {
245      jQuery(".search-form-header").hide(),
246        jQuery(".search-form-header .form-group input").val("");
247    });
248}),
249  (jQueryslickStatistics = !1),
250  (jQueryslickSpeaker = !1),
251  jQuery(document).ready(function () {
252    main_padding(), statisticsSlider(), speakerSlider();
253    var e = !0;
254    jQuery(".co-located-head").click(function () {
255      jQuery(".co-located-wrap").toggleClass("open"), (e = !1);
256    }),
257      jQuery(".co-located-wrap").click(function () {
258        e = !1;
259      }),
260      jQuery("html").click(function () {
261        e && jQuery(".co-located-wrap").removeClass("open"), (e = !0);
262      }),
263      jQuery(".media-partners .sponsor-boxSingle").length > 2 &&
264        jQuery(".media-partners").slick({
265          dots: !0,
266          speed: 500,
267          slidesToShow: 5,
268          slidesToScroll: 5,
269          autoplay: !0,
270          autoplaySpeed: 3e3,
271          arrows: !1,
272          responsive: [
273            {
274              breakpoint: 1200,
275              settings: {
276                slidesToShow: 5,
277                slidesToScroll: 2,
278              },
279            },
280            {
281              breakpoint: 992,
282              settings: {
283                slidesToShow: 3,
284                slidesToScroll: 2,
285              },
286            },
287            {
288              breakpoint: 577,
289              settings: {
290                dots: !1,
291                arrows: !0,
292                slidesToShow: 2,
293                slidesToScroll: 1,
294              },
295            },
296            {
297              breakpoint: 350,
298              settings: {
299                dots: !1,
300                arrows: !0,
301                slidesToShow: 1,
302                slidesToScroll: 1,
303              },
304            },
305          ],
306        }),
307      jQuery(".promotion-wrap a").length > 1 &&
308        jQuery(".promotion-wrap").slick({
309          dots: !1,
310          infinite: !0,
311          speed: 500,
312          slidesToShow: 1,
313          slidesToScroll: 1,
314          autoplay: !0,
315          autoplaySpeed: 2500,
316          arrows: !1,
317          fade: !0,
318        }),
319      jQuery(".acc-open").click(function () {
320        jQuery(this).parent().find(".agenda-content").toggleClass("active"),
321          jQuery(this).toggleClass("open");
322      }),
323      GLightbox({
324        loop: !0,
325        selector: "to-pop",
326      }),
327      GLightbox({
328        loop: !0,
329        selector: "gallery-pop",
330      }),
331      jQuery(".agenda-slider-box").length > 1 &&
332        jQuery(".agenda-wrap").slick({
333          dots: !1,
334          infinite: !0,
335          speed: 500,
336          slidesToShow: 1,
337          slidesToScroll: 1,
338          autoplay: !0,
339          autoplaySpeed: 2500,
340          arrows: !0,
341        }),
342      jQuery(".session-box").length > 3 &&
343        jQuery(".session-box-wrap").slick({
344          dots: !0,
345          infinite: !1,
346          speed: 500,
347          slidesToShow: 3,
348          slidesToScroll: 1,
349          autoplay: !0,
350          autoplaySpeed: 3e3,
351          arrows: !1,
352          responsive: [
353            {
354              breakpoint: 1366,
355              settings: {
356                slidesToShow: 2,
357              },
358            },
359            {
360              breakpoint: 992,
361              settings: {
362                slidesToShow: 1,
363              },
364            },
365            {
366              breakpoint: 577,
367              settings: {
368                slidesToShow: 1,
369              },
370            },
371          ],
372        }),
373      jQuery(".header-logo-item").length > 1 &&
374        jQuery(".header-logo-slider").slick({
375          dots: !1,
376          infinite: true,
377          speed: 500,
378          slidesToShow: 1,
379          slidesToScroll: 1,
380          autoplay: true,
381          autoplaySpeed: 3e3,
382          arrows: !1,
383        }),
384      jQuery(".logo-slider-wrap .logo-wrap").each(function () {
385        jQuery(this).find("a").length > 1 &&
386          jQuery(this).find(".category").slick({
387            dots: !1,
388            infinite: !0,
389            speed: 500,
390            slidesToShow: 1,
391            slidesToScroll: 1,
392            autoplay: !0,
393            autoplaySpeed: 2500,
394            arrows: !1,
395          });
396      }),
397      jQuery(".logo-slide_sponsor")
398        .not(".slick-initialized")
399        .slick({
400          dots: !1,
401          infinite: !1,
402          arrows: false,
403          speed: 300,
404          autoplay: true,
405          autoplaySpeed: 5e3,
406          slidesToShow: 1,
407          slidesToScroll: 1,
408          responsive: [
409            {
410              breakpoint: 768,
411              settings: {
412                arrows: false,
413              },
414            },
415          ],
416        });
417  }),
418  jQuery(window).on("resize", function () {
419    main_padding(), statisticsSlider(), speakerSlider();
420  }),
421  jQuery(window).on("resize", function () {
422    jQuery(".mc-four-col-grid").each(function () {
423      var e = jQuery(this).find(".primary-btn").outerHeight();
424      jQuery(this).find(".content").css("padding-bottom", e);
425    });
426  }),
427  jQuery(document).ready(function () {
428    jQuery(window).trigger("resize");
429  }),
430  jQuery(document).ready(function () {
431    var e = jQuery(".scroll-to-top");
432    jQuery(window).scroll(function () {
433      jQuery(window).scrollTop() > 0
434        ? e.addClass("show")
435        : e.removeClass("show");
436    }),
437      e.on("click", function (e) {
438        e.preventDefault(),
439          jQuery("html, body").animate(
440            {
441              scrollTop: 0,
442            },
443            "300"
444          );
445      });
446  });
447
448jQuery(document).ready(function () {
449  function activateTab(tabLinks, tabContents) {
450    tabLinks.click(function () {
451      const tabId = jQuery(this).data("tab");
452
453      tabContents.removeClass("active");
454      tabLinks.removeClass("active");
455      jQuery(this).addClass("active");
456
457      const selectedTabContent = jQuery(`[data-tab-content="${tabId}"]`);
458      selectedTabContent.addClass("active");
459    });
460  }
461
462  // News tab
463  const newsTabs = jQuery(".news-link");
464  const newsContents = jQuery(".news-tab-content");
465
466  activateTab(newsTabs, newsContents);
467});
468
469
470// speaker popup js starts
471const buttonSpeaker = document.querySelectorAll('.speaker__popup--click');
472const popupSpeaker = document.querySelector('.speaker__popup');
473const closeButtonSpeaker = document.querySelector('.speaker__popup--close');
474
475if (popupSpeaker) {
476    // Loop through all the buttonSpeaker elements
477    buttonSpeaker.forEach(function(button) {
478        button.addEventListener('click', function (event) {
479            event.preventDefault();
480            popupSpeaker.classList.toggle('active');
481        });
482    });
483
484    // Close the popup when the close button is clicked
485    if (closeButtonSpeaker) {
486        closeButtonSpeaker.addEventListener('click', function (event) {
487            popupSpeaker.classList.remove('active');
488        });
489    }
490}
491// speaker popup js ends
492

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.