225
| <![CDATA[<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myFunction() {
document.getElementById("acessibilidade-myDropdown").classList.toggle("acessibilidade-show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function (event) {
if (!event.target.matches('.acessibilidade-dropbtn')) {
var dropdowns = document.getElementsByClassName("acessibilidade-dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('acessibilidade-show')) {
openDropdown.classList.remove('acessibilidade-show');
}
}
}
}
</script>]]>
|
316
| <![CDATA[<script>
function openNav() {
document.getElementById("myNav").style.display = "block";
}
function closeNav() {
document.getElementById("myNav").style.display = "none";
}
</script>]]>
|
387
| <![CDATA[<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>]]>
|
1674
| <![CDATA[<script>
$('.view').magnificPopup({
type: 'image',
gallery: {
enabled: true
},
// other options
});
</script>]]>
|
1683
| <![CDATA[<script>
$('#CrtTopo_txtBuscar').click(function () {
$('.search-box-articles').slideToggle();
});
</script>]]>
|
1694
| <![CDATA[<script>
$('.view').magnificPopup({
type: 'image',
gallery: {
enabled: true
},
// other options
});
</script>]]>
|
1705
| <![CDATA[<script type="text/javascript">
$(function () {
$('.slide1').slide({
'slideSpeed': 3000,
'isShowArrow': true,
'dotsEvent': 'mouseenter',
'isLoadAllImgs': true
});
});
</script>]]>
|
1717
| <![CDATA[<script type="text/javascript">
$(function () {
$('.slide2').slide2({
'slideSpeed': 3000,
'isShowArrow': true,
'dotsEvent': 'mouseenter',
'isLoadAllImgs': true
});
});
</script>]]>
|
1732
| <![CDATA[<script type="text/javascript">
/*Scroll to top when arrow up clicked BEGIN*/
$(window).scroll(function () {
var height = $(window).scrollTop();
if (height > 100) {
$('#back2Top').fadeIn();
} else {
$('#back2Top').fadeOut();
}
});
$(document).ready(function () {
$("#back2Top").click(function (event) {
event.preventDefault();
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
});
/*Scroll to top when arrow up clicked END*/
/*Scroll to top when arrow up clicked BEGIN*/
$(window).scroll(function () {
var height = $(window).scrollTop();
if (height > 100) {
$('#voltaTopo').fadeIn();
} else {
$('#voltaTopo').fadeOut();
}
});
$(document).ready(function () {
$("#voltaTopo").click(function (event) {
event.preventDefault();
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
// $('.overlayer').before("<img src='./imagens/img-pause.png' width='32' height='32' class='cover'>");
$(".play").click(function () {
$('#atl-player img').remove();
if ($('#player_html5').get(0).paused) {
$('#player_html5').get(0).volume = 1.0;
$('#player_html5').get(0).play();
$('.overlayer').before("<img src='./imagens/img-pause.png' width='16' height='16' class='cover'>");
console.log('play');
}
else {
console.log('pause');
$('#player_html5').get(0).pause();
$('.overlayer').before("<img src='./imagens/img-play.png' width='16' height='16' class='cover'>");
}
})
});
/*Scroll to top when arrow up clicked END*/
var swiper = new Swiper('.swiper-container', {
slidesPerView: 1,
spaceBetween: 30,
keyboard: {
enabled: true,
},
pagination: {
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
var size = 1.0;
var sizePainel = 2;
var noticiasH1 = 1.5;
var noticiasH4 = 0.8;
var vamosvirarojogoh1 = 16.0;
var vamosvirarojogospan = 1.0;
var telefonesuteis = 0.9;
var footerh1 = 1.5;
var footerspan = 0.8;
var sectioncontainer = 1.0;
$("#tamanhofonte").click(function () {
var increase = 0.1;
if (size < 1.5) {
size += increase;
sizePainel += increase;
noticiasH1 += increase;
noticiasH4 += increase;
vamosvirarojogoh1 += increase;
telefonesuteis += increase;
footerh1 += increase;
footerspan += increase;
vamosvirarojogospan += increase;
sectioncontainer += increase;
}
else {
size = 1.0;
sizePainel = 2;
titlesliderh1 = 1.5;
noticiasH1 = 1.5;
noticiasH4 = 0.8;
telefonesuteis = 0.9;
footerh1 = 1.5;
footerspan = 0.8;
vamosvirarojogoh1 = 16.0;
vamosvirarojogospan = 1.0;
sectioncontainer = 1.0;
}
$(".section-container").css('font-size', sectioncontainer + 'em');
$("section").css('font-size', size + 'em');
$(".desc-title-slider span").css('font-size', sizePainel + 'em');
$(".title-slider h1").css('font-size', size + 'em');
$("section h1").css('font-size', noticiasH1 + 'em');
$("section h4").css('font-size', noticiasH4 + 'em');
$("section .desc-slider2-conteudo h1").css('font-size', vamosvirarojogoh1 + 'em');
$("section .desc-slider2-texto span").css('font-size', vamosvirarojogospan + 'em');
$("section .telefones-uteis-wrap").css('font-size', telefonesuteis + 'em');
$(".footer h1").css('font-size', footerh1 + 'em');
$(".footer span").css('font-size', footerspan + 'em');
});
$("#contraste").click(function (e) {
e.preventDefault();
$(".menu, body, .footer").stop().toggleClass("bgContrast");
});
$(function ($) {
if (typeof ($.datepicker) != "undefined") {
$.datepicker.setDefaults(
jQuery.extend($.datepicker.regional['pt-BR'],
{ dateFormat: 'dd/mm/yy' }));
}
});
function fonte(e) {
var elemento = $(".acessibilidadeFonte");
var fonte = elemento.css('font-size');
if (e == 'a') {
elemento.css("fontSize", parseInt(fonte) + 1);
} else if ('d') {
elemento.css("fontSize", parseInt(fonte) - 1);
}
}
</script>]]>
|