19
| <![CDATA[<script>
(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-72592299-1', 'auto');
ga('send', 'pageview');
</script>]]>
|
278
| <![CDATA[<script type = "text/javascript" >
$("#mostrarComunicadosAnteriores").click(function () {
$("#comunicadosAnteriores").css("visibility", "visible");
$("#sombraComunicado").css("visibility", "visible");
});
$("#fecharComunicadosAnteriores").click(function () {
$("#comunicadosAnteriores").css("visibility", "hidden");
$("#sombraComunicado").css("visibility", "hidden");
});
$("#sombraComunicado").click(function () {
$("#comunicadosAnteriores").css("visibility", "hidden");
$("#sombraComunicado").css("visibility", "hidden");
});
</script>]]>
|
698
| <![CDATA[<script>
$(document).ready(function () {
$.ajax({
url: '/eventos/carregareventos',
type: 'POST',
dataType: 'json',
async: false,
cache: false,
contentType: "application/json; charset=utf-8",
success: function (response) {
var jsons = new Array();
$(response).each(function (index, i) {
jsons.push({ "date": i.DATA + " " + i.HORA, "type": "meeting", "title": i.TITULO, "url": i.URL });
})
$("#eventCalendarInline").eventCalendar({
jsonData: jsons,
jsonDateFormat: 'human' // 'YYYY-MM-DD HH:MM:SS'
});
},
error: function (response) {
alert('Error');
}
});
});
</script>]]>
|
784
| <![CDATA[<script>
$("#drpFormularios").change(function () {
this.form.submit();
});
</script>]]>
|
945
| <![CDATA[<script type="text/javascript">
var $ = jQuery.noConflict();
$(document).ready(function () {
// aumentando a fonte
$(".AMais").click(function () {
var size = $(".conteudo").css('font-size');
size = size.replace('px', '');
size = parseInt(size) + 1.4;
$(".conteudo").animate({ 'font-size': size + 'px' });
});
//diminuindo a fonte
$(".AMenos").click(function () {
var size = $(".conteudo").css('font-size');
size = size.replace('px', '');
size = parseInt(size) - 1.4;
$(".conteudo").animate({ 'font-size': size + 'px' });
});
// resetando a fonte
$(".ARest").click(function () {
$(".conteudo").animate({ 'font-size': '14px' });
});
});
//FancyBox - Galeria - MODEVIEW 1
(function ($, F) {
F.transitions.resizeIn = function () {
var previous = F.previous,
current = F.current,
startPos = previous.wrap.stop(true).position(),
endPos = $.extend({ opacity: 1 }, current.pos);
startPos.width = previous.wrap.width();
startPos.height = previous.wrap.height();
previous.wrap.stop(true).trigger('onReset').remove();
delete endPos.position;
current.inner.hide();
current.wrap.css(startPos).animate(endPos, {
duration: current.nextSpeed,
easing: current.nextEasing,
step: F.transitions.step,
complete: function () {
F._afterZoomIn();
current.inner.fadeIn("fast");
}
});
};
}(jQuery, jQuery.fancybox));
$(".fancybox")
.attr('rel', 'Galeria')
.fancybox({
nextMethod: 'resizeIn',
nextSpeed: 250,
prevMethod: false,
helpers: {
title: {
type: 'inside'
},
overlay: { css: { 'background': 'rgba(0, 0, 0, 0.8)' } }
}
});
</script>]]>
|
1030
| <![CDATA[<script type="text/javascript">
(function () {
// setup your carousels as you normally would using JS
// or via data attributes according to the documentation
// http://getbootstrap.com/javascript/#carousel
$('#carouselivo').carousel({ interval: 2000 });
}());
(function () {
$('.carousel-showmanymoveone .item').each(function () {
var itemToClone = $(this);
for (var i = 1; i < 4; i++) {
itemToClone = itemToClone.next();
// wrap around if at end of item collection
if (!itemToClone.length) {
itemToClone = $(this).siblings(':first');
}
// grab item, clone, add marker class, add to collection
itemToClone.children(':first-child').clone()
.addClass("cloneditem-" + (i))
.appendTo($(this));
}
});
}());
$(document).ready(function () {
$(window).resize(function () {
var width = $(window).width();
if (width > 990) {
$('#myCarousel_Noticias').removeClass('fade').addClass('slide');
}
else {
$('#myCarousel_Noticias').removeClass('slide').addClass('fade');
}
})
.resize();
function toggleChevron(e) {
$(e.target)
.prev('.accordion-heading')
.find("i.icon-white")
.toggleClass('icon-circle-arrow-down');
}
$('#MenuAccordion').on('hidden.bs.collapse', toggleChevron);
$('#MenuAccordion').on('shown.bs.collapse', toggleChevron);
$('#CarouselAcessoRapido').carousel({
interval: 0
});
$('#CarouselVeiculos').carousel({
interval: 0
});
$('#CarouselHabilitacao').carousel({
interval: 0
});
$('#myCarousel_Banner').carousel({
interval: 8000
});
$('#myCarousel_Banner .carousel-control.right').trigger('click');
$('#myCarousel_Noticias').carousel({
interval: 5000
});
//Controle de tabs do bootstrap
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
var tab = getParameterByName('tab');
switch (tab) {
case "2":
$("#tabVeiculos").tab("show");
break;
case "3":
$("#tabHabilitacao").tab("show");
break;
case "4":
$("#tabInfracao").tab("show");
break;
default:
$("#tab1").tab("show");
}
});
//FIM Controle de tabs do bootstrap
$('.newsticker').newsTicker({
row_height: 186,
max_rows: 1,
speed: 600,
direction: 'down',
duration: 5000,
autostart: 1,
pauseOnHover: 0,
prevButton: $('#nt-example1-prev'),
nextButton: $('#nt-example1-next')
});
$('.dropdown').hover(
function () {
$(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn();
},
function () {
$(this).find('.dropdown-menu').stop(true, true).delay(300).fadeOut();
}
);
$('.dropdown-menu').hover(
function () {
$(this).stop(true, true);
},
function () {
$(this).stop(true, true).delay(200).fadeOut();
}
);
</script>]]>
|