Ok, used Inspect Element to look into that portion of the code and found this:
Code: Select all
<script type="text/javascript">
if($(".galleria").length > 0)
{
Galleria.loadTheme('/common/script/galleria/galleria.azur.min.js');
// Initialize Galleria
var previousImg = -1;
var startupImg = true;
var ImagesHeight = 0;
var ImagesWidth = 0;
var firstLoad = true;
Galleria.run('.galleria', {
imageCrop: false,
height: 560,//$(window).height() - $(".galleria").offset().top,
width:660,
transitionSpeed: 20,
showCounter: false,
responsive: false,
debug:false,
dummy:"http://cdn.controlinveste.pt/jn/common/images/JN_DEFAULT_IMG.jpg",
dataConfig: function (img) {
var date = $(img).attr("date");
var title = $(img).attr("title");
var credits = $(img).attr("credits");
var position = $(img).attr("position");
var total = $(img).attr("total");
var width_win = $(window).width()-145;
var style_1 = "width:85%;"// + width_win +"px";
var classname = changestyle(title, 150);
var html = "<div style='"+style_1+"' class='text_photo'><div style='display:table-cell;vertical-align:middle;'><span class='span_number'>" + position + "/" + total + "</span>";
html += "<span class='span_pipe'>|</span>";
html += "<span class='span_date'>"+ date + "</span>";
html += "<span class='span_credits'>" + credits + "</span>";
html += "<div class='title_credits'><span class='span_title'>" + title + "</span></div></div></div>";
html += "<div class='fullscreen_button' onclick='fullscreen();'></div>";
html += "<div class='play' onclick='play();'></div>";
return {
title: html
};
},
extend: function (options) {
this.bind('image', function(e) {
//console.log("image");
if (!firstLoad && !this._playing)
{
pgviewrefresh();
$("#ifPubRefresh").attr("src","/common/services/pubMrec.aspx?seccao=desporto_noticias");
}
firstLoad = false;
});
this.bind("loadfinish", function (e) {
//console.log("loadfinish");
//$(".galleria-stage img").css("height",$(".galleria-stage").height() - 37);
//$(".galleria-image img[height='511']").css("height",$(".galleria-stage").height() - 37);
//$(".galleria-stage img").css("height",$(".galleria-stage").height() - 37).css("width",($(this).width() * 445) / 482);
if (is_playing) {
$(".play").addClass("pause");
}
else
$(".play").removeClass("pause");
});
this.bind("fullscreen_exit",function(e){
$(".fullscreen_button_active").addClass("fullscreen_button").removeClass("fullscreen_button_active");
fullscreen_active = false;
//pgviewrefresh();
window.setTimeout(function(){
//$(".galleria-stage img").css("height",$(".galleria-stage").height() - 37);
},200);
});
this.bind('fullscreen_enter', function(e) {
//pgviewrefresh();
window.setTimeout(function(){
//$(".galleria-stage img").css("height",$(".galleria-stage").height() - 37);
},200);
});
}
});
}
var fullscreen_active = false;
var is_playing = false;
var is_pause = false;
function fullscreen() {
if (fullscreen_active) {
$(".galleria-fullscreen").click();
}
else {
fullscreen_active = true;
$(".galleria-fullscreen").click();
//$(".galleria-bar").show();
$(".fullscreen_button").addClass("fullscreen_button_active").removeClass("fullscreen_button");
}
}
function thumbs() {
if ($(".galleria-bar").is(":visible")) {
$(".galleria-bar").hide();
$(".galleria-container").css("background", "none");
$(".thumbs_chosen").addClass("thumbs").removeClass("thumbs_chosen");
}
else {
$(".galleria-bar").show();
$(".galleria-container").css("background", "black");
$(".thumbs").addClass("thumbs_chosen").removeClass("thumbs");
}
}
function play() {
if (is_playing) {
$(".galleria-bar .pause").click();
$(".play").removeClass("pause");
is_playing = false;
}
else {
$(".galleria-play").click();
$(".play").addClass("pause");
is_playing = true;
}
}
function changestyle(t, l)
{
if(t != null && t != undefined && t.length > l)
{
var leng = 0;
var textSplit = t.split(" ");
var newText = "";
return 'margin-top:-5px';
}
else
return '';
}
</script>
And, though not being a programmer I'm kind of clueless, it seems it's this portion that's the culprit:
Code: Select all
extend: function (options) {
this.bind('image', function(e) {
//console.log("image");
if (!firstLoad && !this._playing)
{
pgviewrefresh();
$("#ifPubRefresh").attr("src","/common/services/pubMrec.aspx?seccao=desporto_noticias");
}
firstLoad = false;
});
this.bind("loadfinish", function (e) {
//console.log("loadfinish");
//$(".galleria-stage img").css("height",$(".galleria-stage").height() - 37);
//$(".galleria-image img[height='511']").css("height",$(".galleria-stage").height() - 37);
//$(".galleria-stage img").css("height",$(".galleria-stage").height() - 37).css("width",($(this).width() * 445) / 482);
if (is_playing) {
$(".play").addClass("pause");
}
else
$(".play").removeClass("pause");
});
Is that it - and is it something ABP can block?