PageSourceSearch

https://belarus.basketball/templates/bbf/widgets/js/script.js

js belarus.basketball collected 2026-10-02 05:53:34 UTC 4,241 bytes, 138 lines download raw bytes

1MBT.API.ApiId = "a7660527cb4d8de0f634fa1c824ba4e64898204a";
2MBT.API.Lang = "ru";
3MBT.API.NewNav = 1;
4
5var link = document.location.href;
6var url = location.protocol+"//"+location.hostname;
7DEFAULT_LEAGUE = 10803; 
8
9season = MBT.API.Application.get("season_id");
10if(!season)
11{
12	season = MBT.API.Application.get("sid");
13	if(!season)
14	{
15		if( typeof(league_number) == "undefined" )
16		{
17			league_number = MBT.API.Application.get("league_id")
18			if(!league_number)
19				league_number = DEFAULT_LEAGUE;
20		}
21	}
22}
23if( typeof(league_number) == "undefined" )
24		{
25			league_number = MBT.API.Application.get("league_id")
26			if(!league_number)
27				league_number = DEFAULT_LEAGUE;
28		}
29
30navigateLeague = function(leagueId)
31{
32	MBT.API.Application.set("league_id", leagueId);
33	return url+'?league_id='+leagueId;
34}
35
36navigateSeason = function(seasonId)
37{
38	var link = document.location.href;
39	var new_link="";
40	var search_result = link.indexOf('?');
41	if( search_result == -1)
42		new_link = document.location.href + "?season_id=" + seasonId;
43	else
44	{
45		var parameters_url = link.substring(search_result+1);
46		new_link = link.substring(0,search_result);
47		var parameters = parameters_url.split("&");
48		for(i=0; i<parameters.length; i++)
49		{
50			var value = 0;
51			var param = parameters[i].split("=");
52			if(param[0]=="season_id")
53			{
54				value = seasonId;
55			}
56			else
57			{
58				value = param[1];
59			}
60			if(i != 0)
61				new_link += "&";
62			else
63				new_link += "?";
64			new_link += param[0]+"="+value;
65		}
66	}
67	document.location.href = new_link;
68}
69
70navigateGame = function(gameId,seasonID)
71{
72	MBT.API.Application.set("game_id", gameId);
73	MBT.API.Application.set("season_id", seasonID);
74	if (!jQuery('body').hasClass("dubl"))
75		return url+'/templates/bbf/widgets/redirect.php?lang_id=ru&game_id='+gameId+'&league_id='+MBT.API.Application.get("league_id")+'&season_id='+seasonID;
76	else return url+'/templates/bbf/widgets/redirect-dubl.php?lang_id=ru&game_id='+gameId+'&league_id='+MBT.API.Application.get("league_id")+'&season_id='+seasonID;
77}
78
79navigateTeam = function(teamId,seasonID)
80{
81	MBT.API.Application.set("team_id", teamId);
82	MBT.API.Application.set("season_id", seasonID);
83	if (!jQuery('body').hasClass("dubl"))
84		return url+'/templates/bbf/widgets/redirect.php?lang_id=ru&team_id='+teamId+'&league_id='+MBT.API.Application.get("league_id")+'&season_id='+seasonID;
85	else 	return url+'/templates/bbf/widgets/redirect-dubl.php?lang_id=ru&team_id='+teamId+'&league_id='+MBT.API.Application.get("league_id")+'&season_id='+seasonID;
86}
87
88navigatePlayer = function(playerId,seasonID)
89{
90	MBT.API.Application.set("player_id", playerId);
91	MBT.API.Application.set("season_id", seasonID);
92	if (!jQuery('body').hasClass("dubl"))
93		return url+'/templates/bbf/widgets/redirect.php?lang_id=ru&season_id='+seasonID+'&league_id='+MBT.API.Application.get("league_id")+'&player_id='+playerId;
94	else return url+'/templates/bbf/widgets/redirect-dubl.php?lang_id=ru&season_id='+seasonID+'&league_id='+MBT.API.Application.get("league_id")+'&player_id='+playerId;
95}	
96
97navigateSchedule = function(seasonID)
98{
99	return url+'calendar.aspx?season_id='+seasonID+'&league_id='+MBT.API.Application.get("league_id");
100}
101
102navigateLeaders = function(seasonID)
103{
104	return url+'playerStat.aspx?season_id='+seasonID+'&league_id='+MBT.API.Application.get("league_id");
105}
106
107navigateStandings = function(leagueID, seasonID)
108{
109	if(leagueID == 10803)
110	{
111		return url+'ru/widget/chempionat-belarusi-muzhchiny-vysshaya-liga-turnirnaya-tablica.htm?season_id='+seasonID+'&league_id='+leagueID;
112	}
113	else if(leagueID == 10563)
114	{
115		return url+'ru/widget/chempionat-belarusi-zhenschiny-vysshaya-liga-turnirnaya-tablica.htm?season_id='+seasonID+'&league_id='+leagueID;
116	}
117}
118
119navigateLiveGame = function(gameId, seasonId, leagueId, spId)
120{
121    if(spId) {
122        return "javascript:window.open('http://www.fibalivestats.com/u/BFB/"+spId+"', '_blank');void(0);";
123    }
124    // set live link to correct client
125    return "javascript:window.open('http://live.baskethotel.com/bbf/?bhGameId="+gameId+"', '_blank', 'width=715,height=660,status=no,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes,left=0,top=0');void(0);";
126    //return MBTWP.baseUrl + lang_prefix+"/results-live/?game_id=" +gameId;
127}
128
129
130
131
132
133
134
135
136
137
138

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.