183
| <![CDATA[<script type="text/javascript">
var APIDOC = 'https://apidocumentos.emgea.gov.br/';
// Internet Explorer
var href = window.location.href;
if (href.indexOf('Devedores') > 0 || href.indexOf('a5b92bcc-62f4-4779-9abc-8d2b62292dfe') > 0) {
var isIE = false || !!document.documentMode;
if (isIE && window.location.pathname != "/Home/Compatibilidade")
window.location.href = "/Home/Compatibilidade";
}
</script>]]>
|
1155
| <![CDATA[<script type="text/javascript">
$(function () {
// CAROUSEL
var $item = $('#maincarousel .item');
var $wHeight = $(window).height();
$item.eq(0).addClass('active');
$item.height($wHeight);
$item.addClass('full-screen');
$('#maincarousel img').each(function () {
var $src = $(this).attr('src');
var $color = $(this).attr('data-color');
$(this).parent().css({
'background-image': 'url(' + $src + ')',
'background-color': $color
});
$(this).remove();
});
$(window).on('resize', function () {
$wHeight = $(window).height();
$item.height($wHeight);
});
$('.carousel').carousel({
interval: 6000,
pause: "false"
});
if (check_cookie_name('resale')==='0')
abrirModalPortalEmgea();
});
// Abrir Modal no Portal da Emgea
var modal = document.getElementById("modalResale");
var span1 = document.getElementsByClassName("close-resale")[0];
var span2 = document.getElementsByClassName("close-resale")[1];
var close = document.getElementsByClassName("close-modal")[0];
function abrirModalPortalEmgea() {
modal.style.display = "block";
date = new Date();
date.setTime(date.getTime() + (8 * 60 * 60 * 1000));
}
span1.onclick = function () {
modal.style.display = "none";
document.cookie = `resale=1; expires=${date.toUTCString()}`;
}
span2.onclick = function () {
modal.style.display = "none";
document.cookie = `resale=1; expires=${date.toUTCString()}`;
}
close.onclick = function () {
modal.style.display = "none";
document.cookie = `resale=1; expires=${date.toUTCString()}`;
}
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
function check_cookie_name(name) {
var match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)'));
if (match) {
console.log(match[2]);
return match[2];
}
else {
console.log('--something went wrong---');
return '0';
}
}
</script>]]>
|
1238
| <![CDATA[<script type="text/javascript">
function aceitarTermos() {
$("#lgpd-cookie-banner-janela").remove();
$.post("/Usuario/AceitarTermos");
}
$(function () {
$("a[href='/Home/Page/f5968d12-6068-4b34-98e2-fb22f7337481']").parent("li").remove();
$("a[href='/Home/Page/b717a6dc-7465-45f1-bcc7-3e0e58e3db38']").parent("li").remove();
$("a[href='/Home/Page/373914b9-4c5e-4296-bf01-913b6a233338']").parent("li").remove();
// ACESSIBILITY
$('#font-setting-buttons').easyView({
increaseSelector: '.increase-me',
decreaseSelector: '.decrease-me',
normalSelector: '.reset-me',
contrastSelector: '.change-me'
});
// Ativa o menu do topo
var url = '/';
$(".menuEmgea ul.nav.navbar-nav li").removeClass("active");
$(".menuEmgea ul.nav.navbar-nav li a[href='" + url + "']").closest('.dropdown').toggleClass('active');
ModalCloseLoading();
//Tempo da msg
mvcNotify.autoClearTimeout = 10000;
});
//MODAL JQUERY
function ModalLoading() {
$('.ajax-loader').css("visibility", "visible");
}
function ModalCloseLoading() {
$('.ajax-loader').css("visibility", "hidden");
}
//Modal Loading Automático
$(document)
.ajaxStart(function () {
ModalLoading();
})
.ajaxStop(function () {
ModalCloseLoading();
});
</script>]]>
|
1289
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-118975639-1');
</script>]]>
|