PageSourceSearch

https://www.ccasports.com/static/1.213.82/js/cca/main.js

js ccasports.com collected 2026-09-24 13:13:50 UTC 2,215 bytes, 79 lines download raw bytes

1$(document).ready(function(){
2
3	// excludeSecondarySportMenu hides sport menu when the URL is a 'pickup' custom page, like "ccasports.com/page/pickuppickleball" 
4	function excludeSecondarySportMenu() {
5		const currentURL = window.location.href.toLowerCase();
6		const pickupPage = currentURL.includes("/page/pickup");
7		
8		if (pickupPage) {
9			document.getElementById("sportMenu").style.display = 'none';
10		}
11	}
12
13	bindOverlayEvents ('#mainMenu_Leagues a', '#leaguesPopup');
14	bindOverlayEvents ('#mainMenu_Events a', '#eventsPopup');
15	bindOverlayEvents ('#mainMenu_AboutUs a', '#aboutUsPopup');
16	bindOverlayEvents ('#mainMenu_Pick-UpPlay a', '#pickUpPlayPopup');
17	excludeSecondarySportMenu();
18
19	if ($("#sliderRow").length > 0) {
20		$("#sliderRow .flexSliderInner").flexslider({
21			animation: "slide",
22			controlsContainer: ".flexSliderOuter"
23		});
24	}
25
26	if($("#sponsorCarousel").length){
27		$('#sponsorCarousel').flexslider({
28	        animation: "slide",
29	        controlNav: true,
30	        animationLoop: true,
31	        slideshow: true,
32	        itemMargin: 65,
33	        slideshowSpeed: 10000,
34	        minItems: 1,
35	        itemWidth: 300,
36	        pauseOnHover : true,
37	      });
38	}
39
40	if (typeof LLResponsive != 'undefined') {
41		LLResponsive.getSiteMenus = function () {
42			var siteMenus = [];
43			var sportMenu = null;
44			var topLinks = [];
45
46			$("#leaguesPopup .subMenu").each (function () {
47				var title = $(this).find ("h3").text ();
48				LLResponsive.addMenu (siteMenus, title, $(this));
49			});
50
51			var contactLinks = LLResponsive.fetchMenuLinks ($("#footer .socialLinks li"));
52			contactLinks.unshift ({
53				href: '/page/contact',
54				label: 'Contact Us'
55			});
56			siteMenus.push ({
57				name: 'Contact',
58				links: contactLinks
59			});
60
61			$.each (LLResponsive.fetchMenuLinks ($("#mainMenuLinks")), function (index, link) {
62				if (link.label != 'Leagues' && link.label != 'Schedules & Standings') {
63					topLinks.push (link);
64				}
65			});
66
67			var $sportMenu = $("#sportMenu");
68			if ($sportMenu.length > 0) {
69				sportMenu = {
70					name: $sportMenu.find ('h2').text (),
71					links: LLResponsive.fetchMenuLinks ($sportMenu)
72				};
73			}
74
75			return { Site: siteMenus, Sport: sportMenu, Top: topLinks };
76		}
77	}
78});
79

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.