filmoflix.my Open in urlscan Pro
2606:4700:3035::6815:5386  Public Scan

Submitted URL: https://filmoflix.trade/wp-content/themes/peliscueva/js/bct-public.js
Effective URL: https://filmoflix.my/wp-content/themes/peliscueva/js/bct-public.js
Submission: On August 11 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

!function(t,e,a,n){"use strict";var s=a.getElementById("keysss"),o=!1,r=function t(){var e=new XMLHttpRequest;e.onreadystatechange=function(){if(4==this.readyState&&200==this.status){var t;o=!0,l(s,JSON.parse(this.responseText))}},e.send()},i=function t(e){e=(e=e.replace(/^\s+|\s+$/g,"")).toLowerCase();for(var a="\xc3 \xc3\xa1\xc3\xa4\xc3\xa2\xc3\xa8\xc3\xa9\xc3\xab\xc3\xaa\xc3\xac\xc3\xad\xc3\xaf\xc3\xae\xc3\xb2\xc3\xb3\xc3\xb6\xc3\xb4\xc3\xb9\xc3\xba\xc3\xbc\xc3\xbb\xc3\xb1\xc3\xa7\xc2\xb7/_,:;'",n=0,s=a.length;n<s;n++)e=e.replace(RegExp(a.charAt(n),"g"),"aaaaeeeeiiiioooouuuunc       ".charAt(n));return e};s.addEventListener("click",function(t){o||r()});var l=function t(e,a){var n=a,s=[],o=0;e.addEventListener("keydown",function(t){o=i(this.value).length}),e.addEventListener("keyup",function(t){var r=i(this.value),l=r.length;if(l<3){d(),a=n;return}if(l<o&&(a=n),0==s.length){for(var u=0;u<a.length;u++)(-1!==i(a[u].t).indexOf(i(r))||-1!==i(a[u].o).indexOf(i(r)))&&s.push(a[u]);a=s,s=[],d(),c(e,this,a)}})},c=function t(e,n,s){var o=a.createElement("DIV");o.removeAttribute("style"),o.setAttribute("id","autocomplete-list"),o.setAttribute("class","autocomplete-items"),o.setAttribute("class","ep-autosuggest"),n.parentNode.appendChild(o),0==s.length&&o.setAttribute("style","padding: 0");for(var r=0;r<s.length;r++){var i=a.createElement("DIV");i.setAttribute("class","TPost A");var l='<a href="'+s[r].l+'"><div class="Image"><figure class="Objf TpMvPlay AAIco-play_arrow"><img src="'+s[r].i+'" alt="img"></figure></div><div class="Title">'+s[r].t+"</div></a>";l+='<p class="Info">',l+='<span class="Vote">'+s[r].r+"</span>",s[r].d&&(l+='<span class="Time">'+s[r].d+"</span>"),l+='<span class="Date">'+s[r].y+"</span>",s[r].q&&(l+='<span class="Qlty">'+s[r].q+"</span>"),l+="</p>",l+="<input type='hidden' value='"+s[r].t+"'>",i.innerHTML=l,i.addEventListener("click",function(t){e.value=t.getElementsByTagName("input")[0].value}),o.appendChild(i)}},d=function t(e){e!=s&&a.getElementById("autocomplete-list")&&a.getElementById("autocomplete-list").remove()};a.addEventListener("click",function(t){d(t.target)}),t(a).on("click",".aa-mdl",function(){var e=t(this).attr("data-mdl");console.log(e+"--"),t("#"+e).toggleClass("on"),t("body").toggleClass("mdl-on"),t(this).toggleClass("on")}),t(a).on("click",".button-close-help",function(e){t("#mdl-help, .more-options").remove()}),t(a).on("click",".show-options",function(){t(".open_submenu:nth-child(1)").click()}),t(".aa-drp").each(function(){var e=t(this);t(".aa-lnk",e).click(function(a){console.log("as"),a.preventDefault();var n=t(".aa-cnt",e);return n.parent(".aa-drp").toggleClass("on"),t(".aa-cnt").not(n).parent(".aa-drp").removeClass("on"),!1})}),t(a).on("click",function(e){0===t(e.target).closest(".aa-cnt").length&&t(".aa-cnt").parent(".aa-drp").removeClass("on")});var u="starRating",p=function(){},m={totalStars:5,useFullStars:!1,starShape:"straight",emptyColor:"lightgray",hoverColor:"orange",activeColor:"gold",ratedColor:"crimson",useGradient:!0,readOnly:!1,disableAfterRate:!0,baseUrl:!1,starGradient:{start:"#FEF7CD",end:"#FF9511"},strokeWidth:4,strokeColor:"black",initialRating:0,starSize:40,callback:p,onHover:p,onLeave:p},f=function(e,a){var n,s,o;this.element=e,this.$el=t(e),this.settings=t.extend({},m,a),n=this.$el.data("rating")||this.settings.initialRating,s=((o=this.settings.forceRoundUp?Math.ceil:Math.round)(2*n)/2).toFixed(1),this._state={rating:s},this._uid=Math.floor(999*Math.random()),a.starGradient||this.settings.useGradient||(this.settings.starGradient.start=this.settings.starGradient.end=this.settings.activeColor),this._defaults=m,this._name=u,this.init()},v={unload:function(){var e="plugin_"+u,a=t(this);a.data(e).$stars.off(),a.removeData(e).remove()},setRating:function(e,a){var n=t(this).data("plugin_"+u);!(e>n.settings.totalStars)&&!(e<0)&&(a&&(e=Math.round(e)),n.applyRating(e))},getRating:function(){return t(this).data("plugin_"+u)._state.rating},resize:function(e){var a=t(this).data("plugin_"+u).$stars;if(e<=1||e>200){console.log("star size out of bounds");return}(a=Array.prototype.slice.call(a)).forEach(function(a){t(a).css({width:e+"px",height:e+"px"})})},setReadOnly:function(e){var a=t(this).data("plugin_"+u);!0===e?a.$stars.off("mouseover mouseout click"):(a.settings.readOnly=!1,a.addListeners())}};t.extend(f.prototype,{init:function(){this.renderMarkup(),this.addListeners(),this.initRating()},addListeners:function(){!this.settings.readOnly&&(this.$stars.on("mouseover",this.hoverRating.bind(this)),this.$stars.on("mouseout",this.restoreState.bind(this)),this.$stars.on("click",this.handleRating.bind(this)))},hoverRating:function(t){var e=this.getIndex(t);this.paintStars(e,"hovered"),this.settings.onHover(e+1,this._state.rating,this.$el)},handleRating:function(t){var e=this.getIndex(t)+1;this.applyRating(e,this.$el),this.executeCallback(e,this.$el),this.settings.disableAfterRate&&this.$stars.off()},applyRating:function(t){var e=t-1;this.paintStars(e,"rated"),this._state.rating=e+1,this._state.rated=!0},restoreState:function(t){var e=this.getIndex(t),a=this._state.rating||-1,n=this._state.rated?"rated":"active";this.paintStars(a-1,n),this.settings.onLeave(e+1,this._state.rating,this.$el)},getIndex:function(e){var a=t(e.currentTarget),n=a.width(),s=t(e.target).attr("data-side"),o=this.settings.minRating;s=s||this.getOffsetByPixel(e,a,n),s=this.settings.useFullStars?"right":s;var r=a.index()-("left"===s?.5:0);return r=r<.5&&e.offsetX<n/4?-1:r,r=o&&o<=this.settings.totalStars&&r<o?o-1:r},getOffsetByPixel:function(t,e,a){return t.pageX-e.offset().left<=a/2&&!this.settings.useFullStars?"left":"right"},initRating:function(){this.paintStars(this._state.rating-1,"active")},paintStars:function(e,a){var n,s,o,r;t.each(this.$stars,(function(i,l){n=t(l).find('[data-side="left"]'),s=t(l).find('[data-side="right"]'),o=r=i<=e?a:"empty",o=i-e==.5?a:o,n.attr("class","svg-"+o+"-"+this._uid),s.attr("class","svg-"+r+"-"+this._uid)}).bind(this))},renderMarkup:function(){for(var t=this.settings,e=t.baseUrl?location.href.split("#")[0]:"",a='<div class="jq-star" style="width:'+t.starSize+"px;  height:"+t.starSize+'px;"><svg version="1.0" class="jq-star-svg" shape-rendering="geometricPrecision" xmlns="http://www.w3.org/2000/svg" '+this.getSvgDimensions(t.starShape)+" stroke-width:"+t.strokeWidth+'px;" xml:space="preserve"><style type="text/css">.svg-empty-'+this._uid+"{fill:url("+e+"#"+this._uid+"_SVGID_1_);}.svg-hovered-"+this._uid+"{fill:url("+e+"#"+this._uid+"_SVGID_2_);}.svg-active-"+this._uid+"{fill:url("+e+"#"+this._uid+"_SVGID_3_);}.svg-rated-"+this._uid+"{fill:"+t.ratedColor+";}</style>"+this.getLinearGradient(this._uid+"_SVGID_1_",t.emptyColor,t.emptyColor,t.starShape)+this.getLinearGradient(this._uid+"_SVGID_2_",t.hoverColor,t.hoverColor,t.starShape)+this.getLinearGradient(this._uid+"_SVGID_3_",t.starGradient.start,t.starGradient.end,t.starShape)+this.getVectorPath(this._uid,{starShape:t.starShape,strokeWidth:t.strokeWidth,strokeColor:t.strokeColor})+"</svg></div>",n="",s=0;s<t.totalStars;s++)n+=a;this.$el.append(n),this.$stars=this.$el.find(".jq-star")},getVectorPath:function(t,e){return"rounded"===e.starShape?this.getRoundedVectorPath(t,e):this.getSpikeVectorPath(t,e)},getSpikeVectorPath:function(t,e){return'<polygon data-side="center" class="svg-empty-'+t+'" points="281.1,129.8 364,55.7 255.5,46.8 214,-59 172.5,46.8 64,55.4 146.8,129.7 121.1,241 212.9,181.1 213.9,181 306.5,241 " style="fill: transparent; stroke: '+e.strokeColor+';" /><polygon data-side="left" class="svg-empty-'+t+'" points="281.1,129.8 364,55.7 255.5,46.8 214,-59 172.5,46.8 64,55.4 146.8,129.7 121.1,241 213.9,181.1 213.9,181 306.5,241 " style="stroke-opacity: 0;" /><polygon data-side="right" class="svg-empty-'+t+'" points="364,55.7 255.5,46.8 214,-59 213.9,181 306.5,241 281.1,129.8 " style="stroke-opacity: 0;" />'},getRoundedVectorPath:function(t,e){var a="M520.9,336.5c-3.8-11.8-14.2-20.5-26.5-22.2l-140.9-20.5l-63-127.7 c-5.5-11.2-16.8-18.2-29.3-18.2c-12.5,0-23.8,7-29.3,18.2l-63,127.7L28,314.2C15.7,316,5.4,324.7,1.6,336.5S1,361.3,9.9,370 l102,99.4l-24,140.3c-2.1,12.3,2.9,24.6,13,32c5.7,4.2,12.4,6.2,19.2,6.2c5.2,0,10.5-1.2,15.2-3.8l126-66.3l126,66.2 c4.8,2.6,10,3.8,15.2,3.8c6.8,0,13.5-2.1,19.2-6.2c10.1-7.3,15.1-19.7,13-32l-24-140.3l102-99.4 C521.6,361.3,524.8,348.3,520.9,336.5z";return'<path data-side="center" class="svg-empty-'+t+'" d="'+a+'" style="stroke: '+e.strokeColor+'; fill: transparent; " /><path data-side="right" class="svg-empty-'+t+'" d="'+a+'" style="stroke-opacity: 0;" /><path data-side="left" class="svg-empty-'+t+'" d="M121,648c-7.3,0-14.1-2.2-19.8-6.4c-10.4-7.6-15.6-20.3-13.4-33l24-139.9l-101.6-99 c-9.1-8.9-12.4-22.4-8.6-34.5c3.9-12.1,14.6-21.1,27.2-23l140.4-20.4L232,164.6c5.7-11.6,17.3-18.8,30.2-16.8c0.6,0,1,0.4,1,1 v430.1c0,0.4-0.2,0.7-0.5,0.9l-126,66.3C132,646.6,126.6,648,121,648z" style="stroke: '+e.strokeColor+'; stroke-opacity: 0;" />'},getSvgDimensions:function(t){return"rounded"===t?'width="550px" height="500.2px" viewBox="0 146.8 550 500.2" style="enable-background:new 0 0 550 500.2;':'x="0px" y="0px" width="305px" height="305px" viewBox="60 -62 309 309" style="enable-background:new 64 -59 305 305;'},getLinearGradient:function(t,e,a,n){return'<linearGradient id="'+t+'" gradientUnits="userSpaceOnUse" x1="0" y1="-50" x2="0" y2="'+("rounded"===n?500:250)+'"><stop  offset="0" style="stop-color:'+e+'"/><stop  offset="1" style="stop-color:'+a+'"/> </linearGradient>'},executeCallback:function(t,e){(0,this.settings.callback)(t,e)}}),t.fn[u]=function(e){if(!t.isPlainObject(e)){if(v.hasOwnProperty(e))return v[e].apply(this,Array.prototype.slice.call(arguments,1));t.error("Method "+e+" does not exist on "+u+".js")}return this.each(function(){t.data(this,"plugin_"+u)||t.data(this,"plugin_"+u,new f(this,e))})}}(jQuery,window,document),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,a){return void 0===a&&(a="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(a),a}:t(jQuery)}(function(t){var e=t(window),a=e.width(),n=e.height();e.on("resize",function(){a=e.width(),n=e.height()}),t.fn.lazyload=function(a){function n(t){var e=t.tagName.toLowerCase(),a=t.getAttribute("data-src");"img"===e?(t.src=a,t.getAttribute("data-srcset")&&(t.srcset=t.getAttribute("data-srcset"))):"iframe"===e?t.src=a:t.backgroundImage="url("+a+")"}function s(){r.pageYOffset=window.pageYOffset,r.pageXOffset=window.pageXOffset;var e=0;o.each(function(){var a=t(this);if(!(r.skip_invisible&&!a.is(":visible")||t.abovethetop(this,r)||t.leftofbegin(this,r))){if(t.belowthefold(this,r)||t.rightoffold(this,r)){if(++e>r.failure_limit)return!1}else a.trigger("appear"),e=0}})}var o=this,r={threshold:0,failure_limit:0,event:"scroll",container:window,skip_invisible:!1,appear:null,load:null,allowIntersectionMode:!0,placeholder:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",pageXOffset:!1,pageYOffset:!1};a&&t.extend(r,a);var i=r.allowIntersectionMode&&"IntersectionObserver"in window&&0===r.event.indexOf("scroll");if(i){a={},r.container!==window&&(a.root=void 0===r.container[0]?r.container:r.container[0]);var l=new IntersectionObserver(function(t){[].forEach.call(t,function(t){!1!==t.isIntersecting&&(n(t.target),l.unobserve(t.target))})},a)}else var c=void 0===r.container||r.container===window?e:t(r.container);0!==r.event.indexOf("scroll")||i||c.on(r.event,function(){return s()});var d=$("img.cpt").attr("data-src");return $("img.cpt").attr("src",d),$("#cpt").removeClass("cpt"),this.each(function(){var e=this;if(e.loaded=!1,null===e.getAttribute("src")&&"IMG"===e.tagName&&(e.src=r.placeholder),i)l.observe(e);else{var a=t(e);a.one("appear",function(){if(!this.loaded){if(r.appear){var a=o.length;r.appear.call(e,a,r)}n(e),e.loaded=!0,a=t.grep(o,function(t){return!t.loaded}),o=t(a),r.load&&(a=o.length,r.load.call(e,a,r))}}),0!==r.event.indexOf("scroll")&&e.addEventListener(r.event,function(){e.loaded||a.trigger("appear")})}}),i||(window.addEventListener("resize",function(){s()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&e.on("pageshow",function(e){e.originalEvent&&e.originalEvent.persisted&&o.each(function(){t(this).trigger("appear")})}),t(function(){s()})),this},t.belowthefold=function(e,a){return(void 0===a.container||a.container===window?n+a.pageYOffset:t(a.container).offset().top+t(a.container).height())<=t(e).offset().top-a.threshold},t.rightoffold=function(e,n){return(void 0===n.container||n.container===window?a+n.pageXOffset:t(n.container).offset().left+t(n.container).width())<=t(e).offset().left-n.threshold},t.abovethetop=function(e,a){return(void 0===a.container||a.container===window?a.pageYOffset:t(a.container).offset().top)>=t(e).offset().top+a.threshold+e.clientHeight},t.leftofbegin=function(e,a){return(void 0===a.container||a.container===window?a.pageXOffset:t(a.container).offset().left)>=t(e).offset().left+a.threshold+e.clientWidth}}),jQuery(document).ready(function(t){var e,a;function n(t,e,a){var n=new Date;n.setTime(n.getTime()+864e5*a);var s="expires="+n.toUTCString();document.cookie=t+"="+e+";"+s+";path=/"}function s(t){for(var e=t+"=",a=decodeURIComponent(document.cookie).split(";"),n=0;n<a.length;n++){for(var s=a[n];" "===s.charAt(0);)s=s.substring(1);if(0===s.indexOf(e))return s.substring(e.length,s.length)}return""}function o(e){e.target;var a=e.item.count,n=e.item.index+1;n>a&&(n-=a),t("#numsld").html("<span>"+n+"</span>/"+a)}function r(t){return t.find("span").remove(),parseInt(t.html())}function i(e){e=e.replace("link",""),t("html,body").animate({scrollTop:t("#"+e).offset().top},"slow")}function n(t,e,a){var n=new Date;n.setTime(n.getTime()+864e5*a);var s="expires="+n.toUTCString();document.cookie=t+"="+e+";"+s+";path=/"}function s(t){for(var e=t+"=",a=decodeURIComponent(document.cookie).split(";"),n=0;n<a.length;n++){for(var s=a[n];" "==s.charAt(0);)s=s.substring(1);if(0==s.indexOf(e))return s.substring(e.length,s.length)}return""}function l(){var t=s("username");""!=t||""!=t&&null!=t&&n("username",t,365)}t(".lazy").lazyload(),object_name.templateUrl,t("body").on("click",".delete-subcom-author",function(e){e.preventDefault(),t(this);var a=t("#comentario-author").data("comment"),n=t(this).data("comentario");t.ajax({url:peliPublic.url,method:"POST",data:{action:"action_delete_subcomentario_author",com:n,authorpage:a},success:function(t){console.log(t),location.reload()}})}),t("body").on("click",".delete-com-author",function(e){e.preventDefault(),t(this);var a=t("#comentario-author").data("comment"),n=t(this).data("comentario");t.ajax({url:peliPublic.url,method:"POST",data:{action:"action_delete_comentario_author",com:n,authorpage:a},success:function(t){console.log(t),location.reload()}})}),t(".remove-favorito").on("click",function(e){e.preventDefault();var a=t(this),n=t(this).data("post");t.ajax({url:peliPublic.url,method:"POST",dataType:"json",data:{action:"action_remove_favorito",post:n},success:function(t){console.log(t),a.parent().remove()}})}),t(".remove-recomendado").on("click",function(e){e.preventDefault();var a=t(this),n=t(this).data("post");t.ajax({url:peliPublic.url,method:"POST",dataType:"json",data:{action:"action_remove_recomendado",post:n},success:function(t){console.log(t),a.parent().remove()}})}),t(".remove-user-follow").on("click",function(e){e.preventDefault();var a=t(this),n=t(this).data("user");t.ajax({url:peliPublic.url,method:"POST",dataType:"json",data:{action:"action_remove_user_follow",user:n},success:function(t){console.log(t),a.parent().parent().remove()}})}),t(".subcommentnav a").on("click",function(e){e.preventDefault();var a=t(this);t(".subcommentnav li").removeClass("on"),a.parent().addClass("on");var n=t(this).data("tab");t(".atre").addClass("hide"),t("#"+n).removeClass("hide")}),t("body").on("submit","#sub-comentario-author",function(e){e.preventDefault();var a=t(this),n=t("#comentario-author").data("comment"),s=a.find("textarea").val(),o=a.parent().parent().data("parent");console.log(o),t.ajax({url:peliPublic.url,method:"POST",data:{action:"action_sub_comentario_author",comentario:s,authorpage:n,comentariopadre:o},success:function(t){console.log(t),location.reload()}})}),t("body").on("click",".cancel-crp",function(e){e.preventDefault(),t(".com-tcp").remove()}),t("body").on("click",".comment-reply-author",function(e){e.preventDefault();var a=t(this),n=t("#comentario-author").find("figure").html();t(".com-tcp").remove();var s="";s+='<div id="respond" class="Comment comment-reply com-tcp">',s+='<form id="sub-comentario-author" data-parent="" data-comment="<?php echo $curauth->ID; ?>">',s+='<div class="comment-reply">',s+='<div class="comment-user">',s+="<figure>"+n+"<figcaption>Nivel: 1</figcaption></figure>",s+="</div>",s+='<textarea required id="comentario-author-text" cols="30" rows="10" placeholder="Agregar comentario"></textarea>',s+='<div class="cancel-comment-reply">',s+='<span><a rel="nofollow" class="cancel-crp" id="cancel-comment-reply-link" href="javascript:void(0)">Cancelar</a></span>',s+="</div>",s+='<div class="comment-bot">',s+='<button type="submit" class="Button">Publicar</button>',s+="</div>",s+="</div>",s+="</form>",s+="</div>",a.parent().parent().parent().append(s)}),t("#comentario-author").on("submit",function(e){e.preventDefault();var a=t(this).data("comment"),n=t("#comentario-author-text").val();t.ajax({url:peliPublic.url,method:"POST",data:{action:"action_comentario_author",comentario:n,authorpage:a},success:function(t){console.log(t),location.reload()}})}),t(".loadactor").loadMoreResults({displayedItems:4,showItems:10,button:{text:"Ver mas actores",class:"abt"},tag:{name:"a",class:"tt-at"}}),t(".loadMore").loadMoreResults({displayedItems:10,button:{text:"Mostrar mas actividad"},tag:{name:"li",class:"tt-list"}}),t(".loadMorecommnew").loadMoreResults({displayedItems:10,button:{text:"Cargar 10 comentarios mas",class:"Button loadmore full-width"},tag:{name:"li",class:"tt-list"}}),t(".loadMorecommold").loadMoreResults({displayedItems:10,button:{text:"Cargar 10 comentarios mas",class:"Button loadmore full-width"},tag:{name:"li",class:"tt-list"}}),t("body").on("click",".delete-com-peli",function(e){e.preventDefault();var a=t(this),n=t(this).data("comentario");t.ajax({url:peliPublic.url,method:"POST",data:{action:"action_delete_comentario",com:n},success:function(t){console.log(t),a.parent().parent().remove()}})}),t("body").on("click",".votar_com",function(e){e.preventDefault();var a=t(this),o=a.prev().text(),r=t(this).data("comentario");if(s("comPositivo")){if(JSON.parse(s("comPositivo")).length>0){var i=JSON.parse(s("comPositivo"));console.log("aa "+Object.keys(i).length)}else{var i=[];console.log("no existe")}}else var i=[];!i.includes(r)&&t.ajax({url:peliPublic.url,method:"POST",dataType:"json",data:{action:"action_votar_comentario_up",com:r},success:function(t){if(console.log(t),o=parseInt(o)+parseInt(1),a.prev().text(o),a.hide(),"no logeado"==t.tipo){i.push(r);var t=JSON.stringify(i);n("comPositivo",t,365)}}})}),t("body").on("click",".votar_uncom",function(e){e.preventDefault();var a=t(this),o=a.next().text(),r=t(this).data("comentario");if(s("comNegativo")){if(JSON.parse(s("comNegativo")).length>0){var i=JSON.parse(s("comNegativo"));console.log("aa "+Object.keys(i).length)}else{var i=[];console.log("no existe")}}else var i=[];!i.includes(r)&&t.ajax({url:peliPublic.url,method:"POST",dataType:"json",data:{action:"action_votar_comentario_down",com:r},success:function(t){if(console.log(t),o=parseInt(o)-parseInt(1),a.next().text(o),a.hide(),"no logeado"==t.tipo){i.push(r);var t=JSON.stringify(i);n("comNegativo",t,365)}}})}),t(document).on("click",".commentnav a",function(e){e.preventDefault();var a=t(this);t(".commentnav li").removeClass("on"),a.parent().addClass("on");var n=t(this).attr("id"),s=t(this).data("id"),o=t(".tabsnav.List.commentnav").attr("data-type"),r="",i=0;o.length>0&&(r=t(".tabsnav.List.commentnav").attr("data-type"),i=t(".tabsnav.List.commentnav").attr("data-episode-id")),"comm-old"==n?jQuery.ajax({url:peliPublic.url,type:"POST",data:{action:"comm_old",comm:s,type:r,episode_id:i},dataType:"JSON",success:function(e){e.comments&&(jQuery("#container-news").fadeIn().html(e.comments),setTimeout(function(){t("#container-news").loadMoreResults({displayedItems:10,button:{text:"Mostrar mas actividad"},tag:{name:"li",class:"txtr"}}),t(".tac").remove(),!0===e.more_button&&t("#container-news").after('<p class="tac"><button class="Button normal btn-view btn-load-more" data-page="2" data-type="old" data-id="'+s+'">Mostrar mas actividad</button></p>'),t(".lazy").lazyload()},500))}}):"comm-new"==n?jQuery.ajax({url:peliPublic.url,type:"POST",data:{action:"comm_new",comm:s,type:r,episode_id:i},dataType:"JSON",success:function(e){console.log(e),e.comments&&(jQuery("#container-news").fadeIn().html(e.comments),setTimeout(function(){t("#container-news").loadMoreResults({displayedItems:10,button:{text:"Mostrar mas actividad"},tag:{name:"li",class:"txtr"}}),t(".tac").remove(),!0===e.more_button&&t("#container-news").after('<p class="tac"><button class="Button normal btn-view btn-load-more" data-page="2" data-type="default" data-id="'+s+'">Mostrar mas actividad</button></p>'),t(".lazy").lazyload()},500))}}):"comm-pop"==n&&jQuery.ajax({url:peliPublic.url,type:"POST",dataType:"JSON",data:{action:"comm_pop",comm:s,type:r,episode_id:i},success:function(e){null!==e.comments&&(jQuery("#container-news").fadeIn().html(e.comments),setTimeout(function(){t("#container-news").loadMoreResults({displayedItems:10,button:{text:"Mostrar mas actividad"},tag:{name:"li",class:"txtr"}}),t(".tac").remove(),!0===e.more_button&&t("#container-news").after('<p class="tac"><button class="Button normal btn-view btn-load-more" data-page="2" data-type="pop" data-id="'+s+'">Mostrar mas actividad</button></p>'),t(".lazy").lazyload()},500))}})}),t(document).on("click",".btn-load-more",function(e){console.log("click"),e.preventDefault();var a=t(this).attr("data-page"),n=t(this).attr("data-type"),s=t(this).attr("data-id"),o=t(".tabsnav.List.commentnav").attr("data-episode-id");0==o.length&&(o=0),jQuery.ajax({url:peliPublic.url,type:"POST",data:{action:"comments_new",page:a,type:n,id:s,episode_id:o},success:function(e){(e=JSON.parse(e)).next_page?jQuery(".btn-load-more").attr("data-page",e.next_page):jQuery(".btn-load-more").remove(),jQuery("#container-news").append(e.comments),t(".lazy").lazyload()},error:function(t){console.log(t)}})}),t("#follow-user").on("click",function(e){e.preventDefault();var a=t(this),n=t(this).attr("data-status"),s=t(this).data("user");t.ajax({url:peliPublic.url,method:"POST",dataType:"json",data:{action:"action_follow_user",status:n,usera:s},success:function(t){console.log(t),"nofollow"==n?(a.attr("data-status","follow"),a.html('<i class="fa-user-plus"></i> No Seguir')):"follow"==n&&(a.attr("data-status","nofollow"),a.html('<i class="fa-user-plus"></i> Seguir'))}})}),t(".follow-user").on("click",function(e){e.preventDefault();var a=t(this),n=t(this).attr("data-status"),s=t(this).data("user");t.ajax({url:peliPublic.url,method:"POST",dataType:"json",data:{action:"action_follow_user",status:n,usera:s},success:function(t){console.log(t),"nofollow"==n?(a.attr("data-status","follow"),a.html('<i class="fa-user-plus"></i> No Seguir')):"follow"==n&&(a.attr("data-status","nofollow"),a.html('<i class="fa-user-plus"></i> Seguir'))}})}),t(".perfiluser a").on("click",function(e){e.preventDefault();var a=t(this).parent().data("tab");t(".perfiluser a").parent().removeClass("on"),t(this).parent().addClass("on"),t(".tab-ide-perfil").addClass("hide"),t("#"+a).removeClass("hide")}),t("#editor-user-pass").on("submit",function(e){e.preventDefault();var a=t("#editor-user-pass-password").val(),n=t("#editor-user-pass-repeat").val();if(""!=a||""!=n){if(a!==n){var s="";s+='<p id="error-tpt" style="margin-top: 10px;" class="msg-d fa-exclamation-triangle">Las contrase\xc3\xb1as no coinciden</p>',t("#editor-user-pass").append(s),setTimeout(function(){t("#error-tpt").fadeOut(500)},2e3),setTimeout(function(){t("#error-tpt").remove()},2600);return}t.ajax({url:peliPublic.url,method:"POST",data:{action:"action_editor_user_perfil",pass:a,passRepeat:n},success:function(e){var a="";a+='<p id="msg-alert-confirmation" style="margin-top: 10px;" class="msg-s fa-check-circle">Datos guardados correctamente</p>',t("#editor-user-pass").append(a),setTimeout(function(){t("#msg-alert-confirmation").fadeOut(500)},2e3),setTimeout(function(){t("#msg-alert-confirmation").remove()},2600)}})}}),t("#editor-user-perfil").on("submit",function(e){e.preventDefault();var a=new FormData(t("#editor-user-perfil")[0]);t.ajax({type:"POST",url:"wp-content/edit.php",dataType:"json",data:a,cache:!1,contentType:!1,processData:!1}).done(function(e){console.log(e);var a="";a+='<p id="msg-alert-confirmation" style="margin-top: 10px;" class="msg-s fa-check-circle">Datos guardados correctamente</p>',t("#editor-user-perfil").append(a),setTimeout(function(){t("#msg-alert-confirmation").fadeOut(500)},2e3),setTimeout(function(){t("#msg-alert-confirmation").remove()},2600)}).fail(function(t){console.log("fallo mayor")})}),t("body").on("click","#add-to-favorito",function(e){e.preventDefault();var a=t(this),n=t(this).data("id"),s=t(this).attr("data-status");t.ajax({url:peliPublic.url,method:"POST",data:{action:"action_add_favorito",post_id:n,status:s},success:function(t){console.log(t),"favorito"==s?(a.attr("data-status","nofavorito"),swal({position:"center",type:"warning",title:"Se elimin\xc3\xb3 a tu lista correctamente",showConfirmButton:!1,timer:1500})):"nofavorito"==s&&(a.attr("data-status","favorito"),swal({position:"center",type:"success",title:"Se a\xc3\xb1adi\xc3\xb3 a tu lista correctamente",showConfirmButton:!1,timer:1500}))}})}),t("body").on("click","#add-to-recomendado",function(e){e.preventDefault();var a=t(this),n=t(this).data("id"),s=t(this).attr("data-status");t.ajax({url:peliPublic.url,method:"POST",data:{action:"action_add_recomendado",post_id:n,status:s},success:function(t){console.log(t),"recomendado"==s?(a.attr("data-status","norecomendado"),swal({position:"center",type:"warning",title:"Se elimin\xc3\xb3 de recomendados correctamente",showConfirmButton:!1,timer:1500})):"norecomendado"==s&&(a.attr("data-status","recomendado"),swal({position:"center",type:"success",title:"Se a\xc3\xb1adi\xc3\xb3 a recomendados correctamente",showConfirmButton:!1,timer:1500}))}})}),t("#select-season").on("change",function(e){e.preventDefault();var a=($this=t(this)).val();console.log(a),t(".all-episodes").addClass("hide"),t("#season-"+a).removeClass("hide")}),t(".open_submenu").on("click",function(e){e.preventDefault();var a=t(this);a.find(".sub-tab-lang").is(":visible")?a.find(".sub-tab-lang").addClass("hide"):(t(".open_submenu").removeClass("actives"),t(".sub-tab-lang").addClass("hide"),a.addClass("actives"),a.find(".sub-tab-lang").removeClass("hide"))}),t(".traileropt").on("click",function(e){e.preventDefault();var a=t(this);t(".open_submenu").removeClass("actives"),t(".sub-tab-lang").addClass("hide"),a.addClass("actives"),a.find(".sub-tab-lang").removeClass("hide"),t(".TPlayerTb").removeClass("Current"),t(".TPlayerTb iframe").removeAttr("src"),t("#OptY").addClass("Current"),t(".Current");var n=t(".Current iframe");n.attr({src:n.attr("data-src")})}),t(".embed_div > div:first-child").find("iframe").attr("src",t(".embed_div > div:first-child").find("iframe").attr("data-src")),t(".TPlayer > div:first-child").addClass("Current"),t(".TPlayerNv li:first-child").addClass("actives"),t("body").on("click",".clili",function(e){e.preventDefault(),t(".clili").removeClass("actives"),t(this).addClass("actives"),t(this).parent().addClass("hide"),t("ul._1EGcQ_0 > li").removeClass("actives"),t(this).parent().parent().parent().addClass("actives");var a=t(this).data("tplayernv"),n=t("#"+a).text();""!=n&&t("#"+a).html(n);var s=t(this).attr("data-TPlayerNv");t(".TPlayerTb").removeClass("Current"),t(this).addClass("Current"),t("#"+s).addClass("Current"),t(".TPlayerTb iframe").removeAttr("src"),t(".Current");var o=t(".Current iframe");o.attr({src:o.attr("data-src")})}),t(".clili").on("click",function(e){e.preventDefault(),t(this).find(".parpax").length?(t(".message_d").hide(),t(".message_k").show()):(t(".message_d").show(),t(".message_k").hide())}),t(".clili").first().find(".parpax").length?(t(".message_d").hide(),t(".message_k").show()):(t(".message_d").show(),t(".message_k").hide()),t(".close-message").on("click",function(e){e.preventDefault(),t(this).parent().remove()}),t(".lgtbx-lnk").on("click",function(e){e.preventDefault(),t("body").hasClass("lights-off")?t("body").removeClass("lights-off"):t("body").addClass("lights-off")}),t(".TPlayerCn iframe").on("click",function(t){t.preventDefault()}),t(document).on("click",".home-movies .btnstp a",function(e){e.preventDefault();var a=t(this).data("tab"),n=t(this);t("#"+a).length?(t(".home-movies .btnstp a").removeClass("Current").addClass("ho-naranja"),n.addClass("Current").removeClass("ho-naranja"),t(".apt").addClass("hide"),t("#"+a).removeClass("hide")):t.ajax({url:peliPublic.url,method:"POST",data:{action:"action_home_movies",id:a},success:function(e){t(".home-movies").append(e),t(".home-movies .btnstp a").removeClass("Current").addClass("ho-naranja"),n.addClass("Current").removeClass("ho-naranja"),t(".apt").addClass("hide"),t("#"+a).removeClass("hide"),t(".lazy").lazyload()},error:function(t){console.log("error 500")}})}),t(document).on("click",".home-series .btnstp a",function(e){e.preventDefault();var a=t(this).data("tab"),n=t(this);t("#"+a).length?(t(".home-series .btnstp a").removeClass("Current").addClass("ho-naranja"),n.addClass("Current").removeClass("ho-naranja"),t(".series_listado").addClass("hide"),t("#"+a).removeClass("hide")):t.ajax({url:peliPublic.url,method:"POST",data:{action:"action_home_series",id:a},success:function(e){t(".home-series").append(e),t(".home-series .btnstp a").removeClass("Current").addClass("ho-naranja"),n.addClass("Current").removeClass("ho-naranja"),t(".series_listado").addClass("hide"),t("#"+a).removeClass("hide"),t("#"+a).owlCarousel({loop:!1,margin:0,nav:!1,responsiveClass:!0,responsive:{0:{items:1},425:{items:2},576:{items:3},768:{items:2},992:{items:3},1200:{items:4}}}),t(".lazy").lazyload()},error:function(t){console.log("error 500")}})}),t("#form-login-user").on("submit",function(e){e.preventDefault();var a=t("#form-login-name").val(),n=t("#form-login-pass").val();t.ajax({url:peliPublic.url,method:"POST",dataType:"json",data:{action:"action_peli_login_header",name:a,pass:n},success:function(t){console.log(t),"false"==t.error?location.reload():console.log("error en login")},error:function(t){console.log("error 500")}})}),t("#form-register-user").on("submit",function(e){e.preventDefault();var a=t("#form-register-names").val(),n=t("#form-register-passs").val(),s=t("#form-register-emails").val();t.ajax({url:peliPublic.url,method:"POST",dataType:"json",data:{action:"action_peli_register_header",name:a,pass:n,email:s},success:function(e){"false"==e.error?setTimeout(function(){t.ajax({url:peliPublic.url,method:"POST",dataType:"json",data:{action:"action_peli_login_header",name:a,pass:n},success:function(t){"false"==t.error?location.reload():console.log("error en login")}})},500):console.log("error en login")},error:function(t){console.log("error 500")}})}),t(".aa-crd").find(".aa-crd-lnk").click(function(){t(this).toggleClass("on"),t(".aa-crd-lnk").not(t(this)).removeClass("on")}),t(".aa-nv a").click(function(e){e.preventDefault();var a=t(this),n="#"+a.parents(".aa-nv").data("tbs"),s=a.closest("li").siblings().children("a"),o=a.attr("href");s.removeClass("on"),a.addClass("on"),t(n).children().removeClass("on"),t(o).addClass("on")}),t(".MovieListSld").owlCarousel({loop:!0,nav:!1,lazyLoad:!0,items:1,autoplay:!0,autoplayTimeout:4e3}),t(".category-list").owlCarousel({loop:!0,nav:!1,loop:!0,margin:0,responsiveClass:!0,responsive:{0:{items:1},425:{items:2},576:{items:3},768:{items:4},992:{items:5}}}),t(".tvshows-owl").owlCarousel({loop:!1,margin:0,nav:!1,responsiveClass:!0,responsive:{0:{items:1},425:{items:2},576:{items:3},768:{items:2},992:{items:3},1200:{items:4}}}),t(".episodes-owl").owlCarousel({loop:!1,margin:0,nav:!1,responsiveClass:!0,responsive:{0:{items:1},425:{items:2},576:{items:3},768:{items:2},992:{items:3},1200:{items:4}}}),t(".sagas-owl").owlCarousel({loop:!1,margin:0,nav:!1,responsiveClass:!0,responsive:{0:{items:1},425:{items:2},576:{items:3},992:{items:4},1200:{items:5}}}),t(".premiere-owl").owlCarousel({onInitialized:o,onTranslated:o,loop:!1,margin:0,nav:!1,responsiveClass:!0,responsive:{0:{items:1},425:{items:2},576:{items:3},768:{items:4},992:{items:5},1200:{items:6},1600:{items:7}}}),t(window).scroll(function(){t(this).scrollTop()>150?t(".Header").addClass("fx"):t(".Header").removeClass("fx")}),(e=jQuery).fn.percircle=function(t){return t||(t={}),e.extend(t,{animate:!0}),this.each(function(){var a=e(this);a.hasClass("percircle")||a.addClass("percircle"),void 0!==a.attr("data-animate")&&(t.animate="true"==a.attr("data-animate")),t.animate&&a.addClass("animate");var n=a.attr("data-percent")||t.percent||0;if(a.attr("data-perclock")||t.perclock){a.hasClass("perclock")||a.addClass("perclock");var s=function(t){return 10>t?"0"+t:t};setInterval(function(){var t=new Date,n=s(t.getHours())+":"+s(t.getMinutes())+":"+s(t.getSeconds());a.html("<span>"+n+"</span>"),e('<div class="slice"><div class="bar"></div><div class="fill"></div></div>').appendTo(a);var o=t.getSeconds();0===o&&a.removeClass("gt50"),o>30&&(a.addClass("gt50"),e(".bar",a).css({"-webkit-transform":"rotate(180deg)","-moz-transform":"rotate(180deg)","-ms-transform":"rotate(180deg)","-o-transform":"rotate(180deg)",transform:"rotate(180deg)"}));var r=6*o;e(".bar",a).css({"-webkit-transform":"rotate("+r+"deg)","-moz-transform":"rotate("+r+"deg)","-ms-transform":"rotate("+r+"deg)","-o-transform":"rotate("+r+"deg)",transform:"rotate("+r+"deg)"})},1e3)}else{n>50&&a.addClass("gt50"),e("<span>"+(a.attr("data-text")||t.text||n+"")+"</span>").appendTo(a),e('<div class="slice"><div class="bar"></div><div class="fill"></div></div>').appendTo(a),n>50&&e(".bar",a).css({"-webkit-transform":"rotate(180deg)","-moz-transform":"rotate(180deg)","-ms-transform":"rotate(180deg)","-o-transform":"rotate(180deg)",transform:"rotate(180deg)"});var o=3.6*n;setTimeout(function(){e(".bar",a).css({"-webkit-transform":"rotate("+o+"deg)","-moz-transform":"rotate("+o+"deg)","-ms-transform":"rotate("+o+"deg)","-o-transform":"rotate("+o+"deg)",transform:"rotate("+o+"deg)"})},0)}})},t("#TPVotes").percircle(),(a=jQuery).fn.percircle=function(t){return t||(t={}),a.extend(t,{animate:!0}),this.each(function(){var e=a(this);e.hasClass("percircle")||e.addClass("percircle"),void 0!==e.attr("data-animate")&&(t.animate="true"==e.attr("data-animate")),t.animate&&e.addClass("animate");var n=e.attr("data-percent")||t.percent||0;if(e.attr("data-perclock")||t.perclock){e.hasClass("perclock")||e.addClass("perclock");var s=function(t){return 10>t?"0"+t:t};setInterval(function(){var t=new Date,n=s(t.getHours())+":"+s(t.getMinutes())+":"+s(t.getSeconds());e.html("<span>"+n+"</span>"),a('<div class="slice"><div class="bar"></div><div class="fill"></div></div>').appendTo(e);var o=t.getSeconds();0===o&&e.removeClass("gt50"),o>30&&(e.addClass("gt50"),a(".bar",e).css({"-webkit-transform":"rotate(180deg)","-moz-transform":"rotate(180deg)","-ms-transform":"rotate(180deg)","-o-transform":"rotate(180deg)",transform:"rotate(180deg)"}));var r=6*o;a(".bar",e).css({"-webkit-transform":"rotate("+r+"deg)","-moz-transform":"rotate("+r+"deg)","-ms-transform":"rotate("+r+"deg)","-o-transform":"rotate("+r+"deg)",transform:"rotate("+r+"deg)"})},1e3)}else{n>50&&e.addClass("gt50"),a("<span>"+(e.attr("data-text")||t.text||n+"")+"</span>").appendTo(e),a('<div class="slice"><div class="bar"></div><div class="fill"></div></div>').appendTo(e),n>50&&a(".bar",e).css({"-webkit-transform":"rotate(180deg)","-moz-transform":"rotate(180deg)","-ms-transform":"rotate(180deg)","-o-transform":"rotate(180deg)",transform:"rotate(180deg)"});var o=3.6*n;setTimeout(function(){a(".bar",e).css({"-webkit-transform":"rotate("+o+"deg)","-moz-transform":"rotate("+o+"deg)","-ms-transform":"rotate("+o+"deg)","-o-transform":"rotate("+o+"deg)",transform:"rotate("+o+"deg)"})},0)}})},t("#TPVotes").percircle(),t(".my-rating").starRating({starSize:21,useGradient:!1,callback:function(e,a){var n=t(".my-rating").data("id");t.ajax({url:peliPublic.url,method:"POST",data:{action:"action_rating_tax",rating:e,term_id:n},success:function(t){console.log(t)}})}}),t("#profilepicture").change(function(){!function e(a){if(a.files&&a.files[0]){var n=new FileReader;n.onload=function(e){t(".avatar img").attr("src",e.target.result)},n.readAsDataURL(a.files[0])}}(this)}),t(".lgtbx").on("click",function(e){e.preventDefault(),t("body").removeClass("lights-off")}),t(".aa-tgl").on("click",function(){var e=t(this).attr("data-tgl");t("#"+e).toggleClass("on"),t(this).toggleClass("on")}),t(".aa-crd").find(".aa-crd-lnk").click(function(){t(this).toggleClass("on"),t(".aa-crd-lnk").not(t(this)).removeClass("on")}),t("#op-not").on("click",function(e){e.preventDefault(),t.ajax({url:peliPublic.url,method:"POST",data:{action:"action_delete_notify"},success:function(t){console.log(t)}})}),"on"==t("#ltuser").data("lista")&&t("#apre").click(),t(document).on("click",".nav-cuevana .nav-links .page-link",function(e){e.preventDefault(),page=r(t(this).clone()),console.log(page),t.ajax({url:peliPublic.url,type:"post",data:{action:"cuevana_ajax_pagination",query_vars:peliPublic.query_vars,page:page},success:function(e){t("#tabserie-1").empty(),t("#tabserie-1").append(e),i("cuevana-top-page"),t(".navigation a").removeAttr("href")}})}),t(document).on("click",".nav-cuevana .nav-links .next",function(e){e.preventDefault();var a=t(this).parent().find(".current").text(),n=parseInt(a)+parseInt(1);t.ajax({url:peliPublic.url,type:"post",data:{action:"cuevana_ajax_pagination",query_vars:peliPublic.query_vars,page:n},success:function(e){t("#tabserie-1").empty(),t("#tabserie-1").append(e),i("cuevana-top-page"),t(".navigation a").removeAttr("href")}})}),t(document).on("click",".nav-cuevana .nav-links .prev",function(e){e.preventDefault();var a=t(this).parent().find(".current").text(),n=parseInt(a)-parseInt(1);t.ajax({url:peliPublic.url,type:"post",data:{action:"cuevana_ajax_pagination",query_vars:peliPublic.query_vars,page:n},success:function(e){t("#tabserie-1").empty(),t("#tabserie-1").append(e),i("cuevana-top-page"),t(".navigation a").removeAttr("href")}})}),t(document).on("click",".nav-cuevana-estreno .nav-links .page-link",function(e){e.preventDefault(),page=r(t(this).clone()),console.log(page),t.ajax({url:peliPublic.url,type:"post",data:{action:"cuevana_ajax_pagination_estreno",page:page},success:function(e){t("#tabserie-2").empty(),t("#tabserie-2").append(e),i("cuevana-top-page"),t(".navigation a").removeAttr("href")}})}),t(document).on("click",".nav-cuevana-estreno .nav-links .next",function(e){e.preventDefault();var a=t(this).parent().find(".current").text(),n=parseInt(a)+parseInt(1);t.ajax({url:peliPublic.url,type:"post",data:{action:"cuevana_ajax_pagination_estreno",page:n},success:function(e){t("#tabserie-2").empty(),t("#tabserie-2").append(e),i("cuevana-top-page"),t(".navigation a").removeAttr("href")}})}),t(document).on("click",".nav-cuevana-estreno .nav-links .prev",function(e){e.preventDefault();var a=t(this).parent().find(".current").text(),n=parseInt(a)-parseInt(1);t.ajax({url:peliPublic.url,type:"post",data:{action:"cuevana_ajax_pagination_estreno",page:n},success:function(e){t("#tabserie-2").empty(),t("#tabserie-2").append(e),i("cuevana-top-page"),t(".navigation a").removeAttr("href")}})}),t(document).on("click",".nav-cuevana-rating .nav-links .page-link",function(e){e.preventDefault(),page=r(t(this).clone()),console.log(page),t.ajax({url:peliPublic.url,type:"post",data:{action:"cuevana_ajax_pagination_rating",page:page},success:function(e){t("#tabserie-3").empty(),t("#tabserie-3").append(e),i("cuevana-top-page"),t(".navigation a").removeAttr("href")}})}),t(document).on("click",".nav-cuevana-rating .nav-links .next",function(e){e.preventDefault();var a=t(this).parent().find(".current").text(),n=parseInt(a)+parseInt(1);t.ajax({url:peliPublic.url,type:"post",data:{action:"cuevana_ajax_pagination_rating",page:n},success:function(e){t("#tabserie-3").empty(),t("#tabserie-3").append(e),i("cuevana-top-page"),t(".navigation a").removeAttr("href")}})}),t(document).on("click",".nav-cuevana-rating .nav-links .prev",function(e){e.preventDefault();var a=t(this).parent().find(".current").text(),n=parseInt(a)-parseInt(1);t.ajax({url:peliPublic.url,type:"post",data:{action:"cuevana_ajax_pagination_rating",page:n},success:function(e){t("#tabserie-3").empty(),t("#tabserie-3").append(e),i("cuevana-top-page"),t(".navigation a").removeAttr("href")}})}),t(document).on("click",".nav-cuevana-view .nav-links .page-link",function(e){e.preventDefault(),page=r(t(this).clone()),console.log(page),t.ajax({url:peliPublic.url,type:"post",data:{action:"cuevana_ajax_pagination_view",page:page},success:function(e){t("#tabserie-4").empty(),t("#tabserie-4").append(e),i("cuevana-top-page"),t(".navigation a").removeAttr("href")}})}),t(document).on("click",".nav-cuevana-view .nav-links .next",function(e){e.preventDefault();var a=t(this).parent().find(".current").text(),n=parseInt(a)+parseInt(1);t.ajax({url:peliPublic.url,type:"post",data:{action:"cuevana_ajax_pagination_view",page:n},success:function(e){t("#tabserie-4").empty(),t("#tabserie-4").append(e),i("cuevana-top-page"),t(".navigation a").removeAttr("href")}})}),t(document).on("click",".nav-cuevana-view .nav-links .prev",function(e){e.preventDefault();var a=t(this).parent().find(".current").text(),n=parseInt(a)-parseInt(1);t.ajax({url:peliPublic.url,type:"post",data:{action:"cuevana_ajax_pagination_view",page:n},success:function(e){t("#tabserie-4").empty(),t("#tabserie-4").append(e),i("cuevana-top-page"),t(".navigation a").removeAttr("href")}})}),t(window).width()>768&&(s("more_options")?4>parseInt(s("more_options"))&&(n("more_options",parseInt(s("more_options"))+1,1),t(".more-options, #mdl-help").show()):(n("more_options",1,1),t(".more-options, #mdl-help").show()))});