PageSourceSearch

https://www.univaq.it/js/header01.js

js univaq.it collected 2026-10-01 10:21:26 UTC 5,667 bytes, 151 lines download raw bytes

1var tooltipMsg;
2
3window.onload = function() {
4	detectHeight();
5	jQuery("a[href^='http']").not("[href*='www.univaq.it']").not("[href*='section.php']").not("[href^='include']").attr('target','_blank').not("[title]").attr('title','La pagina viene aperta in una nuova finestra');
6
7};
8
9$(document).ready(function(){
10	$('.right_col_butt').on('click', function(event){
11
12		event.preventDefault();
13		window.location = $(this).find('a').attr('href');
14	});
15
16	$( ".accordion" ).accordion({
17		collapsible: true,
18		active: false,
19		autoHeight: false,
20		icons: { "header": "fa fa-fw fa-chevron-down", "headerSelected": "fa fa-fw fa-chevron-up" }
21	});
22});
23
24function detectHeight() {
25	var docHeight;
26	if (typeof document.height != 'undefined') {
27		docHeight = document.height;
28	}
29	else if (document.compatMode && document.compatMode != 'BackCompat') {
30		docHeight = document.documentElement.scrollHeight;
31	}
32	else if (document.body && typeof document.body.scrollHeight != 'undefined') {
33		docHeight = document.body.scrollHeight;
34	}
35
36	var frameHeight;
37	if (self.innerHeight) {
38		frameHeight = self.innerHeight;
39	} else if (document.documentElement && document.documentElement.clientHeight) {
40		frameHeight = document.documentElement.clientHeight;
41	} else if (document.body) {
42		frameHeight = document.body.clientHeight;
43	}
44
45	if (docHeight < frameHeight) {
46		document.getElementById('top_page_container').style.visibility = 'hidden';
47	}
48}
49
50function versioneStampabile() {
51	var theRules = new Array();
52	if (document.styleSheets[0].cssRules)
53		theRules = document.styleSheets[0].cssRules;
54	else if (document.styleSheets[0].rules)
55		theRules = document.styleSheets[0].rules;
56
57	//document.getElementById('header').style.display = 'none'
58	document.getElementById('vertical_shadow_top').style.display = 'none';
59	document.getElementById('menu').style.display = 'none';
60	document.getElementById('pre_footer').style.display = 'none';
61	document.getElementById('navigator').style.display = 'none';
62	if (document.getElementById('main_left')) document.getElementById('main_left').style.display = 'none';
63	document.getElementById('main_right').style.display = 'none';
64	document.getElementById('footer').style.display = 'none';
65	document.getElementById('print').style.display = 'none';
66	document.getElementById('rightshadow').style.background = 'none';
67	document.getElementById('maincontainer').style.background = 'none';
68	document.getElementById('maincontainer').style.marginLeft = '0px';
69	document.getElementById('main_center').style.fontSize = '1.2em';
70	document.getElementById('main_center').style.marginLeft = '0px';
71	document.getElementById('main').style.paddingTop = '20px';
72	document.getElementById('main').style.width = '50em';
73	document.getElementById('header').style.backgroundImage = 'url(images/graphics/header/univaq-bw.gif)';
74	document.getElementById('header').style.backgroundRepeat = 'no-repeat';
75	document.getElementById('header').style.backgroundPosition = 'left top';
76	document.getElementById('header_top_left').style.display = 'none';
77	document.getElementById('header_top_right').style.display = 'none';
78
79
80	// .top_page_container
81	theRules[38].style.display='none';
82}
83
84function stampaAfferenza() {
85	var theRules = new Array();
86	if (document.styleSheets[0].cssRules)
87		theRules = document.styleSheets[0].cssRules;
88	else if (document.styleSheets[0].rules)
89		theRules = document.styleSheets[0].rules;
90
91	document.getElementById('header').style.display = 'none'
92	document.getElementById('vertical_shadow_top').style.display = 'none';
93	document.getElementById('menu').style.display = 'none';
94	document.getElementById('pre_footer').style.display = 'none';
95	document.getElementById('navigator').style.display = 'none';
96	if (document.getElementById('main_left')) document.getElementById('main_left').style.display = 'none';
97	document.getElementById('main_right').style.display = 'none';
98	document.getElementById('footer').style.display = 'none';
99	document.getElementById('print').style.display = 'none';
100	document.getElementById('rightshadow').style.background = 'none';
101	document.getElementById('maincontainer').style.background = 'none';
102	document.getElementById('maincontainer').style.marginLeft = '0px';
103	document.getElementById('main_center').style.fontSize = '1.2em';
104	document.getElementById('main_center').style.marginLeft = '0px';
105	document.getElementById('main').style.paddingTop = '20px';
106	document.getElementById('main').style.width = '50em';
107	//document.getElementById('header').style.backgroundImage = 'url(images/graphics/header/univaq-bw.gif)';
108	//document.getElementById('header').style.backgroundRepeat = 'no-repeat';
109	//document.getElementById('header').style.backgroundPosition = 'left top';
110	document.getElementById('header_top_left').style.display = 'none';
111	document.getElementById('header_top_right').style.display = 'none';
112
113
114	// .top_page_container
115	theRules[38].style.display='none';
116}
117
118function tooltip1(msg) {
119	tooltipMsg = document.getElementById('tooltip1').innerHTML;
120	document.getElementById('tooltip1').innerHTML = msg;
121}
122
123function clearTooltip1() {
124	document.getElementById('tooltip1').innerHTML = tooltipMsg;
125}
126
127function searchSwitch() {
128	if (document.getElementById('search').style.visibility == 'visible') {
129		document.getElementById('search').style.visibility = 'hidden';
130	} else {
131		document.getElementById('search').style.visibility = 'visible';
132	}
133	return false;
134}
135
136function startCerca()
137{
138	document.getElementById("cercaform").submit();
139}
140
141
142function findPosX(strObj) {
143	obj = document.getElementById(strObj);
144	var curleft = 0;
145	if (obj.offsetParent) {
146		do {
147			curleft += obj.offsetLeft;
148		} while (obj = obj.offsetParent);
149	}
150	return curleft;
151}

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.