PageSourceSearch

https://www.cuiabaesporteclube.com.br/sysjs/funcoes.js?v=25092026031254

js cuiabaesporteclube.com.br collected 2026-09-25 06:13:12 UTC 7,042 bytes, 127 lines download raw bytes

1$(document).ready(function() {
2	IEUpdate();
3	$(".campo, select, textarea, .checkbox input, .box.radio input").focus(function() { CheckLabel($(this)); }).blur(function(){ CheckLabel($(this)); }).keypress(function(){ CheckLabel($(this)); }).change(function(){ CheckLabel($(this)); }).each(function(index, element) { CheckLabel($(this)); });;
4	setTimeout(function(){ $(".labelinterno").each(function(index, element) { CheckLabel($(this)); }); }, 1);
5	setTimeout(function(){ $("html").addClass("carregado"); }, 100);
6	if ( !document.cookie.includes("lgpd=ok23",0) ) { $(".lgpd").fadeIn(); }
7	$("#futebol-menu li a").click(function(e) {
8		classex = ""+$(this).attr("class");
9		if ( $("#"+classex).length == 1 ) {
10			$("#futebol-menu .ativo").removeClass("ativo");
11			$(this).parent().addClass("ativo");
12			$(".elencocat").hide();
13			$("#"+classex).show();
14			e.preventDefault();
15		}
16	});
17});
18function FecharLGPD() {var d = new Date();d.setTime(d.getTime() + (30 * 24*60*60*1000));document.cookie = "lgpd=ok23; expires=" + d.toUTCString() + "; path=/;";$(".lgpd").fadeOut();}
19function WhatsApp() {$(".whatsapps").fadeToggle();}
20function MenuMobile() { $("#bot-mobile,#menu,.barra").toggleClass("ativo").not("#bot-mobile").stop().fadeToggle(); }
21function IEUpdate() {
22	var tmpua = window.navigator.userAgent;
23	var tmpie = tmpua.indexOf("MSIE ");
24	tmpiev = "";
25	tmpdcss = "position:fixed;z-index:111111;right:0;top:0;left:0;border-bottom:1px solid #A29330;background:#FDF2AB;text-align:left;font-family:Arial;color:#000;font-size:12px;padding:5px 36px 5px 10px;"
26	tmpacss = "font-family:Arial;color:#00a1f1;font-size:12px;text-decoration:underline;";
27	tmpccss = "font-family:Arial;color:#000;cursor:pointer;position:absolute;right:6px;top:0;bottom:0;width:12px;font-weight:bold;font-size:18px;"
28	if (tmpie > 0) {
29		tmpie = parseInt(tmpua.substring(tmpie+5,tmpua.indexOf(".",tmpie)));
30		if (tmpie < 9) {
31			tmpiev = " (Internet Explorer "+tmpie+")";
32			$("body").prepend('<div style="'+tmpdcss+'">Seu navegador'+tmpiev+' está <b>desatualizado</b>. Ele possui <b>falhas de segurança</b>, e pode <b>apresentar problemas</b> para exibir este site. <a href="http://outdatedbrowser.com/pt-br" target="_blank" style="'+tmpacss+'">Veja como atualizar o seu navegador</a><div style="'+tmpccss+'" onClick="$(this).parent().hide();">×</div></div>');
33		}
34	}
35}
36function RodapeMobile(elemento) {
37	einfo = $(elemento).closest(".info");
38	$("#rodape .info.aberto").not(einfo).removeClass("aberto");
39	einfo.toggleClass("aberto");
40}
41function Competicao() {
42	urlx = $("#competicao").val();
43	document.location.href = urlx;
44}
45function FiltroNoticias() {
46	urlx = $("#filtro").val();
47	buscax = $("#busca").val();
48	if ( buscax != "" )
49		urlx += "?busca="+buscax;
50	document.location.href = urlx;
51}
52function FiltroBusca() {
53	urlx = $("#filtros-busca").data("url");
54	buscax = $("#busca").val();
55	if ( buscax != "" )
56		urlx += "?busca="+buscax;
57	document.location.href = urlx;
58}
59function CheckLabel(elemento) {
60	if ( elemento.closest(".linha").find(".erro").css("opacity") == 1 )
61		elemento.removeClass("comerro").closest(".linha").find(".erro").fadeOut();
62	if ( elemento.val() != "" || elemento.is(":focus") )
63		elemento.closest(".linha").find(".label").addClass("ativo");
64	else
65		elemento.closest(".linha").find(".label").removeClass("ativo");
66}
67function CampoCheck(id,checagem,mensagem) {
68	if ( checagem ) {
69		if ( idfoco == "" ) {
70			idfoco = id;
71			if ( $("#"+id).closest(".linha").length == 1 ) {
72				if ( $(window).scrollTop() > $("#"+id).closest(".linha").offset().top )
73					$(window).scrollTop($("#"+id).closest(".linha").offset().top);
74			}
75			$("#"+id).focus();
76		}
77		if ( mensagem != "" )
78			$("#"+id).closest(".linha").find(".erro").html(mensagem);
79		$("#"+id).addClass("comerro").closest(".linha").find(".erro").stop(true,true).fadeIn();
80
81	}
82}
83var idfoco = "";
84var recaptchasucesso = false;
85function RecaptchaOk() { recaptchasucesso = true; $("#recaptchadiv .erro").hide(); }
86function VContato() {
87	idfoco = "";
88	CampoCheck("nome",(!$("#nome").val()),"");
89	CampoCheck("email",(!VEmail($("#email").val())),"");
90	CampoCheck("assunto",($("#assunto").length == 1 && !$("#assunto").val()),"");
91	CampoCheck("mensagem",(!$("#mensagem").val()),"");
92	if ( $("#recaptchadiv").length == 1 && !recaptchasucesso ) {
93		$("#recaptchadiv .erro").fadeOut();
94		CampoCheck("recaptchacheck",(!recaptchasucesso),"");
95	}
96	return (idfoco == "");
97}
98function Busca() {
99	urlx = $("#siteurl").first().val() + "produtos";
100	if ( $("#busca").val() != "" )
101		urlx += "/?busca=" + $("#busca").val();
102	document.location.href = urlx;
103	return false;
104}
105function trimToDigits(string) {
106	s = "";
107	var Numeros = /\d/;
108	for (i = 0; i <= string.length; i++) 
109		if (Numeros.test(string.substr(i,1))) s += string.substr(i,1);
110	return s;	
111}
112function VData(data) {
113	data = trimToDigits(data);
114	if (data.length < 8) return false;
115	dia = data.substr(0,2);
116	mes = data.substr(2,2);
117	ano = data.substr(4,4);
118	if(ano >= 0 && ano < 1900) return false; 
119	if(ano > 2100 || ano < 0 || mes > 12 || mes < 1) return false; 
120	numero = ((parseInt(ano) - 1884) / 4) 
121	dias = (numero == Math.floor(numero)) ? "312931303130313130313031" : "312831303130313130313031"; 
122	diamax = parseInt(dias.substring((mes - 1) * 2, ((mes - 1) * 2) + 2)); 
123	if(dia < 1 || dia > diamax) return false; 	
124	return true;
125}
126function VEmail( strEmail ) { var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; return (filter.test(strEmail)); }
127function NewWindow(a,b,c,d,e){LeftPosition=parseInt(screen.width?(screen.width-c)/2:0),TopPosition=parseInt(screen.height?(screen.height-d)/2:0),settings="width="+c+",height="+d+",top="+TopPosition+",left="+LeftPosition+",scrollbars="+e+",noresizable,status=yes",win=window.open(a,b,settings)}function Redimensiona(a,b){"Microsoft Internet Explorer"==navigator.appName?(
127a=parseInt(a)+10,b=parseInt(b)+60):(a=parseInt(a)+6,b=parseInt(b)+60);var c=navigator.userAgent,d=c.search(/\bMSIE 7.0\b/g);d>0&&(b=parseInt(b)+30);var c=navigator.userAgent,d=c.search(/\bMSIE 8.0\b/g);d>0&&(b=parseInt(b)+40);var c=navigator.userAgent,d=c.search(/\bMSIE 9.0\b/g);d>0&&(b=parseInt(b)+40);var c=navigator.userAgent,d=c.search(/\bFirefox\/3\b/g);d>0&&(b=parseInt(b)+30);var c=navigator.userAgent,d=c.search(/\bFirefox\/4\b/g);d>0&&(b=parseInt(b)+40);var c=navigator.userAgent,d=c.search(/\bSafari\b/g);d>0&&(b=parseInt(b)+25),window.resizeTo(a,b),LeftPosition=parseInt(screen.width?(screen.width-a)/2:0),TopPosition=parseInt(screen.height?(screen.height-b)/2:0),window.moveTo(LeftPosition,TopPosition),window.focus()}var win=null,ua=navigator.userAgent,ver=parseInt(navigator.appVersion),opera=/opera [56789]|opera\/[56789]/i.test(ua),ie=!opera&&/MSIE/.test(ua),ie6=ie&&/MSIE [0123456]/.test(ua),ie7=ie&&/MSIE [789]/.test(ua),ieBox=ie&&(null==document.compatMode||"CSS1Compat"!=document.compatMode),moz=!opera&&/gecko/i.test(ua),nn6=!opera&&/netscape.*6\./i.test(ua);

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.