56
| <![CDATA[<script>
// Faz toggle em listas
$(function () {
var listaExibir;
$('.listaToggle > div > div').hide();
$('.listaToggle > div > h3').click(function () {
listaExibir = $(this).parent('div').index();
efeitoAbas(this, listaExibir);
});
});
function efeitoAbas(obj, i) {
$(obj).siblings('div').slideToggle(300);
if ($(obj).find('span').attr('class') == 'icoAberto')
$(obj).find('span').removeClass('icoAberto');
else
$(obj).find('span').addClass('icoAberto');
$(obj).parents('.listaToggle').children('div').eq(i).siblings().children('div').slideUp('fast');
$(obj).parents('.listaToggle').children('div').eq(i).siblings().find('span').removeClass('icoAberto');
}
// fancyBox - Galeria de Imagens
$(function () {
$('.fancybox').fancybox();
$('.fancybox-thumbs').fancybox({
prevEffect : 'fade',
nextEffect : 'fade',
closeBtn : true,
arrows : true,
nextClick : true,
helpers : {
//Disable animations, hide close button, arrows and slide to next gallery item if clicked
}
});
});
$(function navegacaoClick() {
$("#internaProjTopo ul li").click(function () {
$("#imagemObras").find("img").attr("src", $(this).find("img").attr("src"));
});
});
// Galeria Interna
$(function galeriaHover() {
$(".internaProjGaleriaThumb ul li").hover(
function() {
var galeriaInterna = $(this).find("img").attr("src").split(".jpg").join("-hover.jpg");
$(this).find("img").attr("src", galeriaInterna);
},
function() {
var galeriaInterna = $(this).find("img").attr("src").split("-hover.jpg").join(".jpg");
$(this).find("img").attr("src", galeriaInterna);
});
});
$(function galeriaClick() {
$(".internaProjGaleriaThumb ul li").click(function () {
var indexNav = $(".internaProjGaleriaThumb ul li").index(this);
var navSelecionado = (indexNav + 1);
var img = "/EMTU/images/projetos/internas/acessibilidade-corredor-abd/galeria-interna/galeria-acessibilidade-abd-interna-0";
var imgSrc = img + navSelecionado + ".jpg";
var imgSrcVert = img + navSelecionado + "-grande.jpg";
if(indexNav == 6 || indexNav == 7) // imagens 7 e 8
$("#internaProjGaleriaImagens #internaExpandida").attr("href", imgSrcVert).find("img").attr("src", imgSrc);
else
$("#internaProjGaleriaImagens #internaExpandida").attr("href", imgSrc).find("img").attr("src", imgSrc);
});
});
</script>]]>
|
140
| <![CDATA[<script>
// redireciona a pagina se acessar como http
if(window.location.protocol == 'http:') {
location.href = location.href.replace("http://", "https://");
}
</script>]]>
|
360
| <![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>]]>
|
779
| <![CDATA[<script>
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
</script>]]>
|
1337
| <![CDATA[<script>
new window.VLibras.Widget('https://www.vlibras.gov.br/app');
</script>]]>
|
1344
| <![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>]]>
|
1401
| <![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>]]>
|
1423
| <![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>]]>
|