42
| <![CDATA[<script>
function onClick(e) {
e.preventDefault();
grecaptcha.ready(function () {
grecaptcha.execute('6Lee2SUlAAAAAC7HiNFXX8r29cmEnWV9fkubBvNU', {action: 'submit'}).then(function (token) {
// Add your logic to submit to your backend server here.
});
});
}
</script>]]>
|
57
| <![CDATA[<script>
window.onscroll = function () {
var top = window.pageYOffset || document.documentElement.scrollTop
if (top > 0) {
var x = document.getElementById("backtopbot");
x.style.opacity = "1";
x.style.visibility = "visible";
} else {
var x = document.getElementById("backtopbot");
x.style.opacity = "0";
x.style.visibility = "hidden";
}
};
</script>]]>
|
154
| <![CDATA[<script>
const alternarContraste = () => {
const body = document.body;
if (body.classList.contains('_contraste')) {
body.classList.remove('_contraste');
}else {
body.classList.add('_contraste');
}
}
</script>]]>
|
166
| <![CDATA[<script>
let elemento = $("*");
let header = $("#titulo_link");
let tamanho_header = parseFloat(header.css('font-size'));
const aumentarfont = () => {
elemento.css('font-size', obterTamnhoFonte() + 1);
header.css('font-size', tamanho_header + 1);
}
const diminuirfont = () => {
elemento.css('font-size', obterTamnhoFonte() - 1);
header.css('font-size', tamanho_header - 1);
}
const obterTamnhoFonte = () => {
const font = $("*");
return parseFloat(font.css('font-size'));
}
</script>]]>
|
254
| <![CDATA[<script>
function cookie_set() {
var ele = document.getElementById("banner-id");
ele.style.display = "none";
$.ajax({
url: "https://www.imbel.gov.br/cookie_set",
type: "post",
dataType: 'json',
data: {
"date": "2023-10-02 20:36:20"
}
});
}
</script>]]>
|