PageSourceSearch

https://gujaratcricketassociation.com/wp-content/themes/ktheme/js/custom.js

js gujaratcricketassociation.com collected 2026-10-02 07:44:59 UTC 19,961 bytes, 673 lines download raw bytes

1jQuery(document).ready(function () {
2    // Mobile Menu
3    jQuery('.menu-toggle').click(function (event) {
4        event.preventDefault();
5        jQuery('body').toggleClass('mobile-menu-open');
6        jQuery('html').toggleClass('no-scroll');
7    });
8
9    jQuery('.search-icon').click(function() {
10        jQuery('.searchsec').toggleClass( 'show-search' );
11    });
12    jQuery('.searchsec .close').click(function() {
13        jQuery('.searchsec').removeClass( 'show-search' );
14    });
15
16    // Mobile Menu dropdown
17    jQuery('#primary-menu li.menu-item-has-children').prepend('<span class="mobile-menu-arrow las la-angle-right"></span>');
18    jQuery('#primary-menu li .mobile-menu-arrow').click(function () {
19        if (jQuery(this).hasClass("la-angle-right")) {
20            jQuery("#primary-menu li.menu-item").find(".la-angle-down").removeClass("la-angle-down").addClass('la-angle-right');
21            jQuery(this).parents(".sub-menu").find(".la-angle-down").removeClass("la-angle-down").addClass('la-angle-right');
22            jQuery("#primary-menu li.menu-item").removeClass("showsubmenu");
23            jQuery(this).parents(".sub-menu").find(".menu-item").removeClass("showsubmenu");
24            jQuery(this).removeClass("la-angle-right").addClass('la-angle-down');
25            jQuery(this).parent(".menu-item").addClass("showsubmenu");
26        } else {
27            jQuery(this).removeClass("la-angle-down").addClass('la-angle-right');
28            jQuery(this).parent(".menu-item").removeClass("showsubmenu");
29        }
30    })
31
32
33    jQuery('.btn-close, .navigation-menu ul#top-menu li a').click(function (event) {
34        event.preventDefault();
35        jQuery('body').removeClass('menu-open');
36        jQuery('html').removeClass('no-scroll');
37    });
38
39    $(".searchsec .inputsearch").on("click", function () {
40        $(".header-rightside").addClass("searchhere");
41    });
42    $(".searchsec .close").on("click", function () {
43        $(".header-rightside").removeClass("searchhere");
44        $(".inputsearch").val("");
45    });
46
47    $(".bookticket-widget .bookticket").on("click", function () {
48        $("body").toggleClass("open-bookticket");
49    });
50    $(".close-upcomingmatcheswidget").on("click", function () {
51        $("body").removeClass("open-bookticket");
52    });
53
54    $(".livematch-widget .livematchs").on("click", function () {
55        $("body").toggleClass("open-livematch");
56    });
57    $(".close-livematcheswidget").on("click", function () {
58        $("body").removeClass("open-livematch");
59    });
60
61    // $("button.menu-toggle").on("click", function () {
62    //     $("body").toggleClass("menuopen");
63    // });
64
65    $(".homeslider").slick({
66        autoplay: true,
67        fade: true,
68        autoplaySpeed: 2000,
69        dots: true,
70        infinite: true,
71        slidesToShow: 1,
72        autoplaySpeed: 5000,
73        speed: 1000,
74		cssEase: 'linear',
75        adaptiveHeight: true,
76        arrows: true
77        //asNavFor: '.homeslider-nav',
78    });
79    $('.homeslider-nav').slick({
80        autoplay: true,
81        autoplaySpeed: 2000,
82        slidesToShow: 4,
83        slidesToScroll: 1,
84        asNavFor: '.homeslider',
85        dots: true,
86        focusOnSelect: true, responsive: [
87            {
88                breakpoint: 1490,
89                settings: {
90                    slidesToShow: 3,
91                    slidesToScroll: 1,
92                    infinite: true,
93                    dots: true
94                }
95            },
96            {
97                breakpoint: 1200,
98                settings: {
99                    slidesToShow: 2,
100                    slidesToScroll: 1,
101                    infinite: true,
102                    dots: true
103                }
104            },
105            {
106                breakpoint: 480,
107                settings: {
108                    slidesToShow: 1,
109                    slidesToScroll: 1
110                }
111            }
112        ]
113    });
114    // Remove active class from all thumbnail slides
115    $('.homeslider-nav .slick-slide').removeClass('slick-active');
116
117    // Set active class to first thumbnail slides
118    $('.homeslider-nav .slick-slide').eq(0).addClass('slick-active');
119
120    // On before slide change match active thumbnail to current slide
121    $('.homeslider').on('beforeChange', function (event, slick, currentSlide, nextSlide) {
122        var mySlideNumber = nextSlide;
123        $('.homeslider-nav .slick-slide').removeClass('slick-active');
124        $('.homeslider-nav .slick-slide').eq(mySlideNumber).addClass('slick-active');
125    });
126    $(".affiliated-associations").slick({
127        dots: true,
128        infinite: true,
129        speed: 300,
130        slidesToShow: 6,
131        adaptiveHeight: true,
132        variableWidth: true,
133        responsive: [
134            {
135                breakpoint: 1280,
136                settings: {
137                    slidesToShow: 5,
138                    slidesToScroll: 1
139                }
140            },
141            {
142                breakpoint: 1200,
143                settings: {
144                    slidesToShow: 4,
145                    slidesToScroll: 1
146                }
147            },
148            {
149                breakpoint: 1024,
150                settings: {
151                    slidesToShow: 3,
152                    slidesToScroll: 1
153                }
154            },
155            {
156                breakpoint: 767,
157                settings: {
158                    slidesToShow: 2,
159                    slidesToScroll: 1
160                }
161            },
162            {
163                breakpoint: 480,
164                settings: {
165                    slidesToShow: 1,
166                    slidesToScroll: 1
167                }
168            }
169        ]
170    });
171
172    $(".upcoming-slider").slick({
173        dots: true,
174        infinite: true,
175        speed: 300,
176        slidesToShow: 1,
177        adaptiveHeight: true,
178        responsive: [
179            {
180                breakpoint: 1200,
181                settings: {
182                    slidesToShow: 1,
183                    slidesToScroll: 1
184                }
185            },
186            {
187                breakpoint: 575,
188                settings: {
189                    slidesToShow: 1,
190                    slidesToScroll: 1
191                }
192            }
193        ]
194    });
195
196    $(".msslider-slider").slick({
197        dots: true,
198        infinite: true,
199        speed: 300,
200        slidesToShow: 1,
201        adaptiveHeight: true
202    });
203    // $(".clubfacilities-slider").slick({
204    // dots: true,
205    // infinite: true,
206    // speed: 300,
207    // slidesToShow: 1,
208    // 	slidesToScroll: 1,
209    // adaptiveHeight: true
210    // });
211    $(".clubactivities-slider").slick({
212        dots: false,
213        infinite: true,
214        speed: 300,
215        slidesToShow: 1,
216        slidesToScroll: 1,
217        adaptiveHeight: true
218    });
219
220
221    $(".clubfacilities-slider-img").slick({
222        autoplay: true,
223        autoplaySpeed: 2000,
224        dots: false,
225        infinite: false,
226        speed: 300,
227        slidesToShow: 1,
228        adaptiveHeight: true,
229        easing: 'easeOutElastic',
230        asNavFor: '.clubfacilities-slider-content',
231    });
232    $('.clubfacilities-slider-content').slick({
233        autoplay: true,
234        autoplaySpeed: 2000,
235        slidesToShow: 1,
236        slidesToScroll: 1,
237        infinite: true,
238        asNavFor: '.clubfacilities-slider-img',
239        dots: false,
240        cssEase: 'linear',
241    });
242
243
244
245
246
247    $(".msgallery-slider").slick({
248        dots: false,
249        infinite: true,
250        speed: 300,
251        slidesToShow: 1,
252        adaptiveHeight: true,
253        asNavFor: '.msgallerynav-slider',
254    });
255    $(".msgallerynav-slider").slick({
256        dots: true,
257        infinite: true,
258        speed: 300,
259        slidesToShow: 5,
260        adaptiveHeight: true,
261        focusOnSelect: true,
262        variableWidth: true,
263        asNavFor: '.msgallery-slider',
264        responsive: [
265            {
266                breakpoint: 1440,
267                settings: {
268                    slidesToShow: 4,
269                    slidesToScroll: 1,
270                    infinite: true,
271                    dots: true
272                }
273            },
274            {
275                breakpoint: 1366,
276                settings: {
277                    slidesToShow: 3,
278                    slidesToScroll: 1
279                }
280            },
281            {
282                breakpoint: 1200,
283                settings: {
284                    slidesToShow: 2,
285                    slidesToScroll: 1
286                }
287            }
288        ]
289    });
290    $('.msgallery-slider').slickLightbox({
291        src: 'src',
292        itemSelector: '.msgallery-slider-popup img',
293        background: 'rgba(0, 0, 0, .7)'
294    });
295    // Remove active class from all thumbnail slides
296    $('.msgallerynav-slider .slick-slide').removeClass('slick-active');
297
298    // Set active class to first thumbnail slides
299    $('.msgallerynav-slider .slick-slide').eq(0).addClass('slick-active');
300
301    // On before slide change match active thumbnail to current slide
302    $('.msgallery-slider').on('beforeChange', function (event, slick, currentSlide, nextSlide) {
303        var mySlideNumber = nextSlide;
304        $('.msgallerynav-slider .slick-slide').removeClass('slick-active');
305        $('.msgallerynav-slider .slick-slide').eq(mySlideNumber).addClass('slick-active');
306    });
307    $(".featuredvideo-slider").slick({
308        dots: true,
309        infinite: true,
310        speed: 3000,
311        slidesToShow: 3,
312        adaptiveHeight: true,
313        variableWidth: false,
314        responsive: [
315            {
316                breakpoint: 1200,
317                settings: {
318                    slidesToShow: 3,
319                    slidesToScroll: 1,
320                    variableWidth: false,
321                }
322            },
323            {
324                breakpoint: 1024,
325                settings: {
326                    slidesToShow: 2,
327                    slidesToScroll: 1,
328                    variableWidth: false,
329                }
330            },
331            {
332                breakpoint: 767,
333                settings: {
334                    slidesToShow: 1,
335                    slidesToScroll: 1,
336                    variableWidth: false,
337                }
338            }
339        ]
340    });
341
342    $(".latestnews-slider").slick({
343        dots: true,
344        infinite: true,
345        cssEase: 'linear',
346        speed: 300,
347        slidesToShow: 3,
348        slidesToScroll: 1,
349        adaptiveHeight: true,
350        responsive: [
351            {
352                breakpoint: 1366,
353                settings: {
354                    slidesToShow: 4,
355                    slidesToScroll: 1
356                }
357            },
358            {
359                breakpoint: 1200,
360                settings: {
361                    slidesToShow: 3,
362                    slidesToScroll: 1
363                }
364            },
365            {
366                breakpoint: 1024,
367                settings: {
368                    slidesToShow: 2,
369                    slidesToScroll: 1
370                }
371            }
372            ,
373            {
374                breakpoint: 640,
375                settings: {
376                    slidesToShow: 1,
377                    slidesToScroll: 1
378                }
379            }
380        ]
381    });
382
383    $(".pressrelease-slider").slick({
384        dots: true,
385        infinite: true,
386        speed: 300,
387        slidesToShow: 1,
388        adaptiveHeight: true,
389    });
390
391    $(".events-slider").slick({
392        dots: true,
393        infinite: true,
394        speed: 300,
395        slidesToShow: 1,
396        adaptiveHeight: true,
397    });
398
399    $(".details-list-photos").slick({
400        autoplay: true,
401        fade: true,
402        autoplaySpeed: 2000,
403        dots: false,
404        infinite: true,
405        slidesToShow: 1,
406        autoplaySpeed: 5000,
407        speed: 1000,
408		cssEase: 'linear',
409        adaptiveHeight: true,
410        arrows: true,
411        slidesToScroll: 1,
412        asNavFor: '.details-list-photos-nav',
413    });
414    $('.details-list-photos-nav').slick({
415        slidesToShow: 6,
416        slidesToScroll: 1,
417        asNavFor: '.details-list-photos',
418        dots: false,
419        arrows: true,
420        centerMode: true,
421        focusOnSelect: true,
422        variableWidth: true,
423        adaptiveHeight: true,
424      });
425    /* upcoming matches */
426    var time = 2;
427    var $bar,
428        tick,
429        percentTime;
430    
431    var isPause = false;
432    $('.upcomingmatches').on('init', function (event, slick, currentSlide, nextSlide) {
433        //currentSlide is undefined on init -- set it to 0 in this case (currentSlide is 0 based)
434        var i = (currentSlide ? currentSlide : 0) + 1;
435        //$status.text(i + '/' + slick.slideCount);
436        //console.log(slick.slideCount);
437        if (slick.slideCount > 4) {
438            // $('.slider-progress').show();
439            $('.progress-round__wrap').show();
440            $bar = $('.slider-progress .progress');
441            // $barRound = $('.progress');
442
443             $('.upcomingmatches-wrapper').on({
444                 mouseenter: function () {
445                     isPause = true;
446                },
447                 mouseleave: function () {
448                     isPause = false;
449                 }
450             });
451             function startProgressbar() {
452                resetProgressbar();
453                percentTime = 0;
454                tick = setInterval(interval, 20);
455            }
456            
457            var $rbar = $('.progress circle');
458            var rlen = 2 * Math.PI * $rbar.attr('r');
459            function interval() {
460                if(isPause === false) {
461                    percentTime += 1 / (time + 0.1);
462                    $bar.css({
463                        width: percentTime + '%'
464                    });
465                    $rbar.css({
466                        'stroke-dasharray': rlen,
467                        'stroke-dashoffset': rlen * (1 - percentTime / 100)
468                    });
469                    if (percentTime >= 100) {
470                        $('.upcomingmatches').slick('slickNext');
471                        startProgressbar();
472                    }
473                }
474            }
475            function resetProgressbar() {
476                $bar.css({
477                    width: 0 + '%'
478                });
479                clearTimeout(tick);
480            }
481            startProgressbar();
482        }
483    });
484    $upcomingmatches = $('.upcomingmatches');
485    $upcomingmatches.slick({
486        draggable: true,
487        adaptiveHeight: true,
488        dots: false,
489        arrows: true,
490        //appendArrows: $(this).find('#upcommingmatcharrowsdiv'),
491        mobileFirst: true,
492        pauseOnDotsHover: true,
493        slidesToShow: 4,
494        responsive: [
495            {
496                breakpoint: 1400,
497                settings: {
498                    slidesToShow: 4,
499                    slidesToScroll: 1
500                }
501            },
502            {
503                breakpoint: 1359,
504                settings: {
505                    slidesToShow: 4,
506                    slidesToScroll: 1
507                }
508            },
509            {
510                breakpoint: 1282,
511                settings: {
512                    slidesToShow: 3,
513                    slidesToScroll: 1
514                }
515            },
516            {
517                breakpoint: 992,
518                settings: {
519                    slidesToShow: 3,
520                    slidesToScroll: 1
521                }
522            },
523            {
524                breakpoint: 640,
525                settings: {
526                    slidesToShow: 2,
527                    slidesToScroll: 1
528                }
529            }
530            ,
531            {
532                breakpoint: 320,
533                settings: {
534                    slidesToShow: 1,
535                    slidesToScroll: 1
536                }
537            }
538        ]
539    });
540
541    /*$(".upcomingmatches").slick({
542        autoplay: true,
543        slidesToShow: 4,
544        autoplaySpeed: 1000,
545        dots: false,
546        infinite: true,
547        speed: 300,
548        adaptiveHeight: true,
549        //asNavFor: '.homeslider-nav',
550    });*/
551
552    $('.photodetail-for').slick({
553        slidesToShow: 1,
554        slidesToScroll: 1,
555        arrows: true,
556        fade: true,
557        asNavFor: '.photodetail-nav',
558        
559      });
560      $('.photodetail-nav').slick({
561        slidesToShow: 6,
562        slidesToScroll: 2,
563        asNavFor: '.photodetail-for',
564        dots: false,
565        arrows: true,
566        autoplay: true,
567        centerMode: false,
568        focusOnSelect: true,
569        responsive: [
570            {
571                breakpoint: 991,
572                settings: {
573                    slidesToShow: 4,
574                    slidesToScroll: 2
575                }
576            },
577            {
578                breakpoint: 640,
579                settings: {
580                    slidesToShow: 2,
581                    slidesToScroll: 1
582                }
583            }
584        ]
585      });
586      $('.photodetail-for').slickLightbox({
587        src: 'href',
588        itemSelector: '.item .imagezoom'
589      });
590
591    // $(".affiliated-image-div").addClass('open-image');
592    $("#affiliated-image").addClass('active');
593    $('#affiliated-image').on('click', function(event, ui) {
594        if($(".affiliated-image-div").hasClass('open-image')) {
595            $(".affiliated-image-div").removeClass('open-image');
596        }else {
597            $(".affiliated-image-div").addClass('open-image');
598        }
599        $(this).toggleClass("active");
600        $(".affiliated-image-div").toggle();
601      });
602    
603    if($('#menu-management-team-categories li').hasClass('current_page_ancestor')){
604        $('#menu-management-team-categories li.current_page_ancestor').addClass("support-staff-active")
605    }
606    (function ($) {
607         $(window).on("load", function () {
608             $(".site-header .upcomingmatches-widget").mCustomScrollbar();
609         });
610    })(jQuery);
611    
612
613    $('.phone').on('keypress', function (event) {
614        //alert("sfs");
615        var key = window.event ? event.keyCode : event.which;
616        if (event.keyCode == 8 || event.keyCode == 46 || event.keyCode == 37 || event.keyCode == 39) {
617            return true;
618        }
619        else if (key < 48 || key > 57) {
620            return false;
621        }
622        else return true;
623    });
624
625    /*jQuery('#searchsubmit').on('click',function(e){
626        if(jQuery('#s').val() == ""){
627            e.preventDefault();
628        }
629    });*/
630
631    // MAtch Height
632    jQuery('.match-height').matchHeight({
633        byRow: true,
634    });
635});
636
637
638$(window).scroll(function () {
639    if ($(window).scrollTop() >= 150) {
640        $('header.site-header').addClass('stickyheader');
641    } else {
642        $('header.site-header').removeClass('stickyheader');
643    }
644});
645
646
647
648
649
650//Match Height 
651jQuery(window).resize(function () {
652    jQuery('.match-height').matchHeight({
653        byRow: true,
654    });
655});
656
657jQuery(window).on('load', function () {
658    jQuery('.match-height').matchHeight({
659        byRow: true,
660    });
661});
662
663//Sticky Footer
664//    $(window).scroll(function(){
665//         var fixquick = $('.home-quick-links').height(); 
666
667//         if( $(window).scrollTop() > fixquick+100 ) {
668//             $(".home-quick-links").addClass('quicklink-fix');  
669//         }
670//         else {
671//             $('.home-quick-links').removeClass('quicklink-fix');
672//         }
673//     });

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.