PageSourceSearch

https://www.nomi.co.uk/wp-content/themes/nomisma/js/main-min.js?time=1790210137&ver=1.2.3

js nomi.co.uk collected 2026-09-24 10:47:01 UTC 12,513 bytes, 397 lines download raw bytes

1'use strict'
2jQuery(document).ready(function ($) {
3    $('.lines-button').click(function () {
4        !0, $('body').addClass('menu-out')
5    }),
6        $('.btn-close').click(function () {
7            !1, $('body').removeClass('menu-out')
8        }),
9        $('.menu-item a').on('click', function (s) {
10            '#' == $(this).attr('href') && s.preventDefault()
11        }),
12        // $('.fade-slider').slick({
13        //   slidesToShow: 3,
14        //   slidesToScroll:3,
15        //   infinite: !0,
16        //   adaptiveHeight: !0,
17        //   fade: !0,
18        //   dots: !1,
19        //   arrows: !0,
20        //   prevArrow:
21        //     '<div class="arrow-prev"><a><i class="fa fa-arrow-left"></i><span class="visually-hidden">Previous</span></a></div>',
22        //   nextArrow:
23        //     '<div class="arrow-next"><a><i class="fa fa-arrow-right"></i><span class="visually-hidden">Next</span></a></div>',
24        //   responsive: [
25        //     { breakpoint: 1024, settings: { dots: false, arrows: true } }
26        //   ]
27        // })
28        $('.two-five').owlCarousel({
29            loop: true,
30            margin: 15,
31            nav: true,
32            dots: false,
33            autoplayHoverPause: true,
34            autoplay: !0,
35            slideTransition: 'linear',
36            autoplayTimeout: 4e3,
37            autoplaySpeed: 4e3,
38            responsive: {
39                0: {
40                    items: 1
41                },
42                600: {
43                    items: 2
44                },
45                1000: {
46                    items: 3
47                }
48            }
49        });
50    $('.partner-logo').owlCarousel({
51        loop: true,
52        margin: 10,
53        nav: true,
54        dots: false,
55        autoplayHoverPause: true,
56        autoplay: !0,
57        slideTransition: 'linear',
58        autoplayTimeout: 4e3,
59        autoplaySpeed: 4e3,
60        responsive: {
61            0: {
62                items: 2
63            },
64            600: {
65                items: 3
66            },
67            1000: {
68                items: 6
69            }
70        }
71    })
72    $('.fade-slider').owlCarousel({
73        loop: true,
74        margin: 30,
75        nav: true,
76        autoHeight: true,
77        dots: false,
78        autoplay: true,
79        autoplayHoverPause: true,
80        autoplayTimeout: 4000,
81        responsive: {
82            0: {
83                items: 1
84            },
85            600: {
86                items: 1
87            },
88            1000: {
89                items: 3
90            }
91        }
92    })
93    $('.fade-slider-single').owlCarousel({
94        loop: true,
95        margin: 30,
96        nav: false,
97        autoHeight: true,
98        dots: false,
99        autoplay: true,
100        autoplayHoverPause: true,
101        autoplayTimeout: 4000,
102        responsive: {
103            0: {
104                items: 1
105            },
106            600: {
107                items: 1
108            },
109            1000: {
110                items: 1
111            }
112        }
113    })
114
115
116
117    $('.banner-slider').owlCarousel({
118        loop: true,
119        margin: 10,
120        nav: true,
121        dots: true,
122        autoplayHoverPause: true,
123        autoplay: true,
124        autoplayTimeout: 4000,
125        autoplaySpeed: 800,
126        smartSpeed: 800,
127        responsive: {
128            0: { items: 1 },
129            600: { items: 1 },
130            1000: { items: 1 }
131        }
132    });
133
134$('.testimonials-slider-cam').owlCarousel({
135    loop: true,
136    margin: 0,
137    nav: true,
138    dots: false,
139
140    autoplay: true,
141    autoplayHoverPause: true,
142    autoplayTimeout: 3000,
143    autoplaySpeed: 1000,
144
145    slideTransition: 'linear',
146
147    responsive: {
148        0: {
149            items: 1
150        },
151        600: {
152            items: 1
153        },
154        100: {
155            items: 1
156        }
157    }
158});
159
160
161    // $(".fade-slider").slick({ slidesToShow: 1, slidesToScroll: 1, infinite: !0, adaptiveHeight: !0, fade: !0, dots: !1, arrows: !0, prevArrow: '<div class="arrow-prev"><a><i class="fa fa-arrow-left"></i><span class="visually-hidden">Previous</span></a></div>', nextArrow: '<div class="arrow-next"><a><i class="fa fa-arrow-right"></i><span class="visually-hidden">Next</span></a></div>', responsive: [{ breakpoint: 1024, settings: { dots: false, arrows: true } }] });
162    $('.feature-card').owlCarousel({
163        loop: true,
164        margin: 5,
165        nav: false,
166        autoHeight: true,
167        dots: false,
168        autoplay: true,
169        autoplayHoverPause: true,
170        autoplayTimeout: 4000,
171        responsive: {
172            0: {
173                items: 1
174            },
175            600: {
176                items: 2
177            },
178            1000: {
179                items: 6
180            }
181        }
182    })
183
184    // on scroll counter
185    $(document).ready(function () {
186        // Function to check if element is fully visible
187        function isElementInView(el) {
188            const rect = el.getBoundingClientRect();
189            return (
190                rect.top >= 0 &&
191                rect.left >= 0 &&
192                rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
193                rect.right <= (window.innerWidth || document.documentElement.clientWidth)
194            );
195        }
196
197        // Counter animation function
198        function animateCounter($element) {
199            const countTo = parseFloat($element.text().replace(/,/g, ''));
200            const isDecimal = $element.text().includes('.');
201
202            jQuery({ Counter: 0 }).animate(
203                { Counter: countTo },
204                {
205                    duration: 5000,
206                    easing: 'swing',
207                    step: function () {
208                        const displayValue = isDecimal
209                            ? this.Counter.toFixed(2)
210                            : Math.ceil(this.Counter);
211                        $element.text(displayValue.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','));
212                    }
213                }
214            );
215        }
216
217        // Scroll event to trigger counters
218        $(window).on('scroll', function () {
219            $('.count-digit').each(function () {
220                const $this = $(this);
221                // Check if already counted
222                if ($this.hasClass('counter-loaded')) return;
223
224                // Check if the element is fully visible
225                if (isElementInView(this)) {
226                    $this.addClass('counter-loaded');
227                    animateCounter($this);
228                }
229            });
230        });
231    });
232
233    $('.bg-background-area').each(function () {
234        'use strict'
235        if ($(this).attr('data-bg')) {
236            $(this).css({
237                background: 'url(' + $(this).data('bg') + ')',
238                'background-position': 'center center',
239                'background-repeat': 'no-repeat',
240                'background-size': '30%',
241                'background-attachment': 'scroll'
242            })
243        }
244    })
245
246    // Quick side links
247    var cookieName = "quickConnectOpened";
248
249    function getCookie(name) {
250        var match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)'));
251        if (match) return match[2];
252        return null;
253    }
254
255    function setCookie(name, value, days) {
256        var expires = "";
257        if (days) {
258            var date = new Date();
259            date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
260            expires = "; expires=" + date.toUTCString();
261        }
262        document.cookie = name + "=" + (value || "") + expires + "; path=/";
263    }
264
265    function closeQuickConnect() {
266        $('.quick-connect-links').animate({ left: 225 }, 1000, function () {
267            $(this).hide();
268        });
269        $('.quick-connect-links-wrap .show-links-btn').show().animate({ right: 0 }, 1500);
270        setCookie(cookieName, 'true', 365); // Set the cookie when the section is closed
271    }
272
273    var cookieValue = getCookie(cookieName);
274
275    if (!cookieValue) {
276        // First time visit: show the quick-connect-links section
277        $('.quick-connect-links').show().animate({ left: 0 }, 1000);
278    } else {
279        // On subsequent visits, only show the arrow button
280        // $('.quick-connect-links-wrap .show-links-btn').show();
281        // $('.quick-connect-links').hide();
282        // closeQuickConnect();
283        // $('.quick-connect-links').hide();
284        // $('.hide-links-btn').show();
285    }
286
287    $('.hide-links-btn').on('click', function () {
288        closeQuickConnect();
289    });
290
291    $(document).on('click', '.show-links-btn', function () {
292        $('.quick-connect-links').show().animate({ left: 0 }, 1000);
293        $('.quick-connect-links-wrap .show-links-btn').animate({ right: -45 }, 1200);
294    });
295    // Counter js
296    var counted = 0;
297    var counted1 = 0;
298    $(window).scroll(function () {
299        if ($('#counter').length) {
300            var oTop = $('#counter').offset().top - window.innerHeight;
301            if (counted == 0 && $(window).scrollTop() > oTop) {
302                $('.count').each(function () {
303                    var $this = $(this),
304                        countTo = $this.attr('data-count');
305                    $({
306                        countNum: $this.text()
307                    }).animate({
308                        countNum: countTo
309                    },
310
311                        {
312
313                            duration: 2000,
314                            easing: 'swing',
315                            step: function () {
316                                $this.text(Math.floor(this.countNum));
317                            },
318                            complete: function () {
319                                $this.text(this.countNum);
320                                //alert('finished');
321                            }
322
323                        });
324                });
325                counted = 1;
326            }
327        }
328
329
330
331        if ($('.counter-section').length) {
332            var oTop = $('.counter-section').offset().top - window.innerHeight;
333            console.log(oTop);
334            console.log('counted1->', counted1);
335
336            if (counted1 == 0 && $(window).scrollTop() > oTop) {
337                $('.count').each(function () {
338                    var $this = $(this),
339                        countTo = $this.attr('data-count');
340
341                    $({ countNum: 0 }).animate(
342                        { countNum: countTo },
343                        {
344                            duration: 2000,
345                            easing: 'swing',
346                            step: function () {
347                                $this.text(Math.floor(this.countNum));
348                            },
349                            complete: function () {
350                                $this.text(this.countNum);
351                            }
352                        }
353                    );
354                });
355                counted1 = 1;
356            }
357        }
358
359    });
360
361    // password hide show
362    $('.toggle-password').click(function () {
363        $(this).toggleClass('fa-eye fa-eye-slash')
364        var input = $($(this).attr('toggle'))
365        if (input.attr('type') == 'password') {
366            input.attr('type', 'text')
367        } else {
368            input.attr('type', 'password')
369        }
370    })
371
372    // -----Country Code Selection
373    // Initialize the phone input
374    // Initialize the phone input
375    // var input = $('#international_PhoneNumber_countrycode')
376    // input.intlTelInput({
377    //     initialCountry: 'gg', // Guernsey country code
378    //     separateDialCode: true, // Show dialing code separately
379    //     utilsScript:
380    //         'https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/js/utils.js'
381    // })
382
383    // // Hide only the flag using JS after the plugin initializes
384    // function hideFlag() {
385    //     document.querySelector('.iti__selected-flag .iti__flag').style.display =
386    //         'none'
387    // }
388
389    // // Hide the flag on initial load
390    // hideFlag()
391
392    // // Ensure the flag remains hidden when country changes
393    // input.on('countrychange', function () {
394    //     hideFlag()
395    // })
396})
397

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.