Campazzo al quirófano
Campazzo al quirófano
‘).insertBefore(bannerWidgetEnCarcasa);
alreadyFoundCarcasa = true;
}
if (alreadyFoundBody == false && $(“.opta-standings”).closest(“.widgetOpta”).length > 0) {
var zonaBannerWidgetEnBody = $(“.opta-standings”).closest(“.widgetOpta”);
var bannerWidgetEnBody = $(zonaBannerWidgetEnBody).find(“.opta-standings”);
$(‘

alreadyFoundBody = true;
}
if (bannerWidgetsIntents == 0 || (alreadyFoundCarcasa && alreadyFoundBody)) {
clearInterval(timerForBannerWidget);
}
}, 2000);
firstVideoController = true;
currentPlayingVideoId = “”;
if (kalturaAutoplayInteriorNota == 1) {
$(window).scroll(function(){
if (firstVideoController && $(“.firstVideo”).length == 1 && $(“.firstVideo”).isCompletelyOnScreen()) {
firstVideoController = false;
$(“.firstVideo”).find(“button”).trigger(“click”);
currentPlayingVideoId = $(“.firstVideo”).attr(“id”);
$(“.firstVideo”).removeClass(“firstVideo”);
document.getElementById(currentPlayingVideoId).sendNotification(“changeVolume”, 0.3);
}
if (currentPlayingVideoId != “” && $(“#” + currentPlayingVideoId).isCompletelyOffScreen()) {
document.getElementById(currentPlayingVideoId).sendNotification(“doPause”);
currentPlayingVideoId = “”;
}
});
}
var sectionNameLast = $(“.header-bottom .section-name”).html();
$(“.aditionalContentSticky .section-name”).append(sectionNameLast);
var shareNtitle = $(“.aditionalContentSticky”).html();
$(“.styleSecSticky .header-top > div”).append(shareNtitle);
//INICIO: Home en nota
$(‘footer’).hide();
//Variables de control
homeHasCharged = false;
engageyaHasCharged = false;
shareThroughHasCharged = false;
//altura promedio de un scroll
var scrollHeight = $(window).height();
//altura actual del body (aumenta con cada scroll)
var bodyHeight = scrollHeight;
$(window).scroll(function() {
if (!engageyaHasCharged && ($(window).scrollTop() >= ($(“body”).height()-1000) ))
{
engageyaHasCharged = true;
$(“#engageyaOnDemandId”).css({‘height’:’600′,’position’:’relative’});
$(“#engageyaOnDemandId”).append(‘
‘);
$.get(“/nota/engageya.json”, {‘contentId’:”OLENWS20180416_0048″}, function(_response){
response = BBT.fixJson(_response);
$(“#engageyaOnDemandId”).html(response[‘data’]);
})
.done(function(){
$(“#engageyaOnDemandId”).trigger(‘columnGrowUp’);
})
.fail(function(){
console.log(“Error en la carga on demand de Engageya.”)
});
}
if (!shareThroughHasCharged && ($(window).scrollTop() >= ($(“body”).height()-1000) ))
{
shareThroughHasCharged = true;
$(“#shareThroughOnDemandId”).html(”);
var s = document.createElement(“script”);
s.type = “text/javascript”;
s.src = “http://native.sharethrough.com/assets/sfp.js”;
$(“head”).append(s);
}
if (!homeHasCharged && ($(window).scrollTop() >= ($(“body”).height()-1000) ))
{
homeHasCharged = true;
$.get(“/nota/fakeHome.json”, {‘sectionId’:”4″}, function(_response){
response = BBT.fixJson(_response);
$(“#fakeHome”).html(response[‘data’]);
if (typeof ads != “undefined”) {
ads.pending();
}
$(‘footer’).show();
OLE.Modules.initialize();
}).fail(function(){
console.log(“error Home en nota.”)
});
}
});
//FIN: Home en nota
//Comprobar si hay relacionadas
var conRelacionadas = $(‘.entry-contentrelatednews .entry div’).length;
if(conRelacionadas){
$(‘.entry-contentrelatednews’).toggle();
}
if ($(‘.entry-contentrelatednews .entry-media img’).attr(“src”)==””){
$(‘.entry-contentrelatednews .entry-media’).remove();
}
if ( $(‘#headerSection .section-logo’).attr(‘src’) == ‘undefined’ ) {
$(‘#headerSection .section-logo’).css(‘display’, ‘none’);
}
$(“.entry-body .modal-viewer”).colorbox({rel:’nofollow’});
// quitamos acción de botón derecho y medio en apertura de colorbox
$(“a.cboxElement”).live(“contextmenu”,function(){
return false;
});
$(“a.cboxElement”).click(function(e){
e.preventDefault();
});
$(document).bind(‘cbox_open’, function () {
$(‘html’).css(‘overflow-y’,’hidden’);
});
$(document).bind(‘cbox_cleanup’,function(){
$(‘html’).css(‘overflow-y’,”);
});
//End Comprobar si hay relacionadas
//ordenamiento de los widgets de OPTA
$(‘#widgetsOptaContainer’).children(‘div’).each(function (index)
{
if ($(‘#widgetOpta_id’+index).length != 0){
$(‘#widgetOpta_id’+index).html($(this).html());
$(this).remove();
}
})
$(‘#widgetsOptaContainer’).show();
});
/*$(‘iframe’).load(function () {
$(‘iframe’).height($(‘iframe’).contents().height());
});*/
//Init Llamadas JS Hardcode –>
var kw = document.getElementsByName(‘keywords’);
var get_kw = “”;
for (x = 0; x 0){
get_kw = get_kw + kw[x].content;
}
}
else{
get_kw = get_kw + kw[x].content;
}
}
get_kw = get_kw.replace(/,/g, “|”);
var KeywordVar = get_kw;
n = KeywordVar.length;
KeywordVar = KeywordVar.substr(0,n);
//End Llamadas JS Hardcode –>
/*Carga la cantidad de comentarios en el text del boton de comments*/
$(window).load(function(){
var textCommets = $(‘.gig-comments-commentList-header.gig-comments-commentList-header-commentsCount’).text();
var cantCommets = textCommets.split(” “);
$(‘.entry-sharein .text’).text(cantCommets[0]); //las barras del cuerpo de interior de nota
$(‘.site-menu .share-box.cm-box .text’).text(cantCommets[0]); //la barra del menu sticky en interior de nota
});
/*FIN Carga la cantidad de comentarios en el text del boton de comments*/
if (“false” == “false”) {
// Step 1: Define an array of reaction objects
var textReactions=[
{
text: ‘¡FANTASIA
PURA!’,
ID: ‘fantasiaPura’,
tooltip:’¡FANTASIA PURA!’,
feedMessage: ‘¡FANTASIA PURA!’,
headerText:’¡FANTASIA PURA!,’
}
,{
text: ‘MEDALLA
DE PLATA’,
ID: ‘medallaPlata’,
tooltip:’MEDALLA DE PLATA’,
feedMessage: ‘MEDALLA DE PLATA’,
headerText:’MEDALLA DE PLATA,’
}
,{
text: ‘CUMPLE CON
LO JUSTO’,
ID: ‘cumpleJusto’,
tooltip:’CUMPLE CON LO JUSTO’,
feedMessage: ‘CUMPLE CON LO JUSTO!’,
headerText:’CUMPLE CON LO JUSTO,’
}
,{
text: ‘¿VENDEHUMO
YO?’,
ID: ‘vendeHumo’,
tooltip:’¿VENDEHUMO YO?’,
feedMessage: ‘¿VENDEHUMO YO?!’,
headerText:’¿VENDEHUMO YO?,’
}
,{
text: ‘MAS FALSO
QUE DÓLAR
CELESTE’,
ID: ‘dolarCeleste’,
tooltip:’MAS FALSO QUE DÓLAR CELESTE’,
disabledTooltip:’MAS FALSO QUE DÓLAR CELESTE’,
feedMessage: ‘MAS FALSO QUE DÓLAR CELESTE!’,
headerText:’MAS FALSO QUE DÓLAR CELESTE,’
}
];
// Step 2: Define UserAction object and fill it with data
var defaultUserAction = new gigya.socialize.UserAction();
defaultUserAction.setTitle(“Campazzo al quirófano”);
defaultUserAction.setLinkBack(“/basquet/campazzo-lesion-rodilla-ausente-playoffs-euroliga_0_1997800248.html”);
// Step 3: Define the Reactions Plugin’s params object
var reactionParams ={
barID: ‘reaction_OLENWS20180416_0048’, // Identifier of the content to which this reaction refers
containerID: ‘reactionsDiv’, // Reactions Plugin DIV Container
reactions: textReactions, // The reaction array from Step 1
userAction: defaultUserAction, // The UserAction object from Step 2
bodyText: ‘Comparte con tus amigos:’, // optional – text that appears in the Share popup
showCounts: ‘top’, // optional – displays the counters on top of the buttons
multipleReactions: false,
cid:”
};
// Step 4: Load the Reactions Plugin:
gigya.socialize.showReactionsBarUI(reactionParams);
}
/*Tooltipster contador de caracteres*/
$(‘#article-main-content p’).mouseup(function(){
setTimeout(countSelectText,500);
});
$(‘#bajada’).mouseup(function(){
setTimeout(countSelectText,500);
});
function countSelectText(){
var selChar = $(‘markShare.contentshare’).text().length;
if($(‘.tooltipster-content .selCharC’).length == 0){
$(‘.tooltipster-content .separador:last’).after(‘
‘+selChar+’
‘);
}
}
Subir