PageSourceSearch

https://static.subagames.com/PORTAL/scripts/master.js

js subagames.com collected 2026-10-03 21:48:36 UTC 5,897 bytes, 174 lines download raw bytes

1$(function() {
2	$(".SubaLink").parent().each(function() {
3		$(this).hover(function() {
4			var i = "." + $(this).attr('class') + " > .DDL_Menu";
5			$(i).show();
6		}, function() {
7			var o = "." + $(this).attr('class') + " > .DDL_Menu";
8			$(o).hide();
9		});
10	});
11
12	//Initialize Layout Height, Adjust on resize
13	//$("#PortalTheme").css({ 'height': $(window).height() });
14	//window.onresize = function() {
15	//	$("#PortalTheme").css({ 'height': $(window).height() });
16	//};
17
18	//Help Button behavior
19	$(".InfoButton").click(function() {
20		$(".InfoContent").show();
21		$(".InfoMask").show();
22	});
23
24	$(".InfoMask").click(function() {
25		$(".InfoContent").hide();
26		$(this).hide();
27	});
28
29	//Initialize Theme
30	$("#PortalTheme").attr('class', $(".GlobalTheme").val());
31
32	//Game Icon Effects - default.asxp
33	$(".Icon").each(function() {
34		$(this).parent().hover(function() {
35			$("." + $(this).attr("class") + " > .Icon_Hover").fadeIn('fast', function() {
36				$(this).show();
37			});
38		}, function() {
39			$("." + $(this).attr("class") + " > .Icon_Hover").fadeOut('fast', function() {
40				$(this).hide();
41			});
42		});
43	});
44
45	//Social Icon Effect - default.aspx
46	$(".Social_Share, .Social_YouTube").hover(function() {
47		$(this).animate({ right: '-35px' }, 50);
48	}, function() {
49		$(this).animate({ right: '-30px' }, 50);
50	});
51
52	//Custom Scroll Bar for News Section
53	if ($(".NewsContent").length > 0)
54		$(".NewsContent").jScrollPane();
55
56	$(".jScrollPaneContainer").hover(function() {
57		$(".jScrollPaneTrack").fadeIn('fast', function() {
58			$(".jScrollPaneTrack").show();
59		});
60	}, function() {
61		$(".jScrollPaneTrack").fadeOut('fast', function() {
62			$(".JScrollPaneTrack").hide();
63		});
64	});
65
66	var FontColor = "#54ac11";
67	if ($(".GlobalTheme").val() == "Dark")
68		FontColor = "#78FE15";
69	switch (location.href.replace(location.protocol, '')) {
70		case "//www.subagames.com/":
71			{
72				$(".Category_Home > .SubaLink").css("color", FontColor);
73				$(".Category_Home > .SubaLink").css("pointer", "default");
74				var ed = document.createElement("div");
75				ed.setAttribute("style", "position:absolute;width:100%;height:100%;backround-color:Transparent;top:0px;left:0px;");
76				$(".Category_Home").append(ed);
77				break;
78			}
79		case "//www.subagames.com/SubaBank.aspx":
80			{
81				$(".Category_Mall > .SubaLink").css("color", FontColor);
82				$(".Category_Mall > .SubaLink").css("pointer", "default");
83				var ed = document.createElement("div");
84				ed.setAttribute("style", "position:absolute;width:100%;height:100%;backround-color:Transparent;top:0px;left:0px;");
85				$(".Category_Mall").append(ed);
86				break;
87			}
88		case "//www.subagames.com/SubaMall.aspx":
89			{
90				$(".Category_Mall > .SubaLink").css("color", FontColor);
91				$(".Category_Mall > .SubaLink").css("pointer", "default");
92				var ed = document.createElement("div");
93				ed.setAttribute("style", "position:absolute;width:100%;height:100%;backround-color:Transparent;top:0px;left:0px;");
94				$(".Category_Mall").append(ed);
95				break;
96			}
97		case "//www.subagames.com/game.aspx":
98			{
99				$(".Category_Games > .SubaLink").css("color", FontColor);
100				$(".Category_Games > .SubaLink").css("pointer", "default");
101				var ed = document.createElement("div");
102				ed.setAttribute("style", "position:absolute;width:100%;height:100%;backround-color:Transparent;top:0px;left:0px;");
103				$(".Category_Games").append(ed);
104				break;
105			}
106		case "//www.subagames.com/CustomerSupport.aspx":
107			{
108				$(".Category_Support > .SubaLink").css("color", FontColor);
109				$(".Category_Support > .SubaLink").css("pointer", "default");
110				var ed = document.createElement("div");
111				ed.setAttribute("style", "position:absolute;width:100%;height:100%;backround-color:Transparent;top:0px;left:0px;");
112				$(".Category_Support").append(ed);
113				break;
114			}
115		case "//www.subagames.com/Contest.aspx":
116			{
117				$(".Category_Community > .SubaLink").css("color", FontColor);
118				$(".Category_Community > .SubaLink").css("pointer", "default");
119				var ed = document.createElement("div");
120				ed.setAttribute("style", "position:absolute;width:100%;height:100%;backround-color:Transparent;top:0px;left:0px;");
121				$(".Category_Community").append(ed);
122				break;
123			}
124		default:
125			break;
126	}
127
128	//Initialize Pretty Photo
129	$("a[rel^='prettyPhoto']").prettyPhoto();
130
131	$(".GameViewTrailer").click(function() {
132		var Game;
133		var loc = window.location.pathname;
134		if (loc.lastIndexOf('/game.aspx', 0) == 0 || loc.lastIndexOf('/Games.aspx', 0) == 0) {
135			Game = $(this).attr('id');
136		}
137		else {
138			Game = $(this).parent().parent().attr('class');
139		}
140		showTrailerVideo(Game);
141	});
142
143	function showTrailerVideo(Game) {
144		switch (Game) {
145			case "ACE":
146				$.prettyPhoto.open("http://www.youtube.com/watch?v=-BV2mpDbh0Y&feature=plcp&context=C360b811UDOEgsToPDskIe5AUKcmWD7Q4foaIe4PbE", "Official Suba Games ACE Online Trailer", "");
147				break;
148			case "DOMO":
149				$.prettyPhoto.open("https://www.youtube.com/watch?v=FJr-9rYXfEU", "Official Suba Games DOMO Trailer", "");
150				break;
151			case "PT1":
152				$.prettyPhoto.open("http://www.youtube.com/watch?v=WyzY3M5_Cp8",
153				"Official Suba Games Priston Tale Online Trailer", "");
154				break;
155			case "LUCENT":
156				$.prettyPhoto.open("https://www.youtube.com/watch?v=u0_oOXdTCsY",
157				"Official Suba Games Lucent Heart Trailer", "");
158				break;
159			case "Luna":
160				$.prettyPhoto.open("https://www.youtube.com/watch?v=O6MlwdaX6rQ", "Official Suba Games Luna Online Reborn Trailer", "");
161				break;
162			case "CB":
163				$.prettyPhoto.open("https://youtu.be/Vzqkj_VHFSE",
164				"Cooking Battles Trailer", "");
165				break;
166			case "MARS":
167				$.prettyPhoto.open("https://www.youtube.com/watch?v=gzs6Dp5Qecg",
168				"M.A.R.S. - Reveal Trailer", "");
169				break;
170			default:
171				break;
172		}
173	}
174});

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.