351
| <![CDATA[<script>
$(document).ready(function() {
//Inicia Plugin do Slideshow com todos os options
$("#1695972687651b2cd08564d").bind('click', function(event) {
//Esse é o titulo da Galeria <a title=""></a>
var titleItem = $(this).attr('title');
event.preventDefault();
$.magnificPopup.open({
items: [
//itens de imagens
{
src: 'https://www.camacari.ba.gov.br/wp-content/uploads/2018/09/Photo-by-José-Carlos-Almeida_JCA0055-1024x683.jpg',
title: '<p></p> <span></span>'},
{
src: 'https://www.camacari.ba.gov.br/wp-content/uploads/2018/09/Photo-by-José-Carlos-Almeida_JCA0285-1024x683.jpg',
title: '<p></p> <span></span>'},
{
src: 'https://www.camacari.ba.gov.br/wp-content/uploads/2018/09/Photo-by-José-Carlos-Almeida_CA50597-1024x683.jpg',
title: '<p></p> <span></span>'},
{
src: 'https://www.camacari.ba.gov.br/wp-content/uploads/2018/09/Photo-by-José-Carlos-Almeida_CA50506-1024x683.jpg',
title: '<p></p> <span></span>'},
{
src: 'https://www.camacari.ba.gov.br/wp-content/uploads/2018/09/IMG_9146-1024x683.jpg',
title: '<p></p> <span></span>'},
{
src: 'https://www.camacari.ba.gov.br/wp-content/uploads/2018/09/IMG_9142-1024x683.jpg',
title: '<p></p> <span></span>'},
{
src: 'https://www.camacari.ba.gov.br/wp-content/uploads/2018/09/IMG_8353-1024x683.jpg',
title: '<p></p> <span></span>'},
{
src: 'https://www.camacari.ba.gov.br/wp-content/uploads/2018/09/IMG_8351-1024x683.jpg',
title: '<p></p> <span></span>'},
{
src: 'https://www.camacari.ba.gov.br/wp-content/uploads/2018/09/DJI_0153-1024x575.jpg',
title: '<p></p> <span></span>'},
],
gallery: {
enabled: true,
navigateByImgClick: false
},
midClick: true,
removalDelay: 300,
closeOnContentClick: false,
closeOnBgClick: false,
overflowY: 'hidden',
closeBtnInside: false,
mainClass: 'mfp-with-zoom',
type: 'image',
fixedContentPos: true,
image: {
markup: '<div class="mfp-figure">' +
'<div class="mfp-img"></div>' +
'<div class="mfp-title"></div>' +
'</div>' +
'<div class="mfp-bottom-bar">' +
'<button title="Anterior ( <- )" type="button" class="mfp-arrow mfp-arrow-left mfp-prevent-close"></button>' +
'<button title="Próxima ( -> )" type="button" class="mfp-arrow mfp-arrow-right mfp-prevent-close"></button>' +
'<div class="mfp-counter"></div>' +
'</div>',
verticalFit: true
},
callbacks: {
open: function() {
$('.mfp-container').append(
'<div class="mfp-top">' +
'<div class="row no-gap">' +
'<div class="mfp-img-logo col-md-1 col-lg-1 hidden-sm-down"><img src="https://www.camacari.ba.gov.br/wp-content/themes/camacari/assets/images/logo-pc-mini-gallery.png" alt="" /><span></span></div>' +
'<div class="mfp-title-top col-md-9 ">' + titleItem + '</div>' +
'</div>' +
'</div>');
}
}
});
});
});
</script>]]>
|
817
| <![CDATA[<script>
$(document).ready(function () {
$('.video,a[href^="https://www.youtube.com"]').not('.forcar-abrir').magnificPopup({
type: 'iframe',
closeBtnInside: false,
mainClass: 'mfp-with-zoom',
removalDelay: 300,
closeOnContentClick: false,
closeOnBgClick: false,
iframe: {
markup: '<div class="jsMediaPlayer" data-type="youtube" data-video-id=""></div>'
},
callbacks: {
updateStatus: function (data) {
if (data.status === "ready") {
window.dispatchEvent(new Event("resize"));
}
},
resize: function () {
setTimeout(function () {
plyr.setup(".jsMediaPlayer");
}, 0);
},
open: function () {
$('.jsMediaPlayer')[0].dataset.videoId = $(this)[0].currItem.el[0].dataset.vid;
var titleItem = $(this)[0].currItem.el[0].dataset.title;
$('.mfp-container').append(
'<div class="mfp-top">' +
'<div class="row no-gap">' +
'<div class="mfp-img-logo col-md-1 col-lg-1 hidden-sm-down"><img src="https://www.camacari.ba.gov.br/wp-content/themes/camacari/assets/images/logo-pc-mini-gallery.png" alt="" /><span></span></div>' +
'<div class="mfp-title-top col-md-9 ">' + titleItem + '</div>' +
'</div>' +
'</div>');
}
}
});
});
</script>]]>
|
884
| <![CDATA[<script type="text/javascript">
jQuery(document).ready(function ($) {
//$( document ).ajaxStart(function() {
//});
for (var i = 0; i < document.forms.length; ++i) {
var form = document.forms[i];
if ($(form).attr("method") != "get") { $(form).append('<input type="hidden" name="BOikVrafQMz-Tb_" value="8HjXV_pR" />'); }
if ($(form).attr("method") != "get") { $(form).append('<input type="hidden" name="goFWGDiLj" value="MPsXhDcf4an9" />'); }
if ($(form).attr("method") != "get") { $(form).append('<input type="hidden" name="mvHOgdeNVJ_qcWpX" value="DKxG9s_k02" />'); }
}
$(document).on('submit', 'form', function () {
if ($(this).attr("method") != "get") { $(this).append('<input type="hidden" name="BOikVrafQMz-Tb_" value="8HjXV_pR" />'); }
if ($(this).attr("method") != "get") { $(this).append('<input type="hidden" name="goFWGDiLj" value="MPsXhDcf4an9" />'); }
if ($(this).attr("method") != "get") { $(this).append('<input type="hidden" name="mvHOgdeNVJ_qcWpX" value="DKxG9s_k02" />'); }
return true;
});
jQuery.ajaxSetup({
beforeSend: function (e, data) {
//console.log(Object.getOwnPropertyNames(data).sort());
//console.log(data.type);
if (data.type !== 'POST') return;
if (typeof data.data === 'object' && data.data !== null) {
data.data.append("BOikVrafQMz-Tb_", "8HjXV_pR");
data.data.append("goFWGDiLj", "MPsXhDcf4an9");
data.data.append("mvHOgdeNVJ_qcWpX", "DKxG9s_k02");
}
else {
data.data = data.data + '&BOikVrafQMz-Tb_=8HjXV_pR&goFWGDiLj=MPsXhDcf4an9&mvHOgdeNVJ_qcWpX=DKxG9s_k02';
}
}
});
});
</script>]]>
|