@@ -1,4 +1,7 @@
<?php require_once("database.php"); ?>
<?php
require_once("database.php");
require_once("functions.php");
?>
<!DOCTYPE html PUBLIC>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@@ -7,13 +10,13 @@
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<?/* SOCIAL SHARE */?>
<meta property="og:site_name"content="<?=$head_title; ?>" />
<meta property="og:site_name"content="<?=$title; ?>" />
<meta property="og:image" content="<?=$URLpath;?>img/play-mst3k.png" />
<meta property="og:url" content="<?=$URLpath;?>" />
<?/* MOBILE SETTINGS */?>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title><?=$head_title; ?></title>
<title><?=$title; ?></title>
<link rel="apple-touch-icon" sizes="144x144" href="<?=$php_resize."favicon".".png"."&w=144&h=144&zc=0";?>"/>
<link rel="apple-touch-icon" sizes="114x114" href="<?=$php_resize."favicon".".png"."&w=114&h=114&zc=0";?>"/>
<link rel="apple-touch-icon" sizes="72x72" href="<?=$php_resize."favicon".".png"."&w=72&h=72&zc=0";?>"/>
@@ -28,6 +31,10 @@
<script type="text/javascript" src="/js/ratio.js"></script>
<!--script type="text/javascript" src="/js/menu.js"></script-->
<script type="text/javascript" src="/js/script.php"></script>
<!-- bootstrap -->
<!-- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/> -->
<!-- <script type="text/javascript" src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> -->

