41
| <![CDATA[<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MV9B9JV"
height="0" width="0" style="display:none;visibility:hidden"></iframe>]]>
|
103
| <![CDATA[<p class="h3 margT10" style="max-width:70%"><strong>Agricultura e Abastecimento</strong></p>]]>
|
361
| <![CDATA[<div class="form-group" style="visibility: hidden;">
<label>Forma de Contato Preferencial:</label>
<label class="radio-inline" for="forma-de-contato-email">
<input type="radio" name="forma-de-contato" id="forma-de-contato-email" value="1" checked> Email
</label>
<label class="radio-inline" for="forma-de-contato-telefone">
<input type="radio" name="forma-de-contato" id="forma-de-contato-telefone" value="2" > Telefone
</label>
</div>]]>
|
1049
| <![CDATA[<textarea class="form-control" style="resize: vertical;" maxlength="1000" rows="10" name="mensagem" id="mensagem" required></textarea>]]>
|
1054
| <![CDATA[<div class="alert alert-info" style="display: none; margin-top: 10px;" role="alert">Seu número de Protocolo é: <strong name="protocolo" id="protocolo"></strong></div>]]>
|
34
| <![CDATA[<style>
.grecaptcha-badge { visibility: hidden; }
</style>]]>
|
322
| <![CDATA[<style>
#email-span {
color: red;
}
#confirmar-email-span {
color: red;
}
</style>]]>
|
6
| <![CDATA[<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MV9B9JV');</script>]]>
|
1093
| <![CDATA[<script>
grecaptcha.ready(function() {
grecaptcha.execute('6LdlaK4UAAAAAGBg1D6cXmvolVT94GyYqNAPxQR8', {action: 'pageview'});
});
</script>]]>
|
1105
| <![CDATA[<script>
; (function () {
"use strict";
var ENDPOINT = "https://homologacao.agricultura.sp.gov.br/fale-conosco-api";
var RECAPTCHA_KEY = "6LdlaK4UAAAAAGBg1D6cXmvolVT94GyYqNAPxQR8";
var FormaContato = { Email: 1, Telefone: 2 };
var $formulario = $("#formulario-fale-conosco");
var $formaDeContato = $("[name=\"forma-de-contato\"]", $formulario);
var $nome = $("[name=\"nome\"]", $formulario);
var $email = $("[name=\"email\"]", $formulario);
var $telefone = $("[name=\"telefone\"]", $formulario);
var $assunto = $("[name=\"assunto\"]", $formulario);
var $mensagem = $("[name=\"mensagem\"]", $formulario);
var $municipio = $("[name=\"municipio\"]", $formulario);
var $protocolo = $("[name=\"protocolo\"]");
var definirValidacoes = function (formaContato) {
$email.prop("required", FormaContato.Email === formaContato);
$nome.prop("required", FormaContato.Telefone === formaContato);
$telefone.prop("required", FormaContato.Telefone === formaContato);
};
$formaDeContato.on("change click", function (e) {
var selecionado = parseInt($(e.target).val(), 10);
definirValidacoes(selecionado);
});
grecaptcha.ready(function () {
$formulario.on("submit", function (e) {
e.preventDefault();
var $botao = $("[type=\"submit\"]", $formulario);
$botao.prop("disabled", true);
grecaptcha.execute(RECAPTCHA_KEY, { action: "formulario_fale_conosco" }).then(function (token) {
fetch([ENDPOINT, "atendimento"].join("/"), {
method: 'POST',
mode: 'cors',
body: JSON.stringify({
TipoContato: parseInt($("[name=\"forma-de-contato\"]:checked").val(), 10),
Nome: $nome.val(),
Email: $email.val(),
Telefone: $telefone.val(),
Assunto: $assunto.val(),
Mensagem: $municipio.val() + " - " + $mensagem.val()
}),
headers:{
"Content-Type": "application/json",
"g-recaptcha-response": token
}
}).then(function (response) {
if (response.ok) {
$("*", $formulario).prop("disabled", true);
toastr.success("Mensagem enviada com sucesso.");
response.text().then((body) => {
$protocolo.append(body);
$formulario.hide();
$(".alert").css("display","block");
});
} else {
toastr.error("Erro ao enviar mensagem.");
$botao.prop("disabled", false);
}
});
});
});
});
fetch([ENDPOINT, "assunto"].join("/")).then(function (response) {
return response.json().then(function(assuntos) {
return assuntos.map(function (assunto) {
return $("<option>", {
value: assunto.codigoAssunto,
html: assunto.assunto
});
});
}).then(function (assuntos) {
$assunto.append(assuntos);
});
});
$("[name=\"forma-de-contato\"]:checked").trigger("change");
}());
</script>]]>
|
1188
| <![CDATA[<script>
$(document).on("input", "#mensagem", function () {
var limite = 1000;
var caracteresDigitados = $(this).val().length;
var caracteresRestantes = limite - caracteresDigitados;
if(caracteresRestantes != 0)
{$(".caracteres").css("color", "#000000");}else{$(".caracteres").css("color", "#E30A02");}
$(".caracteres").text(caracteresRestantes);
});
$(document).ready(function () {
$('.telefone').on('keyup', function (e) {
if ($(this).val().length >= 6) {
var sub = $(this).val().substr(5, 1);
if (sub == 9)
$(this).mask('(00) 00000-0000');
} else {
$(this).mask('(00) 0000-0000');
}
});
});
document.getElementById("email").onblur = function() {validarEmail()};
document.getElementById("confirmar-email").onblur = function() {confirmarEmail()};
function validarEmail() {
document.getElementById("btn").disabled = true
var str = document.getElementById("email").value;
var check=/^[a-z0-9]+(\.[a-z0-9]+)*(\-[a-z0-9]+)*(\_[a-z0-9]+)*@[a-z0-9]+(\-[a-z0-9-]+)*(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/;
if(str.search(check) == -1){
document.getElementById("email-span").textContent = 'e-mail inválido';
document.getElementById("btn").disabled = true
}
else {
document.getElementById("email-span").textContent = ''
document.getElementById("btn").disabled = false;
}
}
function confirmarEmail() {
document.getElementById("btn").disabled = true
var email1 = document.getElementById("email").value;
var email2 = document.getElementById("confirmar-email").value;
if(email2){
if(!(email1 == email2)){
document.getElementById("confirmar-email-span").textContent = 'os e-mails não combinam';
document.getElementById("btn").disabled = true;
}
else {
document.getElementById("confirmar-email-span").textContent = '';
document.getElementById("btn").disabled = false;
}
}
else {
document.getElementById("confirmar-email-span").textContent = 'preencha o e-mail novamente';
document.getElementById("btn").disabled = true;
}
}
</script>]]>
|
1253
| <![CDATA[<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-75718147-1', 'auto');
ga('send', 'pageview');
</script>]]>
|
0
| Não há código fonte a ser exibido.
|