!function(){function t(){$("#facebook-code-link").attr("href","https://www.facebook.com/sharer/sharer.php?u=https://zoff.no/"),$("#facebook-code-link").attr("onclick","window.open('https://www.facebook.com/sharer/sharer.php?u=https://zoff.no/', 'Share Zöff','width=600,height=300'); return false;"),$("#twitter-code-link").attr("href","http://twitter.com/intent/tweet?url=https://zoff.no/&text=Check%20out%20Zöff!&via=zoffmusic"),$("#twitter-code-link").attr("onclick","window.open('http://twitter.com/intent/tweet?url=https://zoff.no/&text=Check%20out%20Zöff!&via=zoffmusic','Share Playlist','width=600,height=300'); return false;"),$("#qr-code-link").attr("href","//chart.googleapis.com/chart?chs=500x500&cht=qr&chl=https://zoff.no/&choe=UTF-8&chld=L%7C1"),$("#qr-code-image-link").attr("src","//chart.googleapis.com/chart?chs=150x150&cht=qr&chl=https://zoff.no/&choe=UTF-8&chld=L%7C1")}function e(){var e=new Date;3==e.getMonth()&&1==e.getDate()&&($(".mega").css("-webkit-transform","rotate(180deg)"),$(".mega").css("-moz-transform","rotate(180deg)"),Materialize.toast('

We suck at pranks..Agreed

',1e5)),window.onpopstate=function(t){var e=window.location.href.split("/");""!=e[3]&&"#"!=e[3].substring(0,1)&&c.to_channel(e[3],!0)},n=$("#channel-list-container").html(),t();var i={secure:!0,"force new connection":!0};"zoff.no"==window.location.hostname?add="https://zoff.no":add="localhost",a=io.connect(""+add+":8880",i),a.on("playlists",function(t){$("#channels").empty(),c.populate_channels(t.channels),c.set_viewers(t.viewers)}),a.emit("frontpage_lists"),$("#channel-load").css("display","none"),"#donation"==window.location.hash&&(window.location.hash="#",$("#donation").openModal()),localStorage.ok_cookie||Materialize.toast("We're using cookies to enhance your experience! ok",1e4);var r=0;document.getElementById("zicon").addEventListener("click",function(){r+=10,document.getElementById("zicon").style.paddingLeft=r+"%",r>=100&&(window.location.href="http://etys.no")}),!window.mobilecheck()&&c.winter&&c.start_snowfall(),o=$.ajax({type:"GET",url:"https://api.github.com/repos/zoff-music/zoff/commits",async:!1}).responseText,o=$.parseJSON(o),$("#latest-commit").html("Latest Commit:
"+o[0].commit.author.date.substring(0,10)+": "+o[0].committer.login+"
"+o[0].sha.substring(0,10)+": "+o[0].commit.message+"a){var r=t[x][1],s=t[x][0],l="background-image:url('https://img.youtube.com/vi/"+r+"/hqdefault.jpg');",m=t[x][4],d=pre_card;1==t[x][5]?(d.find(".pin").attr("style","display:block;"),d.find(".card").attr("title","Pinned!")):(d.find(".pin").attr("style","display:none;"),d.find(".card").attr("title","")),d.find(".chan-name").text(i),d.find(".chan-name").attr("title",i),d.find(".chan-views").text(s),d.find(".chan-songs").text(m),d.find(".chan-bg").attr("style",l),d.find(".chan-link").attr("href",i),$("#channels").append(d.html())}o+="