</head>
<body class="blur">
<div class="logo" id="logo">
@@ -37,6 +44,23 @@
<img src="<?=$php_resize."favicon".".png"."&w=32&h=32&zc=0";?>" />
</a>
<ul>
<div class="buildOwn" style="background:#000;"><!-- http://jsfiddle.net/4M3q3/194/ -->
<h4>Build Your Own Stream</h4>
<div class="group" style="width:400px;">
<select id="buildOne" class="select">
<option value="u" selected>Ustream</option>
<option value="y">YouTube</option>
<!-- <option value="l">Livestream</option> -->
<option value="t">Twitch</option>
</select>
<input id="buildTwo" type="text" placeholder="Stream ID #">
<!-- </div>
<div class="group"> -->
<span class="addon">#</span>
<input id="buildThree" type="text" placeholder="Channel">
<a id="openStream" class="btn" style="color:#3388FF;">Open Stream</a>
</div>
</div>
<li><a href="/synth">Synth</a></li>
<li><a href="/moviesign">Movie Sign</a></li>
<li><a href="/avo">Just The Avocado</a></li>
@@ -50,6 +74,7 @@
<li><a href="/canabian">Canabian</a></li>
<li><a href="/winter">Winter</a></li>
<li><a href="/jollyaustin">Jolly Austin</a></li>
<li><a href="/jp">JP Hammer</a></li>
</ul>
</li>
</ul>
@@ -66,7 +91,7 @@
<div class="video" id="video">
<?/**/?>
<iframe
src="<?=$field_embed_url;?>"
src="<?=$embed_url;?>"
width="100%"
height="100%"
scrolling="no"
@@ -78,9 +103,6 @@ class="stream"
allowfullscreen
webkitallowfullscreen
></iframe>
<?/** /?>
<iframe width="100%" height="100%" src="https://www.youtube.com/v/3DWLrPWC3Gs&autoplay=1" frameborder="0" class="stream" name="stream" id="stream" allowfullscreen></iframe>
<?/**/?>
</div>
</div>
<?/**/?>
@@ -90,15 +112,15 @@ class="stream"
<a class="btn" onclick="javascript:document.documentElement.webkitRequestFullScreen();" title="Fullscreen"><i class="icon-fullscreen"></i></a>
<a class="btn" id="lights" title="Turn down your lights (where applicable)!"><i class="icon-idea"></i></a>
<a class="btn" id="reload" title="Reload Stream" onclick="reload();"><i class="icon-repeat-alt"></i></a>
<a class="btn" id="video-toggle" href="javascript:void(0);" rel="<?=$field_embed_url;?>" target="_blank" title="Popout Video"><i class="icon-video"></i></a>
<a class="btn" id="video-toggle" href="javascript:void(0);" rel="<?=$embed_url;?>" target="_blank" title="Popout Video"><i class="icon-video"></i></a>
<a class="btn" id="chat-toggle" href="javascript:void(0);" rel="<?=$field_chat_url;?>" target="_blank" title="Popout Chat"><i class="icon-comment"></i></a>
<? if ($embedVal == NULL || $embedVal == "?me") : ?>
<a class="btn" href="<?=$field_schedule_url;?>" target="_blank" title="Show Schedule"><i class="icon-calendar"></i></a>
<a class="btn" href="<?=$field_stream_url;?>" target="_blank" title="Stream URL"><i class="icon-network"></i></a>
<a class="btn" href="<?=$fieldSchedule;?>" target="_blank" title="Show Schedule"><i class="icon-calendar"></i></a>
<a class="btn" href="<?=$stream_url;?>" target="_blank" title="Stream URL"><i class="icon-network"></i></a>
<? endif; ?>
</div>
<div class="clearfix"></div>
<?/* 728x90 AD */?>
<?/* 728x90 AD * /?>
<div class="watchonvimeo">
<a href="<?=$vimeo_track;?>" target="_blank"><img src="<?=$php_resize."MST3KlongVimeo".".jpg"."&w=720&h=90&zc=100";?>" alt="The official home of MST3K is on Vimeo!" class="img-responsive" /></a>
</div>
@@ -116,15 +138,6 @@ class="stream"
</span>
Stream provided by
<span class="nobr"><a href="https://twitter.com/Syntheaux" target="_blank">@Syntheaux</a></span>!
<span class="nobr icons">
<img src="<?=$php_resize."Firefox".".png"."&w=10&h=10&zc=0";?>" width="10" alt="Mozilla Firefox">
<img src="<?=$php_resize."Chrome".".png"."&w=10&h=10&zc=0";?>" width="10" alt="Google Chrome">
<img src="<?=$php_resize."Safari".".png"."&w=10&h=10&zc=0";?>" width="10" alt="Apple Safari">
<img src="<?=$php_resize."IE".".png"."&w=10&h=10&zc=0";?>" width="10" alt="Internet Explorer" class="nosupport">
<img src="<?=$php_resize."Opera".".png"."&w=10&h=10&zc=0";?>" width="10" alt="Opera">
<img src="<?=$php_resize."Android".".png"."&w=10&h=10&zc=0";?>" width="10" alt="Android Browser">
<img src="<?=$php_resize."IOS".".png"."&w=10&h=10&zc=0";?>" width="10" alt="Apple IOS Browser">
</span>
</small></p>
</div>
<?/**/?>
@@ -1,6 +1,6 @@
<?php
header("Content-Type: application/x-javascript");
require_once("../database.php");
// require_once("../database.php");
?>
$(document).ready(function() {
/**VIEWPORT DATA**/
@@ -58,13 +58,13 @@ function showViewportSize() {
);
return false;
});
var watchVideo = setInterval(function() {
if (videoWin.closed) {
clearTimeout(watchChat);
$("#video").show(500)
}
return false;
}, 250);
// var watchVideo = setInterval(function() {
// if (videoWin.closed) {
// clearTimeout(watchChat);
// $("#video").show(500)
// }
// return false;
// }, 250);
/****/
/**CHAT CONTROLS**/
var chatWin;
@@ -84,43 +84,41 @@ function showViewportSize() {
);
return false;
});
var watchChat = setInterval(function() {
if (chatWin.closed) {
clearTimeout(watchChat);
$("#chat").show(500)
}
return false;
}, 250);
// var watchChat = setInterval(function() {
// if (chatWin.closed) {
// clearTimeout(watchChat);
// $("#chat").show(500)
// }
// return false;
// }, 250);
/****/
});
/**RELOAD STREAM CONTROL**/
function reload() {
$("#stream").attr("src", $("#stream").attr("src"));
}
//**BUILD YOUR OWN STREAM**/
$(window).on("load", function() {
$("#openStream").click(function() {
var baseURL = "/",
divideURL = "/",
openStream1 = $("#buildOne").val(),
openStream2 = $("#buildTwo").val(),
openStream3 = $("#buildThree").val();
var newWindow = window.open(baseURL + openStream1 + divideURL + openStream2 + divideURL + openStream3, "_self");
newWindow.focus();
});
});


