66
| <![CDATA[<script>
window.fbAsyncInit = function() {
FB.init({
appId : '{your-app-id}',
cookie : true,
xfbml : true,
version : '{api-version}'
});
FB.AppEvents.logPageView();
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>]]>
|
1734
| <![CDATA[<script>
$('#modal_podcast').on('hidden.bs.modal', function () {
$("#deposito_podcast").html("");
})
$('#modal_videos').on('hidden.bs.modal', function () {
$("#deposito_video").html("");
})
$(".bot-fechar-podcast").click(function(e){
e.preventDefault();
$("#deposito_podcast").html("");
});
$(".bot-fechar-video").click(function(e){
e.preventDefault();
$("#deposito_video").html("");
});
$(".botao-video").click(function(e){
e.preventDefault();
//alert("oi");
var id_video = this.id;
//alert(id_video);
$("#deposito_video").html("");
$.ajax({
type: 'POST',
url: 'video.php',
data: {id: id_video},
success: function(data){
//alert(data);
$("#modal_videos").modal("show");
$("#deposito_video").html(data);
}
});
});
$(".botao-podcast").click(function(e){
e.preventDefault();
//alert("oi");
var id_video = this.id;
var tipo_podcast = 'podcast';
var tipo_botao = 'botao';
//alert(id_video);
$("#deposito_podcast").html("");
$.ajax({
type: 'POST',
url: 'podcast.php',
data: {id: id_video, tipo : tipo_podcast},
success: function(data){
//alert(data);
$("#modal_podcast").modal("show");
$("#deposito_podcast").html(data);
}
});
$.ajax({
type: 'POST',
url: 'podcast.php',
data: {id: id_video, tipo:tipo_botao},
success: function(data2){
$("#deposito_podcast_botao").html(data2);
}
});
});
$("#tab3").click(function(e){
window.open('https://www.imprensaoficial.al.gov.br/diario-oficial', '_blank');
});
$(document).ready(function() {
var numItems = $('li.fancyTab').length;
if (numItems == 12){
$("li.fancyTab").width('8.3%');
}
if (numItems == 11){
$("li.fancyTab").width('9%');
}
if (numItems == 10){
$("li.fancyTab").width('10%');
}
if (numItems == 9){
$("li.fancyTab").width('11.1%');
}
if (numItems == 8){
$("li.fancyTab").width('12.5%');
}
if (numItems == 7){
$("li.fancyTab").width('14.2%');
}
if (numItems == 6){
$("li.fancyTab").width('16.666666666666667%');
}
if (numItems == 5){
$("li.fancyTab").width('20%');
}
if (numItems == 4){
$("li.fancyTab").width('25%');
}
if (numItems == 3){
$("li.fancyTab").width('33.3%');
}
if (numItems == 2){
$("li.fancyTab").width('50%');
}
});
$(window).load(function() {
$('.fancyTabs').each(function() {
var highestBox = 0;
$('.fancyTab a', this).each(function() {
if ($(this).height() > highestBox)
highestBox = $(this).height();
});
$('.fancyTab a', this).height(highestBox);
});
});
var $owl_carousel_5col = $('.owl-carousel-5-33col');
if ( $owl_carousel_5col.length > 0 ) {
if(!$owl_carousel_5col.hasClass("owl-carousel")){
$owl_carousel_5col.addClass("owl-carousel owl-theme");
}
$owl_carousel_5col.each(function() {
var data_dots = ( $(this).data("dots") === undefined ) ? false: $(this).data("dots");
var data_nav = ( $(this).data("nav")=== undefined ) ? false: $(this).data("nav");
var data_duration = ( $(this).data("duration") === undefined ) ? 4000: $(this).data("duration");
$(this).owlCarousel({
autoplay: true,
autoplayTimeout: data_duration,
loop: false,
items: 3,
margin: 1,
dots: data_dots,
mouseDrag: false,
touchDrag: true,
nav: data_nav,
navText: [
'<i class="fa fa-chevron-left"></i>',
'<i class="fa fa-chevron-right"></i>'
],
responsive: {
0: {
items: 1,
center: false
},
480: {
items: 1,
center: false
},
600: {
items: 2,
center: false
},
750: {
items: 2,
center: false
},
960: {
items: 2
},
1170: {
items: 2
},
1300: {
items: 2
}
}
});
});
}
</script>]]>
|