PageSourceSearch

https://www.wbspenguins.com/wp-content/themes/wbspenguins/js/custom.js?ver=222750

js wbspenguins.com collected 2026-10-02 05:31:27 UTC 17,961 bytes, 545 lines download raw bytes

1jQuery(document).ready(function($) {
2	
3	// INDIVIDUAL TICKETS Page - BUY TICKETS Button
4	document.addEventListener("click", function(e) {
5	  if (e.target.closest(".gm-buy-ticket")) {
6		const btn = e.target.closest(".gm-buy-ticket");
7		const id = btn.getAttribute("data-id");
8
9		if (typeof GMWidget !== "undefined") {
10		  GMWidget.open(id);
11		}
12	  }
13	});
14	
15  jQuery('.individual-slide').slick({
16    dots: true,
17    infinite: true,
18    speed: 300,
19    slidesToShow: 1,
20    adaptiveHeight: true,
21    arrows: false,
22  });
23
24  // Carousel Slider (Left Image Carousel Right Content)
25  jQuery('.lcarousel_slider').slick({
26    dots: true,
27    infinite: false,
28    speed: 300,
29    slidesToShow: 1,
30    adaptiveHeight: true,
31    arrows: false,
32  });
33  // END Carousel Slider
34
35    // Add "show-div" class to the first FAQ box and "show" class to its answer
36    $(".faq-box:first").addClass("show-div");
37    $(".faq-box:first .faq-answer").addClass("show").slideDown();
38
39    $(".faq-box").click(function(e) {
40        e.preventDefault();
41        let $this = $(this);
42        $(".faq-box").not($this).removeClass("show-div");
43        $(".faq-answer").not($this.find(".faq-answer")).removeClass("show").slideUp();
44        $this.find(".faq-answer").toggleClass("show").slideToggle();
45        $this.toggleClass("show-div");
46    });
47
48    // Prevent the click on .faq-answer from triggering the .faq-box click
49    $(".faq-answer").click(function(e) {
50        e.stopPropagation();
51    });
52});
53
54jQuery(document).ready(function() {
55  // Click event for search-icon
56jQuery(".search-icon").click(function(e) {
57  e.stopPropagation(); // Prevents the click event from propagating to the document
58  jQuery(".serach-pop-form").addClass('active');
59});
60
61// Click event for search-submit
62jQuery(".search-submit").click(function() {
63  jQuery(".serach-pop-form").removeClass('active');
64});
65
66// Click event for document
67jQuery(document).click(function(e) {
68  // Check if the clicked element is not a child of search-icon or serach-pop-form
69  if (!jQuery(e.target).closest('.search-icon, .serach-pop-form').length) {
70    jQuery(".serach-pop-form").removeClass('active');
71  }
72});
73
74
75
76  // jQuery('.faq-box').click(function(e) {
77  //   e.preventDefault();
78  //   let $this = jQuery(this);
79
80  //   $this.toggleClass('show-div'); // Toggle the 'show-div' class on the clicked .faq-box
81
82  //   if ($this.find('.faq-question').next().hasClass('show')) {
83  //       $this.find('.faq-question').siblings().removeClass('show');
84  //       $this.find('.faq-question').removeClass('active');
85  //       $this.find('.faq-question').next().slideUp(350);
86  //   } else {
87  //       $this.find('.faq-question').parent().parent().find('.faq-answer').removeClass('show');
88  //       $this.find('.faq-question').parent().parent().find('.faq-question').removeClass('active');
89  //       $this.find('.faq-question').next().toggleClass('show');
90  //       $this.find('.faq-question').toggleClass('active');
91  //       $this.find('.faq-question').next().slideToggle(350);
92  //   }
93  // });
94
95
96
97
98  Fancybox.bind("[data-fancybox]", {});
99  jQuery('.open').click(function() {
100      jQuery('.mobile-menu').addClass('active');
101  });
102  jQuery('.close').click(function() {
103      jQuery(this).parent('.mobile-menu').removeClass('active');
104  });
105
106  
107  jQuery('.latest-news-wrap').slick({
108      slidesToShow: 5,
109      slidesToScroll: 1,
110      autoplay: false,
111      autoplaySpeed: 2000,
112      responsive: [{
113              breakpoint: 9999,
114              settings: "unslick"
115          },
116          {
117              breakpoint: 1100,
118              settings: {
119                  autoplay: true,
120                  autoplaySpeed: 0,
121                  speed: 8000,
122                  infinite: true,
123                  arrows: false,
124                  swipe: false,
125                  slidesToShow: 2,
126                  cssEase: 'linear',
127                  pauseOnFocus: false,
128                  pauseOnHover: false,
129              },
130          },
131          {
132              breakpoint: 767,
133              settings: {
134                  autoplay: true,
135                  autoplaySpeed: 0,
136                  speed: 8000,
137                  infinite: true,
138                  arrows: false,
139                  swipe: false,
140                  slidesToShow: 1,
141                  cssEase: 'linear',
142                  pauseOnFocus: false,
143                  pauseOnHover: false,
144              },
145          }
146      ]
147  });
148
149  jQuery('.footer-boxes-list').slick({
150      slidesToShow: 1,
151      slidesToScroll: 1,
152      autoplay: false,
153      autoplaySpeed: 2000,
154      responsive: [{
155              breakpoint: 9999,
156              settings: "unslick"
157          },
158          {
159              breakpoint: 767,
160              settings: {
161                  slidesToShow: 1,
162                  slidesToScroll: 1,
163                  centerMode: true,
164                  centerPadding: '35px',
165                  autoplay: true,
166                  autoplaySpeed: 3000,
167                  arrows: false,
168                  dots: false,
169              },
170          }
171      ]
172  });
173
174
175
176
177  jQuery('.logo-slider-wrap').slick({
178      dots: false,
179      infinite: true,
180      speed: 300,
181      slidesToShow: 6,
182      autoplay: true,
183      autoplaySpeed: 3000,
184      slidesToScroll: 1,
185      responsive: [{
186              breakpoint: 1440,
187              settings: {
188                  slidesToShow: 5,
189                  slidesToScroll: 1,
190              }
191          },
192          {
193              breakpoint: 1360,
194              settings: {
195                  slidesToShow: 4,
196                  slidesToScroll: 1,
197
198
199              }
200          },
201          {
202              breakpoint: 1024,
203              settings: {
204                  slidesToShow: 3,
205                  slidesToScroll: 1,
206              }
207          },
208          {
209              breakpoint: 600,
210              settings: {
211                  slidesToShow: 2,
212                  slidesToScroll: 1,
213                  centerMode: true,
214                  centerPadding: '60px',
215              }
216          },
217          {
218              breakpoint: 480,
219              settings: {
220                  slidesToShow: 1,
221                  slidesToScroll: 1,
222                  centerMode: true,
223                  centerPadding: '60px',
224              }
225          }
226          // You can unslick at a given breakpoint now by adding:
227          // settings: "unslick"
228          // instead of a settings object
229      ]
230  });
231
232
233  jQuery('.banner-slider').slick({
234      dots: false,
235      arrows: false,
236      infinite: true,
237      speed: 500,
238      slidesToShow: 1,
239      slidesToScroll: 1,
240      asNavFor: '.slider-number'
241  });
242  jQuery('.slider-number').slick({
243      slidesToShow: 1,
244      asNavFor: '.banner-slider',
245      dots: false,
246      arrows: false,
247  });
248
249  jQuery("#redirectButton").click(function() {
250      var selectedOption = jQuery("#ahl_site_select").val();
251      if (selectedOption) {
252          window.open(selectedOption, "_blank");
253      } else {
254          alert("Please select a site before clicking the button.");
255      }
256  });
257
258});
259jQuery(document).ready(function() {
260
261    
262    
263
264  jQuery('.featured-news-wrap .featured-tab a').on('click', function(event){
265    event.preventDefault();
266
267    // Remove 'active' class from all tabs
268    jQuery('.featured-news-wrap .featured-tab li a').removeClass('active');
269
270    // Add 'active' class to the clicked tab
271    jQuery(this).addClass('active');
272
273    // Hide all content
274    jQuery('.tab-button .common-btn, .featured-news-wrap .featured-video-wrap').hide();
275
276    // Show the corresponding content based on the clicked tab
277    var tabId = jQuery(this).attr('href');
278    jQuery(tabId).show();
279
280    // Show the corresponding tab button based on the clicked tab
281    var tabBtnClass = jQuery(this).attr('href').split('#')[1];
282    jQuery('.tab-button .' + tabBtnClass).show();
283  });
284
285
286  // Roster Pages Script Start
287  if (jQuery("body").hasClass("page-template-Roster")) {
288      //api roster page
289      var season_id = jQuery(".select_season").prop("selectedIndex", 0).val();
290      get_roster_data_load(season_id);
291
292      function get_roster_data_load(season_id) {
293          jQuery.ajax({
294              type: "post",
295              url: ajax_object.ajaxurl,
296              data: {
297                  'action': 'roster_data_load',
298                  'season_id': season_id
299              },
300              beforeSend: function() {
301                  jQuery(".pe-loading").css('display', 'block');
302              },
303              success: function(msg) {
304                  console.log("msg", msg);
305                  jQuery('.stats-result').html(msg);
306              },
307              complete: function(data) {
308                  jQuery(".pe-loading").css('display', 'none');
309              }
310          });
311      }
312
313      jQuery(document).on('change', '.select_season', function() {
314          var season_id = jQuery(this).val();
315          get_roster_data_load(season_id);
316
317      });
318
319  }
320  // Roster Pages Script End
321
322  // Player Stats Pages Script Start
323  if (jQuery("body").hasClass("page-template-Stats")) {
324      var player_type = "skaters";
325      var season_id = jQuery(".select_season").prop("selectedIndex", 0).val();
326      var rookie = jQuery(".rookie-container .rookie").attr("data-rookie");
327      var goalie_type = jQuery(".goalie-list .btn-active").attr('data-goalie');
328      var skater_type = jQuery(".skater-list .btn-active").attr('data-skaters');
329      get_data_load(player_type, season_id, rookie, skater_type, goalie_type);
330
331
332      function get_data_load(player_type, season_id, rookie, skater_type, goalie_type) {
333          jQuery.ajax({
334              type: "post",
335              url: ajax_object.ajaxurl,
336              data: {
337                  'action': 'data_load',
338                  'player_type': player_type,
339                  'season_id': season_id,
340                  'rookie': rookie,
341                  'skater_type': skater_type,
342                  'goalie_type': goalie_type
343              },
344              beforeSend: function() {
345                  jQuery(".pe-loading").css('display', 'block');
346              },
347              success: function(msg) {
348                  console.log("msg", msg);
349                  jQuery('.stats-result').html(msg);
350              },
351              complete: function(data) {
352                  jQuery(".pe-loading").css('display', 'none');
353              }
354          });
355      }
356
357
358
359      jQuery(document).on('change', '.select_season', function() {
360          var player_type = jQuery('.player-list .btn-active').attr('data-player');
361          var season_id = jQuery(this).val();
362          var rookie = jQuery(".rookie-container .rookie").attr("data-rookie");
363          var goalie_type = jQuery(".goalie-list .btn-active").attr('data-goalie');
364          var skater_type = jQuery(".skater-list .btn-active").attr('data-skaters');
365          get_data_load(player_type, season_id, rookie, skater_type, goalie_type);
366      });
367
368      //player type filter
369      jQuery(document).on('click', '.player-type', function() {
370          jQuery('.player-list .player-type').removeClass("btn-active");
371          jQuery(this).addClass("btn-active");
372          var player_type = jQuery(this).attr('data-player');
373          if (player_type == "skaters") {
374              jQuery(".goalie-type-container").hide();
375              jQuery(".skater-type-container").show();
376          } else {
377              jQuery(".skater-type-container").hide();
378              jQuery(".goalie-type-container").show();
379          }
380          var season_id = jQuery('.select_season :selected').val();
381          var rookie = jQuery(".rookie-container .rookie").attr("data-rookie");
382          var goalie_type = jQuery(".goalie-list .btn-active").attr('data-goalie');
383          var skater_type = jQuery(".skater-list .btn-active").attr('data-skaters');
384          get_data_load(player_type, season_id, rookie, skater_type, goalie_type);
385          //console.log("season_id",season_id); 
386      });
387
388      //Rookie checkbox filter
389      jQuery(document).on('click', '.rookie', function(event) {
390          console.log("hii");
391          var rookie = "no";
392          if (event.target.checked) {
393              console.log("checked");
394              jQuery(this).attr("data-rookie", "yes");
395              rookie = "yes";
396          } else {
397              console.log("Un checked");
398              jQuery(this).attr("data-rookie", "no");
399          }
400          var player_type = jQuery(".player-list .btn-active").attr('data-player');
401          var season_id = jQuery('.select_season :selected').val();
402          var goalie_type = jQuery(".goalie-list .btn-active").attr('data-goalie');
403          var skater_type = jQuery(".skater-list .btn-active").attr('data-skaters');
404          get_data_load(player_type, season_id, rookie, skater_type, goalie_type);
405
406      });
407
408      //skaters type filter
409      jQuery(document).on('click', '.skater-type', function() {
410          //var stats = "division";
411          jQuery('.skater-list .skater-type').removeClass("btn-active");
412          jQuery(this).addClass("btn-active");
413          var skater_type = jQuery(this).attr('data-skaters');
414          var player_type = jQuery(".player-list .btn-active").attr('data-player');
415          var season_id = jQuery('.select_season :selected').val();
416          var rookie = jQuery(".rookie-container .rookie").attr("data-rookie");
417          var goalie_type = jQuery(".goalie-list .btn-active").attr('data-goalie');
418          get_data_load(player_type, season_id, rookie, skater_type, goalie_type);
419          //console.log("season_id",season_id); 
420      });
421
422      //goalies type filter
423      jQuery(document).on('click', '.goalie-type', function() {
424          //var stats = "division";
425          jQuery('.goalie-list .goalie-type').removeClass("btn-active");
426          jQuery(this).addClass("btn-active");
427          var goalie_type = jQuery(this).attr('data-goalie');
428          var player_type = jQuery(".player-list .btn-active").attr('data-player');
429          var season_id = jQuery('.select_season :selected').val();
430          var rookie = jQuery(".rookie-container .rookie").attr("data-rookie");
431          var skater_type = jQuery(".skater-list .btn-active").attr('data-skaters');
432          get_data_load(player_type, season_id, rookie, skater_type, goalie_type);
433          //console.log("season_id",season_id); 
434      });
435
436      //quick view
437      jQuery(document).on('change', '.quick-list', function() {
438          var quik_view = jQuery(this).val();
439          var season_id = jQuery('.select_season :selected').val();
440          get_quick_load(quik_view, season_id);
441      });
442
443      //get_quick_load function 
444      function get_quick_load(quik_view, season_id) {
445          jQuery.ajax({
446              type: "post",
447              url: ajax_object.ajaxurl,
448              data: {
449                  'action': 'data_load',
450                  'quik_view': quik_view,
451                  'season_id': season_id
452              },
453              beforeSend: function() {
454                  jQuery(".pe-loading").css('display', 'block');
455              },
456              success: function(msg) {
457                  console.log("msg", msg);
458                  jQuery('.stats-result').html(msg);
459              },
460              complete: function(data) {
461                  jQuery(".pe-loading").css('display', 'none');
462              }
463          });
464      }
465  }
466  // Player Stats Pages Script End
467
468  // League Standings Pages Script Start
469  if (jQuery("body").hasClass("page-template-Standings")) {
470      //api second page
471      var stats = "division";
472      var season_id = jQuery(".select_season").prop("selectedIndex", 0).val();
473      get_devision_data_load(season_id, stats);
474
475      function get_devision_data_load(season_id, stats) {
476          jQuery.ajax({
477              type: "post",
478              url: ajax_object.ajaxurl,
479              data: {
480                  'action': 'division_data_load',
481                  'season_id': season_id,
482                  'stats': stats
483              },
484              beforeSend: function() {
485                  jQuery(".pe-loading").css('display', 'block');
486                  console.log( season_id, stats );
487              },
488              success: function(msg) {
489                  console.log("msg", msg);
490                  jQuery('.stats-result').html(msg);
491              },
492              complete: function(data) {
493                  jQuery(".pe-loading").css('display', 'none');
494              }
495          });
496      }
497      //filter by statstype 
498      jQuery(document).on('click', '.ge-team-stats', function() {
499          var stats = jQuery(this).data('stats');
500          jQuery('.ge-team-stats').removeClass('peactive');
501          jQuery(this).addClass('peactive');
502          var season_id = jQuery('.select_season :selected').val();
503          get_devision_data_load(season_id, stats);
504
505      });
506
507      jQuery(document).on('change', '.select_season', function() {
508          //var stats = "division";
509          var season_id = jQuery(this).val();
510          var stats = jQuery(".peactive").data('stats');
511          get_devision_data_load(season_id, stats);
512
513      });
514
515      //quick view
516      jQuery(document).on('change', '.quick-list', function() {
517          var quik_view = jQuery(this).val();
518          if (quik_view != "none") {
519              var season_id = jQuery('.select_season :selected').val();
520              get_devision_data_load(season_id, quik_view);
521          }
522      });
523
524  }
525  // League Standings Pages Script End
526
527  jQuery('.blog-right-panel tbody tr:first-child td').each(function(i,elem) {
528    var num = i + 1;
529    jQuery('table td:nth-child(' + num + ')').attr('data-label', jQuery(elem).text());
530  });
531
532});
533
534
535
536// Powered By E rotate 
537var enx2_rotate = 0;
538setInterval(function(){
539  if(undefined !== jQuery){
540    enx2_rotate++;
541    var e = jQuery('#enx2_logo path')[0];
542    jQuery(e).css('transform', 'rotate('+(180 * enx2_rotate)+'deg)');
543  }
544}, 5000);
545// Powered By E rotate End

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.