$(document).on("touchstart, click",".js-menu-button",function(){$(this).toggleClass("js-active");$(".header-content").toggleClass("js-active")});(function(){"use strict";var $,Animation,Carousel,Timer;$=jQuery;Timer=function(){function Timer(){}Timer.every=function(duration,callback){return setInterval(callback,duration)};Timer.after=function(duration,callback){return setTimeout(callback,duration)};Timer.clear=function(interval){return clearInterval(interval)};return Timer}();Animation=function(){function Animation(){}Animation.transitions={webkitTransition:"webkitTransitionEnd",mozTransition:"mozTransitionEnd",oTransition:"oTransitionEnd",transition:"transitionend"};Animation.transition=function($el){var el,result,type,_ref;el=$el[0];_ref=this.transitions;for(type in _ref){result=_ref[type];if(el.style[type]!=null){return result}}};Animation.execute=function($el,callback){var transition;transition=this.transition($el);if(transition!=null){return $el.one(transition,callback)}else{return callback()}};return Animation}();Carousel=function(){Carousel.defaults={cycle:5e3,active:"active"};function Carousel($el,settings){if(settings==null){settings={}}this.$el=$el;this.settings=$.extend({},Carousel.defaults,settings);if(!this.$active().length){this.$pages().first().toggleClass(this.settings.active);this.$previews().first().toggleClass(this.settings.active)}if(settings.cycle!=null){this.cycle();this.$el.on("mouseenter",$.proxy(this.pause,this));this.$el.on("mouseleave",$.proxy(this.cycle,this))}}Carousel.prototype.next=function(){return this.go("next")};Carousel.prototype.prev=function(){return this.go("prev")};Carousel.prototype.$fallback=function(direction){var method;method=function(){switch(direction){case"prev":return"last";case"next":return"first"}}();return this.$(".previews .preview")[method]()};Carousel.prototype.$previews=function(){return this.$(".previews .preview")};Carousel.prototype.$pages=function(){return this.$(".pages .page")};Carousel.prototype.$active=function(){return this.$(".previews .preview.active")};Carousel.prototype.cycle=function(){return this.timer!=null?this.timer:this.timer=Timer.every(this.settings.cycle,$.proxy(this.next||this.prev,this))};Carousel.prototype.pause=function(){if(this.timer){Timer.clear(this.timer)}return delete this.timer};Carousel.prototype.swap=function($active,$pending,direction,activated){var $pages,animating,callback,cycling,index;if(activated==null){activated=this.settings.active}cycling=this.interval;animating=""+direction+"ing";index=this.$previews().index($pending);$pages=this.$pages();$pending.addClass(direction);$pending.offset().position;$active.addClass(animating);$pending.addClass(animating);$pages.removeClass(activated);$($pages.get(index)).addClass(activated);callback=function(){$active.removeClass(activated).removeClass(animating);return $pending.addClass(activated).removeClass(animating).removeClass(direction)};return Animation.execute($active,callback)};Carousel.prototype.page=function(index){var $active,$pending,direction,existing;this.pause();$active=this.$active();$pending=this.$previews().eq(index);existing=this.$previews().index($active);direction=existing>index?"prev":"next";if($pending.is($active)){return}return this.swap($active,$pending,direction)};Carousel.prototype.go=function(direction){var $active,$pending;$active=this.$active();$pending=$active[direction]();if(!$pending.length){$pending=this.$fallback(direction)}if($pending.is($active)){return}return this.swap($active,$pending,direction)};Carousel.prototype.$=function(selector){return this.$el.find(selector)};return Carousel}();$.fn.extend({carousel:function(option){if(option==null){option={}}return this.each(function(){var $this,action,data,options,page;$this=$(this);data=$this.data("carousel");options=$.extend({},$.fn.carousel.defaults,typeof option==="object"&&option);action=typeof option==="string"?option:option.action;if(typeof options!=="string"){page=option.page}if(data==null){$this.data("carousel",data=new Carousel($this,options))}if(action!=null){data[action]()}if(page!=null){return data.page(options.page)}})}});$(document).on("click.carousel","[data-action],[data-page]",function(event){var $target,$this,options;$this=$(this);$target=$this.closest(".carousel");if(!$target.length){return}event.preventDefault();event.stopPropagation();options=$.extend({},$target.data(),$this.data());return $target.carousel(options)})}).call(this);$(".showShoutboxMenu").click(function(){if($(".shoutboxMessages").is(":visible")){$(".shoutboxMessages").hide();$(".shoutboxUserOnline").fadeIn();$(".showShoutboxMenu i").removeClass("fa-info-circle").addClass("fa-times")}else{$(".shoutboxMessages").fadeIn();$(".shoutboxUserOnline").hide();$(".showShoutboxMenu i").removeClass("fa-times").addClass("fa-info-circle")}});var shoutbox={status:{state:"init"},init:function(rank,sound){shoutbox.last=0;shoutbox.sound=sound;shoutbox.rank=rank},updatePosts:function(){if(!(shoutbox.status.state==="updating posts.")){shoutbox.status.state="updating posts.";if($(".shoutboxBody").is(":visible")){$.ajax({type:"POST",url:"/ajax/getLastPost",dataType:"json",data:{last:shoutbox.last},success:function(data){if(data.status){$.each(data.posts,function(i,v){if(window.location.hostname!="anicloud.io"){v.message=v.message.replace(/(https?:\/\/)(www\.)?(anicloud\.io)/g,"$1"+"s.to")}if(shoutbox.rank==3){$(".shoutboxMessages").prepend('
Profilbild '+v.username+', Avatar
"+v.rank+" "+v.username+"

"+v.message+'

')}else if(shoutbox.rank==2){$(".shoutboxMessages").prepend('
Profilbild '+v.username+', Avatar
"+v.rank+" "+v.username+"

"+v.message+'

')}else{$(".shoutboxMessages").prepend('
Profilbild '+v.username+', Avatar
"+v.rank+" "+v.username+"

"+v.message+"

")}if(shoutbox.sound===1&&shoutbox.last!=0){var audio=new Audio("https://zrt5351b7er9.static-webarchive.org/sound/message_received.mp3");audio.play()}});shoutbox.last=data.lastPostID}$.each(data.hideposts,function(i,v){$('.shoutboxMessage[data-entry="'+parseInt(v)+'"]').remove()});shoutbox.timeout1=setTimeout(function(){shoutbox.updatePosts()},5e3);shoutbox.status.state="post loaded."}})}else{shoutbox.status.state="failed updating posts.";shoutbox.timeout1=setTimeout(function(){shoutbox.updatePosts()},5e3)}}else{shoutbox.timeout1=setTimeout(function(){shoutbox.updatePosts()},1e3)}},createPost:function(){text=$.trim($("#shoutboxMessage").val());if(window.location.hostname!="anicloud.io"){text=text.replace(/(https?:\/\/)(www\.)?(anicloud\.io)/g,"$1"+"anicloud.io")}$("#shoutboxMessage").val($("#shoutboxMessage").val().replace("\r\n",""));if(text.length>=2){if(text.length<=600){text=encodeURIComponent(text);if(text!=shoutbox.lastPost){shoutbox.lastPost=text;shoutbox.ajax=$.ajax({url:"/ajax/createShoutboxPost",data:{message:text},type:"post",dataType:"json",success:function(data){if(data.status[0]==true){shoutbox.updatePosts();$("#shoutboxMessage").val("")}else{notification("Fehler: "+data.status[1],"fa-info","bouncyflip",1500);$("#shoutboxStatus").html("Fehler: "+data.status[1])}}})}else $("#shoutboxStatus").html("Doppelter Post")}else $("#shoutboxStatus").html("Dein Post ist zu lang.")}else $("#shoutboxStatus").html("Dein Post sollte mindestens 2 Zeichen haben.");clearTimeout(shoutbox.timeout1);return shoutbox.timeout1=setTimeout(function(){shoutbox.updatePosts()},5e3);return false},deletePost:function(id){$.ajax({type:"POST",url:"/ajax/deleteShoutboxPost",dataType:"json",data:{id:id},success:function(data){data.status==true?$('[data-entry="'+id+'"]').hide(200):$("#shoutboxStatus").html("Fehler.")}})},banUser:function(userid){var confirmUserBan=confirm("Diesen User bannen?");if(confirmUserBan){$.ajax({type:"POST",url:"/ajax/banShoutboxUser",dataType:"json",data:{userid:userid},success:function(data){if(data.status==1){}else if(data.status==2){}else{$("#shoutboxStatus").html("Fehler.")}}})}},muteUser:function(userID){var confirmUserBan=confirm("Diesen User muten?");if(confirmUserBan){var muteTime=prompt("Bitte Mute-Zeit angeben (z.B. 0d 0h)","0d 3h");if(muteTime==null){return false}var userID=prompt("UserID (optional)",userID);if(userID==null){return false}$.ajax({type:"POST",url:"/ajax/muteShoutboxUser",dataType:"json",data:{userID:userID,time:muteTime},success:function(data){notification(data.status?"Der User wurde erfolgreich gemutet.":"Es ist ein Fehler aufgetreten.","fa-info","bouncyflip",1500)}})}},enter:function(e){e=window.event||e;charCode=e.charCode||e.which;ctrl=e.ctrlKey;if(charCode==13&&!ctrl){shoutbox.createPost();return false}return true}};function insert_smiley(element,name){elem=document.getElementById(name),elem.focus(),document.selection?document.selection.createRange().text=" "+e+" ":window.getSelection?elem.value=elem.value.slice(0,elem.selectionStart)+" "+element+" "+elem.value.slice(elem.selectionEnd,elem.textLength):elem.value+=" "+element+" "}function notification(message,icon,effect,time){if($(".liveNotificationContainer")[0]){}else{$(".main-header").after('
')}var timestamp=(new Date).getTime();var randNumber=Math.floor(Math.random()*1e6+1);$(".liveNotificationContainer").append(''+'

'+message+"

"+'
')}spoiler=function(e,link,active,inactive){if(typeof active=="undefined")active="";if(typeof inactive=="undefined")inactive="";if(typeof link=="undefined")link=$();if(e.css("display")=="none"){e.show(100);link.text(inactive)}else{e.hide(100);link.text(active)}};function sortLanguage(){if($('.hosterSiteVideo ul li[data-lang-key="1"]').length>0){$('.hosterSiteVideo ul li[data-lang-key="1"]').show();$('.hosterSiteVideo ul li[data-lang-key!="1"]').hide();$('.changeLanguageBox img[data-lang-key="1"]').addClass("selectedLanguage");$('.changeLanguageBox img[data-lang-key!="1"]').removeClass("selectedLanguage")}else if($('.hosterSiteVideo ul li[data-lang-key="3"]').length>0){$('.hosterSiteVideo ul li[data-lang-key="3"]').show();$('.hosterSiteVideo ul li[data-lang-key!="3"]').hide();$('.changeLanguageBox img[data-lang-key="3"]').addClass("selectedLanguage");$('.changeLanguageBox img[data-lang-key!="3"]').removeClass("selectedLanguage")}else if($('.hosterSiteVideo ul li[data-lang-key="2"]').length>0){$('.hosterSiteVideo ul li[data-lang-key="2"]').show();$('.hosterSiteVideo ul li[data-lang-key!="2"]').hide();$('.changeLanguageBox img[data-lang-key="2"]').addClass("selectedLanguage");$('.changeLanguageBox img[data-lang-key!="2"]').removeClass("selectedLanguage")}else{$(".changeLanguageBox").after("Derzeit keine Streams für diese Episode verfügbar. Versuche es später noch einmal oder frage in der Shoutbox etc. nach ;)

")}}sortLanguage();$(".changeLanguageBox img").click(function(){currentLanguage=$(this).attr("data-lang-key");$(this).addClass("selectedLanguage");$('.changeLanguageBox img[data-lang-key!="'+currentLanguage+'"]').removeClass("selectedLanguage");switch(currentLanguage){case"1":langKey=1;break;case"2":langKey=2;break;case"3":langKey=3;break}$('.hosterSiteVideo ul li[data-lang-key="'+langKey+'"]').show();$('.hosterSiteVideo ul li[data-lang-key!="'+langKey+'"]').hide();checkInlinePlayer()});function markAsWatched(){episodeID=$(".hosterSiteTitle").data("episode-id");$.ajax({type:"POST",url:"/ajax/lastseen",data:{episode:episodeID},success:function(response){}})}$(".generateInlinePlayer").click(function(event){var linkTarget=$(this).parent().attr("data-link-target");var hosterTarget=$(this).parent().attr("data-external-embed");event.preventDefault();if(hosterTarget=="true"){$(".fakePlayer").css("display","block");$(".inSiteWebStream").css("display","inline-block").find("iframe").css("display","none");$(".inSiteWebStream .originalLinkTarget").attr("href",linkTarget+"?original=1");episodeID=$(".hosterSiteTitle").data("episode-id")}else{$(".fakePlayer").css("display","none");$(".inSiteWebStream").css("display","inline-block").find("iframe").attr("src",linkTarget).css("display","inline-block");episodeID=$(".hosterSiteTitle").data("episode-id")}var watchEpisode=setTimeout(function(){markAsWatched()},1e3*60*2)});function checkInlinePlayer(){if($(".generateInlinePlayer:visible:eq(0)").length>0){$(".generateInlinePlayer:visible:eq(0)").trigger("click")}else{$(".inSiteWebStream").hide()}}checkInlinePlayer();function goToByScroll(id){id=id.replace("link","");$("html,body").animate({scrollTop:$("#"+id).offset().top},"slow")}$(".add-series-button").click(function(){goToByScroll("stream")});$(".hiddenArea").click(function(){$(this).parent().parent().addClass("showHiddenArea");$(this).css("display","none")});function createCookie(name,value,days){if(days){var date=new Date;date.setTime(date.getTime()+days*24*60*60*1e3);var expires="; expires="+date.toGMTString()}else var expires="";document.cookie=name+"="+value+expires+"; path=/";return null}function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i')}if(window.screen.availWidth<1100){$(".SeriesSection").hide();$("#hideSeriesDetails").html('Infos anzeigen ')}$("#hideSeriesDetails").click(function(){$(".SeriesSection").slideToggle(300);createCookie("seriesinfo",1,7);if($(this).html()=='Infos anzeigen '){$(this).html('Infos verstecken ');eraseCookie("seriesinfo")}else{$(this).html('Infos anzeigen ')}});$(document).ready(function(){$(".shoutbox .shoutboxHeader").click(function(){if($(".shoutboxBody").is(":visible")){$(".shoutboxBody").hide();$(".shoutboxHeader .fas.fa-arrow-circle-down").removeClass("fa-arrow-circle-down").addClass("fa-arrow-circle-up");eraseCookie("displayShoutbox")}else{$(".shoutboxBody").fadeIn();$(".shoutboxHeader .fas.fa-arrow-circle-up").removeClass("fa-arrow-circle-up").addClass("fa-arrow-circle-down");shoutbox.updatePosts();createCookie("displayShoutbox",1,7)}})});if(readCookie("displayShoutbox")==1){$(".shoutboxBody").fadeIn();$(".shoutboxHeader .fas.fa-arrow-circle-up").removeClass("fa-arrow-circle-up").addClass("fa-arrow-circle-down");shoutbox.updatePosts()}if(window.screen.availWidth<1100){$(".SeriesSection").hide();$("#hideSeriesDetails").html('Infos anzeigen ')}function dialog(title){var dlgtrigger=document.querySelector("[data-dialog]"),title=document.getElementById(dlgtrigger.getAttribute("data-dialog")),dlg=new DialogFx(title);dlgtrigger.addEventListener("click",dlg.toggle.bind(dlg))}(function(k){function E(a,b,e){var c=a[0],f=/er/.test(e)?"indeterminate":/bl/.test(e)?"disabled":"checked",d="update"==e?{checked:c.checked,disabled:c.disabled,indeterminate:"true"==a.attr("indeterminate")||"false"==a.attr("determinate")}:c[f];if(/^(ch|di|in)/.test(e)&&!d)B(a,f);else if(/^(un|en|de)/.test(e)&&d)v(a,f);else if("update"==e)for(var l in d)d[l]?B(a,l,!0):v(a,l,!0);else b&&"toggle"!=e||(b||a.trigger("ifClicked"),d?"radio"!==c.type&&v(a,f):B(a,f))}function B(a,b,e){var c=a[0],f=a.parent(),d="checked"==b,l="indeterminate"==b,t="disabled"==b,u=l?"determinate":d?"unchecked":"enabled",x=q(a,u+C(c.type)),y=q(a,b+C(c.type));if(!0!==c[b]){if(!e&&"checked"==b&&"radio"==c.type&&c.name){var z=a.closest("form"),r='input[name="'+c.name+'"]';r=z.length?z.find(r):k(r);r.each(function(){this!==c&&k(this).data("iCheck")&&v(k(this),b)})}l?(c[b]=!0,c.checked&&v(a,"checked","force")):(e||(c[b]=!0),d&&c.indeterminate&&v(a,"indeterminate",!1));I(a,d,b,e)}c.disabled&&q(a,"cursor",!0)&&f.find(".iCheck-helper").css("cursor","default");f.addClass(y||q(a,b)||"");f.attr("role")&&!l&&f.attr("aria-"+(t?"disabled":"checked"),"true");f.removeClass(x||q(a,u)||"")}function v(a,b,e){var c=a[0],f=a.parent(),d="checked"==b,l="indeterminate"==b,t="disabled"==b,u=l?"determinate":d?"unchecked":"enabled",x=q(a,u+C(c.type)),y=q(a,b+C(c.type));if(!1!==c[b]){if(l||!e||"force"==e)c[b]=!1;I(a,d,u,e)}!c.disabled&&q(a,"cursor",!0)&&f.find(".iCheck-helper").css("cursor","pointer");f.removeClass(y||q(a,b)||"");f.attr("role")&&!l&&f.attr("aria-"+(t?"disabled":"checked"),"false");f.addClass(x||q(a,u)||"")}function J(a,b){a.data("iCheck")&&(a.parent().html(a.attr("style",a.data("iCheck").s||"")),b&&a.trigger(b),a.off(".i").unwrap(),k('label[for="'+a[0].id+'"]').add(a.closest("label")).off(".i"))}function q(a,b,e){if(a.data("iCheck"))return a.data("iCheck").o[b+(e?"":"Class")]}function C(a){return a.charAt(0).toUpperCase()+a.slice(1)}function I(a,b,e,c){c||(b&&a.trigger("ifToggled"),a.trigger("change").trigger("ifChanged").trigger("if"+C(e)))}var G=/ip(hone|od|ad)|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&1r&&(r=-50);f(this);return c.each(function(){var g=k(this);J(g);var m=this,H=m.id,F=-r+"%",w=100+2*r+"%";w={position:"absolute",top:F,left:F,display:"block",width:w,height:w,margin:0,padding:0,background:"#fff",border:0,opacity:0};F=G?{position:"absolute",visibility:"hidden"}:r?w:{position:"absolute",opacity:0};var M="checkbox"==m.type?d.checkboxClass||"icheckbox":d.radioClass||"iradio",D=k('label[for="'+H+'"]').add(g.closest("label")),K=!!d.aria,L="iCheck-"+Math.random().toString(36).substr(2,6),h='
").trigger("ifCreated").parent().append(d.insert);w=k('').css(w).appendTo(h);g.data("iCheck",{o:d,s:g.attr("style")}).css(F);d.inheritClass&&h.addClass(m.className||"");d.inheritID&&H&&h.attr("id","iCheck-"+H);"static"==h.css("position")&&h.css("position","relative");E(g,!0,"update");if(D.length)D.on("click.i mouseover.i mouseout.i touchbegin.i touchend.i",function(p){var n=p.type,A=k(this);if(!m.disabled){if("click"==n){if(k(p.target).is("a"))return;E(g,!1,!0)}else y&&(/ut|nd/.test(n)?(h.removeClass(t),A.removeClass(z)):(h.addClass(t),A.addClass(z)));if(G)p.stopPropagation();else return!1}});g.on("click.i focus.i blur.i keyup.i keydown.i keypress.i",function(p){var n=p.type;p=p.keyCode;if("click"==n)return!1;if("keydown"==n&&32==p)return"radio"==m.type&&m.checked||(m.checked?v(g,"checked"):B(g,"checked")),!1;if("keyup"==n&&"radio"==m.type)!m.checked&&B(g,"checked");else if(/us|ur/.test(n))h["blur"==n?"removeClass":"addClass"](u)});w.on("click mousedown mouseup mouseover mouseout touchbegin.i touchend.i",function(p){var n=p.type,A=/wn|up/.test(n)?x:t;if(!m.disabled){if("click"==n)E(g,!1,!0);else if(/wn|er|in/.test(n)?h.addClass(A):h.removeClass(A+" "+x),D.length&&y&&A==t)D[/ut|nd/.test(n)?"removeClass":"addClass"](z);if(G)p.stopPropagation();else return!1}})})}})(window.jQuery||window.Zepto);$(document).ready(function(){$("input.icheckbox").iCheck({checkboxClass:"icheckbox_square-blue",radioClass:"iradio_square-blue",increaseArea:"20%"});$(".jqueryTabs").tabs();$(".jqueryTabsWithSelection").tabs({active:2})});(function(e){e.fn.extend({slimScroll:function(g){var a=e.extend({width:"auto",height:"100%",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"0px",railBorderRadius:"7px"},g);this.each(function(){function v(d){if(r){d=d||window.event;var c=0;d.wheelDelta&&(c=-d.wheelDelta/120);d.detail&&(c=d.detail/3);e(d.target||d.srcTarget||d.srcElement).closest("."+a.wrapperClass).is(b.parent())&&m(c,!0);d.preventDefault&&!k&&d.preventDefault();k||(d.returnValue=!1)}}function m(d,e,g){k=!1;var f=d,h=b.outerHeight()-c.outerHeight();e&&(f=parseInt(c.css("top"))+d*parseInt(a.wheelStep)/100*c.outerHeight(),f=Math.min(Math.max(f,0),h),f=0=b.outerHeight()?k=!0:(c.stop(!0,!0).fadeIn("fast"),a.railVisible&&h.stop(!0,!0).fadeIn("fast"))}function p(){a.alwaysVisible||(B=setTimeout(function(){a.disableFadeOut&&r||y||z||(c.fadeOut("slow"),h.fadeOut("slow"))},1e3))}var r,y,z,B,A,u,l,C,k=!1,b=e(this);if(b.parent().hasClass(a.wrapperClass)){var n=b.scrollTop(),c=b.closest("."+a.barClass),h=b.closest("."+a.railClass);x();if(e.isPlainObject(g)){if("height"in g&&"auto"==g.height){b.parent().css("height","auto");b.css("height","auto");var q=b.parent().parent().height();b.parent().css("height",q);b.css("height",q)}if("scrollTo"in g)n=parseInt(a.scrollTo);else if("scrollBy"in g)n+=parseInt(a.scrollBy);else if("destroy"in g){c.remove();h.remove();b.unwrap();return}m(n,!1,!0)}}else if(!(e.isPlainObject(g)&&"destroy"in g)){a.height="auto"==a.height?b.parent().height():a.height;n=e("
").addClass(a.wrapperClass).css({position:"relative",overflow:"hidden",width:a.width,height:a.height});b.css({overflow:"hidden",width:a.width,height:a.height});var h=e("
").addClass(a.railClass).css({width:a.size,height:"100%",position:"absolute",top:0,display:a.alwaysVisible&&a.railVisible?"block":"none","border-radius":a.railBorderRadius,background:a.railColor,opacity:a.railOpacity,zIndex:90}),c=e("
").addClass(a.barClass).css({background:a.color,width:a.size,position:"absolute",top:0,opacity:a.opacity,display:a.alwaysVisible?"block":"none","border-radius":a.borderRadius,BorderRadius:a.borderRadius,MozBorderRadius:a.borderRadius,WebkitBorderRadius:a.borderRadius,zIndex:99}),q="right"==a.position?{right:a.distance}:{left:a.distance};h.css(q);c.css(q);b.wrap(n);b.parent().append(c);b.parent().append(h);a.railDraggable&&c.bind("mousedown",function(a){var b=e(document);z=!0;t=parseFloat(c.css("top"));pageY=a.pageY;b.bind("mousemove.slimscroll",function(a){currTop=t+a.pageY-pageY;c.css("top",currTop);m(0,c.position().top,!1)});b.bind("mouseup.slimscroll",function(a){z=!1;p();b.unbind(".slimscroll")});return!1}).bind("selectstart.slimscroll",function(a){a.stopPropagation();a.preventDefault();return!1});h.hover(function(){w()},function(){p()});c.hover(function(){y=!0},function(){y=!1});b.hover(function(){r=!0;w();p()},function(){r=!1;p()});b.bind("touchstart",function(a,b){a.originalEvent.touches.length&&(A=a.originalEvent.touches[0].pageY)});b.bind("touchmove",function(b){k||b.originalEvent.preventDefault();b.originalEvent.touches.length&&(m((A-b.originalEvent.touches[0].pageY)/a.touchScrollStep,!0),A=b.originalEvent.touches[0].pageY)});x();"bottom"===a.start?(c.css({top:b.outerHeight()-c.outerHeight()}),m(0,!0)):"top"!==a.start&&(m(e(a.start).position().top,null,!0),a.alwaysVisible||c.hide());window.addEventListener?(this.addEventListener("DOMMouseScroll",v,!1),this.addEventListener("mousewheel",v,!1)):document.attachEvent("onmousewheel",v)}});return this}});e.fn.extend({slimscroll:e.fn.slimScroll})})(jQuery);(function($){$.searchbox={};$.extend(true,$.searchbox,{settings:{url:"/search",param:"query",dom_id:"#results",delay:100,loading_css:"#loading"},loading:function(){$($.searchbox.settings.loading_css).show()},resetTimer:function(timer){if(timer)clearTimeout(timer)},idle:function(){$($.searchbox.settings.loading_css).hide()},process:function(terms){var path=$.searchbox.settings.url.split("?"),query=[$.searchbox.settings.param,"=",terms].join(""),base=path[0],params=path[1],query_string=query;if(params)query_string=[params.replace("&","&"),query].join("&");$(".searchLoadingIndicator").show();$(".liveSearchResults").show();$.get([base,"?",query_string].join(""),function(data){$($.searchbox.settings.dom_id).empty();$.each(data,function(i,v){$($.searchbox.settings.dom_id).append('
  • Cover '+v.name+', Stream, Poster

    '+v.name+" "+v.productionYear+"

    "+v.description+"

  • ")})});setTimeout(function(){$(".searchLoadingIndicator").hide()},800)},start:function(){$(document).trigger("before.searchbox");$.searchbox.loading()},stop:function(){$.searchbox.idle();$(document).trigger("after.searchbox")}});$.fn.searchbox=function(config){var settings=$.extend(true,$.searchbox.settings,config||{});$(document).trigger("init.searchbox");$.searchbox.idle();return this.each(function(){var $input=$(this);$input.focus().ajaxStart(function(){$.searchbox.start()}).ajaxStop(function(){$.searchbox.stop()}).keyup(function(){if($input.val()!=this.previousValue){$.searchbox.resetTimer(this.timer);this.timer=setTimeout(function(){$.searchbox.process($input.val())},$.searchbox.settings.delay);this.previousValue=$input.val()}})})}})(jQuery);$(".menuSearch").click(function(){$("#wrapper .searchContainerArea").length==0?$(".main-header").after('
      '):null;$(".searchContainerArea").fadeIn(300);$("#inputSearch").searchbox({url:"/ajax/seriesSearch",param:"keyword",dom_id:"#searchAutocomplete",delay:250,loading_css:".searchLoadingIndicator"});$("#inputSearch").click(function(){$(".liveSearchResults").show()});$(".searchContainer .liveSearchResults").show();$("#searchAutocomplete").slimscroll({size:"10px"})});eval(atob(''));$(document).mouseup(function(e){var container=$(".liveSearchResults");if(!container.is(e.target)&&container.has(e.target).length===0){container.hide();$(".searchLoadingIndicator").hide()}});var chat={status:{state:"init"},init:function(){chat.loadChats();updateChat=setTimeout(function(){chat.updateChatList()},15e3);var getUrlParameter=function getUrlParameter(sParam){var sPageURL=decodeURIComponent(window.location.search.substring(1)),sURLVariables=sPageURL.split("&"),sParameterName,i;for(i=0;i'+''+'"+'
      ');$("#newChat").keypress(function(e){if(e.which==13){chat.securityCheck()}});$.ajax({type:"POST",url:"/ajax/initChat",dataType:"json",data:{status:1},success:function(data){if(!(data.messages===undefined)||data.messages!=0){$.each(data.chats,function(i,v){if(v.user.length>1){var chatUserCounter=v.user.length;chatUsername=v.user[0].username+", ...";fullChatList="";$.each(v.user,function(i,u){fullChatList=fullChatList+u["username"];if(v.user[i+1]){fullChatList=fullChatList+", "}});if(v.user.length>4){chatPicture='
      '+chatUserCounter+"+
      "}else{if(chatUserCounter==3){chatPicture='
      '}else if(chatUserCounter==2){chatPicture='
      '}else{chatPicture='
      '}}}else{if(v.user.length!=0){chatPicture='';chatUsername=v.user[0].username}}if(v.user.length!=0){$(".newChat.row").after('
    • '+chatPicture+'"+""+chatUsername+""+"

      "+v.message+"

      "+"
    • ").attr("data-last-chat",v.id)}});$(".messagesList").attr("data-last-chat",data.lastChatID);autoLoadChat=typeof data.chats[0]["id"]!=="undefined"?data.chats[0]["id"]:false;autoLoadHash=typeof location.hash.substr(1)!=="undefined"?location.hash.substr(1):false;if(autoLoadHash!==""){chat.loadMessages(autoLoadHash)}else if(autoLoadChat!==false){chat.loadMessages(data.lastChatMessageChatID);$('.messagesList li[data-chat-id="'+data.lastChatMessageChatID+'"]').addClass("active")}}},error:function(){$(".mediaBody").html("Kontakte konnten leider nicht geladen werden.")}})},loadMoreMessages:function(){$(".loadMoreMessages").removeClass("blue").addClass("grey");var firstMessageID=$(".mediaBodyMessage:last").attr("data-message-id");var chatID=$(".mediaBody .createNewMessage .mediaBodyMessageNew").attr("data-chat-id");$.ajax({type:"POST",url:"/ajax/getMessageHistory",dataType:"json",data:{chat:chatID,first:firstMessageID},success:function(data){if(data.messages===undefined||data.messages==0){$(".loadMoreMessages").fadeOut(500)}else{var id;$.each(data.messages,function(i,message){id=i;seenStatus="";if(message.float_style===" right"){if(message.display_message==="seen"){seenStatus=''}else{seenStatus=''}}if(window.location.hostname!="anicloud.io"){message.message=message.message.replace(/(https?:\/\/)(www\.)?(anicloud\.io)/g,"$1"+"anicloud.io")}$(".mediaBody .messages").append('
      Profilbild '+message.username+''+message.username+"
      "+'
      '+'

      '+message.message+''+message.date+"

      "+seenStatus+"
      ")});$(".loadMoreMessages").removeClass("grey").addClass("blue")}}})},updateChatList:function(){lastChat=$(".messagesList").attr("data-last-chat");$.ajax({type:"POST",dataType:"json",url:"/ajax/updateChatList",data:{last:lastChat},success:function(data){if(!(data.chats===undefined)||data.chats!=0){$.each(data.chats,function(i,v){if(v.user.length>0){if(v.user.length>1){var chatUserCounter=v.user.length;chatUsername=v.user[0].username+", ...";if(v.user.length>4){chatPicture='
      '+chatUserCounter+"+
      "}else{if(chatUserCounter==3){chatPicture='
      '}else if(chatUserCounter==2){chatPicture='
      '}else{chatPicture='
      '}}}else{chatPicture='';chatUsername=v.user[0].username}$(".newChat.row").after('
    • '+chatPicture+'"+""+chatUsername+""+"

      "+v.message+"

      "+"
    • ").attr("data-last-chat",v.id)}});$(".messagesList").attr("data-last-chat",data.lastChatID)}}})},loadMessages:function(chatid){$(".loadMoreMessages").remove();$(".mediaBody").append('
      weitere Nachrichten laden
      ');$(".messagesList li").removeClass("active");$('.messagesList li[data-chat-id="'+chatid+'"]').addClass("active");$.ajax({type:"POST",url:"/ajax/getMessages",data:{chatid:chatid},dataType:"json",success:function(data){if(!(data.messages===undefined)||data.messages!=0){$(".mediaBody").hide();$(".mediaBody .messages").empty();$(".mediaBody .createNewMessage .mediaBodyMessageNew").attr("data-chat-id",chatid);$('.messagesList [data-chat-id="'+chatid+'"] p strong').contents().unwrap();$.each(data.messages,function(i,message){seenStatus="";if(message.float_style===" right"){if(message.display_message==="seen"){seenStatus=''}else{seenStatus=''}}if(window.location.hostname!="anicloud.io"){message.message=message.message.replace(/(https?:\/\/)(www\.)?(anicloud\.io)/g,"$1"+"anicloud.io")}$(".mediaBody .messages").prepend('
      '+''+''+""+''+message.username+"
      "+'
      '+'
      '+'

      '+message.message+''+message.date+"

      "+seenStatus+"
      "+"
      "+"
      ").attr("data-last-chat-message",message.id)});$(".mediaBody").effect("slide",300)}},error:function(){$(".mediaBody .messages").html("Nachrichten konnten nicht geladen werden.")}});chat.checkStatus()},checkStatus:function(){clearTimeout(chat.timeout1);chat.timeout1=setTimeout(function(){chat.updateMessages()},4e3)},updateMessages:function(){lastMessage=$(".mediaBody .messages").attr("data-last-chat-message");chatID=$(".mediaBody .createNewMessage .mediaBodyMessageNew").attr("data-chat-id");if(!(chat.status.state==="updating messages.")){chat.status.state="updating messages.";$.ajax({type:"POST",url:"/ajax/getNewMessages",dataType:"json",data:{chat:chatID,last:lastMessage},success:function(data){if(typeof data.messages!="undefined"&&data.messages.length>0){var id;$.each(data.messages,function(i,message){id=i;seenStatus="";if(message.float_style===" right"){if(message.display_message==="seen"){seenStatus=''}else{seenStatus=''}}if(window.location.hostname!="anicloud.io"){message.message=message.message.replace(/(https?:\/\/)(www\.)?(anicloud\.io)/g,"$1"+"anicloud.io")}$(".mediaBody .messages").attr("data-last-chat-message",message.id).prepend('");$('.mediaBodyMessage[data-message-id="'+message.id+'"]').fadeIn(500)});chatListMessage=data.messages[id].message;if(chatID!=$(".mediaBodyMessageNew").attr("data-chat-id")){$('.messagesList li[data-chat-id="'+chatID+'"] p').html(""+chatListMessage.substring(0,8)+"..."+"")}}chat.timeout1=setTimeout(function(){chat.updateMessages()},1e4);chat.status.state="messages loaded."}})}else{chat.timeout1=setTimeout(function(){chat.updateMessages()},2e3)}},sendMessage:function(){if($(".mediaBodyMessageNew button").hasClass("disabled")){return false}$(".mediaBodyMessageNew button").addClass("disabled");chatID=$(".mediaBody .createNewMessage .mediaBodyMessageNew").attr("data-chat-id");message=$("#message").val();if(window.location.hostname!="anicloud.io"){message=message.replace(/(https?:\/\/)(www\.)?(anicloud\.io)/g,"$1"+"anicloud.io")}$.ajax({type:"POST",dataType:"json",url:"/ajax/newMessage",data:{chat:chatID,message:message},success:function(data){$("#message").val("");clearTimeout(chat.timeout1);chat.updateMessages();chat.checkStatus();$(".mediaBodyMessageNew button").removeClass("disabled")}})},securityCheck:function(){grecaptcha.reset();$(".security").slideDown(200,function(){$("html, body").delay("200").animate({scrollTop:$(this).offset().top-111},200)})},newChat:function(roboterToken){username=$("#newChat").val();$.ajax({type:"POST",dataType:"json",url:"/ajax/newChat",data:{username:username,token:roboterToken},success:function(data){if(data[0]===true){$("#newChat").css("background","#ffffff");chat.updateChatList();newChatID=data[1];chat.loadMessages(data[1]);$(".messagesList li").removeClass("active");setTimeout(function(){$('.messagesList [data-chat-id="'+newChatID+'"]').addClass("active")},400);$("#newChat").val("");grecaptcha.reset()}else{notification(data[1],"fa-info-circle","bouncyflip",10);$("#newChat").css("background","#FFEAEA")}},error:function(){$("#newChat").css("background","#FFEAEA")}})},archive:function(){chatID=$(".mediaBodyMessageNew").attr("data-chat-id");var confirmArchiveChat=confirm("Diese Unterhaltung archivieren/verstecken, bis eine neue Nachricht eintrifft?");if(confirmArchiveChat){$.ajax({type:"POST",dataType:"json",url:"/ajax/chatArchive",data:{chatID:chatID},success:function(data){$(".mediaBody").hide(500);$('.messagesList li[data-chat-id="'+chatID+'"]').hide(500)},error:function(){notification("Unterhaltung konnte nicht archiviert werden :(","fa-info-circle","bouncyflip",120)}})}}};$(".liveNewsFeedButton").click(function(){if($(".liveNewsFeedSection").attr("data-active-status")==1){$(".liveNewsFeedSection").fadeOut(200).attr("data-active-status",0)}else{$.ajax({dataType:"json",type:"POST",url:"/ajax/impression",data:{type:1},success:function(data){notificationFeed.count=0;$(".liveNewsFeedButton span").text(notificationFeed.count);$(".liveNewsFeedSectionHeader span").text(notificationFeed.count);if(notificationFeed.count>0){$(".liveNewsFeedButton").addClass("liveNewsFeedButtonActive")}else{$(".liveNewsFeedButton").removeClass("liveNewsFeedButtonActive")}}});$(".liveNewsFeedSection").fadeIn(200);$(".liveNewsFeedSection").attr("data-active-status",1)}});$(document).ready(function(){$(".dd").on("click mouseover",function(){$(".dd .modal").fadeIn(200)});$("body,html").click(function(e){$(".dd .modal").hide()})});$(".submitNewEpisodeTitle").click(function(){$(".descriptionSpoilerLink").hide();$(".submitNewDescription").hide();$(".submitNewEpisodeTitle").hide();$(".hostSeriesTitle").attr("data-episode-edit-modus",1);$(".episodeGermanTitle").html('Deutscher Titel: ');$(".episodeEnglishTitle").html('Englischer Titel: ');if($("em").hasClass("descriptionSpoilerPlaceholder")){$(".descriptionSpoilerPlaceholder").prepend().html('Beschreibung (optional):');$(".descriptionSpoilerPlaceholder").after('');$(".descriptionSpoilerPlaceholder").after('')}else{$(".descriptionSpoiler").html('Beschreibung (optional):").show();$(".descriptionSpoiler").append('');$(".descriptionSpoiler").append('')}$(".buttonSaveEditEpisodeAction").click(function(){germanTitle=$(".episodeGermanTitle input").val();englishTitle=$(".episodeEnglishTitle input").val();description=$(".descriptionTag").val();episodeID=$(".hosterSiteTitle").attr("data-episode-id");if(germanTitle==""){germanTitle="N/A"}if(englishTitle==""){englishTitle="N/A"}if(description==""){description="N/A"}$.ajax({type:"POST",url:"/ajax/editepisode",data:{episode:episodeID,german:germanTitle,english:englishTitle,description:description},success:function(result){if(result.status==true){notification("Vielen Dank. Die Daten werden jetzt geprüft.","fa-info-circle","bouncyflip",10);$(".buttonSaveEditEpisodeAction, .buttonCloseEditEpisodeAction").remove();$(".descriptionSpoiler").html($(".descriptionSpoiler").text().trim());$(".editEpisodeMode, .descriptionSpoilerLink, .editEpisodeMode").show();$(".episodeGermanTitle").html($(".episodeGermanTitle input").val());$(".episodeEnglishTitle").html($(".episodeEnglishTitle input").val());if($("em").hasClass("descriptionSpoilerPlaceholder")){$(".descriptionSpoilerPlaceholder").text($(".descriptionSpoilerPlaceholder textarea.alternativeTitles").remove(100));$(".descriptionSpoilerPlaceholder").text($(".descriptionSpoilerPlaceholder textarea").val())}}else{notification("Oh! Es ist ein Fehler aufgetreten :(","fa-info-circle","bouncyflip",10)}}});$(".submitNewDescription").show();$(".submitNewEpisodeTitle").show()});$(".buttonCloseEditEpisodeAction").click(function(){$(".buttonSaveEditEpisodeAction, .buttonCloseEditEpisodeAction").remove();$(".descriptionSpoiler").html($(".descriptionSpoiler").text().trim());$(".editEpisodeMode, .descriptionSpoilerLink, .editEpisodeMode").show();$(".episodeGermanTitle").html($(".episodeGermanTitle input").val());$(".episodeEnglishTitle").html($(".episodeEnglishTitle input").val());if($("em").hasClass("descriptionSpoilerPlaceholder")){$(".descriptionSpoilerPlaceholder").text($(".descriptionSpoilerPlaceholder textarea.alternativeTitles").remove(100));$(".descriptionSpoilerPlaceholder").text($(".descriptionSpoilerPlaceholder textarea").val())}})});$(".submitNewDescription").click(function(){var description=$(".descriptionSpoiler").text().trim();$(".descriptionSpoilerLink").hide();$(".hostSeriesTitle").attr("data-episode-edit-modus",1);$(".submitNewDescription").hide();$(".descriptionSpoilerLink").hide();$(".hostSeriesTitle").attr("data-episode-edit-modus",1);if($("em").hasClass("descriptionSpoilerPlaceholder")){$(".descriptionSpoilerPlaceholder").prepend().html('');$(".descriptionSpoilerPlaceholder").after('
      ');$(".descriptionSpoilerPlaceholder").after('')}else{$(".descriptionSpoiler").html('").show();$(".descriptionSpoiler").append('');$(".descriptionSpoiler").append('
      ')}$(".buttonSaveEditEpisodeAction").click(function(){var episodeID=$(".hosterSiteTitle").data("episode-id");var description=$(".descriptionTag").val();$.ajax({type:"POST",url:"/ajax/userSuggestionEpisodeDescription",data:{episodeID:episodeID,description:description},success:function(result){if(result.status==true){notification("Vielen Dank. Die Beschreibung wird jetzt vom Team überprüft und freigeschaltet.","fa-info-circle","bouncyflip",10);$(".buttonSaveEditEpisodeAction, .buttonCloseEditEpisodeAction").remove();$(".descriptionSpoiler").html(description);$(".descriptionSpoiler").fadeOut(300);$(".editEpisodeMode, .descriptionSpoilerLink, .editEpisodeMode").show(0);$(".submitNewDescription").show(0);if($("em").hasClass("descriptionSpoilerPlaceholder")){$(".descriptionTag").hide()}}else{notification("Leider ist ein unerwarteter Fehler aufgetreten.","fa-info-circle","bouncyflip",10)}}})});$(".buttonCloseEditEpisodeAction").click(function(){$(".buttonSaveEditEpisodeAction, .buttonCloseEditEpisodeAction").remove();$(".descriptionSpoiler").html(description);$(".editEpisodeMode, .descriptionSpoilerLink, .editEpisodeMode").show();$(".submitNewDescription").show();$(".descriptionSpoiler").hide();if($("em").hasClass("descriptionSpoilerPlaceholder")){$(".descriptionTag").hide()}})});$(".submitNewTitle").click(function(){$(".editEpisodeMode").hide();$(".descriptionSpoilerLink").hide();$(".hostSeriesTitle").attr("data-episode-edit-mode",1);$(".episodeGermanTitle").html('Deutsche Sprache, Flagge
      ');$(".episodeEnglishTitle").html('Deutsche Sprache, Flagge ');$(".episodeEnglishTitle").append('');$(".episodeEnglishTitle").append('
      ');$(".episodeEnglishTitle").append('Nur Episoden-Titel für die schon ausgestrahlte Fassung vorschlagen. (Beispiel: englisch ausgestrahlt, deutsch noch nicht = deutschen Titel nicht vorschlagen.)');$(".buttonSaveEditEpisodeTitleAction").click(function(){var germanTitle=$(".episodeGermanTitle input").val();var englishTitle=$(".episodeEnglishTitle input").val();var episodeID=$(".hosterSiteTitle").attr("data-episode-id");$.ajax({type:"POST",url:"/ajax/userSuggestionEpisodeTitle",data:{episodeID:episodeID,german:germanTitle,english:englishTitle},success:function(result){if(result.status==true){notification("Vielen Dank. Die Titel werden jetzt vom Team überprüft und freigeschaltet.","fa-info-circle","bouncyflip",10);$(".buttonSaveEditEpisodeTitleAction, .buttonCloseEditEpisodeTitleAction, .submitNewTitleInfo").remove();$(".editEpisodeMode, .editEpisodeMode").show();$(".episodeGermanTitle").html($(".episodeGermanTitle input").val());$(".episodeEnglishTitle").html($(".episodeEnglishTitle input").val())}else{notification("Fehler.","fa-info-circle","bouncyflip",10)}}})});$(".buttonCloseEditEpisodeTitleAction").click(function(){$(".buttonSaveEditEpisodeTitleAction, .buttonCloseEditEpisodeTitleAction, .submitNewTitleInfo").remove();$(".editEpisodeMode, .editEpisodeMode").show();$(".episodeGermanTitle").html($(".episodeGermanTitle input").val());$(".episodeEnglishTitle").html($(".episodeEnglishTitle input").val())})});$(".messageAlert .close").click(function(){$(this).parent().fadeOut(500)});$(".reportVideoStream").click(function(){$(".hosterSiteVideo").wrap('
      ');var videoID=$(this).parent().parent().parent().attr("data-link-id");$(".reportArea").prepend('
      '+''+'

      Fehler/Defekt melden

      Bitte wähle einen Grund aus.


      '+'


      '+'


      als defekt melden!
      ');$("input").iCheck({checkboxClass:"icheckbox_square-blue",radioClass:"iradio_square-blue",increaseArea:"20%"});$(".detectVideoReportOption").on("ifClicked",function(event){$(".reportVideoLanguageCorrectLanguageMore").show(0)});$(".detectVideoReportOption").on("ifUnchecked",function(event){$(".reportVideoLanguageCorrectLanguageMore").hide(0)});$(".closeVideoReport").click(function(){$(".reportVideoLayerForm").hide(0);setTimeout(function(){$(".reportArea > .row").remove();$(".hosterSiteVideo").unwrap();$(".reportVideoLayerForm").parent().remove()},500)});$(".reportVideoSubmit").click(function(){var linkID=$(this).parent().parent().attr("data-link-id");var reason=$(this).parent().parent().find('input[name="report"]:checked').val();var moreInformation=$(this).parent().parent().find('textarea[name="moreInformation"]').val();var extra=reason=="4"?$(this).parent().parent().find('input[name="report-info"]:checked').val():0;$.ajax({type:"POST",url:"/ajax/reportLink",data:{link:linkID,reason:reason,extra:extra,moreInformation:moreInformation},success:function(result){if(result.status==true){$(".reportVideoLayerForm").hide(0);setTimeout(function(){$(".reportArea > .row").remove();$(".hosterSiteVideo").unwrap();$(".reportVideoLayerForm").parent().remove()},500);notification("Vielen Dank für deine Meldung. Wir werden den Stream überprüfen.","fa-info-circle","bouncyflip",10)}else{notification("Leider ist ein unerwarteter Fehler aufgetreten.","fa-info-circle","bouncyflip",10)}}})})});if(userSessionStatus==true){var notificationFeed={lastCheck:0,count:0,pageTitle:window.document.title,init:function(){notificationFeed.load();setInterval(function(){notificationFeed.load()},6e4);$(".liveNewsFeedButton").click(function(){notificationFeed.load()})},load:function(){$.ajax({type:"POST",url:"/ajax/notifications",data:{lastTimestamp:notificationFeed.lastCheck},success:function(result){notificationFeed.lastCheck=result.timestamp;$.each(result.notifications,function(key,message){$(".liveNewsFeedContent").prepend('
    • '+'

      "+message.message+"

    • ")});notificationFeed.count=result.count;$(".liveNewsFeedButton span").text(notificationFeed.count);$(".liveNewsFeedSectionHeader span").text(notificationFeed.count);notificationFeed.count>0?$(".liveNewsFeedButton, .mobileUserNotifications").addClass("liveNewsFeedButtonActive"):$(".liveNewsFeedButton, .mobileUserNotifications").removeClass("liveNewsFeedButtonActive");notificationFeed.last=result.last}})}};notificationFeed.init();$(".setFavourite").click(function(){var series=$(".add-series").data("series-id");$.ajax({type:"POST",url:"/ajax/setFavourite",data:{series:series},success:function(response){if(response.status==true){$(".add-series").data("series-favourite",1);$(".setFavourite").addClass("true");notification('Du hast die Serie jetzt abonniert.

      Alle anzeigen',"fa-info-circle","bouncyflip",15)}else{$(".add-series").data("series-favourite",0);$(".setFavourite").removeClass("true")}},error:function(){notification("Es ist ein Fehler aufgetreten.","fa-info-circle","bouncyflip",15)}})});$(".episodeMenu").click(function(event){episodeID=$(this).parent().parent().data("episode-id");$.ajax({type:"POST",url:"/ajax/watchEpisode",data:{episode:episodeID},success:function(result){if(result.status==true){$('tr[data-episode-id="'+episodeID+'"]').addClass("seen");$('ul li a[data-episode-id="'+episodeID+'"]').addClass("seen")}else{$('tr[data-episode-id="'+episodeID+'"]').removeClass("seen");$('ul li a[data-episode-id="'+episodeID+'"]').removeClass("seen")}}})});$(".setWatchlist").click(function(){var series=$(".add-series").data("series-id");$.ajax({type:"POST",url:"/ajax/setWatchList",data:{series:series},success:function(response){$(".add-series").data("series-watchlist",response.status);if(response.status==true){$(".setWatchlist").addClass("true");notification('Die Serie wurde in deine WatchList eingetragen.

      WatchList',"fa-info-circle","bouncyflip",15)}else{$(".setWatchlist").removeClass("true")}},error:function(){notification("Es ist ein Fehler aufgetreten.","fa-info-circle","bouncyflip",15)}})});$(document).mouseup(function(e){var container=$(".liveNewsFeedSection");if(!container.is(e.target)&&container.has(e.target).length===0){container.hide();$(".liveNewsFeedSection").attr("data-active-status",0)}});function addHost(divName){$("#addhost_"+i).after("")}function addFormElement(inputName,divName,placeholder,type,style){type=typeof type!=="undefined"?type:"text";style=typeof style!=="undefined"?style:"";$(divName).append('
    • ')}function addLink(){countID=parseInt($("#videoLinkList").attr("data-countID"));countID=countID+=1;$("#videoLinkList").append('
    • '+'
      '+'
      '+'
      '+'
      '+'
    • ').attr("data-countID",countID);$("input").iCheck({checkboxClass:"icheckbox_square-blue",radioClass:"iradio_square-blue",increaseArea:"20%"})}$(".clearAllEpisodesFromThisSeason").click(function(event){seriesID=$(".add-series").data("series-id");seasonID=$(this).data("season-id");watch=$(this).data("action");$.ajax({type:"POST",url:"/ajax/watchseason",data:{series:seriesID,season:seasonID,watch:watch},success:function(result){if(result.status==true){$('table[data-season-id="'+seasonID+'"] tr').addClass("seen");$('ul li a[data-season-id="'+seasonID+'"]').addClass("seen")}else{$('table[data-season-id="'+seasonID+'"] tr').removeClass("seen");$('ul li a[data-season-id="'+seasonID+'"]').removeClass("seen")}}})});function deletePost(post_id){$.ajax({type:"POST",url:"/ajax/deletePost",data:{post:post_id},success:function(response){if(response){$(".post"+post_id).hide(600)}else{notification("Der Post konnte nicht gelöscht werden: Bitte versuche es erneut!","fa-info","bouncyflip",10)}}})}$(".submitNewLinks").click(function(){$(".newLinkBoxStatus").empty();var arrayOfLines=$(".newLinkBox textarea").val().split("\n");var series=$(".add-series").data("series-id");var season=$(".hosterSiteTitle").data("season");var episode=$(".hosterSiteTitle").data("episode");var language=$(".newLinkBox").find("input[type=radio]:checked").val();$.each(arrayOfLines,function(index,item){$.ajax({type:"POST",url:"/ajax/addHoster",data:{series:series,season:season,episode:episode,link:item,language:language},success:function(result){if(result.status[0]==true){$(".newLinkBoxStatus").append('
      ')}else{notification("Fehler: "+result.status[1],"fa-info","bouncyflip",10);$(".newLinkBoxStatus").append('
      ')}}})})});var notifications={status:{currentDisplayedNotifications:[],state:"init"},init:function(){$(".main-header").after('
      ');notifications.check();notifications.timeout3=setInterval(function(){notifications.checkForOldNotifications()},6e3)},check:function(){if(!(notifications.status.state==="check notifications.")){notifications.status.state="check notifications.";$.ajax({type:"POST",url:"/ajax/checkLiveNotifications",data:{live:true},success:function(response){var timestamp=(new Date).getTime();if(response.length>0){$.each(response,function(i,v){if(!($.inArray(v.id,notifications.status.currentDisplayedNotifications)!=-1)){notifications.status.currentDisplayedNotifications.push(v.id);$(".liveNotificationContainer").append(''+'

      '+v.message+"

      "+'
      ');$('.liveNotificationContainer [data-notificationid="'+" + v.id +"+'"]').fadeIn(600)}});notifications.impression()}clearTimeout(notifications.timeout1);notifications.timeout1=setTimeout(function(){notifications.check()},45e3)}})}else{notifications.status.state="failed check notifications.";notifications.timeout1=setTimeout(function(){notifications.check()},5e3)}},impression:function(){$.ajax({type:"POST",url:"/ajax/liveNotificationimpression",data:{live:true},dataType:"json",success:function(response){console.info("notification seen.")}})},hide:function(notificationID){$.ajax({type:"POST",url:"/ajax/liveNotificationHide",data:{id:notificationID},dataType:"json",complete:function(r){$('[data-notificationid="'+notificationID+'"]').fadeOut(50)}})},checkForOldNotifications:function(){var timestamp=(new Date).getTime();$.each($(".liveNotificationContainer > span"),function(i,v){var passCount=$(v).data("passcount");if($(v).data("timestamp")+passCount*6*1e3'+'

      '+message+"

      "+'
      ')}};notifications.init();$(".watchEpisode").click(function(){markAsWatched()})}else{$(".setFavourite, .setWatchlist, .rating").click(function(){notification('Einloggen oder kostenlos registrieren um dieses Feature nutzen zu können!

      Jetzt Teil der Community werden!

      mehr',"fa-info","bouncyflip",1500)});var notifications={status:{currentDisplayedNotifications:[],state:"init"},init:function(){$(".main-header").after('
      ')},hide:function(notificationID){$('[data-notificationid="'+notificationID+'"]').fadeOut(200)}};notifications.init()}function validateUsername(username){$.ajax({type:"GET",url:"/ajax/validateUsername",data:{username:username},success:function(response){}})}function getUrl(name){name=name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(window.location.href);if(results==null)return"undefined";else return results[1]}$(".submitLinks").click(function(){series=$(".add-series").data("series-id");season=$(".hosterSiteTitle").data("season");episode=$(".hosterSiteTitle").data("episode");$("#videoLinkList li").each(function(key,linkContainer){if($(linkContainer).find("input[type=link]").val()=="Muss noch geprüft werden."){}else{language=$(linkContainer).find("input[type=radio]:checked").val();currentLink=$(linkContainer).find("input[type=link]").val();$.ajax({type:"POST",url:"/ajax/addHoster",data:{series:series,season:season,episode:episode,link:currentLink,language:language},success:function(result){if(result.status[0]==true){$(linkContainer).find("input[type=link]").removeClass("error").addClass("success").attr("disabled",true).val("Muss noch geprüft werden.")}else{notification("Fehler: "+result.status[1],"fa-info","bouncyflip",10);$(linkContainer).find("input[type=link]").removeClass("success").addClass("error")}}})}})});$(".reportVideo").submit(function(event){linkID=$("#reportVideo").val();series=$(".add-series").data("series-id");season=$(".hosterSiteTitle").data("season");episode=$(".hosterSiteTitle").data("episode");$.ajax({type:"POST",url:"/ajax/reportVideo",data:{series:series,season:season,episode:episode,link:linkID},success:function(result){if(result.status==true){notification("Das Video würde erfolgreich defekt gemeldet und wird überprüft. Danke!","fa-info","bouncyflip",10)}else{notification("Fehler! Bitte versuche es erneut oder lade die Seite neu.","fa-info","bouncyflip",10)}}});event.preventDefault()});function closeBox(name,time,effect){$(name).hide(0)}function deleteVideo(id){var confirmHiddenMode=confirm("Link löschen?");if(confirmHiddenMode){$.ajax({type:"POST",url:"/ajax/deleteVideo",data:{link:id},success:function(response){$(".episodeLink"+id).hide(500)},error:function(){alert("Link konnte nicht gelöscht werden.")}})}}$(".acceptFriendShipRequest, .decideFriendShipRequest").click(function(){requestID=$(this).attr("data-requestID");friendShipStatus=$(this).attr("data-requestStatus");divTag=this;$.ajax({type:"POST",url:"/ajax/friendshipRequestStatus",data:{requestID:requestID,status:friendShipStatus},success:function(response){if(response.status==true){$(divTag).parent().parent().hide(500)}else{notification("Fehler! Die Aktion konnte nicht durchgeführt werden.","fa-info","bouncyflip",10)}}})});changeTitle=function(e,epi,lang){e.name=epi;e.onchange=null};$(function(){$("#tabs").tabs()});(function(){$(".carousel").each(function(){return $(this).carousel({})})}).call(this);var smiley_map={};function insert_smiley(smiley,field_id){var el=document.getElementById(field_id),newStart;if(!el&&smiley_map[field_id]){el=document.getElementById(smiley_map[field_id]);if(!el)return false}el.focus();smiley=" "+smiley;if("selectionStart"in el){newStart=el.selectionStart+smiley.length;el.value=el.value.substr(0,el.selectionStart)+smiley+el.value.substr(el.selectionEnd,el.value.length);el.setSelectionRange(newStart,newStart)}else if(document.selection){document.selection.createRange().text=smiley}}var RatingControl=function(element){var self=this;self.containerElement=element;self.selectedRatingElement=self.containerElement.querySelector(".current-rating");self.selectedRatingSVGContainer=self.selectedRatingElement.querySelector(".svg-wrapper");self.ratingElements=[].slice.call(self.containerElement.querySelectorAll(".rating-option")).map(function(element){return{container:element,icon:element.querySelector(".ratingIcon"),label:element.querySelector(".label"),selectedFill:self.hexToRGB(element.getAttribute("selected-fill")||"#FFD885")}});self.selectedRating;self.sliderPosition=0;self.facePaths=[];self.labelColor=self.hexToRGB("#ABB2B6");self.labelSelectedColor=self.hexToRGB("#FFFFFF");self.dragging=false;self.handleDragOffset=0;self.ratingTouchStartPosition={x:0,y:0};self.onRatingChange=function(){};self.easings={easeInOutCubic:function(t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInOutQuad:function(t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*(--t*(t-2)-1)+b},linear:function(t,b,c,d){return c*t/d+b}};self.onHandleDrag=self.onHandleDrag.bind(this);self.onHandleRelease=self.onHandleRelease.bind(this);self.ratingElements.forEach(function(element){var paths={};[].forEach.call(element.icon.querySelectorAll("path:not(.base)"),function(path){var pathStr=path.getAttribute("d");paths[path.getAttribute("class")]=self.splitString(pathStr)});self.facePaths.push(paths);element.container.addEventListener("ontouchend"in document?"touchend":"click",function(e){if("ontouchend"in document){var ratingTouchCurrentPosition={x:e.pageX,y:e.pageY};var dragDistance=Math.sqrt(Math.pow(ratingTouchCurrentPosition.x-self.ratingTouchStartPosition.x,2)+Math.pow(ratingTouchCurrentPosition.y-self.ratingTouchStartPosition.y,2));if(dragDistance>10){return}}var newRating=element.container.getAttribute("rating")-1;self.setRating(newRating,{fireChange:true})})});if("ontouchend"in document){document.body.addEventListener("touchstart",function(e){if(e.target.classList.contains("rating-option")){self.ratingTouchStartPosition={x:e.touches[0].pageX,y:e.touches[0].pageY}}});self.selectedRatingElement.addEventListener("touchstart",function(e){self.dragging=true;self.handleDragOffset=e.touches[0].pageX-self.selectedRatingElement.getBoundingClientRect().left;self.setLabelTransitionEnabled(false)});self.selectedRatingElement.addEventListener("touchmove",self.onHandleDrag);self.selectedRatingElement.addEventListener("touchend",self.onHandleRelease)}else{document.body.addEventListener("mousedown",function(e){if(e.target==self.selectedRatingElement){e.preventDefault();self.dragging=true;self.handleDragOffset=e.offsetX;self.setLabelTransitionEnabled(false);document.body.classList.add("dragging");document.body.addEventListener("mousemove",self.onHandleDrag)}});document.body.addEventListener("mouseup",function(e){if(self.dragging){document.body.classList.remove("dragging");document.body.removeEventListener("mousemove",self.onHandleDrag);self.onHandleRelease(e)}})}self.setRating(3,{duration:0})};RatingControl.prototype={setRating:function(rating,options){var self=this;var options=options||{};var startTime;var fireChange=options.fireChange||false;var onComplete=options.onComplete||function(){};var easing=options.easing||self.easings.easeInOutCubic;var duration=options.duration==undefined?550:options.duration;var startXPosition=self.sliderPosition;var endXPosition=rating*self.selectedRatingElement.offsetWidth;if(duration>0){var anim=function(timestamp){startTime=startTime||timestamp;var elapsed=timestamp-startTime;var progress=easing(elapsed,startXPosition,endXPosition-startXPosition,duration);self.setSliderPosition(progress);if(elapsed';self.ratingElements.forEach(function(element,index){var adjustedProgress=1;if(index==currentStep){adjustedProgress=1-Math.abs((stepProgress-Math.floor(stepProgress)-.5)*2)}element.icon.style.transform="scale("+adjustedProgress+")";element.label.style.transform="translateY("+self.interpolatedValue(9,0,adjustedProgress)+"px)";element.label.style.color=self.interpolatedColor(self.labelSelectedColor,self.labelColor,adjustedProgress)})},onHandleDrag:function(e){var self=this;e.preventDefault();if(e.touches){e=e.touches[0]}var offset=self.selectedRatingElement.offsetWidth/2-self.handleDragOffset;var xPos=e.clientX-self.containerElement.getBoundingClientRect().left;self.setSliderPosition(xPos-self.selectedRatingElement.offsetWidth/2+offset)},onHandleRelease:function(e){var self=this;self.dragging=false;self.setLabelTransitionEnabled(true);var rating=Math.round(self.sliderPosition/self.containerElement.offsetWidth*self.ratingElements.length);self.setRating(rating,{duration:200,fireChange:true})},setLabelTransitionEnabled:function(enabled){var self=this;self.ratingElements.forEach(function(element){if(enabled){element.label.classList.remove("no-transition")}else{element.label.classList.add("no-transition")}})},interpolatedValue:function(startValue,endValue,progress){return(endValue-startValue)*progress+startValue},interpolatedArray:function(startArray,endArray,progress){return startArray.map(function(startValue,index){return(endArray[index]-startValue)*progress+startValue})},interpolatedColor:function(startColor,endColor,progress){var self=this;var interpolatedRGB=self.interpolatedArray(startColor,endColor,progress).map(function(channel){return Math.round(channel)});return"rgba("+interpolatedRGB[0]+","+interpolatedRGB[1]+","+interpolatedRGB[2]+",1)"},easeInQuint:function(t,b,c,d){return c*(t/=d)*t*t+b},hexToRGB:function(hex){var shorthandRegex=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;hex=hex.replace(shorthandRegex,function(m,r,g,b){return r+r+g+g+b+b});var result=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);return result?[parseInt(result[1],16),parseInt(result[2],16),parseInt(result[3],16)]:null},splitString:function(value){var re=/-?\d*\.?\d+/g;var toStr=function toStr(val){return typeof val=="string"?val:String(val)};return{digits:toStr(value).match(re).map(Number),nondigits:toStr(value).split(re)}},recomposeString:function(digits,nondigits){return nondigits.reduce(function(a,b,i){return a+digits[i-1]+b})},simulateRatingTap:function(rating,delay,complete){var self=this;var ratingElement=self.ratingElements[rating];setTimeout(function(){ratingElement.container.classList.add("show-touch");setTimeout(function(){ratingElement.container.classList.remove("show-touch");self.setRating(rating,{onComplete:function(){if(complete){complete()}}})},250)},delay||0)},simulateRatingDrag:function(rating,delay,complete){var self=this;setTimeout(function(){self.selectedRatingElement.classList.add("show-touch");setTimeout(function(){self.setRating(rating,{duration:3e3,easing:self.easings.easeInOutQuad,onComplete:function(){self.selectedRatingElement.classList.remove("show-touch");if(complete){complete()}}})},250)},delay||0)}};$(".userDetailBackground").on("click","div.friendshipRequestButton",function(){var userID=$("#userDetails").data("user-id");var sendFriendRequest='
      Freundschaftsanfrage
      ';var existingFriendship='
      befreundet
      ';var pendingFriendshipRequest='
      Freundschaftsanfrage gesendet
      ';var canceledFriendship='
      abgelehnt
      ';if($(".friendshipRequestButton i").hasClass("fa-spinner")){var confirmBreak=confirm("Freundschaftaanfrage zurueckziehen?");if(confirmBreak){$.ajax({type:"POST",url:"/ajax/friendshipRequest",data:{userID:userID},success:function(response){if(response.status==2){$(".friendshipRequestButton").replaceWith(pendingFriendshipRequest)}else if(response.status==1){$(".friendshipRequestButton").replaceWith(sendFriendRequest)}else{notification("Fehler! Die Freundschaftsanfrage konnte nicht abgelehnt werden.","fa-info","bouncyflip",10)}}})}}else{if($(".friendshipRequestButton i").hasClass("fa-heart")){var confirmBreak=confirm("Freundschaft auflösen?");if(confirmBreak){$.ajax({type:"POST",url:"/ajax/friendshipRequest",data:{userID:userID},success:function(response){if(response.status==2){$(".friendshipRequestButton").replaceWith(pendingFriendshipRequest)}else if(response.status==1){$(".friendshipRequestButton").replaceWith(sendFriendRequest)}else{notification("Fehler! Die Freundschaftsanfrage konnte nicht durchgeführt werden.","fa-info","bouncyflip",10)}}})}}else{$.ajax({type:"POST",url:"/ajax/friendshipRequest",data:{userID:userID},success:function(response){if(response.status==2){$(".friendshipRequestButton").replaceWith(pendingFriendshipRequest)}else if(response.status==1){$(".friendshipRequestButton").replaceWith(sendFriendRequest)}else{notification("Fehler! Die Freundschaftsanfrage konnte nicht durchgeführt werden.","fa-info","bouncyflip",10)}}})}}});$(".homeContentGenresList li").click(function(){var thisElement=this;if($(thisElement).attr("data-selected")=="true"){$(thisElement).attr("data-selected","false").find("div").css("background-color","#2284c7")}else{$(thisElement).attr("data-selected",true).find("div").css("background-color","#11232f")}if($(thisElement).attr("data-genre")=="all"){$(".homeContentGenresList li div").css("background-color","#2284c7").parent().attr("data-selected",false);$(thisElement).attr("data-selected",true).find("div").css("background-color","#11232f")}else{$('.homeContentGenresList li[data-genre="all"]').attr("data-selected",false).find("div").css("background-color","#2284c7")}});$(".randomEpisodeSeries").change(function(){$(".randomEpisodeSeasonSection").hide();$(".randomEpisodeSeriesSeason div").remove();seriesID=$(this).find("option:selected").attr("value");if(seriesID=="all"){}else{$.ajax({type:"POST",url:"/ajax/randomGeneratorSeasonList",data:{seriesID:seriesID},success:function(result){$.each(result.seasons,function(i,v){$(".randomEpisodeSeriesSeason").append('
      ")});$(".randomEpisodeSeriesSeason").append('
      Keine auswählen | Alle auswählen
      ');$("input.icheckbox").iCheck({checkboxClass:"icheckbox_square-blue",radioClass:"iradio_square-blue",increaseArea:"20%"});$(".randomEpisodeSeasonSection").hide(0);$(".randomEpisodeSeriesSeasonOptionSelectAll").click(function(){$(".randomEpisodeSeriesSeason").iCheck("check")});$(".randomEpisodeSeriesSeasonOptionSelectNone").click(function(){$(".randomEpisodeSeriesSeason").iCheck("uncheck")})}})}});$(".generateRandomContent").click(function(){$(".randomFormContent > .row").hide(0);var randomGeneratorType=$(this).attr("data-random-generator-type");if(randomGeneratorType==1){var genres=$('.homeContentGenresList > li[data-selected="true"]').map(function(idx,elem){return $(elem).data("genre")}).get();var productionStartYear=$('.randomForm [name="productionYearRangeStart"] option:selected').val();var productionEndYear=$('.randomForm [name="productionYearRangeEnd"] option:selected').val();$.ajax({type:"POST",url:"/ajax/randomGeneratorSeries",data:{productionStart:productionStartYear,productionEnd:productionEndYear,genres:genres},success:function(result){if(result!=false){$(".preLoader").after('
      Zurück zu den Einstellungen


      ');$.each(result,function(key,series){$(".seriesListContainer").append('
      '+'Poster '+series.name+'+"

      "+series.name+"

      "+""+series.genre+""+"
      ")});$(".randomFormContent > .row:first-child").hide();$(".closeRandomGeneratorResultPage").click(function(){$(".randomGeneratorResult").hide(0);$(".randomFormContent > .row:first-child").show()})}else{notification("Es wurden leider keine passenden Serien gefunden. :(","fa-info-circle","bouncyflip",120);$(".randomGeneratorResult").hide(0);$(".randomFormContent > .row:first-child").show()}}})}else if(randomGeneratorType==2){var seriesID=$(".randomEpisodeSeries option:selected").val();var seasons=$(".randomEpisodeSeriesSeason .icheckbox_square-blue.checked input:checked").map(function(idx,elem){return $(this).val()}).get();var noViewnContent=$('[name="noViewnContent"]:checked').val();$.ajax({type:"POST",url:"/ajax/randomGeneratorEpisodes",data:{seriesID:seriesID,seasons:seasons,noViewnContent:noViewnContent},success:function(result){if(result!=false){$(".preLoader").after('
      Zurück zu den Einstellungen


      ');$.each(result,function(key,series){$(".seriesListContainer").append('
      '+'DVD '+series.name+', Poster, Cover, Stream'+"

      "+series.name+"

      "+""+series.subTitle+""+"
      ")});$(".randomFormContent > .row:first-child").hide();$(".closeRandomGeneratorResultPage").click(function(){$(".randomGeneratorResult").hide(0);$(".randomFormContent > .row:first-child").show()})}else{notification("Es wurden leider keine passenden Serien gefunden. :(","fa-info-circle","bouncyflip",120);$(".randomGeneratorResult").hide(0);$(".randomFormContent > .row:first-child").show()}}})}});$(".tvSeriesCalendarNavItem.next").click(function(){$(".jqueryTabsWithSelection .ui-tabs-active").next("li").find("a").trigger("click")});$(".tvSeriesCalendarNavItem.prev").click(function(){$(".jqueryTabsWithSelection .ui-tabs-active").prev("li").find("a").trigger("click")});function twpopup(popwhat){window.open(popwhat,"twshare","height=400,width=550,resizable=1,toolbar=0,menubar=0,status=0,location=0")}function fbpopup(popwhat){window.open(popwhat,"fbshare","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0")}function pinpopup(popwhat){window.open(popwhat,"pinshare","height=270,width=630,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0")}function glpopup(popwhat){window.open(popwhat,"glshare","height=270,width=630,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0")}function emailPopup(){window.location="mailto:?subject=Gute Website&body=Ich kann folgende Seite empfehlen: "+window.location}