PageSourceSearch

http://www.sportlo.hu/js/languages.js

js sportlo.hu collected 2026-10-03 01:21:23 UTC 807 bytes, 23 lines download raw bytes

1function getCurrentPageName(){
2	var loc = document.location.href;
3	var loc2 = loc.substr(0,loc.lastIndexOf("/"));
4	return loc.substr(loc2.lastIndexOf("/")+1);
5}
6
7function changeLanguage(langs){
8	if (langs[langs.selectedIndex].value == "---") return;
9	document.location.href=langs[langs.selectedIndex].value;
10}
11
12function fillLanguages(l){
13	var langtext;
14	langtext="<select class=\"tfQuery\" onchange=\"changeLanguage(this);\">";
15	langtext+="<option value=\"---\">Choose Your Language</option>";
16	langtext+="<option value=\"../../hungarian/"+getCurrentPageName()+"\">Magyar</option>";
17	//langtext+="<option value=\"../../english/"+getCurrentPageName()+"\">English</option>";
18	langtext+="</select>";
19
20	//if (l==undefined) document.write(langtext);
21	//else return langtext;
22	return "";
23}

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.