dynamic visual feed
authorJuti Noppornpitak <jnopporn@csclub.uwaterloo.ca>
Sun, 18 Mar 2007 17:59:35 +0000 (17:59 +0000)
committerJuti Noppornpitak <jnopporn@csclub.uwaterloo.ca>
Sun, 18 Mar 2007 17:59:35 +0000 (17:59 +0000)
vfeed.js [new file with mode: 0644]

diff --git a/vfeed.js b/vfeed.js
new file mode 100644 (file)
index 0000000..86e7014
--- /dev/null
+++ b/vfeed.js
@@ -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>");