dynamic visual feed
This commit is contained in:
parent
82adf45358
commit
d43498a083
|
@ -0,0 +1,17 @@
|
|||
var e = document.getElementById("vfeed");
|
||||
var f = new net.core("http://caramel-colour.csclub.uwaterloo.ca:8080/singleframe", "rvf");
|
||||
function callvfeed() {
|
||||
f.connect("http://caramel-colour.csclub.uwaterloo.ca:8080/singleframe");
|
||||
e.innerHTML = "<div class=\"vfeedmon\">"
|
||||
+ "<div id=\"rvf\">Connecting...</div>"
|
||||
+ "<h2>Visual Feed from the Office</h2>";
|
||||
+ "<div class=\"vfeed-cmds\">Feed 1 | Feed 2 | "
|
||||
+ "<a href=\"#\" onclick=\"stopvfeed()\">X</div>";
|
||||
+ "</div>";
|
||||
}
|
||||
|
||||
function stopvfeed() {
|
||||
e.innerHTML = "";
|
||||
}
|
||||
|
||||
document.write("<a href="#vfeed" onclick="callvfeed()">Visual Feed</a>");
|
Loading…
Reference in New Issue