13
| <![CDATA[<script language="javascript" type="text/javascript">
function validaForm(){
if(frmPrimeiro.chparceiro.value ==""){alert("É obrigatório informar o Nome ou Empresa !"); return false; }
var cnpj_cpf = frmPrimeiro.cnpj.value;
if(cnpj_cpf.length < 11) {alert("É obrigatório o correto preenchimento do CNPJ/CPF !"); return false; }
if(frmPrimeiro.email.value.indexOf('@')== -1 || frmPrimeiro.email.value.indexOf('.') == -1){
alert("O campo de e-mail deve ser preenchido corretamente !");
frmPrimeiro.email.focus();
return false;
}
if(frmPrimeiro.representante.value==""|| frmPrimeiro.representante.value.length<5){
alert("É necessário informar o Nome do Representante !");
frmPrimeiro.representante.focus();
return false;
}
if(frmPrimeiro.telefone.value ==""){alert("É necessário informar um telefone de contato !"); return false; }
frmPrimeiro.submit();
}
$( document ).ready(function() {
$("#telefone").mask("(99) 9999-9999?9");
$("#cnpj").mask("99999999999?999");
$('#telefone').focusout(function(){
var phone, element;
element = $(this);
element.unmask();
phone = element.val().replace(/\D/g, '');
if(phone.length > 10) {
element.mask("(99) 99999-999?9");
} else {
element.mask("(99) 9999-9999?9");
}
}).trigger('focusout');
$('#cnpj').focusout(function(){
var phone, element;
element = $(this);
element.unmask();
phone = element.val().replace(/\D/g, '');
if(phone.length == 11) {
element.mask("999.999.999-99");
}else if (phone.length == 14){
element.mask("99.999.999/9999-99");
}else{
$("#cnpj").mask("99999999999?999");
}
}).trigger('focusout');
});
</script>]]>
|
87
| <![CDATA[<script type="text/javascript">
console.log(window.location.protocol);
// redireciona a pagina se acessar como http
if(window.location.protocol == 'http:') {
location.href = location.href.replace("http://", "https://");
}
if(window.location.host == 'emtu.sp.gov.br'){
location.href = location.href.replace("emtu.sp.gov.br", "www.emtu.sp.gov.br");
}
</script>]]>
|
101
| <![CDATA[<script>
// redireciona a pagina se acessar como http
if(window.location.protocol == 'http:') {
location.href = location.href.replace("http://", "https://");
}
function Contraste(e) {
if (e.keyCode === 13)
{
window.toggleContrast();
}
}
</script>]]>
|
520
| <![CDATA[<script>
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
</script>]]>
|
540
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-17081920-1');
</script>]]>
|
1049
| <![CDATA[<script>
new window.VLibras.Widget('https://www.vlibras.gov.br/app');
</script>]]>
|
1056
| <![CDATA[<script>
//Cookie Disclaimer LGPD
$(document).ready(function () {
checkCookie();
});
function setCookie() {
var d = new Date();
var exdays = 7;
var cname = "username";
var cvalue = "emtusp";
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
//d.setTime(d.getTime() + (exdays * 1 * 1 * 60 * 1000));
var expires = "expires=" + d.toUTCString();
//alert(expires);
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
document.querySelector(".box-cookies").classList.add('hideCookie');
}
function getCookie(cname) {
var name = cname + "=";
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}
function checkCookie() {
var user = getCookie("username");
if (user == "emtusp") {
document.querySelector(".box-cookies").classList.add('hideCookie');
} else {
user = "emtusp";
if (user != "" && user != null) {
document.querySelector(".box-cookies").classList.remove('hideCookie');
}
}
}
</script>]]>
|
1113
| <![CDATA[<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17081920-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>]]>
|