PageSourceSearch

https://www.playcsl.com/static/1.213.82/js/schedule.js

js playcsl.com collected 2026-09-24 10:55:35 UTC 2,785 bytes, 104 lines download raw bytes

1var ll_currentGameCell = null;
2
3$(document).ready(function()
4{
5	if ($("div.gameDate").length > 0)
6	{
7		//	clicking events for game cells and team names
8		$("div.gameDate.public").on ('click', 'td, div.teamAssignmentSlot', function (e) {
9			if (!$(this).is ('.gameTime,.locationSpacer,.noGame'))
10			{
11				showGameDetailPopup ($(this), e);
12				return false;
13			}
14		}).on ('click', 'td a, div.teamAssignmentSlot a', function (e) {
15			e.stopPropagation ();
16			return true;
17		});
18
19		//	hover effects for game cells
20		$("div.gameDate.public td,div.gameDate.public div.teamAssignmentSlot")
21		.not(".gameTime,.locationSpacer,.noGame,.gameField").hover (function (e) {
22			$(this).addClass("hover");
23		}, function (e) {
24			$(this).removeClass("hover");
25		}).addClass("clickable")
26		.find ('a').hover (function (e) {
27			$(this).addClass ("hover").parent ("td").addClass("linkHover");
28		}, function (e) {
29			$(this).removeClass("hover").parent("td").removeClass("linkHover");
30		});
31	}
32	
33	if ($("#teamScheduleTable").length > 0)
34	{
35		$("#teamScheduleTable").on ('click', 'a.openGameDetail', function (e) {
36			showGameDetailPopup ($(this).parent ("td"),e);
37			return false;
38		});
39	}
40
41	$("#gameDetailPopup a.closeWindowButton").on ('click', function () {
42		clearGameCell ();
43	});
44});
45
46function showGameDetailPopup (jGameCell, e)
47{
48	clearGameCell ();
49	ll_currentGameCell = jGameCell;
50	setLoadingState (true);
51	cacheGetJQ("#gameDetailPopup").popupNear (jGameCell);
52	
53	jGameCell.addClass("viewing");
54	var info = getGameCellDetails (jGameCell);
55	info["Time"] = info["RealTime"];
56	info["LeagueID"] = $(jGameCell).parents ("tr").attr ("id")
57		? extractID ($(jGameCell).parents ("tr").attr ("id"))
58		: jGameCell.parents("div.gameDate").find("input.gameDateHiddenLeagueIDInput").val();
59
60	$.post('/async/game', info, function(response,status)
61	{
62		if(status == "success" && response != "ERROR")
63		{
64			cacheGetJQ("#gameDetailPopupContent").html (response);
65			if ($.browser.msie && $.browser.version == "7.0")
66			{
67				//	WOW, this hack is almost as awful as IE7
68				setTimeout (function ()
69				{
70					cacheGetJQ("#gameDetailPopup").width (Math.max($("table.gameDetailTable").width() + 60, 530));
71				}, 300);
72			}
73			setLoadingState (false);
74		}
75		else
76		{
77			refreshPage ();
78		}
79	},"text");
80}
81
82function clearGameCell ()
83{
84	if (ll_currentGameCell)
85	{
86		ll_currentGameCell.removeClass ("viewing");
87		ll_currentGameCell = null;
88	}
89}
90
91//	determine whether to show the loading graphic or not
92function setLoadingState (fLoading)
93{
94	if (fLoading)
95	{
96		cacheGetJQ("#gameDetailPopupContent").addClass ("hidden");
97		cacheGetJQ("#schedulePopUpLoading").removeClass ("hidden");
98	}
99	else
100	{
101		cacheGetJQ("#schedulePopUpLoading").addClass ("hidden");
102		cacheGetJQ("#gameDetailPopupContent").removeClass ("hidden");
103	}
104} 

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.