18 lines
600 B
JavaScript
18 lines
600 B
JavaScript
|
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>");
|