PageSourceSearch

https://app.missal.pr.gov.br/esadmin/brucutu/js/jsconteudo.js?0

js missal.pr.gov.br collected 2026-09-25 01:18:13 UTC 4,155 bytes, 148 lines download raw bytes

1/*
2* Função utilizada para o redimensionamento automático do conteúdo.
3* Cassyus
4* 25/04/2008
5*/
6var menu = null;
7var corpo = null;
8var logAtualizacao = null;
9var imgAcaoCorpo = null;
10var div_displaytagTable = null;
11var areaFormulario = null;
12var alturaCabecalho = new Number(90);
13var alturaTitulo = new Number(150);
14var alturaAreaFormulario = new Number(0);
15
16function setFunctions() {
17	try {
18		menu = document.getElementById("menu");
19		if ($("index")) {
20			menu.style.visibility = "visible";
21		} else {
22			menu.onmouseover = menuActive;
23			menu.onmouseout = menuDeactive;
24		}
25	} catch(e) {}
26	try {
27		corpo = document.getElementById("corpo");
28	} catch(e) {}
29	try {
30		logAtualizacao = document.getElementById("logAtualizacao");
31	} catch(e) {}
32	try {
33		areaFormulario = document.getElementById("areaFormulario");
34	} catch(e) {}
35	try {
36		imgAcaoCorpo = document.getElementById("imgAcaoCorpo");
37		imgAcaoCorpo.onmouseover = expandMenu;
38	} catch(e) {}
39	try {
40		document.getElementById("processAJAX").style.display = "none";
41	} catch(e) {}
42	try {
43		div_displaytagTable = document.getElementById("div_displaytagTable");
44	} catch(e) {}
45}
46
47var areaUtilFormulario;
48var altura = (document.documentElement.clientHeight || window.innerHeight || document.body.clientHeight);
49areaUtilFormulario = altura - alturaCabecalho - alturaTitulo + 2 - 10;
50
51function setViewport(e) {
52	setFunctions();
53	try {
54		var evt = (e || event);
55	} catch(e) {}
56	document.body.style.height = altura + "px";
57	try {
58		menu.style.height = (altura - alturaCabecalho) + "px";
59	} catch(e) {}
60	try {
61		corpo.style.height = (altura - alturaCabecalho - 40) + "px";
62	} catch(e) {}
63	try {
64		document.getElementById("tabela").style.height = altura + "px";
65	} catch(e) {}
66	setFirstElementFocus();
67}
68
69function setFirstElementFocus() {
70	var elementos = document.getElementsByTagName("*");
71	for (var i = 0; i < elementos.length; i++){
72		if ((elementos[i].tagName.toUpperCase() == "INPUT") || 
73			(elementos[i].tagName.toUpperCase() == "SELECT") || 
74			(elementos[i].tagName.toUpperCase() == "TEXTAREA") || 
75			(elementos[i].tagName.toUpperCase() == "BUTTON")){
76			if ((elementos[i].type != "hidden") && !(elementos[i].readOnly) && !(elementos[i].disabled) && !(elementos[i].id == "campoPesquisa")) {
77				try{
78					elementos[i].focus();
79				}catch(e){}
80				return;
81			}
82		}
83	}
84}
85
86function startTimer() {
87    var timer = jQuery('#time').attr("session");
88    jQuery('#time').text(getMinutos(timer) + ":" + getSegundos(timer));
89    
90    setInterval(function () {
91        if (--timer < 0)
92        	jQuery('#time').text("EXPIRADA");
93        else
94        	jQuery('#time').text(getMinutos(timer) + ":" + getSegundos(timer));
95        
96    }, 1000);
97}
98function getMinutos(timer) {
99	var minutes = parseInt(timer / 60, 10);
100    return minutes < 10 ? "0" + minutes : minutes;
101}
102function getSegundos(timer) {
103	var seconds = parseInt(timer % 60, 10);
104    return seconds < 10 ? "0" + seconds : seconds;
105}
106
107window.onresize = setViewport;
108window.onload = setViewport;
109
110jQuery(document).ready(function() {
111	startTimer();
112	
113	jQuery("input[placeholder]").each(function() {
114		var placeholder = jQuery(this).attr("placeholder");
115
116		jQuery(this).val(placeholder).focus(function() {
117			if (jQuery(this).val() == placeholder) {
118				jQuery(this).val("");
119			}
120		}).blur(function() {
121			if (jQuery(this).val() == "") {
122				jQuery(this).val(placeholder);
123			}
124		});
125	});
126	
127	jQuery(".menuAbas tr td").click(function() {
128		jQuery(".menuAbas tr td").each(function() {
129			jQuery(this).removeClass();
130			jQuery(this).addClass("menuInativo");
131			jQuery("#div" + this.id).hide();
132		});
133		
134		jQuery.cookie("divAbaAtiva", this.id);
135		jQuery(this).removeClass();
136		jQuery(this).addClass("menuAtivo");
137		jQuery("#div" + this.id).show();
138	});
139	
140	jQuery("#barraBotao input").click(function(){
141		jQuery.cookie("divAbaAtiva", null);
142	});
143
144	if(jQuery("#" + jQuery.cookie("divAbaAtiva")).length)
145		jQuery("#" + jQuery.cookie("divAbaAtiva")).trigger('click');
146	else
147		jQuery.cookie("divAbaAtiva", null);
148});

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.