PageSourceSearch

https://delphi.uniroma2.it/totem/script/script.js

js uniroma2.it collected 2026-09-24 08:29:45 UTC 3,058 bytes, 70 lines download raw bytes

1// JavaScript Document
2
3var liTxtBaseIDMaggioriInformazioni			= "voce_";
4var spanTxtBaseIDMaggioriInformazioni		= "txtinfo_";
5var spanTxtDefaultIDMaggioriInformazioni	= "txtinfo_default";
6
7
8function gestisciMaggioriInformazioni() {
9	var spanTxtElementNumber=document.getElementsByTagName("span");
10	//alert("Numero SPAN: " + spanTxtElementNumber.length);
11	var liElementNumber=document.getElementsByTagName("li");
12	//alert("Numero LI: " + liElementNumber.length);
13
14	for (i=0; i < spanTxtElementNumber.length; i++) {
15		if ((spanTxtElementNumber[i].id >= spanTxtBaseIDMaggioriInformazioni) && (spanTxtElementNumber[i].id != spanTxtDefaultIDMaggioriInformazioni)) {
16			//alert ("SPAN: " + i + " - id: " + spanTxtElementNumber[i].id);
17			document.getElementById(spanTxtElementNumber[i].id).style.visibility	= "hidden";
18			document.getElementById(spanTxtElementNumber[i].id).style.display		= "none";
19		}
20	}
21
22	for (i=0; i < liElementNumber.length; i++) {
23		//alert ("LI: " + i + " - id: " + liElementNumber.item(i).getAttribute("id"));
24		if (!(liElementNumber.item(i).getAttribute("id") == undefined) && (liElementNumber.item(i).getAttribute("id") > liTxtBaseIDMaggioriInformazioni)) {
25			//alert ("LI: " + i + " OK - id: " + liElementNumber.item(i).getAttribute("id"));
26			currentId	= liElementNumber.item(i).getAttribute("id");
27			newId			= currentId.replace(liTxtBaseIDMaggioriInformazioni, spanTxtBaseIDMaggioriInformazioni);
28			//alert("currentId: " + currentId);
29			//alert("newId: " + newId);
30			if (document.getElementById(newId)) {
31				document.getElementById(currentId).onmouseover = function() {
32					gestisciMaggioriInformazioni_accendi(this);
33				};
34				document.getElementById(currentId).onclick = function() {
35					gestisciMaggioriInformazioni_spegni(this);
36				};
37				document.getElementById(currentId).onmouseout = function() {
38					gestisciMaggioriInformazioni_spegni(this);
39				};
40			}
41		}
42	}
43	return true;
44}
45
46
47function gestisciMaggioriInformazioni_accendi(elementId) {
48	currentId	= elementId.id;
49	//alert("currentId: " + currentId);
50	newId			= currentId.replace(liTxtBaseIDMaggioriInformazioni, spanTxtBaseIDMaggioriInformazioni);
51	//alert("newId: " + newId);
52	document.getElementById(spanTxtDefaultIDMaggioriInformazioni).style.display		= "none";
53	document.getElementById(spanTxtDefaultIDMaggioriInformazioni).style.visibility	= "hidden";
54	document.getElementById(newId).style.display		= "inline";
55	document.getElementById(newId).style.visibility	= "visible";
56	return true;
57}
58
59
60function gestisciMaggioriInformazioni_spegni (elementId) {
61	currentId	= elementId.id;
62	//alert("currentId: " + currentId);
63	newId			= currentId.replace(liTxtBaseIDMaggioriInformazioni, spanTxtBaseIDMaggioriInformazioni);
64	//alert("newId: " + newId);
65	document.getElementById(newId).style.display		= "none";
66	document.getElementById(newId).style.visibility	= "hidden";
67	document.getElementById(spanTxtDefaultIDMaggioriInformazioni).style.display		= "inline";
68	document.getElementById(spanTxtDefaultIDMaggioriInformazioni).style.visibility	= "visible";
69	return true;
70}

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.