691
| <![CDATA[<script>
jQuerOs(window).on('load',function($) {
from_history = false;
jQuerOs('#os_progres_img-1_443387536:last' ).attr('class', "");
galId_random = '1_443387536';
var gallery = new osGallery(".os-gallery-tabs-main-1_443387536",{
minImgEnable : 1,
spaceBetween: 2.5,
minImgSize: 200,
numColumns: 3,
showImgTitle: '1',
showImgDescription: '1',
limEnd: '5',
galId: '1',
galIdRandom: '1_443387536',
imgCountCat: '{"1":"21"}',
load_more_background: '#12BBC5',
os_fancybox_background: 'rgba(0, 0, 0, 0.75)',
showLoadMore: '0',
juri: 'http://camarainconfidentes.mg.gov.br/',
itemId: '101',
layout: 'default',
thumbWidth: 600,
thumbHeight: 400,
fancSettings:{
wrapCSS: 'os-os_fancybox-window',
animationEffect : "fade",
animationDuration : "500",
transitionEffect : "fade",
transitionDuration : "500",
loop: 1,
arrows: 1,
clickContent: "zoom",
wheel: 1,
slideShow : {
autoStart : false,
speed : 3000 },
clickSlide : "close",
thumbs : {
autoStart : true,
axis : 'y'
},
buttons : {
'slideShow': 'slideShow',
'fullScreen': 'fullScreen',
'thumbs': 'thumbs',
'share': '',
'download': 'download',
'zoom': 'zoom',
'arrowLeft': 'arrowLeft',
'arrowRight': 'arrowRight',
'close': 'close'
},
share : {
tpl : '<div class="os_fancybox-share"><div class="container"><h1>{{SHARE}}</h1><p class="os_fancybox-share__links"></p></div></div>'
},
infobar : 1,
baseClass : 'thumb_right'
}
});
// jQuerOs(".tab-click-loadMore").click(function(){
// gallery.loadMore("0");
// })
//
//
// gallery.loadMore("0");
// add social sharing script
var href = window.location.href;
var img_el_id = '';
var pos1 = href.indexOf('os_image_id');
var pos2 = href.lastIndexOf('#');
var os_show_load_more = "0";
if (pos1 > -1 && pos2 > - 1) {
img_el_id = href.substring(pos1, pos2);
}else if(pos1 > -1 && pos2 == -1){
img_el_id = href.substring(pos1);
}
os_fancy_box_getInst = jQuerOs.os_fancybox.getInstance();
if(!os_fancy_box_getInst){
if(img_el_id && img_el_id.indexOf('os_image_id') > -1) {
if(document.getElementById(img_el_id) == null){
if (os_show_load_more == 'auto'){
gallery.loadMore("auto");
}
else if (os_show_load_more !== null){
}
else if (os_show_load_more !== null){
gallery.loadMore("button");
jQuerOs('#load-more-1_443387536').trigger('click');
}
}
else {
jQuerOs('#' + img_el_id).trigger('click');
}
}
}
// var position_gallery = href.indexOf('cat');
// var gallery_cat_id = '';
// var gallery_cat_id = href.substring(position_gallery);
// if(gallery_cat_id.indexOf('&') > -1){
// gallery_cat_id = gallery_cat_id.substr(0, gallery_cat_id.indexOf('&'));
// }
//
// if(gallery_cat_id && gallery_cat_id.indexOf('cat-') > -1 && gallery_cat_id.indexOf('=') == -1){
//
// jQuerOs('#' + gallery_cat_id + '1_443387536').trigger('click');
// }
window.onpopstate = function(event) {
//alert("location: " + document.location + ", state: " + JSON.stringify(event.state));
from_history = true;
var href = window.location.href;
var img_el_id = '';
var pos1 = href.indexOf('os_image_id');
var pos2 = href.lastIndexOf('-');
os_fancy_box_getInst = jQuerOs.os_fancybox.getInstance();
if (!os_fancy_box_getInst && (pos1 > -1)){
if (pos1 > -1 && href.indexOf('#os_fancybox') > - 1) {
pos2 = href.lastIndexOf('#os_fancybox')
img_el_id = href.substring(pos1, pos2);
}else if(pos1 > -1 && href.indexOf('#os_fancybox') == -1){
img_el_id = href.substring(pos1);
}
jQuerOs('#' + img_el_id).trigger('click');
}
else if (pos1 > -1) {
img_el_id = href.substring(pos1);
var ordering_id = jQuerOs('#' + img_el_id).attr('data-index');
os_fancy_box_getInst.jumpTo(ordering_id);
}else if(pos1 == -1 && href.indexOf('os_fancybox') == -1 && os_fancy_box_getInst){
os_fancy_box_getInst.close();
window.history.back();
}
var cat_id = '';
if(href.indexOf('cat-') > -1 && href.indexOf('os_image_id') == -1){
cat_id = href.substring(href.indexOf('cat-'));
jQuerOs('#' + cat_id + '1_443387536').trigger('click');
}
from_history = false;
};
// end sharing script
});
</script>]]>
|