PageSourceSearch

http://www.michaeldiamondstein.com/wp-content/themes/Diamondstein/js/main.js

js michaeldiamondstein.com collected 2026-10-08 03:29:41 UTC 29,517 bytes, 784 lines download raw bytes

1/*----------------------------------------------
2*
3* [Main Scripts]
4*
5* Theme    : NEXGEN
6* Version  : 1.0.0
7* Author   : Codings
8* Support  : codings.dev
9* 
10----------------------------------------------*/
11
12/*----------------------------------------------
13
14[ALL CONTENTS]
15
161. Preloader
172. Responsive Menu
183. Navigation 
194. Slides 
205. Particles
216. Progress Bar
227. Shuffle
238. Sign and Register Form
249. Simple Form
2510. Recaptcha
2611. Cookie Notice
27
28----------------------------------------------*/
29
30/*----------------------------------------------
311. Preloader
32----------------------------------------------*/
33
34jQuery(function ($) {
35
36    'use strict';
37
38    let preloader = $('.preloader');
39
40    setTimeout(function() {
41        preloader.addClass('ready');
42        
43    }, preloader.data('timeout'))
44})
45
46/*----------------------------------------------
472. Responsive Menu
48----------------------------------------------*/
49
50jQuery(function ($) {
51
52    'use strict';
53
54    function navResponsive() {
55
56        let navbar = $('.navbar .items');
57        let menu = $('#menu .items');
58
59        menu.html('');
60        navbar.clone().appendTo(menu);
61
62        $('.menu .icon-arrow-right').removeClass('icon-arrow-right').addClass('icon-arrow-down');
63    }
64
65    navResponsive();
66
67    $(window).on('resize', function () {
68        navResponsive();
69    })
70
71    $('.menu .dropdown-menu').each(function() {
72        var children = $(this).children('.dropdown').length;
73        $(this).addClass('children-'+children);
74    })
75
76    
77    $('.menu .nav-item.dropdown').each(function() {
78        var children = $(this).children('.nav-link');
79        children.addClass('prevent');
80    })
81
82    $(document).on('click', '#menu .nav-item .nav-link', function (e) {
83
84        if($(this).hasClass('prevent')) {
85            e.preventDefault();
86        }
87
88        var nav_link = $(this);
89
90        nav_link.next().toggleClass('show');
91
92        if(nav_link.hasClass('smooth-anchor')) {
93            $('#menu').modal('hide');
94        }
95    })
96})
97
98/*----------------------------------------------
993. Navigation
100----------------------------------------------*/
101
102jQuery(function ($) {
103
104    'use strict';
105
106    var position = $(window).scrollTop();
107    var navbar   = $('.navbar.sub');
108    var toTop    = $('#scroll-to-top');
109
110    $(document).ready(function() {
111        if (position > 0) {
112            navbar.addClass('navbar-sticky');
113        }
114        toTop.hide();
115    })
116
117    $(window).scroll(function () {
118
119        navbar.removeAttr('data-aos');
120        navbar.removeAttr('data-aos-delay');
121
122        var scroll = $(window).scrollTop();
123
124        if (!navbar.hasClass('relative')) {
125
126            // Down
127            if (scroll > position && position > 0) {
128
129                navbar.addClass('navbar-sticky');
130
131                if(navbar.hasClass('navbar-fixed') || window.innerWidth <= 767) {
132                    navbar.removeClass('hidden').addClass('visible');
133
134                } else {
135
136                    if ($(window).scrollTop() >= window.innerHeight) {
137                        navbar.removeClass('visible').addClass('hidden');
138                    }
139                }                
140
141                toTop.fadeOut('fast');
142
143            // Up
144            } else {
145
146                navbar.removeClass('hidden').addClass('visible');
147
148                // Top
149                if ($(window).scrollTop() <= 100) {
150                    navbar.removeClass('navbar-sticky');
151
152                } else {                   
153
154                    if(!navbar.hasClass('navbar-no-fixed')) {
155                        navbar.addClass('visible');
156                    }
157                }
158
159                if (position >= window.innerHeight && window.innerWidth >= 767) {
160                    toTop.fadeIn('fast');
161
162                } else {
163                    toTop.fadeOut('fast');
164                }
165            }
166            position = scroll;
167        }
168    })
169
170    $('.nav-link').each(function() {
171        let href = $(this).attr('href');
172        if (href.length > 1 && href.indexOf('#') != -1) {
173            $(this).addClass('smooth-anchor');
174        }
175    })
176
177    $('.nav-link').each(function() {
178
179        if(this.hasAttribute('href')) {
180            let href = $(this).attr('href');
181            if (href.length > 1 && href.indexOf('#') != -1) {
182                $(this).addClass('smooth-anchor');
183            }
184        }
185
186        let body = $('body');
187
188        if(this.hasAttribute('href') && ! body.hasClass('home')) {
189            let href = $(this).attr('href');
190            if (href.length > 1 && href.indexOf('#') != -1) {
191                $(this).removeClass('smooth-anchor');
192                $(this).attr('href', '/'+href);
193            }
194        }
195    })
196
197    $(document).on('click', '.smooth-anchor', function (e) {
198        e.preventDefault();
199
200        let href   = $(this).attr('href');
201        let target = $.attr(this, 'href');
202
203        if($(target).length > 0) {
204        
205            if (href.length > 1 && href.indexOf('#') != -1) {
206                $('html, body').animate({
207                    scrollTop: $(target).offset().top
208                }, 500);
209            }
210        }
211    })
212
213    $('.dropdown-menu').each(function () {
214
215        let dropdown = $(this);
216
217        dropdown.hover(function () {
218            dropdown.parent().find('.nav-link').first().addClass('active');
219
220        }, function () {
221            dropdown.parent().find('.nav-link').first().removeClass('active');
222        })
223    })
224
225    let navbar_holder = $('.navbar-holder');
226    let navbar_height = $('.navbar-expand.sub').outerHeight();
227
228    if(navbar_holder.length > 0) {
229        $('.navbar-holder').css('min-height', navbar_height);
230    }
231})
232
233/*----------------------------------------------
2344. Slides
235----------------------------------------------*/
236
237jQuery(function ($) {
238
239    setTimeout(function() {
240        $('.no-slider .left').addClass('init');
241        $('.no-slider .right').addClass('init');
242    }, 1200)
243
244    var animation = function(slider) {
245
246        let image = $(slider + ' .swiper-slide-active img');
247        let title = $(slider + ' .title');
248        let description = $(slider + ' .description');
249        let btn = $(slider + ' .buttons');
250        let nav = $(slider + ' nav');
251
252        image.toggleClass('aos-animate');
253        title.toggleClass('aos-animate');
254        description.toggleClass('aos-animate');
255        btn.toggleClass('aos-animate');
256        nav.toggleClass('aos-animate');
257
258        setTimeout(function() {
259            image.toggleClass('aos-animate');
260            title.toggleClass('aos-animate');
261            description.toggleClass('aos-animate');
262            btn.toggleClass('aos-animate');
263            nav.toggleClass('aos-animate');
264
265            AOS.refresh();
266
267        }, 100)
268
269        if ($('.full-slider').hasClass('animation')) {
270
271            $('.full-slider .left').addClass('off');
272            $('.full-slider .left').removeClass('init');
273            $('.full-slider .right').addClass('off');
274            $('.full-slider .right').removeClass('init');
275
276            setTimeout(function() {
277                $('.full-slider .left').removeClass('off');
278                $('.full-slider .right').removeClass('off');
279            }, 200)
280
281            setTimeout(function() {
282                $('.full-slider .left').addClass('init');
283                $('.full-slider .right').addClass('init');
284            }, 1000)
285
286        } else {
287            $('.full-slider .left').addClass('init');
288            $('.full-slider .right').addClass('init');
289        }
290    }
291
292    var fullSlider = new Swiper('.full-slider', {
293
294        autoplay: {
295            delay: 5000,
296        },
297        loop: true,
298        parallax: false,
299        slidesPerView: 1,
300        spaceBetween: 0,
301        navigation: true,
302        pagination: {
303            el: '.full-slider .swiper-pagination',
304            clickable: true
305        },
306        keyboard: {
307            enabled: true,
308            onlyInViewport: false
309        }
310    })
311
312    var fullSlider2 = new Swiper('.full-slider2', {
313
314        autoplay: {
315            delay: 10000,
316        },
317        loop: true,
318        parallax: false,
319        slidesPerView: 1,
320        spaceBetween: 0,
321        navigation: true,
322        allowTouchMove: false,
323        pagination: {
324            el: '.full-slider2 .swiper-pagination',
325            clickable: true
326        },
327        keyboard: {
328            enabled: true,
329            onlyInViewport: false
330        }
331    })
332
333    $('.mid-slider').each(function() {
334
335        if($(this).data('perview')) {
336            var midPerView = $(this).data('perview');
337        } else {
338            midPerView = 3;
339        }
340
341        var midSlider = new Swiper(this, {
342
343            autoplay: {
344                delay: 2500,
345            },
346            loop: true,
347            slidesPerView: 1,
348            spaceBetween: 30,
349            navigation: false,
350            breakpoints: {
351                767: {
352                    slidesPerView: 2,
353                    spaceBetween: 30
354                },
355                1023: {
356                    slidesPerView: midPerView,
357                    spaceBetween: 30
358                }
359            }
360        })
361    })
362
363    $('.mid-slider2').each(function() {
364
365        if($(this).data('perview')) {
366            var midPerView = $(this).data('perview');
367        } else {
368            midPerView = 3;
369        }
370
371        var midSlider = new Swiper(this, {
372
373            autoplay: false,
374            loop: false,
375            slidesPerView: 1,
376            spaceBetween: 30,
377            navigation: false,
378            allowTouchMove: false,
379            breakpoints: {
380                767: {
381                    slidesPerView: 2,
382                    spaceBetween: 30
383                },
384                1023: {
385                    slidesPerView: midPerView,
386                    spaceBetween: 30
387                }
388            }
389        })
390    })
391
392    var minSlider = new Swiper('.min-slider', {
393
394        autoplay: {
395            delay: 1000,
396        },
397        loop: true,
398        centerInsufficientSlides: true,
399        slidesPerView: 2,
400        spaceBetween: 15,
401        breakpoints: {
402            424: {
403                slidesPerView: 2,
404                spaceBetween: 0
405            },
406            767: {
407                slidesPerView: 3,
408                spaceBetween: 0
409            },
410            1023: {
411                slidesPerView: 4,
412                spaceBetween: 0
413            },
414            1199: {
415                slidesPerView: 5,
416                spaceBetween: 0
417            }
418        },
419        pagination: false
420    })
421
422    var noSlider = new Swiper('.no-slider', {
423
424        autoplay: false,
425        loop: false,
426        keyboard: false,
427        grabCursor: false,
428        allowTouchMove: false,
429        on: {
430            init: function() {
431                animation('.no-slider')
432            }
433        }
434    })
435})
436
437/*----------------------------------------------
4385. Particles
439----------------------------------------------*/
440
441function particles(type, ID) {
442
443    if(type === 'default') {
444        particlesJS(ID,{particles:{number:{value:80,density:{enable:!0,value_area:800}},color:{value:"#ffffff"},shape:{type:"circle",stroke:{width:0,color:"#000000"},polygon:{nb_sides:5},image:{src:"img/github.svg",width:100,height:100}},opacity:{value:.25,random:!1,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:5,random:!0,anim:{enable:!1,speed:40,size_min:.1,sync:!1}},line_linked:{enable:!0,distance:150,color:"#ffffff",opacity:.25,width:1},move:{enable:!0,speed:6,direction:"none",random:!1,straight:!1,out_mode:"out",attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:0,mode:"repulse"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:400,line_linked:{opacity:1}},bubble:{distance:400,size:40,duration:2,opacity:8,speed:3},repulse:{distance:200},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0,config_demo:{hide_card:!1,background_color:"#b61924",background_image:"",background_position:"50% 50%",background_repeat:"no-repeat",background_size:"cover"}});
445    }
446
447    if(type === 'squares') {
448        particlesJS(ID,{particles:{number:{value:20,density:{enable:!0,value_area:800}},color:{value:"#21333e"},shape:{type:"edge",stroke:{width:0,color:"#000"},image:{src:"img/github.svg",width:100,height:100}},opacity:{value:.15,random:!0,anim:{enable:!1,speed:1,opacity_min:.05,sync:!1}},size:{value:80,random:!1,anim:{enable:!0,speed:5,size_min:5,sync:!1}},line_linked:{enable:!1,distance:200,color:"#ffffff",opacity:1,width:2},move:{enable:!0,speed:5,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!1,mode:"grab"},onclick:{enable:!1,mode:"push"},resize:!0},modes:{grab:{distance:400,line_linked:{opacity:1}},bubble:{distance:400,size:40,duration:2,opacity:8,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0})
449    }
450
451    if(type === 'bubble') {
452        particlesJS(ID,{particles:{number:{value:6,density:{enable:!0,value_area:800}},color:{value:"#182c50"},shape:{type:"polygon",stroke:{width:0,color:"#000"},polygon:{nb_sides:6},image:{src:"img/github.svg",width:100,height:100}},opacity:{value:.3,random:!0,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:160,random:!1,anim:{enable:!0,speed:10,size_min:40,sync:!1}},line_linked:{enable:!1,distance:200,color:"#ffffff",opacity:1,width:2},move:{enable:!0,speed:8,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!1,mode:"grab"},onclick:{enable:!1,mode:"push"},resize:!0},modes:{grab:{distance:400,line_linked:{opacity:1}},bubble:{distance:400,size:40,duration:2,opacity:8,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0});
453    }
454
455    if(type === 'space') {
456        particlesJS(ID,{particles:{number:{value:160,density:{enable:!0,value_area:800}},color:{value:"#ffffff"},shape:{type:"circle",stroke:{width:0,color:"#000000"},polygon:{nb_sides:5},image:{src:"img/github.svg",width:100,height:100}},opacity:{value:1,random:!0,anim:{enable:!0,speed:1,opacity_min:0,sync:!1}},size:{value:3,random:!0,anim:{enable:!1,speed:4,size_min:.3,sync:!1}},line_linked:{enable:!1,distance:150,color:"#ffffff",opacity:.4,width:1},move:{enable:!0,speed:1,direction:"none",random:!0,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:600}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"bubble"},onclick:{enable:!0,mode:"repulse"},resize:!0},modes:{grab:{distance:400,line_linked:{opacity:1}},bubble:{distance:250,size:0,duration:2,opacity:0,speed:3},repulse:{distance:400,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0});
457    }
458}
459
460/*----------------------------------------------
4616. Progress Bar
462----------------------------------------------*/
463
464jQuery(function($) {
465
466    'use strict';
467
468    function initCounter(section, item, duration) {
469
470        $(document).one('inview', item, function(event, inview) {
471
472            if (inview) {            
473    
474                $(item).each(function() {
475    
476                    var percent = $(this).data('percent');
477                    var pcolor  = getComputedStyle(document.documentElement).getPropertyValue('--secondary-color');
478                    var scolor  = getComputedStyle(document.documentElement).getPropertyValue('--secondary-color');
479    
480                    if ( $(section).hasClass('odd')) {
481                        var tmode = 'rgba(255, 255, 255, 0.075)';
482                    } else {
483                        var tmode = 'rgba(0, 0, 0, 0.075)';
484                    }
485    
486                    if ( $(section).hasClass('preloader') || $(section).hasClass('skills')) {
487                        var symbol = '<i>%</i>';
488                    } else {
489                        var symbol = '';
490                    }
491
492                    if(section == '.counter.preloader' || section == '.counter.funfacts') {
493                        var height = 70;
494                    } else {
495                        var height = 110;
496                    }
497    
498                    $(this).radialProgress({
499                        value: (percent / 100),
500                        size: height,
501                        thickness: 10,
502                        lineCap: 'butt',
503                        emptyFill: tmode,
504                        animation: { 
505                            duration: duration, 
506                            easing: "radialProgressEasing" 
507                        },
508                        fill: {
509                            gradient: [[pcolor, 0.1], [scolor, 1]], 
510                            gradientAngle: Math.PI / 4
511                        }
512                    }).on('radial-animation-progress', function(event, progress) {
513                        $(this).find('span').html(Math.round(percent * progress) + symbol);
514                    })
515                })
516            }
517        })
518    }
519    
520    let preloader = $('.preloader');
521    let preloader_timeout = ( preloader.data('timeout') - 800);
522
523    initCounter('.counter.preloader', '.counter.preloader .radial', preloader_timeout);
524    initCounter('.counter.funfacts', '.counter.funfacts .radial', 5000);
525    initCounter('.counter.skills', '.counter.skills .radial', 5000);
526})
527
528/*----------------------------------------------
5297. Shuffle
530----------------------------------------------*/
531
532jQuery(function ($) {
533
534    'use strict';
535
536    $('.filter-section').each(function(index) {
537
538        var count = index + 1;
539
540        $(this).find('.filter-items').removeClass('filter-items').addClass('filter-items-'+count);
541        $(this).find('.filter-item').removeClass('filter-item').addClass('filter-item-'+count);
542        $(this).find('.filter-sizer').removeClass('filter-sizer').addClass('filter-sizer-'+count);
543        $(this).find('.btn-filter-item').removeClass('btn-filter-item').addClass('btn-filter-item-'+count);
544        
545        var Shuffle = window.Shuffle;
546        var Filter  = new Shuffle(document.querySelector('.filter-items-'+count), {
547            itemSelector: '.filter-item-'+count,
548            sizer: '.filter-sizer-'+count,
549            buffer: 1,
550        })
551    
552        $('.btn-filter-item-'+count).on('change', function (e) {
553    
554            var input = e.currentTarget;
555            
556            if (input.checked) {
557                Filter.filter(input.value);
558            }
559        })
560    })
561})
562
563/*----------------------------------------------
5648. Sign and Register Form
565----------------------------------------------*/
566
567jQuery(function ($) {
568
569    'use strict';
570
571    $(document).on('click', 'a[data-target="#register"]', function() { 
572        $('#sign').modal('hide');
573    })
574
575    $(document).on('click', 'a[data-target="#sign"]', function() { 
576        $('#register').modal('hide');
577    })
578
579})
580
581/*----------------------------------------------
5829. Simple Form
583----------------------------------------------*/
584
585jQuery(function ($) {
586
587    'use strict';
588
589    function sendForm(ID) {
590
591        var form  = $(ID);
592        var input = $(ID+' .form-control')
593        var btn   = $(ID+' .btn:first-child');
594        var alert = $(ID+' .form-alert');
595
596        alert.hide();
597
598        $(document).on('click', ID+' .btn:first-child', function() {
599            $(this).addClass('effect-motion-bg');
600            form.submit();
601        })
602
603        form.submit(function(e) {
604            e.preventDefault();
605
606            if ($('input[name="reCAPTCHA"]').length) {
607                let reCAPTCHA = $('input[name="reCAPTCHA"]');
608    
609                grecaptcha.ready(function() {
610                    grecaptcha.execute(reCAPTCHA.data('key'), { action: "create_comment" }).then(function(token) { 
611                        reCAPTCHA.val(token); 
612                    }) 
613                })
614            }
615
616            var url = form.attr('action');
617
618            $.ajax({
619                type: 'POST',
620                url: url,
621                data: form.serialize(),
622                success: function(response) {                    
623
624                    try {
625                        JSON.parse(response);
626                        var obj = JSON.parse(response);
627
628                        if (obj.status == 'success') {
629                            setTimeout(function() {
630                                btn.removeClass('effect-motion-bg');
631                                input.val('').removeClass('invalid').removeClass('valid');
632                                alert.text(obj.info).removeClass('invalid').addClass('valid').fadeIn();
633                            }, 1200);
634
635                        } else if(obj.status == 'invalid') {
636                            setTimeout(function() {
637                                btn.removeClass('effect-motion-bg');
638                                alert.text(obj.info).removeClass('valid').addClass('invalid').fadeIn();
639                            }, 1200);
640
641                            input.each(function() {
642                                let input_name = $(this).attr('name');                     
643
644                                if(obj.fields[input_name] == true) {
645                                    $(ID+' .field-'+input_name).removeClass('valid').addClass('invalid'); 
646                                } else { 
647                                    $(ID+' .field-'+input_name).removeClass('invalid').addClass('valid');
648                                }
649                            })
650                        } else {
651                            btn.removeClass('effect-motion-bg');
652                            input.val('').removeClass('invalid').removeClass('valid');
653                            alert.text(obj.info).removeClass('valid').addClass('invalid').fadeIn();                        
654                        
655                        } 
656
657                    } catch (e) {
658                        btn.removeClass('effect-motion-bg');
659                        input.val('').removeClass('invalid').removeClass('valid');
660                        alert.text('Sorry. We were unable to send your message.').removeClass('valid').addClass('invalid').fadeIn();
661                    }
662                }
663            })
664        })
665    }
666
667    sendForm('#nexgen-simple-form');
668    sendForm('#nexgen-subscribe');
669})
670
671/*----------------------------------------------
67210. Recaptcha
673----------------------------------------------*/
674
675jQuery(function ($) {
676
677    'use strict';
678
679    if ($('input[name="reCAPTCHA"]').length) {
680
681     let siteKey = "6Lf-NwEVAAAAAPo_wwOYxFW18D9_EKvwxJxeyUx7"; // Put your site key here
682     
683     if(siteKey) { 
684         $('input[name="reCAPTCHA"]').attr("data-key", siteKey); 
685         grecaptcha.ready(function() { 
686             grecaptcha.execute(siteKey, { action: "create_comment" }).then(function(token) { 
687                 $('input[name="reCAPTCHA"]').val(token); 
688                }) 
689            }) 
690        } 
691    }
692})
693
694/*----------------------------------------------
69511. Cookie Notice
696----------------------------------------------*/
697
698jQuery(function ($) {
699
700    'use strict';
701
702    let cookieNotice = true;
703
704    if(cookieNotice) {
705
706        // Translate
707        gdprCookieNoticeLocales.en = {
708            description: 'We use cookies to offer you a better browsing experience, personalise content and ads, to provide social media features and to analyse our traffic. Read about how we use cookies and how you can control them by clicking Cookie Settings. You consent to our cookies if you continue to use this website.',
709            settings: 'Cookie settings',
710            accept: 'Accept cookies',
711            statement: 'Our cookie statement',
712            save: 'Save settings',
713            always_on: 'Always on',
714            cookie_essential_title: 'Essential website cookies',
715            cookie_essential_desc: 'Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.',
716            cookie_performance_title: 'Performance cookies',
717            cookie_performance_desc: 'These cookies are used to enhance the performance and functionality of our websites but are non-essential to their use. For example it stores your preferred language or the region that you are in.',
718            cookie_analytics_title: 'Analytics cookies',
719            cookie_analytics_desc: 'We use analytics cookies to help us measure how users interact with website content, which helps us customize our websites and application for you in order to enhance your experience.',
720            cookie_marketing_title: 'Marketing cookies',
721            cookie_marketing_desc: 'These cookies are used to make advertising messages more relevant to you and your interests. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.'
722        }
723
724        gdprCookieNotice({
725            locale: 'en', // This is the default value
726            timeout: 2000, // Time until the cookie bar appears
727            expiration: 30, // This is the default value, in days
728            domain: window.location.hostname, // If you run the same cookie notice on all subdomains, define the main domain starting with a .
729            implicit: true, // Accept cookies on page scroll automatically
730            statement: 'https://nexgen.codings.dev', // Link to your cookie statement page
731            performance: ['JSESSIONID'], // Cookies in the performance category.
732            analytics: ['ga'], // Cookies in the analytics category.
733            marketing: ['SSID'] // Cookies in the marketing category.
734        })
735    }
736})
737
738"function" == typeof moment && initEventsModule();
739var initResultsSearchModule = function() {
740    var s = $(".results-search-module .results-item"),
741        l = $(".results-search-module .results-section");
742    $(".results-search-module .search-button").click(function() {
743        var i = $(".results-search-module .search-box").val().toLowerCase(),
744            o = [];
745        if (s.removeClass("text-selector-disabled"), l.removeClass("text-selector-disabled"), i) {
746            $.each(s, function(e, t) {
747                var a = $(t).find(".title").text().toLowerCase(),
748                    s = $(t).find(".content").text().toLowerCase(),
749                    l = a.indexOf(i),
750                    r = s.indexOf(i); - 1 === l && -1 === r ? $(t).addClass("text-selector-disabled") : o.push(t), -1 !== r && $(t).find(".content").wrapInTag({
751                    tag: "span",
752                    words: [i]
753                })
754            });
755            var e = "You searched for: " + i,
756                t = "Your search results (" + o.length + ")";
757            $(".results-search-module .search-term").text(e), $(".results-search-module .result-number").text(t), $.each(l, function(e, t) {
758                0 === $(t).find(".results-item:not(.text-selector-disabled)").length && $(t).addClass("text-selector-disabled")
759            });
760            var a = $(".results-search-module .clear");
761            a.hasClass("active") || a.addClass("active")
762        }
763    });
764    var r = [];
765    $(".results-search-module input[name='search-type']").change(function() {
766        var e = $(this).parent().text().trim();
767        if (this.checked) r.push(e);
768        else {
769            var t = r.indexOf(e); - 1 < t && r.splice(t, 1)
770        }
771        l.removeClass("criteria-type-disabled"), 0 < r.length && $.each(l, function(e, t) {
772            var a = $(t).children(".results-section-banner").children("div:first-child").text(); - 1 === r.indexOf(a) && $(t).addClass("criteria-type-disabled")
773        });
774        var a = $(" .results-search-module .clear"),
775            s = $(".results-search-module .search-box").val().toLowerCase();
776        a.hasClass("active") ? 0 === r.length && a.hasClass("active") && "" === s && a.removeClass("active") : a.addClass("active")
777    }), $(".results-search-module .clear").click(function() {
778        s.removeClass("text-selector-disabled"), l.removeClass("criteria-type-disabled"), l.removeClass("text-selector-disabled"), r = [], $(".results-search-module .search-box").val(""), $(".results-search-module .search-term").text(""), $(".results-search-module .result-number").text(""), $(".results-search-module input[type='checkbox']").prop("checked", !1), s.find(".content").wrapInTag({
779            tag: "span",
780            words: ["^^^"]
781        }), $(this).removeClass("active")
782    })
783};
784initResultsSearchModule();

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.