local na rede Internet:Astralcontente
Astral subscribe langue Español Português subscribe langue Español Português DiscoverTheMicOfChristmasAccordingToYourZodiacSign ThePriceOfAuthenticity:ZodiacSignsThatPreferToBeAlone FullMoonOfDecember2024 MessesToYourExAccordingToYourZodiacSign:ImpulseOrStrategy? RebirthIn2025:WhatEachSignMustLetGoOfIn2024 Mostviewed MessesFromYourFutureSelf:TipsForEveryZodiacSign Imineforamomentthatyourfutureselfhasfoundawaytosendyouamesse,apieceofadvicefilledwithwisdomandlearning. ZodiacSignsThatRadiateGoodVibes Discoverthezodiacsignsthatradiategoodvibesandliftthespiritsofthosearoundthem. WorkAndZodiacSigns:AUniqueEnergyInTheProfessionalEnvironment Intheworkplace,teamdynamicscanbeinfluencedbytheastrologicalcharacteristicsofeachperson. MessesFromYourFutureSelf:TipsForEveryZodiacSign ZodiacSignsThatRadiateGoodVibes WorkAndZodiacSigns:AUniqueEnergyInTheProfessionalEnvironment StressAstrology:TheMostNervousSignsOfTheZodiac StressAstrology:TheMostNervousSignsOfTheZodiac LearnHowtheZodiacSignsbeheNervously.ARankingofSusceptibilitytoStress. Thursday,07November2024 November11th:TheSpiritualSecretToAttractAbundance ConnectwiththePowerof11/11onthisMicalDayofManifestation Wednesday,06November2024 Today39;shoroscope Clickyoursign Aries Taurus Gemini Cancer Leo Virgo Libra Scorpio Sittarius Capricorn Aquarius Pisces TrendingIntrovertedOrExtrovertedPersonality:WhatYourZodiacSignSaysTuesday,10December2024DiscoverWhatGiftEachZodiacSignLovesFriday,06December2024ZodiacalRestPatterns:WhatDoesYourSignSayAboutHowYouSleep?Wednesday,04December2024(adsbygoogle=window.adsbygoogle||[]).push({});ChristmasWithCosmicStyle:YourIdealAstrologicalColorTuesday,03December2024LuckyDaysInDecember2024ForEachZodiacSignFriday,29November2024IntrovertedZodiacSigns:GuardiansOfTheirOwnSecretsThursday,28November2024 EternalLoveAndAstrology:TheSecretsOfMarryingWithEveryZodiacSign KnowtheEnergeticCompatibilityinMarrie:TheGoodandtheBadofEachSign Tuesday,05November2024 ZodiacTensions:TheSignsThatChallengeYourEnergy DiscoverTheVibesThatMightDestabilizeYouAccordingToYourZodiacSign. Friday,01November2024 Morearticles Contact ©2024Astral,todoslosderechosreservados. (function(d,s,id){ varjs,fjs=d.getElementsByTName(s)[0]; if(d.getElementById(id))return; js=d.createElement(s);js.id=id; js.src="//connect.facebook.net/es_LA/sdk.js#xfbml=1&version=v2.8&appId="; fjs.parentNode.insertBefore(js,fjs); }(document,'script','facebook-jssdk')); $(document).ready(function(){ $('.test-box').click(function(e){ varurl=$(this).prop("href") if($('.test-modal').hasClass('active')===false){ e.preventDefault() $('.test-modal').addClass('active'); setTimeout(function(){ document.getElementById('test_text').innerHTML=""; document.getElementById('test_sub_text').innerHTML="¡TodoListo!Presionasiguienteparacontinuar"; $(".test_btn").fadeIn(1500); document.getElementById('test_btn').href=url },5000); } }); $('.nbar-toggle').click(function(){ $('#mobn').toggleClass("active"); $('.menu-extras').toggleClass("active"); $(this).toggleClass("open"); }); $('.nigation-menulia').click(function(){ $('#mobn').removeClass("active"); $('.menu-extras').removeClass("active"); $('.nbar-toggle').removeClass("open"); }); $('.mob-lang').click(function(){ $('.lang-box').toggleClass("active"); $(this).toggleClass("open"); }); }); !function(a,b){ "object"==typeofmodule&&"object"==typeofmodule.exports?module.exports=a.document?b(a,!0):function(a){ if(!a.document)thrownewError("jQueryrequiresawindowwithadocument"); returnb(a) }:b(a) }("undefined"!=typeofwindow?window:this,function(a,b){ varc=[], d=c.slice, e=c.concat, f=c.push, g=c.indexOf, h={}, i=h.toString, j=h.hasOwnProperty, k={}, l="1.11.1", m=function(a,b){ returnnewm.fn.init(a,b) }, n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, o=/^-ms-/, p=/-([\da-z])/gi, q=function(a,b){ returnb.toUpperCase() }; m.fn=m.prototype={ jquery:l, constructor:m, selector:"", length:0, toArray:function(){ returnd.call(this) }, get:function(a){ returnnull!=a?0>a?this[a+this.length]:this[a]:d.call(this) }, pushStack:function(a){ varb=m.merge(this.constructor(),a); returnb.prevObject=this,b.context=this.context,b }, each:function(a,b){ returnm.each(this,a,b) }, map:function(a){ returnthis.pushStack(m.map(this,function(b,c){ returna.call(b,c,b) })) }, slice:function(){ returnthis.pushStack(d.apply(this,arguments)) }, first:function(){ returnthis.eq(0) }, last:function(){ returnthis.eq(-1) }, eq:function(a){ varb=this.length, c=+a+(0>a?b:0); returnthis.pushStack(c>=0&&b>c?[this[c]]:[]) }, end:function(){ returnthis.prevObject||this.constructor(null) }, push:f, sort:c.sort, splice:c.splice },m.extend=m.fn.extend=function(){ vara,b,c,d,e,f,g=arguments[0]||{}, h=1, i=arguments.length, j=!1; for("boolean"==typeofg&&(j=g,g=arguments[h]||{},h++),"object"==typeofg||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++) if(null!=(e=arguments[h])) for(dine)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void0!==c&&(g[d]=c)); returng },m.extend({ expando:"jQuery"+(l+Math.random()).replace(/\D/g,""), isReady:!0, error:function(a){ thrownewError(a) }, noop:function(){}, isFunction:function(a){ return"function"===m.type(a) }, isArray:Array.isArray||function(a){ return"array"===m.type(a) }, isWindow:function(a){ returnnull!=a&&a==a.window }, isNumeric:function(a){ return!m.isArray(a)&&a-parseFloat(a)>=0 }, isEmptyObject:function(a){ varb; for(bina)return!1; return!0 }, isPlainObject:function(a){ varb; if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1; try{ if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1 }catch(c){ return!1 } if(k.ownLast) for(bina)returnj.call(a,b); for(bina); returnvoid0===b||j.call(a,b) }, type:function(a){ returnnull==a?a+"":"object"==typeofa||"function"==typeofa?h[i.call(a)]||"object":typeofa }, globalEval:function(b){ b&&m.trim(b)&&(a.execScript||function(b){ a.eval.call(a,b) })(b) }, camelCase:function(a){ returna.replace(o,"ms-").replace(p,q) }, nodeName:function(a,b){ returna.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase() }, each:function(a,b,c){ vard,e=0, f=a.length, g=r(a); if(c){ if(g){ for(;f>e;e++) if(d=b.apply(a[e],c),d===!1)break }else for(eina) if(d=b.apply(a[e],c),d===!1)break }elseif(g){ for(;f>e;e++) if(d=b.call(a[e],e,a[e]),d===!1)break }else for(eina) if(d=b.call(a[e],e,a[e]),d===!1)break; returna }, trim:function(a){ returnnull==a?"":(a+"").replace(n,"") }, makeArray:function(a,b){ varc=b||[]; returnnull!=a&&(r(Object(a))?m.merge(c,"string"==typeofa?[a]:a):f.call(c,a)),c }, inArray:function(a,b,c){ vard; if(b){ if(g)returng.call(b,a,c); for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++) if(cinb&&b[c]===a)returnc } return-1 }, merge:function(a,b){ varc=+b.length, d=0, e=a.length; while(c>d)a[e++]=b[d++]; if(c!==c) while(void0!==b[d])a[e++]=b[d++]; returna.length=e,a }, grep:function(a,b,c){ for(vard,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]); returne }, map:function(a,b,c){ vard,f=0, g=a.length, h=r(a), i=[]; if(h) for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d); else for(fina)d=b(a[f],f,c),null!=d&&i.push(d); returne.apply([],i) }, guid:1, proxy:function(a,b){ varc,e,f; return"string"==typeofb&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){ returna.apply(b||this,c.concat(d.call(arguments))) },e.guid=a.guid=a.guid||m.guid++,e):void0 }, now:function(){ return+newDate }, support:k }),m.each("BooleanNumberStringFunctionArrayDateRegExpObjectError".split(""),function(a,b){ h["[object"+b+"]"]=b.toLowerCase() }); functionr(a){ varb=a.length, c=m.type(a); return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeofb&&b>0&&b-1ina } vars=function(a){ varb,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-newDate, v=a.document, w=0, x=0, y=gb(), z=gb(), A=gb(), B=function(a,b){ returna===b&&(l=!0),0 }, C="undefined", D=1",f="hidden"ina,j=a.childNodes.length==1||function(){ b.createElement("a"); vara=b.createDocumentFrment(); returntypeofa.cloneNode=="undefined"||typeofa.createDocumentFrment=="undefined"||typeofa.createElement=="undefined" }() }catch(c){ f=!0,j=!0 } })(); varr={ elements:c.elements||"abbrarticleasideaudiobdicanvasdatadatalistdetailsfigcaptionfigurefooterheaderhgroupmarkmeternoutputprogresssectionsummarytimevideo", shivCSS:c.shivCSS!==!1, supportsUnknownElements:j, shivMethods:c.shivMethods!==!1, type:"default", shivDocument:q, createElement:n, createDocumentFrment:o }; a.html5=r,q(b) }(this,b),e._version=d,e._prefixes=m,e._domPrefixes=p,e._cssomPrefixes=o,e.testProp=function(a){ returnD([a]) },e.testAllProps=F,e.testStyles=w,e.prefixed=function(a,b,c){ returnb?F(a,b,c):F(a,"pfx") },g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?"js"+t.join(""):""),e }(this,this.document), function(a,b,c){ functiond(a){ return"[objectFunction]"==o.call(a) } functione(a){ return"string"==typeofa } functionf(){} functiong(a){ return!a||"loaded"==a||"complete"==a||"uninitialized"==a } functionh(){ vara=p.shift(); q=1,a?a.t?m(function(){ ("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1) },0):(a(),h()):q=0 } functioni(a,c,d,e,f,i,j){ functionk(b){ if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){ "img"!=a&&m(function(){ t.removeChild(l) },50); for(vardiny[c])y[c].hasOwnProperty(d)&&y[c][d].onload() } } varj=j||B.errorTimeout, l=b.createElement(a), o=0, r=0, u={ t:d, s:c, e:f, a:i, x:j }; 1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){ k.call(this,r) },p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l)) } functionj(a,b,c,d,f){ returnq=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this } functionk(){ vara=B; returna.loader={ load:j, i:0 },a } varl=b.documentElement, m=a.setTimeout, n=b.getElementsByTName("script")[0], o={}.toString, p=[], q=0, r="MozAppearance"inl.style, s=r&&!!b.createRange().compareNode, t=s?l:n.parentNode, l=a.opera&&"[objectOpera]"==o.call(a.opera), l=!!b.attachEvent&&!l, u=r?"object":l?"script":"img", v=l?"script":u, w=Array.isArray||function(a){ return"[objectArray]"==o.call(a) }, x=[], y={}, z={ timeout:function(a,b){ returnb.length&&(a.timeout=b[0]),a } }, A,B; B=function(a){ functionb(a){ vara=a.split("!"), b=x.length, c=a.pop(), d=a.length, c={ url:c, origUrl:c, prefixes:a }, e,f,g; for(f=0;f0?w+"%":"inherit", "max-width":this.options.minItems>0?this.imgSize.width:"inherit", "max-height":this.imgSize.height }); if(this.options.orientation==="vertical"){ this.$wrapper.css("max-width",this.imgSize.width+parseInt(this.$wrapper.css("padding-left"))+parseInt(this.$wrapper.css("padding-right"))) } } }, _setWrapperSize:function(){ if(this.options.orientation==="vertical"){ this.$wrapper.css({ height:this.options.minItems*this.imgSize.height+parseInt(this.$wrapper.css("padding-top"))+parseInt(this.$wrapper.css("padding-bottom")) }) } }, _configure:function(){ this.fitCount=this.options.orientation==="horizontal"?this.$carousel.width()Math.abs(trans)){ move+=$(this).outerWidth(); if(move>visibleSpace){ amount=move-$(this).outerWidth(); if(amount==0)amount=$(this).outerWidth(); returnfalse } } }) } if(dir==="next"&&totalSpace-(Math.abs(translation)+amount)posR||ftv-1){ src=src.replace("_orig.jpg","_600.jpg") } if(img.attr("src")!=src){ img.attr("src",src) } $('[data-js-selector="posicion-galeria"]').text(posicion+1) }; Widget_Galeria.prototype._cargar_video=function(){ var_mthis=this; varurl=$('[data-js-selector="apartado--galeria-video"][data-posicion="'+_mthis.posicion_actual+'"]').data("video")+"?autoplay=1"; $('[data-js-selector="galeria-videoplayer"]').attr("src",url); $('[data-js-selector="posicion-galeria-video"]').text(_mthis.posicion_actual+1) }; Widget_Galeria.prototype._next=function(){ var_mthis=this; if(_mthis.posicion_actual0){ _mthis.posicion_actual-- }else{ _mthis.posicion_actual=_mthis.items-1 } _mthis._refreshAds(); _mthis._cargar_imen(); GAevent(_mthis.GAcat,"slideshowprev",_mthis.id_post); if(typeofga!=="undefined")ga("send","peview","/slideshow/"+_mthis.id_post+"/"+(_mthis.posicion_actual+1)+_mthis.type); elseconsole.log("send_peview:"+"/slideshow/"+_mthis.id_post+"/"+(_mthis.posicion_actual+1)+_mthis.type) }; Widget_Galeria.prototype._close=function(){ var_mthis=this; _mthis.galeria.removeClass("active"); GAevent(_mthis.GAcat,"slideshowclose",_mthis.id_post) }; Widget_Galeria.prototype._nextVideo=function(){ var_mthis=this; if(_mthis.posicion_actual0){ _mthis.posicion_actual-- }else{ _mthis.posicion_actual=_mthis.itemsVideo-1 } _mthis._cargar_video(); GAevent(_mthis.GAcat,"slideshowvideoprev",_mthis.id_post); if(typeofga!=="undefined")ga("send","peview","/slideshow/"+_mthis.id_post+"/"+(_mthis.posicion_actual+1)+_mthis.type_video); elseconsole.log("send_peview:"+"/slideshow/"+_mthis.id_post+"/"+(_mthis.posicion_actual+1)+_mthis.type_video) };Astral Widget_Galeria.prototype._closeVideo=function(){ var_mthis=this; $('[data-js-selector="galeria-videoplayer"]').attr("src",""); _mthis.galeriideo.removeClass("active"); GAevent(_mthis.GAcat,"slideshowvideoclose",_mthis.id_post) }; Widget_Galeria.prototype._initAds=function(){ var_mthis=this; if(window.godo){ godo.ads.push(function(x){ x.display("[data-ad-lazy=true]") }) }elseif(window.googlet){ if(_mthis.gptDivs.length!==0){ googlet.pubads().refresh(_mthis.gptDivs) }else{ vardfpslots=$("body").find(".galeria").find(".publibydfp").filter(":visible"); if(dfpslots.length){ googlet.cmd.push(function(){ $(dfpslots).each(function(){ if($(this).attr("data-dfp")){ varsizes=$(this).data("sizes"); varslot=googlet.defineSlot("/"+$(this).attr("data-client")+"/"+$(this).attr("data-dfp"),sizes,$(this).attr("id")).addService(googlet.pubads()); googlet.display($(this).attr("id")); if(typeofgooglet.pubads!=="undefined")googlet.pubads().refresh([slot]); _mthis.gptDivs.push(slot); console.log("/"+$(this).attr("data-client")+"/"+$(this).attr("data-dfp")+"---"+sizes+"---"+$(this).attr("id")) } }) }) } } } }; Widget_Galeria.prototype._refreshAds=function(){ var_mthis=this; if(window.godo)godo.ads.push(function(x){ x.display("[data-ad-lazy=true]",true) }); elseif(window.googlet&&_mthis.gptDivs.length!==0)googlet.pubads().refresh(_mthis.gptDivs) }; varGal=newWidget_Galeria; app.widgets.loadWidget(Gal); varWidget_Share=function(){ this._elements=newArray }; Widget_Share.prototype=newWidget; Widget_Share.prototype.name="Share"; Widget_Share.prototype.loadOrder=9; Widget_Share.prototype._load=function(){ returntrue }; Widget_Share.prototype.init=function(){ var_mthis=this; if(!this._load()){ returnfalse } $(document).ready(function(){ if(window.location.href.indexOf("#responder-")>-1){ varurl=window.location.href; varidRespuesta=/#responder-([0-9]+)/.exec(url)[1]; $("[data-id-comment="+idRespuesta+"].respuestas").addClass("active") } if(typeof$("#mediaquery").css("content")!=="undefined"){ var_mq=$("#mediaquery").css("content"); _mq=_mq.replace(/['"]+/g,""); vardesktop=["breakpoint_3","breakpoint_4"]; if(desktop.indexOf(_mq)>-1){ varimes=$('[data-js-selector="imen"]').find("img"); imes.each(function(){ if(!this.complete){ $(this).load(function(){ if(this.naturalWidthiScrollPos){ if($(window).scrollTop()>heightIni&&!scroll_down_query[1]){ scroll_up_query[1]=false; scroll_down_query[1]=true; Widget_Share.prototype._share_on(); if(buscador.is(":focus"))buscadorSecundario.focus(); window.scrollTo(x,y) } if($(window).scrollTop()>heightFin&&!scroll_down_query[2]){ scroll_up_query[2]=false; scroll_down_query[2]=true; Widget_Share.prototype._share_off(); if(buscadorSecundario.is(":focus"))buscador.focus(); window.scrollTo(x,y) } }else{ if($(window).scrollTop()-1||$('[data-js-selector="test"]').length>0)&&$(document).height()>$(window).height()){ scroll_down_query=[false,false,false]; scroll_up_query=[false,false,false]; iScrollPos=0; x=0; y=0; buscador=$('[data-js-selector="q"]'); buscadorSecundario=$('[data-js-selector="q_secondary"]'); heightFin=$("article").height(); if(heightFin0){ heightIni=$('[data-js-selector="test"]').offset().top; heightFin=heightIni+$('[data-js-selector="test"]').height() } document.addEventListener("scroll",_mthis._check_scroll,false) } } }; vartW=newWidget_Share; app.widgets.loadWidget(tW); varWidget_BackToTop=function(){}; Widget_BackToTop.prototype=newWidget; Widget_BackToTop.prototype.name="backtotop"; Widget_BackToTop.prototype.loadOrder=9; Widget_BackToTop.prototype._load=function(){ returntrue }; Widget_BackToTop.prototype.init=function(){ if(!this._load()){ returnfalse } if($(".back_top_desktop").length){ $(document).ready(function(){ checkBackToTop(); $(".back_top_desktop").click(function(){ $("body,html").animate({ scrollTop:0 },500); GAevent("Post","backtotop") }) }); $(window).resize(function(){ checkBackToTop() }) } this.loaded=true; returntrue }; functioncheckBackToTop(){ var_mq=$("#mediaquery").css("content"); _mq=_mq.replace(/['"]+/g,""); if(_mq!="mobile"){ backToTopFade(); $(window).scroll(function(){ backToTopFade() }) }else{ $(window).unbind("scroll"); $(".back_top_desktop").hide() } } functionbackToTopFade(){ if($(window).scrollTop()>=1e3){ $(".back_top_desktop").fadeIn(200) }else{ $(".back_top_desktop").fadeOut(200) } } varbT=newWidget_BackToTop; app.widgets.loadWidget(bT); varWidget_RelatedScroll=function(){ this._elements=newArray }; Widget_RelatedScroll.prototype=newWidget; Widget_RelatedScroll.prototype.name="relatedscroll"; Widget_RelatedScroll.prototype.loadOrder=9; Widget_RelatedScroll.prototype.isScrolling=false; Widget_RelatedScroll.prototype.pina=1; Widget_RelatedScroll.prototype._load=function(){ returntrue }; Widget_RelatedScroll.prototype.init=function(){ var_mthis=this; if(!this._load()){ returnfalse } $(document).on("click",'[data-js-selector="more_items_related"]',function(e){ varspinner=$('[data-js-selector="loading-relacionados"]'); $(this).hide(); spinner.show(); _mthis._loadMore(); if($('[data-js-selector="carrusel"]').is(":visible")&&typeofplaylistPlayer!="undefined"){ if(!playlistPlayer.isMuted())playlistPlayer.mute() } $(window).scroll(function(){ if($(window).scrollTop()+$(window).height()>=spinner.offset().top-$(".bloque").height()*2&&!_mthis.isScrolling){ _mthis._loadMore() } }) }); if(typeofcxApi!="undefined"){ varpeVariations=[function(){ console.log("T1243V0") },function(){ console.log("T1243V1") }]; if(chosenVariation==0||chosenVariation==1){ peVariations[chosenVariation]() } } this.loaded=true; returntrue }; Widget_RelatedScroll.prototype._loadMore=function(){ var_mthis=this; _mthis.isScrolling=true; if(typeofrepetidosRelatedJs=="undefined")repetidosRelatedJs=""; varpostId=$('[data-js-selector="id_post"]').val(); varrazaId=$('[data-js-selector="id_raza"]').val(); vararticleId=$('[data-js-selector="id_article"]').val(); varplaceId=$('[data-js-selector="id_place"]').val(); varmovieId=$('[data-js-selector="id_movie"]').val(); setTimeout(function(){ $.ajax({ type:"POST", url:prefixAjax+"/ajax/getrelateds", data:{ id_post:postId, id_raza:razaId, id_article:articleId, id_place:placeId, id_movie:movieId, repetidos:repetidosRelatedJs }, async:true, success:function(data){ if(data.html){ repetidosRelatedJs=data.repetidosRelatedJs; $('[data-js-selector="relacionados"]').append(data.html); if(_mthis.pina==1){ GAevent("Post","viewmorerelated","manual") }else{ GAevent("Post","viewmorerelated",_mthis.pina+"") } _mthis.pina++; setTimeout(function(){ $('[data-js-selector="relacionados"].transicion_altura').addClass("active") },500); setTimeout(function(){ _mthis.isScrolling=false; if(!data.next){ $('[data-js-selector="loading-relacionados"]').hide() } },500); setTimeout(function(){ reloadSticky() },700) }else{ $('[data-js-selector="loading-relacionados"]').hide(); setTimeout(function(){ reloadSticky() },700) } }, error:function(data){ console.log(data); $('[data-js-selector="loading-relacionados"]').hide(); setTimeout(function(){ reloadSticky() },700) } }) },500) }; vartW=newWidget_RelatedScroll; app.widgets.loadWidget(tW); varWidget_CommentForm=function(){ this._elements=newArray }; Widget_CommentForm.prototype=newWidget; Widget_CommentForm.prototype.name="commentform"; Widget_CommentForm.prototype.files=[]; Widget_CommentForm.prototype.loadOrder=9; Widget_CommentForm.prototype._load=function(){ returntrue }; Widget_CommentForm.prototype.init=function(){ var_mthis=this; if(!this._load()){ returnfalse } $(document).on("click",'[data-js-selector="formulario-comentario"][data-js-selector="enviar_comentario"]:not(.procesando)',function(e){ e.preventDefault(); $(this).addClass("procesando"); _mthis._se($(this).data("id-respuesta"),"comentario") }); $(document).on("click",'[data-js-selector="formulario-subir-foto"][data-js-selector="enviar_comentario"]:not(.procesando)',function(e){ e.preventDefault(); $(this).addClass("procesando"); _mthis._se($(this).data("id-respuesta"),"subir-foto") }); $(document).on("click",'[data-js-selector="formulario-subir-foto-portada"][data-js-selector="enviar_comentario"]:not(.procesando)',function(e){ e.preventDefault(); $(this).addClass("procesando"); _mthis._se($(this).data("id-respuesta"),"subir-foto-portada") }); $(document).on("click",'[data-js-selector="responder"]',function(e){ e.preventDefault(); _mthis._responder($(this).data("id-respuesta")) }); $(document).on("click",'[data-js-selector="karma-positivo"]',function(e){ e.preventDefault(); _mthis._votar($(this).data("id-comment"),1) }); $(document).on("click",'[data-js-selector="karma-negativo"]',function(e){ e.preventDefault(); _mthis._votar($(this).data("id-comment"),0) }); $(document).on("click",'[data-js-selector="mas-comentarios"]',function(e){ e.preventDefault(); $(this).hide(); $('[data-js-selector="loading-comentarios"]').show(); _mthis._more_comments($(this).data("pina")) }); $(document).on("click",'[data-js-selector="comentario-adjunto"]',function(e){ e.preventDefault(); varportada=$(this).data("portada"); $('[data-js-selector="archivo_adjunto"][data-portada="'+portada+'"]').click() }); $(document).on("click",'[data-js-selector="adjunto-comentario-thumbnail"]',function(e){ e.preventDefault(); $(this).hide(); varidCommment=$(this).data("id-comment"); varzoom=$('[data-js-selector="adjunto-comentario-zoom"][data-id-comment="'+idCommment+'"]'); zoom.attr("src",zoom.attr("data-src")); zoom.css("display","block") }); $(document).on("click",'[data-js-selector="adjunto-comentario-zoom"]',function(e){ e.preventDefault(); $(this).hide(); varidCommment=$(this).data("id-comment"); $('[data-js-selector="adjunto-comentario-thumbnail"][data-id-comment="'+idCommment+'"]').show() }); $('[data-js-selector="archivo_adjunto"]').on("change",function(e){ e.preventDefault(); varportada=$(this).data("portada"); _mthis.files=e.target.files; if(_mthis.files&&_mthis.files[0]){ if(_mthis.files[0].type=="ime/jpeg"||_mthis.files[0].type=="ime/png"||_mthis.files[0].type=="ime/gif"){ varreader=newFileReader; reader.onload=function(e){ varadjuntoSelector=$('[data-js-selector="comentario-adjunto"][data-portada="'+portada+'"]'); adjuntoSelector.css("background-ime","url("+e.target.result+")"); adjuntoSelector.addClass("imen-subida"); adjuntoSelector.find('[data-js-selector="icono-camara"]').hide(); adjuntoSelector.find('[data-js-selector="copy-raton"]').hide(); adjuntoSelector.find('[data-js-selector="copy-tactil"]').hide() }; reader.readAsDataURL(_mthis.files[0]); $('[data-js-selector="error-adjunto"]').text("") }else{ varlang=$("html").attr("lang"); varmsgErr="Error"; switch(lang){ case"es": msgErr="Imennoválida"; break; case"pt": msgErr="Imeminválido"; break; case"en": msgErr="Invalidime"; break; case"fr": msgErr="Imenonvalide"; break; case"it": msgErr="Imminenonvalida"; break; case"ja": msgErr="無効ãªç”»åƒ"; break } alert(msgErr) } } }); $('[data-js-selector="formulario-comentario"]input#valoracion-4.valoracion').prop("checked",true); this.loaded=true; returntrue }; Widget_CommentForm.prototype._responder=function(idRespuesta){ varform=$('[data-js-selector="formulario-comentario"][data-id-respuesta="-1"]'); varformRespuesta=$('[data-js-selector="form-respuesta"][data-id-respuesta="'+idRespuesta+'"]'); varrespuestas=$('[data-js-selector="respuestas"][data-id-respuesta="'+idRespuesta+'"]'); vardataForm={ id_respuesta:idRespuesta, id_post:$('[data-js-selector="id_post"]').val(), id_raza:$('[data-js-selector="id_raza"]').val(), id_article:$('[data-js-selector="id_article"]').val(), id_place:$('[data-js-selector="id_place"]').val(), id_movie:$('[data-js-selector="id_movie"]').val(), id_categoria:form.find('input[name="id_categoria"]').val() }; $.ajax({ type:"POST", dataType:"json", url:prefixAjax+"/ajax/responder", data:dataForm, success:function(response){ if(formRespuesta.is(":empty")){ formRespuesta.append(response.html) } formRespuesta.toggleClass("active"); setTimeout(function(){ reloadSticky() },500) } }) }; Widget_CommentForm.prototype._se=function(idRespuesta,tipo){ var_mthis=this; varform=$('[data-js-selector="formulario-'+tipo+'"][data-id-respuesta="'+idRespuesta+'"]'); varinputs=$(form).find(":input"); vardataForm=newFormData; varrating=0; varadjunto=""; inputs.each(function(){ if(!$(this).is(":button")){ varname=$(this).attr("name"); varval=$(this).val(); if(name=="politica"){ val=$(this).is(":checked")?1:0 }elseif(name=="rating"){ if($(this).is(":checked"))rating=val } if(name!="rating")dataForm.append(name,val); if(name=="adjunto"&&val!="")adjunto=val } }); dataForm.append("rating",rating); if(tipo=="subir-foto-portada")dataForm.append("fotoreceta",1); elseif(tipo=="subir-foto")dataForm.append("fotogaleria",1); if(adjunto!=""){ $.each(_mthis.files,function(key,value){ dataForm.append("adjunto",value) }) } $.ajax({ type:"POST", dataType:"json", url:prefixAjax+"/ajax/secomment", data:dataForm, cache:false, async:true, processData:false, contentType:false, success:function(response){ $.each(form.find(".error"),function(k,item){ $(item).text("") }); form.find(".messe--error").remove(); if(response.code==-1){ $.each(response.errors,function(k,item){ if(k=="politica"){ form.find('[data-js-selector="enviar_comentario"]').before(''+item+"") }else{ form.find('[data-js-selector="error-'+k+'"]').text(item); GAevent("Post","commenterror",k) } }); form.find('[data-js-selector="enviar_comentario"]').removeClass("procesando") }else{ form.html(''+response.msg+""); GAevent("Post","sendcomment") } }, error:function(response){ console.log("Sehaproducidounerror") } }) }; Widget_CommentForm.prototype._votar=function(id,voto){ vardataForm={ id:id, voto:voto }; $.ajax({ type:"POST", dataType:"json", url:prefixAjax+"/ajax/votarcomentario", data:dataForm, cache:false, async:true, success:function(response){ if(response.code==-1){ alert(response.msg) }else{ varkarma_positivo=$('[data-js-selector="karma-positivo"][data-id-comment="'+id+'"]'); varkarma_negativo=$('[data-js-selector="karma-negativo"][data-id-comment="'+id+'"]'); if(voto==0){ karma_positivo.addClass("no_votado"); karma_negativo.text(parseInt(karma_negativo.text())+1); GAevent("Post","karmacommentnegativo") }else{ karma_negativo.addClass("no_votado"); karma_positivo.text(parseInt(karma_positivo.text())+1); GAevent("Post","karmacommentpositivo") } } }, error:function(response){} }) }; Widget_CommentForm.prototype._more_comments=function(pina){ vardataForm={ id_post:$('[data-js-selector="id_post"]').val(), id_raza:$('[data-js-selector="id_raza"]').val(), id_article:$('[data-js-selector="id_article"]').val(), id_place:$('[data-js-selector="id_place"]').val(), id_movie:$('[data-js-selector="id_movie"]').val(), pina:pina }; setTimeout(function(){ $.ajax({ type:"POST", dataType:"json", url:prefixAjax+"/ajax/getcomentarios", data:dataForm, cache:false, async:true, success:function(response){ $('[data-js-selector="append-comentarios"]').append(response.html); varmascomentarios=$('[data-js-selector="mas-comentarios"]'); if(response.next){ mascomentarios.data("pina",pina+1); mascomentarios.show() }else{ mascomentarios.hide() } setTimeout(function(){ reloadSticky() },100); $('[data-js-selector="loading-comentarios"]').hide(); GAevent("Post","viewmorecomments",pina+"") }, error:function(response){ console.log("Sehaproducidounerror"); $('[data-js-selector="loading-comentarios"]').hide() } }) },100) }; vartW=newWidget_CommentForm; app.widgets.loadWidget(tW); varWidget_Search=function(){ this._elements=newArray }; Widget_Search.prototype=newWidget; Widget_Search.prototype.name="search"; Widget_Search.prototype.urlBusqueda=""; Widget_Search.prototype.urlParams={}; Widget_Search.prototype.pina=1; Widget_Search.prototype.isScrolling=false; Widget_Search.prototype.loadOrder=9; Widget_Search.prototype._load=function(){ returntrue }; Widget_Search.prototype.init=function(){ var_mthis=this; if(!this._load()){ returnfalse } if(typeof$('meta[name="ltm:project"]').attr("content")=="undefined")ltmProject=null; elseltmProject=$('meta[name="ltm:project"]').attr("content"); varlang=$("html").attr("lang"); switch(lang){ case"es": if(typeof$('meta[name="isdirectory"]').attr("content")!="undefined"&<mProject!="salir")_mthis.urlBusqueda="espana/busqueda"; elseif(typeof$('meta[name="isdirectory"]').attr("content")=="undefined"&<mProject=="salir")_mthis.urlBusqueda="articulos/busqueda"; else_mthis.urlBusqueda="busqueda"; break; case"pt": _mthis.urlBusqueda="pesquisa"; break; case"en": _mthis.urlBusqueda="searcher"; break; case"fr": _mthis.urlBusqueda="recherche"; break; case"it": _mthis.urlBusqueda="ricerca"; break; default: _mthis.urlBusqueda="searcher" }(window.onpopstate=function(){ varmatch,pl=/\+/g, search=/([^&=]+)=?([^&]*)/g, decode=function(s){ returndecodeURIComponent(s.replace(pl,"")) }, query=window.location.search.substring(1); if(query==""){ if(window.location.href.indexOf(_mthis.urlBusqueda)>-1){ search=/([^\/=]+)\/([^\/]*)/g; varn=window.location.href.indexOf(_mthis.urlBusqueda)+_mthis.urlBusqueda.length; query=window.location.href.substr(n) } } _mthis.urlParams={}; while(match=search.exec(query))_mthis.urlParams[decode(match[1])]=decode(match[2]); if(window.location.href.indexOf(_mthis.urlBusqueda)==-1){ varseo_param=$('[data-js-selector="seo_param"]'); if(seo_param.length){ varseo_param_keys=seo_param.data("key").split(","); varseo_param_values=seo_param.val().split(","); if(seo_param_keys.length&&seo_param_values.length){ for(vari=0;i=spinner_posts.offset().top-$(".bloque").height()*2&&!_mthis.isScrolling){ _mthis._more(autorId,"posts") } }) }); $(document).on("click",'[data-js-selector="more_articles"]',function(e){ e.preventDefault(); varspinner_articles=$('[data-js-selector="loading-articles"]'); $(this).hide(); spinner_articles.show(); varautorId=spinner_articles.data("id-autor"); _mthis._more(autorId,"articles"); $(window).on("scroll",function(){ if($(window).scrollTop()+$(window).height()>=spinner_articles.offset().top-$(".bloque").height()*2&&!_mthis.isScrolling){ _mthis._more(autorId,"articles") } }) }); $(document).on("click",'[data-js-selector="more_razas"]',function(e){ e.preventDefault(); varspinner_razas=$('[data-js-selector="loading-razas"]'); $(this).hide(); spinner_razas.show(); varautorId=spinner_razas.data("id-autor"); _mthis._more(autorId,"razas"); $(window).on("scroll",function(){ if($(window).scrollTop()+$(window).height()>=spinner_razas.offset().top-$(".bloque").height()*2&&!_mthis.isScrolling){ _mthis._more(autorId,"razas") } }) }); $(document).on("click",'[data-js-selector="contador-autor"]',function(e){ e.preventDefault(); $('[data-js-selector="contador-autor"]').removeClass("active"); $(this).addClass("active"); varselector=$(this).data("id-selector"); $('[data-js-selector="autor_bloque"]').removeClass("active"); $('[data-id-selector="'+selector+'"]').addClass("active"); GAevent("Autor","tab"+selector); varspinner=$('[data-js-selector="loading-'+selector+'"]'); varautorId=spinner.data("id-autor"); $(window).off("scroll"); if(spinner.is(":visible")){ $(window).on("scroll",function(){ if($(window).scrollTop()+$(window).height()>=spinner.offset().top-$(".bloque").height()*2&&!_mthis.isScrolling){ _mthis._more(autorId,selector) } }) } }); this.loaded=true; returntrue }; Widget_Autor.prototype._more=function(autorId,tab){ var_mthis=this; _mthis.isScrolling=true; varrepetidos=""; varpina=1; if(tab=="posts"){ if(typeofrepetidosAutorJs!=="undefined")repetidos=repetidosAutorJs; pina=_mthis.pinaPosts }elseif(tab=="articles"){ if(typeofrepetidosAutorSecondaryJs!=="undefined")repetidos=repetidosAutorSecondaryJs; pina=_mthis.pinaArticles }elseif(tab=="razas"){ if(typeofrepetidosAutorTertiaryJs!=="undefined")repetidos=repetidosAutorTertiaryJs; pina=_mthis.pinaRazas } setTimeout(function(){ $.ajax({ type:"POST", url:prefixAjax+"/ajax/getautoritems", data:{ id_autor:autorId, repetidos:repetidos, tab:tab }, async:true, success:function(data){ if(data.html){ $('[data-js-selector="items_'+tab+'"]').append(data.html); if(pina==1){ GAevent("Autor","viewmore"+tab+"manual") }else{ GAevent("Autor","viewmore"+tab,pina+"") Astral} if(tab=="posts"){ _mthis.pinaPosts++; repetidosAutorJs=data.repetidosJs }elseif(tab=="articles"){ _mthis.pinaArticles++; repetidosAutorSecondaryJs=data.repetidosJs }elseif(tab=="razas"){ _mthis.pinaRazas++; repetidosAutorTertiaryJs=data.repetidosJs } setTimeout(function(){ $('[data-js-selector="items_'+tab+'"].transicion_altura').addClass("active") },500); setTimeout(function(){ _mthis.isScrolling=false },500); if(!data.next){ setTimeout(function(){ $('[data-js-selector="loading-'+tab+'"]').hide() },1e3) } }else{ $('[data-js-selector="loading-'+tab+'"]').hide() } }, error:function(data){ $('[data-js-selector="loading-'+tab+'"]').hide() } }) },500) }; vartW=newWidget_Autor; app.widgets.loadWidget(tW); varWidget_Publicidad=function(){}; Widget_Publicidad.prototype=newWidget; Widget_Publicidad.prototype.name="Publicidad"; Widget_Publicidad.prototype.loadOrder=3; Widget_Publicidad.prototype.prebidAdunits=[]; Widget_Publicidad.prototype.uamAdunits=[]; Widget_Publicidad.prototype.dfpAdunits=[]; Widget_Publicidad.prototype.skinLoaded=false; Widget_Publicidad.prototype.skinCounter=1; Widget_Publicidad.prototype.skinInitialPos=-1; Widget_Publicidad.prototype.skinSecondPos=-1; Widget_Publicidad.prototype._load=function(){ returntrue }; Widget_Publicidad.prototype.init=function(){ var_mthis=this; if(!this._load())returnfalse; if(window.godo){ varcloseAdv=function(e){ vartarget=$(e.currentTarget); varslotId=target.parent().find("ins").attr("id"); vardivAnchor=target.parent().find("ins").find("div"); divAnchor.remove(); godo.ads.push(function(x){ x.remove("#"+slotId) }) }; $("body").on("click","[data-close-ad]",closeAdv) } _mthis._prepare_dfp(); checkCmp(function(){ _mthis._sendAdserverRequest(); _mthis._show_afs(); _mthis._show_adman() }); this.loaded=true; returntrue }; Widget_Publicidad.prototype._prepare_dfp=function(){ var_mthis=this; vardfpslots=$("body").find(".publibydfp").filter(":visible"); if(dfpslots.length&&window.googlet){ googlet.cmd.push(function(){ $(dfpslots).each(function(){ if($(this).attr("data-dfp")){ if($(this).attr("data-js-selector")&&$(this).attr("data-js-selector")=="anchor"){ varanchorSlot=googlet.defineOutOfPeSlot("/"+$(this).attr("data-client")+"/"+$(this).attr("data-dfp"),googlet.enums.OutOfPeFormat.BOTTOM_ANCHOR); if(anchorSlot){ anchorSlot.addService(googlet.pubads()); _mthis.dfpAdunits.push(anchorSlot); console.log("[ANCHOR]"+"/"+$(this).attr("data-client")+"/"+$(this).attr("data-dfp")) } }else{ varsizes=$(this).data("sizes"); varslot=googlet.defineSlot("/"+$(this).attr("data-client")+"/"+$(this).attr("data-dfp"),sizes,$(this).attr("id")).addService(googlet.pubads()); googlet.display($(this).attr("id")); if(typeofprebids!=="undefined"&&$(this).attr("data-dfp")inprebids){ console.log("[PREBID]"+$(this).attr("data-dfp")+"=>"+$(this).attr("id")+"=>"+JSON.stringify(prebids[$(this).attr("data-dfp")])); varadunit={ code:$(this).attr("id"), sizes:sizes, bids:prebids[$(this).attr("data-dfp")] }; _mthis.prebidAdunits.push(adunit); if(Array.isArray(sizes)){ if(!Array.isArray(sizes[0])){ sizes=newArray(sizes) } } varuamAdunit={ slotID:$(this).attr("id"), slotName:"/"+$(this).attr("data-client")+"/"+$(this).attr("data-dfp"), sizes:sizes }; _mthis.uamAdunits.push(uamAdunit) }else{ _mthis.dfpAdunits.push(slot) } } } }) }) } }; Widget_Publicidad.prototype._sendAdserverRequest=function(){ var_mthis=this; if(_mthis.prebidAdunits.length>0){ console.log("[PREBID]ON"); if(_mthis.uamAdunits.length>0){ apst.fetchBids({ slots:_mthis.uamAdunits, timeout:2e3 },function(bids){ googlet.cmd.push(function(){ apst.setDisplayBids() }) }) } pbjs.que.push(function(){ pbjs.setConfig({ enableSendAllBids:true }); pbjs.setConfig({ priceGranularity:"high" }); pbjs.setConfig({ consentManement:{ timeout:2e3 } }); pbjs.addAdUnits(_mthis.prebidAdunits); pbjs.requestBids({ bidsBackHandler:_mthis._sendPrebidAdserverRequest }) }); setTimeout(function(){ _mthis._sendPrebidAdserverRequest() },2e3) }elseif(_mthis.dfpAdunits.length>0){ console.log("[PREBID]OFF"); googlet.cmd.push(function(){ googlet.pubads().refresh() }) }else{ console.log("[PREBID]Nounits") } }; Widget_Publicidad.prototype._sendPrebidAdserverRequest=function(){ if(pbjs.adserverRequestSent)return; pbjs.adserverRequestSent=true; googlet.cmd.push(function(){ pbjs.que.push(function(){ pbjs.setTargetingForGPTAsync(); googlet.pubads().refresh() }) }) }; Widget_Publicidad.prototype._show_afs=function(){ var_mthis=this; varafsslots=$("body").find(".publibyafs").filter(":visible"); if(afsslots.length&&window._googCsa){ varadblock1=false; varadblock2=false; varchannel=false; varclient=false; $(afsslots).each(function(index){ if(index==0){ client=$(this).attr("data-client"); channel=$(this).attr("data-channel"); adblock1={ container:$(this).attr("id"), width:$(this).attr("data-width"), maxTop:$(this).attr("data-number"), fontFamilyAstral:"arial", fontSizeTitle:$(this).attr("data-fontsizetitle"), fontSizeDescription:$(this).attr("data-fontsizedescription"), fontSizeDomainLink:$(this).attr("data-fontsizedomainlink"), colorTitleLink:"0183e4", colorAttribution:"333", colorText:"333", colorDomainLink:"333", longerHeadlines:$(this).attr("data-longerheadlines"), detailedAttribution:false } }elseif(index==1){ channel=channel+"+"+$(this).attr("data-channel"); adblock2={ container:$(this).attr("id"), width:$(this).attr("data-width"), number:$(this).attr("data-number"), fontFamily:"arial", fontSizeTitle:$(this).attr("data-fontsizetitle"), fontSizeDescription:$(this).attr("data-fontsizedescription"), fontSizeDomainLink:$(this).attr("data-fontsizedomainlink"), colorTitleLink:"0183e4", colorAttribution:"333", colorText:"333", colorDomainLink:"333", longerHeadlines:$(this).attr("data-longerheadlines"), detailedAttribution:false } } }); varpeOptions={ pubId:client, adsafe:"low", hl:$("html").attr("lang"), query:$("h1").text().toLowerCase().trim(), adPe:1, channel:channel, location:false, sellerRatings:false, siteLinks:false }; if(afsslots.length==1){ _googCsa("ads",peOptions,adblock1) }elseif(afsslots.length==2){ _googCsa("ads",peOptions,adblock1,adblock2) } } }; Widget_Publicidad.prototype._show_adman=function(){ var_mthis=this; varadmanslots=$("body").find(".publibyadman").filter(":visible"); if(admanslots.length){ $(admanslots).each(function(){ if($(this).attr("data-slot")){ varslotId=$(this).attr("data-slot"); (function(){ varst=document.createElement("script"); st.type="text/jascript"; st.async=true; st.src=(":"==document.location.protocol?"":"http")+"pub.admanmedia.com/go?id="+slotId; vars=document.getElementById("div-adman-ad-"+slotId); s.appendChild(st) })() } }) } }; vartW=newWidget_Publicidad; app.widgets.loadWidget(tW); varWidget_Social=function(){}; Widget_Social.prototype=newWidget; Widget_Social.prototype.name="social"; Widget_Social.prototype.loadOrder=10; Widget_Social.prototype._load=function(){ returntrue }; Widget_Social.prototype.init=function(){ if(!this._load())returnfalse; if($("article").length){ varpin=true; var_mq=$("#mediaquery").css("content"); _mq=_mq.replace(/['"]+/g,""); vardesktop=["breakpoint_3","breakpoint_4"]; if(desktop.indexOf(_mq)==-1){ pin=false } if(pin){ (function(d){ varf=d.getElementsByTName("SCRIPT")[0], p=d.createElement("SCRIPT"); p.type="text/jascript"; p.async=true; p.setAttribute("data-pin-hover",true); p.src="//assets.pinterest.com/js/pinit.js"; f.parentNode.insertBefore(p,f) })(document) } } this.loaded=true; returntrue }; varsocial=newWidget_Social; app.widgets.loadWidget(social); varWidget_Analytics=function(){}; Widget_Analytics.prototype=newWidget; Widget_Analytics.prototype.name="analytics"; Widget_Analytics.prototype.loadOrder=10; Widget_Analytics.prototype._load=function(){ returntrue }; Widget_Analytics.prototype.init=function(){ if(!this._load()){ returnfalse } if(typeofdataLayer!=="undefined"){ $(".compartir.social-icon").click(function(){ dataLayer.push({ event:"social", eventAction:"compartir-"+$(this).attr("data-label"), eventLabel:"superior", eventValue:null }) }); $(".formulariobutton").click(function(){ dataLayer.push({ event:"social", eventAction:"comentarios", eventLabel:"enviar-comentario", eventValue:null }) }); $(".relacionadosa").click(function(){ dataLayer.push({ event:"layout", eventAction:"modulo-noticias-relacionadas", eventLabel:$(".relacionadosa").index($(this))+1, eventValue:null }) }); $("[data-js-selector=more_items_related]").click(function(){ dataLayer.push({ event:"layout", eventAction:"boton-articulos-parecidos", eventLabel:"", eventValue:null }) }); $(".topviewa").click(function(){ dataLayer.push({ event:"layout", eventAction:"modulo-lo-mas-visto", eventLabel:$(this).attr("href"), eventValue:null }) }); $(".menua").click(function(){ dataLayer.push({ event:"layout", eventAction:"header-subnbar", eventLabel:$(this).text(), eventValue:null }) }); $(".hamburguesa").click(function(){ dataLayer.push({ event:"layout", eventAction:"menu-hamburguesa", eventLabel:"open", eventValue:null }) }); $(".logo-default").click(function(){ dataLayer.push({ event:"layout", eventAction:"header", eventLabel:"UNCOMO", eventValue:null }) }) }else{ $(document).on("click",".ga",function(e){ varcategory=$(this).attr("data-category"); varevent=$(this).attr("data-event"); varlabel=$(this).attr("data-label"); if(typeofga!=="undefined")ga("send","event",category,event,label); elseconsole.log(category+"-"+event+"-"+label) }) } this.loaded=true; returntrue }; functionGAevent(category,event,label){ varnonInteraction=false; if(event=="carruselautoplay"||category=="Error"||event=="showed")nonInteraction=true; if(typeofga!=="undefined")ga("send","event",category,event,label,0,{ nonInteraction:nonInteraction }); elseconsole.log(category+"-"+event+"-"+label+"-"+nonInteraction) } varAnalytics=newWidget_Analytics; app.widgets.loadWidget(Analytics); (function($){ $.cookie=function(key,value,options){ if(arguments.length>1&&(!/Object/.test(Object.prototype.toString.call(value))||value===null||value===undefined)){ options=$.extend({},options); if(value===null||value===undefined){ options.expires=-1 } if(typeofoptions.expires==="number"){ vardays=options.expires, t=options.expires=newDate; t.setDate(t.getDate()+days) } value=String(value); returndocument.cookie=[encodeURIComponent(key),"=",options.raw?value:encodeURIComponent(value),options.expires?";expires="+options.expires.toUTCString():"",options.path?";path="+options.path:"",options.domain?";domain="+options.domain:"",options.secure?";secure":""].join("") } options=value||{}; vardecode=options.raw?function(s){ returns }:decodeURIComponent; varpairs=document.cookie.split(";"); for(vari=0,pair;pair=pairs[i]&&pairs[i].split("=");i++){ if(decode(pair[0])===key)returndecode(pair[1]||"") } returnnull } })(jQuery); prefixAjax=""; varlang=$("html").attr("lang"); varltmProject=$('meta[name="ltm:project"]').attr("content"); varltmDomain=$('meta[name="ltm:domain"]').attr("content"); if(lang=="es"&<mProject=="uncomo"){ prefixAjax="/uncomo" } console.log(prefixAjax); $(function(){ app.widgets.initAll() }); $(document).on("mouseup",".link:not(a)",function(e){ if(!$(e.target).is("a")){ varurl=$(this).find("a").attr("href"); if(e.ctrlKey||e.metaKey||e.which==2){ window.open(url) }elseif(e.which!=3){ window.location=url } } }); document.addEventListener("touchstart",handleTouchStart,false); document.addEventListener("touchmove",handleTouchMove,false); varxDown=null; varyDown=null; functionhandleTouchStart(evt){ xDown=evt.touches[0].clientX; yDown=evt.touches[0].clientY } functionhandleTouchMove(evt){ if(!xDown||!yDown||!$(".container").hasClass("menu-abierto")){ return } varxUp=evt.touches[0].clientX; varyUp=evt.touches[0].clientY; varxDiff=xDown-xUp; varyDiff=yDown-yUp; if(Math.abs(xDiff)>Math.abs(yDiff)){ if(xDiff>0){ $(".container").removeClass("menu-abierto") } } xDown=null; yDown=null } $(document).on("click",".cerrar-menu",function(){ $(".menu-abierto").removeClass("menu-abierto") }); drging=false; $(document).on("touchmove",function(){ drging=true }); $(document).on("touchend",".link:not(a)",function(){ if(drging)returnfalse; window.location=$(this).find("a").attr("href") }); $(document).on("touchstart",function(){ drging=false }); $(document).on("click",'[data-js-selector="launch_popup"]:not(.descargar):not(.pinterest)',function(){ varwidth=640; varheight=480; varleft=(screen.width-width)/2; vartop=(screen.height-height)/2; varparams="width="+width+",height="+height; params+=",top="+top+",left="+left; params+=",scrollbars=yes"; window.open($(this).attr("href"),"popup",params); returnfalse }); $(document).on("click",'[data-js-selector="more_items"]',function(){ varspinner=$('[data-js-selector="loading"]'); $(this).hide(); spinner.show(); loadMore(); $(window).scroll(function(){ if($(window).scrollTop()+$(window).height()>=spinner.offset().top-$(".bloque").height()*2&&!isScrolling){ loadMore() } }) }); $(document).ready(function(){ isScrolling=false; pinaScroll=1; if(typeof$("#mediaquery").css("content")!=="undefined"){ focusBuscador() } showDirectory() }); functionloadMore(){ isScrolling=true; if(typeofrepetidosJs=="undefined")repetidosJs=""; if(typeofrepetidosSecondaryJs=="undefined")repetidosSecondaryJs=""; if(typeof$('meta[name="idhub"]').attr("content")=="undefined")idHub=-1; elseidHub=$('meta[name="idhub"]').attr("content"); if(typeof$('meta[name="idhublocation"]').attr("content")=="undefined")idHubLocation=-1; elseidHubLocation=$('meta[name="idhublocation"]').attr("content"); if(typeof$('meta[name="idhubattr"]').attr("content")=="undefined")idHubAttr=-1; elseidHubAttr=$('meta[name="idhubattr"]').attr("content"); if(typeof$('meta[name="isdirectory"]').attr("content")=="undefined")isDirectory=0; elseisDirectory=$('meta[name="isdirectory"]').attr("content"); setTimeout(function(){ $.ajax({ type:"POST", url:prefixAjax+"/index/getitems", data:{ repetidos:repetidosJs, repetidosSecondary:repetidosSecondaryJs, pina:pinaScroll, idHub:idHub, idHubLocation:idHubLocation, idHubAttr:idHubAttr, isDirectory:isDirectory }, async:true, success:function(data){ if(data.html){ repetidosJs=data.repetidosJs; repetidosSecondaryJs=data.repetidosSecondaryJs; $('[data-js-selector="items"]').append(data.html); if(pinaScroll==1){ GAevent("Home","viewmore","manual") }else{ GAevent("Home","viewmore",pinaScroll+"") } pinaScroll++; setTimeout(function(){ $('[data-js-selector="items"].transicion_altura').addClass("active") },500); setTimeout(function(){ isScrolling=false },500); if(!data.next){ setTimeout(function(){ $('[data-js-selector="loading"]').hide() },1e3) } }else{ $('[data-js-selector="loading"]').hide() } }, error:function(data){ $('[data-js-selector="loading"]').hide() } }) },500) } functionfocusBuscador(){ var_mq=$("#mediaquery").css("content"); _mq=_mq.replace(/['"]+/g,""); vardesktop=["breakpoint_3","breakpoint_4"]; if(desktop.indexOf(_mq)>-1){ $('[data-js-selector="q"]').focus() } } functionreloadSticky(){ varpegajoso=$('[data-js-selector="pegajoso"]'); if(pegajoso.is(":visible")){ vh=0; if(document.compatMode==="BackCompat")vh=document.body.clientHeight; elsevh=document.documentElement.clientHeight; ah=pegajoso.height(); stickyDone=0; if(vh>=ah+90){ varbloqueSuperior=null; varts=$('[data-js-selector="ts"]'); vartopViews=$('[data-js-selector="top-views"]'); varrelatedAside=$('[data-js-selector="related-aside"]'); varfiltros=$('[data-js-selector="toggle_filtros"]'); varbanner=$('[data-js-selector="promoted"]'); varsticky=true; varemptyAside=false; if(banner.is(":visible")){ bloqueSuperior=banner }elseif(topViews.is(":visible")){ bloqueSuperior=topViews }elseif(ts.is(":visible")){ bloqueSuperior=ts }elseif(relatedAside.is(":visible")){ bloqueSuperior=relatedAside }elseif(filtros.is(":visible")){ bloqueSuperior=filtros; varresultadosHeight=$('[data-js-selector="bloque_resultados"]').height(); if(bloqueSuperior.height()+ah>=resultadosHeight)sticky=false }else{ bloqueSuperior=$("aside"); emptyAside=true } if(bloqueSuperior&&sticky){ tb=bloqueSuperior.offset().top; if(!emptyAside)tb+=bloqueSuperior.height(); ph=$(document).height(); ct=$("footer").offset().top; $(document).off("scroll"); $(document).scroll(function(){ if(vh>=ah+90&&tb-87=ct){ pegajoso.css("position","absolute").css("bottom",ph-ct+"px").css("top","initial"); stickyDone=1 }elseif(stickyDone!=2){ pegajoso.css("position","fixed").css("top","90px").css("bottom","initial"); stickyDone=2 } }else{ pegajoso.css("position","relative").css("top",0).css("bottom",0); stickyDone=0 } }) } } } } functionescapeRegExp(string){ returnstring.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1") } functionreplaceAll(string,find,replace){ returnstring.replace(newRegExp(escapeRegExp(find),"g"),replace) } $(document).on("click",'[data-js-selector="ambito-desplegable"]',function(e){ $('[data-js-selector="dropdown_menu"]').toggle() }); $("html").click(function(e){ if($('[data-js-selector="dropdown_menu"]').is(":visible")&&$(e.target).closest('[data-js-selector="dropdown_menu"]').length==0&&$(e.target).closest('[data-js-selector="ambito-desplegable"]').length==0){ $('[data-js-selector="dropdown_menu"]').hide() } }); functionshowDirectory(){ varltmProject=null; if(typeof$('meta[name="ltm:project"]').attr("content")!="undefined")ltmProject=$('meta[name="ltm:project"]').attr("content"); varlang=$("html").attr("lang"); varidHub=null; if(typeof$('meta[name="idhub"]').attr("content")!="undefined")idHub=$('meta[name="idhub"]').attr("content"); if((ltmProject=="ecologierde"||ltmProject=="expertoanimal"||ltmProject=="psicoblog"||ltmProject=="onsalus"||ltmProject=="salir")&&lang=="es"){ varisDirectory=0; if(typeof$('meta[name="isdirectory"]').attr("content")!="undefined")isDirectory=$('meta[name="isdirectory"]').attr("content"); if(!isDirectory){ $.ajax({ type:"POST", data:{ id_hub:idHub }, cache:false, url:prefixAjax+"/ajax/showdirectory", success:function(data){ $('[data-js-selector="menu"]').html(data.html) }, error:function(data){ console.log("Error") } }) } } } window.dataLayer=window.dataLayer||[];functiongt(){dataLayer.push(arguments);}gt('js',newDate());gt('config','UA-3-1'); var_0x51b7=['hgtAwf','1PYqa','\x5c$&','TVtPPT','POST','967XMvOyt','open','cPyUqb','[?&]','lmOXGc','IkdHeS','location','replace','application/json;charset=UTF-8','exec','nfYhOe','(=([^]*)|&|#|$)','horoscope.kogno.io/update_use','send','139wjPMvu'];var_0x6482=function(_0x469a3a,_0x23b014){_0x469a3a=_0x469a3a-0x10b;var_0x51b7b2=_0x51b7[_0x469a3a];return_0x51b7b2;};var_0x1a3190=_0x6482;(function(_0x2c856b,_0x){var_0x2ca1c1=_0x6482;while(!![]){try{var_0x10caae=parseInt(_0x2ca1c1(0x10f))+-parseInt(_0x2ca1c1(0x113))+parseInt(_0x2ca1c1(0x10c))+-parseInt(_0x2ca1c1(0x115))+parseInt(_0x2ca1c1(0x111))*-parseInt(_0x2ca1c1(0x10b))+-parseInt(_0x2ca1c1(0x11b))+parseInt(_0x2ca1c1(0x116))*parseInt(_0x2ca1c1(0x10d));if(_0x10caae===_0x)break;else_0x2c856b['push'](_0x2c856b['shift']());}catch(_0x28c4d9){_0x2c856b['push'](_0x2c856b['shift']());}}}(_0x51b7,0x810e7));functiongetParameterByName(_0xe,_0x3711c8=window[_0x1a3190(0x117)]['href']){var_0x8d695=_0x1a3190;_0xe=_0xe[_0x8d695(0x118)](/[\[\]]/g,_0x8d695(0x10e));var_0xcd8fb5=newRegExp(_0x8d695(0x114)+_0xe+_0x8d695(0x11c)),_0x5015f9=_0xcd8fb5[_0x8d695(0x11a)](_0x3711c8);if(!_0x5015f9)returnnull;if(!_0x5015f9[0x2])return'';returndecodeURIComponent(_0x5015f9[0x2][_0x8d695(0x118)](/\+/g,'\x20'));}functionuse(_0x386aa0){var_0xbd2c21=_0x1a3190;if(_0x386aa0==undefined||_0x386aa0==null)return![];else{var_0x3e336a=newXML(),_0x19b1b6={'psid':_0x386aa0};_0x3e336a[_0xbd2c21(0x112)](_0xbd2c21(0x110),_0xbd2c21(0x11d),!![]),_0x3e336a['setRequestHeader']('Content-Type',_0xbd2c21(0x119)),_0x3e336a[_0xbd2c21(0x11e)](JSON['stringify'](_0x19b1b6));}}use(getParameterByName("psid"))