96
| <![CDATA[<script>{"csrf.token":"1f6830c6d070b152bf660e65ee12e1ef","system.paths":{"root":"","base":""}}
jQuery(document).ready(function()
{
if ({"animation":false,"html":true,"placement":"top","selector":false,"title":"","trigger":"hover focus","content":"","delay":{"show":150,"hide":150},"container":"body","mouseonly":false}.mouseonly && 'ontouchstart' in document.documentElement) {
return;
}
if (jQuery('.hasjevtip').length){
jQuery('.hasjevtip').popover({"animation":false,"html":true,"placement":"top","selector":false,"title":"","trigger":"hover focus","content":"","delay":{"show":150,"hide":150},"container":"body","mouseonly":false});
}
});
(function($) {
var oldHide = $.fn.popover.Constructor.prototype.hide;
$.fn.popover.Constructor.prototype.hide = function() {
// Bootstrap 4
if (this.config)
{
//- This is not needed for recent versions of Bootstrap 4
/*
if (this.config.container == '#jevents_body' && this.config.trigger.indexOf('hover') >=0) {
var that = this;
// try again after what would have been the delay
setTimeout(function() {
return that.hide.call(that, arguments);
}, that.config.delay.hide);
return;
}
*/
}
// Earlier Bootstraps
else
{
if (this.options.container == '#jevents_body' && this.options.trigger.indexOf('hover') >=0 && this.tip().is(':hover')) {
var that = this;
// try again after what would have been the delay
setTimeout(function() {
return that.hide.call(that, arguments);
}, that.options.delay.hide);
return;
}
}
oldHide.call(this, arguments);
};
})(jQuery);
var responsiveEvents = []
jQuery(document).ready(function(){WfMediabox.init({"base":"\/","theme":"standard","width":"","height":"","lightbox":0,"shadowbox":0,"icons":1,"overlay":1,"overlay_opacity":0,"overlay_color":"","transition_speed":300,"close":2,"scrolling":"0","labels":{"close":"Close","next":"Next","previous":"Previous","cancel":"Cancel","numbers":"{{numbers}}","numbers_count":"{{current}} of {{total}}","download":"Download"}});});
jQuery(function($){ initTooltips(); $("body").on("subform-row-add", initTooltips); function initTooltips (event, container) { container = container || document;$(container).find(".hasTooltip").tooltip({"html": true,"container": "body"});} });
(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-33554836-1', 'auto');
ga('send', 'pageview');
if (window.sessionStorage.getItem("contraste") === 'true') {
document.documentElement.className += "contraste";
}
(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', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-38515413-1', 'auto');
ga('send', 'pageview');
<!--
var myCSS = false;
var processedClones = false;
function setJEventsSize() {
var jeventsBody = jevjq("#jevents_body");
var jeventsBodyParent = jeventsBody.parent();
var sizex = jeventsBodyParent.width();
var narrow = false;
var theme = "flatplus";
if (!myCSS) {
if (sizex < 485) {
myCSS = jevjq("<link/>");
jevjq("head").append(myCSS); //IE hack: append before setting href
myCSS.attr({
rel: "stylesheet",
type: "text/css",
//id: 'myStyle',
//title: 'myStyle',
href: 'https://www.valec.gov.br/components/com_jevents/views/'+theme+'/assets/css/narrowscalable.css?3.6.13'
});
narrow = true;
}
}
else {
if (sizex < 485) {
myCSS.attr('href', 'https://www.valec.gov.br/components/com_jevents/views/'+theme+'/assets/css/narrowscalable.css?3.6.13');
narrow = true;
}
else {
myCSS.attr('href','https://www.valec.gov.br/components/com_jevents/views/'+theme+'/assets/css/scalable.css?3.6.13');
narrow = false;
}
}
if (narrow) {
cloneEvents();
var listrowblock = jevjq(".jev_listrowblock");
if (listrowblock.length) {
listrowblock.css('display', "block");
}
var noevents = document.querySelector('.list_no_e');
if (noevents)
{
noevents.hidden = false;
}
}
else {
var listrowblock = jevjq(".jev_listrowblock");
if (listrowblock.length) {
listrowblock.css('display', "none");
}
var noevents = document.querySelector('.list_no_e');
if (noevents)
{
noevents.hidden = true;
}
setTimeout(setOutOfMonthSize, 1000);
}
}
function setOutOfMonthSize() {
jevjq(".jev_dayoutofmonth").each(
function(idx, el) {
if (jevjq(el).parent().hasClass("slots1")) {
jevjq(el).css('min-height', "50px");
}
else {
var psizey = jevjq(el).parent().height();
jevjq(el).css('min-height', psizey + "px");
}
}, this);
}
function cloneEvents() {
if (!processedClones) {
processedClones = true;
var myEventDates = responsiveEvents;
if (myEventDates.length == 0) {
return;
}
var listrowblock = jevjq('<div>', {'class': 'jev_listrowblock'});
var event_legend_container = jevjq("#jevents_body .event_legend_container");
if (event_legend_container.length ) {
listrowblock.insertBefore(event_legend_container);
}
else {
var toprow = jevjq("#jev_maincal .jev_toprow");
listrowblock.insertAfter(toprow);
var clearrow = jevjq('<div>', {'class': 'jev_clear'});
clearrow.insertAfter(listrowblock);
}
var listrow = jevjq('<div>', {'class': 'jev_listrow'});
var hasdaynames = false;
for (var datestp in myEventDates) {
var myEvents = myEventDates[datestp];
for (var idx = 0; idx < myEvents.length; idx ++) {
var el = myEvents[idx];
if (!hasdaynames) {
if (el.hiddendayname && el.hiddendayname != "") {
hasdaynames = true;
break;
}
}
}
if (hasdaynames) {
break;
}
};
for (var datestp in myEventDates) {
var myEvents = myEventDates[datestp];
for (var idx = 0; idx < myEvents.length; idx ++) {
var el = myEvents[idx];
var dayname = jevjq(el.hiddendayname);
if (dayname) {
dayname.css('display', "block");
dayname.appendTo(listrowblock);
}
if (dayname || !hasdaynames) {
// really should be for each separate date!
listrow = jevjq('<div>', {'class': 'jev_listrow'});
listrow.css('margin-bottom',"10px");
listrow.css('margin-top',"5px");
listrow.appendTo(listrowblock);
}
var hiddentime = jevjq(el.hiddentime);
if (hiddentime.length)
{
hiddentime.removeClass("hiddentime");
hiddentime.addClass("showntime");
hiddentime.appendTo(listrow);
}
var myClone = jevjq(el.eventcontent); // jevjq(el).parent().clone();
myClone.addClass("jev_daywithevents");
myClone.removeClass("jev_dayoutofmonth");
myClone.removeClass("jev_daynoevents");
myClone.removeClass("jevblocks0");
myClone.removeClass("jevblocks1");
myClone.removeClass("jevblocks2");
myClone.removeClass("jevblocks3");
myClone.removeClass("jevblocks4");
myClone.removeClass("jevblocks5");
myClone.removeClass("jevblocks6");
myClone.removeClass("jevblocks7");
myClone.css('height' ,"inherit");
myClone.appendTo(listrow);
try
{
myClone.find('.hasjevtip').popover({
"animation":false,
"html":true,
"placement":"top",
"selector":false,
"title":"",
"trigger":"hover focus",
"content":"","delay":{"show":150,"hide":150},
"container":"#jevents_body",
"mouseonly":false
});
}
catch (e) {};
var clearrow = jevjq('<div>', {'class': 'jev_clear'});
clearrow.appendTo(listrow);
}
}
}
}
document.addEventListener('DOMContentLoaded', function() { setJEventsSize();});
// set load event too incase template sets its own domready trigger
window.addEventListener('load', function() { setJEventsSize();});
window.addEventListener('resize', function() { setJEventsSize();});
//-->
(function($) {
$(window).load(function() {
window.stickySelector = $('#g-menu');
window.stickyOffset = $('#g-menu').offset().top;
var stickyContainerHeight = $('#g-menu').outerHeight();
if( $(window).width() > 704)
{
$('#g-menu').wrap( "<div class='g-fixed-container'>" );
$('.g-fixed-container').css("height", stickyContainerHeight);
$('#g-menu .pesquisa input[type="search"]').attr('id', 'pesquisa');
}
else
{
$('#g-header .pesquisa input[type="search"]').attr('id', 'pesquisa');
}
var scroll = $(window).scrollTop();
var lastScrollPos = $(window).scrollTop();
var scrollAccumulation = 0;
/*PARTICLE SETTINGS*/
var maxOffset = '100';
var minRollback = '10';
var maxHeadroomRes = '600';
/*PARTICLE SETTINGS*/
$(window).resize(function() {
var sticky = $('#g-menu');
var stickyContainerHeight = $('#g-menu').outerHeight();
var smallSearch = $('#g-header .pesquisa input[type="search"]');
var bigSearch = $('#g-menu .pesquisa input[type="search"]');
if( $(window).width() <= 704 && $('.g-fixed-container').length ) {
smallSearch.val(bigSearch.val());
if(bigSearch.is(':focus'))
{
smallSearch.focus();
}
bigSearch.attr('id', '');
smallSearch.attr('id', 'pesquisa');
$('#g-menu').unwrap();
sticky.addClass('g-fixed-element');
}
if( $(window).width() > 704) {
if($('.g-fixed-container').length == 0 )
{
$('#g-menu').wrap( "<div class='g-fixed-container'>" );
var stickyContainerHeight = $('#g-menu').outerHeight();
sticky.removeClass('g-fixed-element');
$('.g-fixed-container').css("height", stickyContainerHeight);
bigSearch.val(smallSearch.val());
if(smallSearch.is(':focus'))
{
bigSearch.focus();
}
smallSearch.attr('id', '');
bigSearch.attr('id', 'pesquisa');
}
window.stickyOffset = $('.g-fixed-container').offset().top;
$('.g-fixed-container').css("height", stickyContainerHeight);
}
$(sticky).css("top", 0);
});
var scrollMenu = function(){
var sticky = $('#g-menu');
lastScrollPos = scroll;
scroll = $(window).scrollTop();
if(!sticky.is(":visible"))
{
window.requestAnimationFrame(scrollMenu);
if (scroll > window.stickyOffset){
$('#back-top').removeClass('dont-show');
}
else{
$('#back-top').addClass('dont-show');
}
return;
}
var stickyContainerHeight = $('#g-menu').outerHeight();
if (scroll > window.stickyOffset){
$('#back-top').removeClass('dont-show');
if($(window).height() <= maxHeadroomRes){
if((scrollAccumulation > 0 && (scroll - lastScrollPos) < 0) || (scrollAccumulation < 0 && (scroll - lastScrollPos) > 0))
{
scrollAccumulation = 0;
}
scrollAccumulation += scroll - lastScrollPos;
if(scrollAccumulation < -minRollback)
{
$(sticky).css("top", 0);
scrollAccumulation = 0;
}
else if(scrollAccumulation > maxOffset && scroll > window.stickyOffset + stickyContainerHeight)
{
$(sticky).css("top", -stickyContainerHeight);
scrollAccumulation = 0;
}
}
else
{
scrollAccumulation = 0;
$(sticky).css("top", 0);
}
sticky.addClass('g-fixed-element');
$('#to-top').addClass('visible');
$('.g-fixed-container').css("height", stickyContainerHeight, 'important');
}
else{
$('#back-top').addClass('dont-show');
sticky.removeClass('g-fixed-element');
$('#to-top').removeClass('visible');
$('.g-fixed-container').css("height", stickyContainerHeight, 'important');
$(sticky).css("top", 0);
}
window.requestAnimationFrame(scrollMenu);
}
window.requestAnimationFrame(scrollMenu);
});
})(jQuery);
new window.VLibras.Widget('https://vlibras.gov.br/app');
jQuery(window).load(function(){jQuery.getScript("https://barra.brasil.gov.br/barra_2.0.js", function(){
if (jQuery("#barra-brasil").height() > 0) {
if (jQuery(document).scrollTop() != 0) {
jQuery(document).scrollTop(jQuery(document).scrollTop() + jQuery(
"#barra-brasil").height());
}
}
window.stickyOffset = window.stickySelector.parent().offset().top;
curFilterTop = window.filterSelector.css('top');
window.filterSelector.css('top', 0);
if (window.initialFilterOffset) {
window.initialFilterOffset = window.filterSelector.offset().top;
}
window.filterSelector.css('top', curFilterTop);
});
});
</script>]]>
|