1window.socketPtv={open:function(){$(function(){$(".icons-ptv.ptv").addClass("animated");});},close:function(){$(function(){$(".icons-ptv.ptv").removeClass("animated").css({color:'orange'});});},error:function(){$(function(){$(".icons-ptv.ptv").removeClass("animated").css({color:'red'});});}};function registrar_desplazamiento_elemento(e){$("article").each(function(){$(this).find(e).mousemove(function(){var h=$(this).children('a').height();$(this).stop().animate({scrollTop:h},2000,function(){$(this).scrollTop(0);});}).mouseleave(function(){$(this).stop().scrollTop(0);});});}window.COOKIE={_vex:function(x){if(typeof x.expire!=='undefined'&&x.expire!=null){if(x.expire<new Date().getTime()){return true;}}return false;},global:{},set:function(x,y,z){z=typeof z!=='undefined'?(new Date().getTime()+parseInt(z)*1000):null;y={val:y,expire:z};y=JSON.stringify(y);if(typeof(Storage)!='undefined'){localStorage.setItem(x,y);}else{window.COOKIE.global[x]=y;}},get:function(x){if(typeof(Storage)!=='undefined'){var d;if((d=localStorage.getItem(x))!=null){d=JSON.parse(d);if(window.COOKIE._vex(d)){localStorage.removeItem(x);return null;}return d.val;}}else if(typeof window.COOKIE.global[x]!=='undefined'){var d=JSON.parse(window.COOKIE.global[x]);if(window.COOKIE._vex(d)){delete window.COOKIE.global[x];return null;}return d.val;}return null;},has:function(x){if(typeof(Storage)!=='undefined'){var d;if((d=localStorage.getItem(x))!=null){d=JSON.parse(d);if(window.COOKIE._vex(d)){localStorage.removeItem(x);return false;}return true;}}else if(typeof window.COOKIE.global[x]!=='undefined'){var d=JSON.parse(window.COOKIE.global[x]);if(window.COOKIE._vex(d)){delete window.COOKIE.global[x];return false;}return true;}return false;}};$(document).ready(function(){$("[data-click]").on("click",function(){var exec=$(this).attr("data-click");if(!empty(exec)){eval($(this).attr("data-click"));}});$("[encuesta-ptv]").each(function(){typeof iniciar_encuesta_24!=='undefined'&&iniciar_encuesta_24($(this));});registrar_desplazamiento_elemento("._titular");registrar_desplazamiento_elemento("._descripcion");var CarruselOverflow=function(box){var left=null;var right=null;var center=null;var ancho=null;var lista=null;var hideButtons=function(){try{var current=center.scrollLeft();current==0?left.hide():left.show();current+center.width()>=center[0].scrollWidth?right.hide():right.show();}catch(err){console.log('error',err);}};var sensible=function(){return;var $bl=center,$th=lista,blW=$bl.outerWidth(),blSW=$bl[0].scrollWidth,wDiff=(blSW/blW)-1,mPadd=60,damp=20,mX=0,mX2=0,posX=0,mmAA=blW-(mPadd*2),mmAAr=(blW/mmAA);$bl.mousemove(function(e){mX=e.pageX-this.offsetLeft-($bl.width()-100);mX2=Math.min(Math.max(0,mX-mPadd),mmAA)*mmAAr-100;hideButtons();});setInterval(function(){posX+=(mX2-posX)/damp;$th.css({marginLeft:-posX*wDiff});},10);};var init=function(){var pree="<div class=\"_left\"></div><div class=\"_right\"></div><div class=\"_center\"></div>";var html=box.html();box.empty().html(pree);box.children('._center').html(html);left=box.find("._left");right=box.find("._right");center=box.find("._center");lista=center.children("ul");ancho=center.find("li._current").width()/2;left.on('click',function(){var current=center.scrollLeft();var nuevo=current-ancho;if(nuevo<0){nuevo=0;}center.stop().animate({scrollLeft:nuevo},200,function(){hideButtons();});});right.on('click',function(){var current=center.scrollLeft();var nuevo=current+ancho;var maximo=center[0].scrollWidth/2;if(nuevo<=maximo){center.stop().animate({scrollLeft:nuevo},200,function(){hideButtons();});}else{hideButtons();}});};init();sensible();};var CarruselProgramas=function(){var box=$(".portada_bloque_programas");var menu=box.find(".portada_bloque_programas_listado");var program=box.find("._listado_programas>ul>li");var interval=null;var showId=function(id){var idShow=program.filter("[data-id='"+id+"']");var idHide=program.filter(":visible");var subsec=idShow.find(".portada_bloque_programas_bloques>li");var notici=idShow.find(".portada_bloque_programas_noticias>li");menu.children('li').removeClass('_current');menu.find("[data-id='"+id+"']").addClass('_current');subsec.off('click').on('click',function(){var li=$(this);var tipo=li.attr('data-tipo');subsec.removeClass('_current');li.addClass('_current');notici.hide().filter("[data-tipo='"+tipo+"']").show();});idHide.hide();idShow.show();subsec.eq(0).click();};var animate=function(x){if(!x&&interval!==null){clearInterval(interval);interval=null;}else{interval=setInterval(function(){var number = menu.children("li.programas_link_fondo").index();var elements = menu.children("li").length;var next = (number + 1) >= elements ? 0 : number + 1;next = menu.children("li").eq(next);showId(next.attr('data-id'));var elements=menu.children("li").length;var next=(number+1)>=elements?0:number+1;next=menu.children("li").eq(next);showId(next.attr('data-id'));},10000);}};var init=function(){$.each(program,function(){var id=$(this).attr('data-id');var programa=$(this).attr('data-programa');menu.append("<li data-id=\""+id+"\" class=\" \"><div>"+programa+"</div></li>");});var current = menu.children("li.programas_link_fondo"); var id=current.length?current.attr('data-id'):menu.children('li').eq(0).attr('data-id');menu.children('li').on('click',function(){var li=$(this);var id=li.attr('data-id');if(li.hasClass('programas_link_fondo')){return;}showId(id);animate(false);});showId(id);animate(true);};
1init();};CarruselProgramas();CarruselOverflow($(".header_menu_3 ._carrusel"));CarruselOverflow($(".breadcrumbs"));});function lanzarBarraFlotante(barra){var barraPos=barra.offset().top 2var analyzeScroll=function(e){var scroll=$(window).scrollTop();if(scroll>barraPos){barra.addClass("flotante").find("._logo_blanco").show();}else{barra.removeClass("flotante").find("._logo_blanco").hide();}};$(window).scroll(analyzeScroll);analyzeScroll();}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.