PageSourceSearch

https://www.maharashtraopen.com/js/common.js?version=03102607:08:57

js maharashtraopen.com collected 2026-10-03 01:39:26 UTC 4,216 bytes, 113 lines download raw bytes

1var mobile_breakpoint=768;
2
3$(".fancy-dropdown-contain .dropdown-menu li a").click(function(){
4  $('.dropdown-menu li a').removeClass('selected');
5  $(this).addClass('selected');
6  $(this).parents(".fancy-dropdown-contain").find('.dropdown-toggle').html($(this).text() + ' <span class="caret"></span>');
7});
8$('#toggle').click(function() {
9  $(this).toggleClass('active');
10  $('body').toggleClass('open-menu');
11  $('#overlay').toggleClass('open');
12  $('.overlay-menu .site-logo').fadeToggle();
13});
14$(window).resize(function() {
15	responsive_triggers();
16});
17$(function() {
18  if($('#sb-search').length > 0){
19    new UISearch( document.getElementById( 'sb-search' ) );
20  }
21});
22$(document).on('ready', function() {
23    
24  if($('#sb-search').length > 0){
25    new UISearch( document.getElementById( 'sb-search' ) );
26    // (function() {
27    //   'use strict';
28    //   // breakpoint where swiper will be destroyed
29    //   // and switches to a dual-column layout
30    //   const breakpoint = window.matchMedia( '(min-width:768px)' );
31    //   // keep track of swiper instances to destroy later
32    //   let mySwiper;
33    //   const breakpointChecker = function() {
34    //     // if larger viewport and multi-row layout needed
35    //     if ( breakpoint.matches === true ) {
36    //         // clean up old instances and inline styles when available
37    //         if ( mySwiper !== undefined ) mySwiper.destroy( true, true );
38    //         // or/and do nothing
39    //         return;
40    //         // else if a small viewport and single column layout needed
41    //         } else if ( breakpoint.matches === false ) {
42    //         // fire small viewport version of swiper
43    //         return enableSwiper();
44    //         }
45    //   };
46    //   const enableSwiper = function() {
47    //     mySwiper = new Swiper ('.swiper-container', {
48    //       loop: true,      
49    //       slidesPerView: 1,
50    //       a11y: true,
51    //       keyboardControl: true,
52    //       grabCursor: true,
53    //       // pagination
54    //       pagination: '.swiper-pagination',
55    //       paginationClickable: true,
56    //     });
57    //   };
58    //   // keep an eye on viewport size changes
59    //   breakpoint.addListener(breakpointChecker);
60    //   // kickstart
61    //   breakpointChecker();
62    // })(); /* IIFE end */
63  
64  }
65	responsive_triggers();
66  $('.copy-link').tooltip({trigger: 'manual'});
67});
68
69function responsive_triggers(){ 
70  $('body.news section.menu-gap').css('margin-top',($('.navbar.navbar-fixed-top').innerHeight()));
71  $('body.draw section.menu-gap').css('margin-top',($('.navbar.navbar-fixed-top').innerHeight()));
72  $('body.players section.menu-gap').css('margin-top',($('.navbar.navbar-fixed-top').innerHeight()));
73  $('body.archive section.menu-gap').css('margin-top',($('.navbar.navbar-fixed-top').innerHeight()));
74  $('body.match-center section.menu-gap').css('margin-top',($('.navbar.navbar-fixed-top').innerHeight()));
75  if ($(window).width()<mobile_breakpoint) {
76    $('section.menu-gap').css('margin-top',($('.navbar.navbar-fixed-top').innerHeight()));
77  }else{
78    // $('.news-section .fp-tableCell').css('padding-top',($('.navbar.navbar-fixed-top').innerHeight()));
79  }
80  var position_menu=(($('.navbar.navbar-fixed-top').innerHeight())-($('#sb-search').innerHeight()))/2;
81  $('#sb-search, #toggle').css('top', position_menu);
82}
83function openNav(item) {
84  // $("#full-menu .full-menu-header").show();
85  $(item).toggleClass('open closed');
86  if($('.sidenav').hasClass('open')){
87    document.getElementById("full-menu").style.left = "0%";
88  }
89  if($('.sidenav').hasClass('closed')){
90    document.getElementById("full-menu").style.left = "100%";
91  }
92}
93// var clipboard = new Clipboard('.copy-link', {
94//     text: function() {
95//         return window.location.href;
96//     }
97// });
98// clipboard.on('success', function(e) {
99//     $('.copy-link').tooltip('show');
100//     setTimeout(function(){
101//       $('.copy-link').tooltip('hide');
102//     }, 1000); 
103// });
104function closeNav() { 
105  // $("#full-menu .full-menu-header").hide();
106}
107$(window).on('load', function(){
108  $(".loader").slideUp("slow");
109  setTimeout(function() {
110    // $(".loader").remove();
111  }, 1000);    
112  responsive_triggers();
113});

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.