/****/
<?/*
params.emoticonPath = "http://deep13.us/images/emoticons/";
params.emoticonList = ":)->smile.gif,;)->wink.gif,:D->awesome.gif,>:P->madppbt.gif,:P->tongue.gif,xp->ppbt.gif,>:(->angry.gif,:(->sad.gif,:$->blush.gif,:0->onoes.gif,8|->hmf.gif,XD->xd.gif,:la:->la.gif,D:->D8.gif,:3->meow.gif,;D->semicolond.png,n_n->shiffy.png,<3->heart.png,:love:->love.gif,:lemon:->lemon.gif,:facepalm:->facepalm.gif,:hmm:->hmm.gif,:L->colonl.gif,:|->stare.gif,B)->sunglasses.gif,:zzz:->zzz.png,:goat:->goat.gif,:gert:->goat2.gif,:molko:->molko.gif,:[->creeper.gif,:tj:->chinny.gif,:chinny:->chinchilla.gif,:bat:->bat.gif,:mario:->Emoticon_mario.png,:joel:->joelhodgson.gif,:mike:->mike.png,:tom:->tomservo.gif,:crow:->crow.gif,:gypsy:->gypsy.gif,:brainguy:->brainguy2.png,:nanite:->nanite.png,:hippo:->hippo.gif,:mrt:->mr-t.gif,:kitteh:->cat.gif,:tick:->tick.png,:ae:->ae1.png,:fuae:->fuae.png,:torgo:->torgo.jpg,:nosprings:->coily.png,:mrb:->mrb.png,:itstinks:->itstinks.png,:tor:->tor.png,:iceicebaby:->ice.png,:tearingmeapaht:->tearingmeapart.png,:tnetennba:->moss.png,:sillywalk:->sillywalk.gif,:cthulhu:->cthulu.png,:k9:->k9.png,:greenguy:->h2g2.png,:wutchoo:->arnold.png,:rowr:->rowr.png,:toonces:->toonces.png,:jeff:->jeffg.png,_|oo->forklift.png,:kali:->kali.png,:spittake:->spittake.png,:batwaah:->batman.png,:colonel:->chestbridge.png";
<script>
/**** /
$(window).load(function() {
var channelOffline = function() {
alert("Channel is offline");
}
var channelLive = function() {
//alert("Channel is live");
viewer.callMethod("play");
}
var channelFinished = function() {
//alert("Channel video finished.");
}
var viewer = UstreamEmbed("stream");
console.log(viewer);
viewer.callMethod("load", "channel", <?=$field_embed_value;?>);
viewer.addListener("finished", channelFinished);
viewer.addListener("live", channelLive);
viewer.addListener("offline", channelOffline);
});
params.emoticonPath = "http://syntheaux.dynu.com:50161/ircsynth/emoticons/";
params.emoticonList = ":)->smile.gif,;)->wink.gif,:D->awesome.gif,>:P->madppbt.gif,:P->tongue.gif,xp->ppbt.gif,>:(->angry.gif,:(->sad.gif,:$->blush.gif,:0->onoes.gif,8|->hmf.gif,XD->xd.gif,:la:->la.gif,D:->D8.gif,:3->meow.gif,;D->semicolond.png,n_n->shiffy.png,<3->heart.png,:love:->love.gif,:lemon:->lemon.gif,:facepalm:->facepalm.gif,:hmm:->hmm.gif,:L->colonl.gif,:|->stare.gif,B)->sunglasses.gif,:zzz:->zzz.png,:goat:->goat.gif,:gert:->goat2.gif,:molko:->molko.gif,:[->creeper.gif,:tj:->chinny.gif,:chinny:->chinchilla.gif,:bat:->bat.gif,:heyguys:->heyguys.png,:mario:->Emoticon_mario.png,:joel:->joelhodgson.gif,:mike:->mike.png,:tom:->tomservo.gif,:crow:->crow.gif,:gypsy:->gypsy.gif,:brainguy:->brainguy2.png,:nanite:->nanite.png,:hippo:->hippo.gif,:mrt:->mr-t.gif,:kitteh:->cat.gif,:tick:->tick.png,:ae:->ae1.png,:fuae:->fuae.png,:torgo:->torgo.png,:nosprings:->coily.png,:coily2:->coily2.png,:mrb:->mrb.png,:itstinks:->itstinks.png,:tor:->tor.png,:iceicebaby:->ice.png,:tearingmeapaht:->tearingmeapart.png,:tnetennba:->moss.png,:sillywalk:->sillywalk.gif,:cthulhu:->cthulu.png,:k9:->k9.png,:greenguy:->h2g2.png,:wutchoo:->arnold.png,:rowr:->rowr.png,:toonces:->toonces.png,:jeff:->jeffg.png,_|oo->forklift.png,:kali:->kali.png,:batwaah:->batman.png,:colonel:->chestbridge.png,:trap:->ackbar25.png,:onlyhope:->leia25.png,xwing->xwing25.png,:thumbdown:->vaderhand.png,:falcon:->falcon25.png,:thumbup:->handup.png,:corgi:->corgi.png,:aliens:->aliens.png,:na:->sodium.png";
/**** /
</script>
*/?>
*/?>