PageSourceSearch

https://www.mamedcomms.com/scripts/site.js?rnd=2026-10-10%2000:34:09

js mamedcomms.com collected 2026-10-10 00:34:18 UTC 13,537 bytes, 501 lines download raw bytes

1//HEADER�
2�
3$("header .dropdown-menu a.nav-link").on("click", function (e) {�
4    $("header .navbar .navbar-collapse").removeClass("show");�
5});�
6�
7//THE PAGE SCROLL EFFECT ON THE ANGLE DOWN�
8$(document).ready(function () {�
9    $(".click").click(function () {�
10        $('html, body').animate({�
11            scrollTop: $("#welcome").offset().top�
12        }, 1000);�
13    });�
14});�
15�
16function scrollTo(link) {�
17    var headerHeight = $("header").height();�
18�
19    $('html, body').animate({�
20        scrollTop: $(link).offset().top - headerHeight�
21    }, 800);�
22}�
23�
24function scrollToHash(link) {�
25    var headerHeight = $("header").height();�
26    $('html, body').animate({�
27        scrollTop: $(getHash(link)).offset().top - headerHeight�
28    }, 800);�
29}�
30�
31$('nav .nav-item a.nav-link[href^="#"], footer a[href^="#"], .dropdown-menu  a.dropdown-item[href^="#"]').click(function (event) {�
32    event.preventDefault();�
33�
34    var link = $(this).attr('href');�
35�
36    if (!window.location.hash && window.location.pathname !== "/") {�
37        window.location.assign("/" + link);�
38    }�
39�
40    scrollTo(link);�
41�
42});�
43�
44//SINGLE PAGE NAV SCROLL�
45//$(document).on('click', '.dropdown-menu  a.dropdown-item[href^="#"], .nav-item a.nav-link[href^="#"]', function (event) {�
46//    event.preventDefault();�
47//    var link = $(this).attr('href');�
48//    if (!window.location.hash && window.location.pathname !== "/") {�
49//        window.location.assign("/" + link);�
50//    }�
51//    scrollTo(link);�
52//});�
53�
54�
55//RANDOMIZED MULTIPLE SLICK SLIDER�
56$.fn.randomize = function (selector) {�
57    var $elems = selector ? $(this).find(selector) : $(this).children(),�
58        $parents = $elems.parent();�
59�
60    $parents.each(function () {�
61        $(this).children(selector).sort(function (childA, childB) {�
62            // * Prevent last slide from being reordered�
63            if ($(childB).index() !== $(this).children(selector).length - 1) {�
64                return Math.round(Math.random()) - 0.5;�
65            }�
66        }.bind(this)).detach().appendTo(this);�
67    });�
68�
69    return this;�
70};�
71�
72//SLIDER�
73�
74$('.article-slides').slick({�
75    slidesToShow: 1,�
76    slidesToScroll: 1,�
77    infinite: true,�
78    speed: 600,�
79    arrows: true,�
80    dots: false,�
81    autoplay: true,�
82});�
83�
84$(".speaker-slides")�
85    .slick(�
86        {�
87            slidesToShow: 5,�
88            slidesToScroll: 1,�
89            autoplay: true,�
90            autoplaySpeed: 2000,�
91            dots: false,�
92            arrows: true,�
93            infinite: true,�
94            speed: 300,�
95            responsive: [�
96                {�
97                    breakpoint: 1200,�
98                    settings: {�
99                        slidesToShow: 4,�
100                        slidesToScroll: 1,�
101                        infinite: true,�
102                    }�
103                },�
104                {�
105                    breakpoint: 991,�
106                    settings: {�
107                        slidesToShow: 3,�
108                        slidesToScroll: 1�
109                    }�
110                },�
111                {�
112                    breakpoint: 768,�
113                    settings: {�
114                        slidesToShow: 2,�
115                        slidesToScroll: 1�
116                    }�
117                },�
118                {�
119                    breakpoint: 550,�
120                    settings: {�
121                        slidesToShow: 1,�
122                        slidesToScroll: 1�
123                    }�
124                }�
125                // You can unslick at a given breakpoint now by adding:�
126                // settings: "unslick"�
127                // instead of a settings object�
128            ]�
129        });�
130�
131$(".gallery-slides")�
132    .slick(�
133        {�
134            slidesToShow: 4,�
135            slidesToScroll: 1,�
136            autoplay: true,�
137            autoplaySpeed: 2000,�
138            dots: false,�
139            arrows: true,�
140            infinite: true,�
141            speed: 300,�
142            responsive: [�
143                {�
144                    breakpoint: 1200,�
145                    settings: {�
146                        slidesToShow: 4,�
147                        slidesToScroll: 1,�
148                        infinite: true,�
149                    }�
150                },�
151                {�
152                    breakpoint: 991,�
153                    settings: {�
154                        slidesToShow: 3,�
155                        slidesToScroll: 1�
156                    }�
157                },�
158                {�
159                    breakpoint: 768,�
160                    settings: {�
161                        slidesToShow: 2,�
162                        slidesToScroll: 1�
163                    }�
164                },�
165                {�
166                    breakpoint: 550,�
167                    settings: {�
168                        slidesToShow: 2,�
169                        slidesToScroll: 1�
170                    }�
171                }�
172                // You can unslick at a given breakpoint now by adding:�
173                // settings: "unslick"�
174                // instead of a settings object�
175            ]�
176        });�
177�
178$(".textimage-slides").slick({�
179    slidesToShow: 1,�
180    slidesToScroll: 1,�
181    autoplay: true,�
182    autoplaySpeed: 2000,�
183    dots: false,�
184    arrows: true,�
185    infinite: true,�
186    speed: 300,�
187�
188});�
189�
190$(".testimonial-image-slides")�
191    .slick(�
192        {�
193            slidesToShow: 5,�
194            slidesToScroll: 1,�
195            autoplay: true,�
196            autoplaySpeed: 2000,�
197            dots: false,�
198            arrows: true,�
199            infinite: true,�
200            speed: 300,�
201            responsive: [�
202                {�
203                    breakpoint: 1200,�
204                    settings: {�
205                        slidesToShow: 4,�
206                        slidesToScroll: 1,�
207                        infinite: true,�
208                    }�
209                },�
210                {�
211                    breakpoint: 991,�
212                    settings: {�
213                        slidesToShow: 3,�
214                        slidesToScroll: 1�
215                    }�
216                },�
217                {�
218                    breakpoint: 768,�
219                    settings: {�
220                        slidesToShow: 2,�
221                        slidesToScroll: 1�
222                    }�
223                },�
224                {�
225                    breakpoint: 550,�
226                    settings: {�
227                        slidesToShow: 1,�
228                        slidesToScroll: 1�
229                    }�
230                }�
231                // You can unslick at a given breakpoint now by adding:�
232                // settings: "unslick"�
233                // instead of a settings object�
234            ]�
235        });�
236�
237$(".testimonial-section-slides").slick({�
238    arrows: true,�
239    dots: true,�
240    infinite: true,�
241    speed: 600,�
242    autoplay: true,�
243    fade: true,�
244    responsive: [�
245        {�
246            breakpoint: 767,�
247            settings: {�
248                arrows: false�
249            }�
250        }�
251    ]�
252});�
253�
254$(".sponsor-slides")�
255    .slick(�
256        {�
257            slidesToShow: 5,�
258            slidesToScroll: 1,�
259            autoplay: true,�
260            autoplaySpeed: 2000,�
261            dots: false,�
262            arrows: true,�
263            infinite: true,�
264            speed: 300,�
265            responsive: [�
266                {�
267                    breakpoint: 1200,�
268                    settings: {�
269                        slidesToShow: 4,�
270                        slidesToScroll: 1,�
271                        infinite: true,�
272                    }�
273                },�
274                {�
275                    breakpoint: 991,�
276                    settings: {�
277                        slidesToShow: 3,�
278                        slidesToScroll: 1�
279                    }�
280                },�
281                {�
282                    breakpoint: 768,�
283                    settings: {�
284                        slidesToShow: 2,�
285                        slidesToScroll: 1�
286                    }�
287                },�
288                {�
289                    breakpoint: 550,�
290                    settings: {�
291                        slidesToShow: 1,�
292                        slidesToScroll: 1�
293                    }�
294                }�
295                // You can unslick at a given breakpoint now by adding:�
296                // settings: "unslick"�
297                // instead of a settings object�
298            ]�
299        });�
300�
301$(".banner-slides").slick({�
302    arrows: true,�
303    dots: true,�
304    infinite: true,�
305    speed: 600,�
306    autoplay: true,�
307    fade: true,�
308    responsive: [�
309        {�
310            breakpoint: 767,�
311            settings: {�
312                arrows: false�
313            }�
314        }�
315    ]�
316});�
317�
318$('.shortlist-slides').slick({�
319    dots: true,�
320    infinite: false,�
321    speed: 300,�
322    slidesToShow: 3,�
323    slidesToScroll: 3,�
324    responsive: [�
325        {�
326            breakpoint: 1024,�
327            settings: {�
328                slidesToShow: 3,�
329                slidesToScroll: 3,�
330                infinite: true,�
331                dots: true�
332            }�
333        },�
334        {�
335            breakpoint: 600,�
336            settings: {�
337                slidesToShow: 2,�
338                slidesToScroll: 2,�
339                dots: false�
340            }�
341        },�
342        {�
343            breakpoint: 480,�
344            settings: {�
345                slidesToShow: 1,�
346                slidesToScroll: 1,�
347                dots: false�
348            }�
349        }�
350    ]�
351});�
352�
353$('.winners-slides').slick({�
354    dots: true,�
355    infinite: false,�
356    speed: 300,�
357    slidesToShow: 3,�
358    slidesToScroll: 3,�
359    responsive: [�
360        {�
361            breakpoint: 1024,�
362            settings: {�
363                slidesToShow: 3,�
364                slidesToScroll: 3,�
365                infinite: true,�
366                dots: true�
367            }�
368        },�
369        {�
370            breakpoint: 600,�
371            settings: {�
372                slidesToShow: 2,�
373                slidesToScroll: 2,�
374                dots: false�
375            }�
376        },�
377        {�
378            breakpoint: 480,�
379            settings: {�
380                slidesToShow: 1,�
381                slidesToScroll: 1,�
382                dots: false�
383            }�
384        }�
385    ]�
386});�
387�
388�
389window.FontAwesomeConfig = {�
390    searchPseudoElements: true�
391}�
392�
393// ------LAZY LOAD  yall.js�
394�
395document.addEventListener("DOMContentLoaded", function () {�
396    yall({�
397        observeChanges: true�
398    });�
399});�
400�
401//GRID FILTER SEARCH�
402�
403$(window).on("load", function () {�
404�
405    $('.grid').isotope({�
406        // options�
407        itemSelector: '.product',�
408        layoutMode: 'fitRows'�
409    });�
410�
411    var qsRegex;�
412�
413    var $grid = $('.grid').isotope(�
414        {�
415            itemSelector: '.product',�
416            layoutMode: 'fitRows',�
417            filter: function () {�
418                return qsRegex ? $(this).text().match(qsRegex) : true;�
419            }�
420        });�
421�
422    var $quicksearch = $('.quicksearch').keyup(debounce(function () {�
423        qsRegex = new RegExp($quicksearch.val(), 'gi');�
424        $grid.isotope({�
425            filter: function () {�
426                return qsRegex ? $(this).text().match(qsRegex) : true;�
427            }�
428        });�
429    }, 200));�
430�
431    function debounce(fn, threshold) {�
432        var timeout;�
433        return function debounced() {�
434            if (timeout) {�
435                clearTimeout(timeout);�
436            }�
437�
438            function delayed() {�
439                fn();�
440                timeout = null;�
441            }�
442�
443            timeout = setTimeout(delayed, threshold || 100);�
444        }�
445    }�
446�
447    var filterFns = {};�
448    $('.filters-select').on('change', function () {�
449        var filterValue = this.value;�
450�
451        filterValue = filterFns[filterValue] || filterValue;�
452        console.log(filterValue)�
453        $grid.isotope({ resizesContainer: true, filter: filterValue });�
454    });�
455�
456    var iso = $grid.data('isotope');�
457    $grid.isotope('reveal', iso.items);�
458�
459    $(window).load(function () {�
460        $(".grid").isotope('reLayout');�
461        $('.grid').isotope({�
462            itemSelector: '.product',�
463            layoutMode: 'fitRows'�
464        });�
465    });�
466});�
467�
468//FOOTER LINKS SCROLL�
469�
470function getPath(string) {�
471    var hashIndex = string.indexOf("#");�
472    return string.substring(0, hashIndex);�
473}�
474�
475�
476function getHash(string) {�
477    var hashIndex = string.indexOf("#");�
478    return string.slice(hashIndex);�
479}�
480�
481function confirmEnding(string, target) {�
482    if (string.substr(-target.length) === target) {�
483        return true;�
484    } else {�
485        return false;�
486    }�
487}�
488�
489$(document).on('click', 'footer a[href*="#"]', function (event) {�
490�
491    event.preventDefault();�
492    var link = $(this).attr('href');�
493    var currentPathname = window.location.pathname;�
494�
495    if (confirmEnding(currentPathname, getPath(link))) {�
496        scrollToHash(link);�
497    } else {�
498        window.location.assign(window.location.origin + link);�
499    }�
500});�
501�

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.