Permalink
Browse files

Readme

  • Loading branch information...
1 parent 2d82c12 commit 7df9c265c3b4a421a6939645268bf425ed501175 @kaihendry kaihendry committed Mar 8, 2012
Showing with 25 additions and 10 deletions.
  1. +15 −0 README.md
  2. +1 −1 bigbox.css
  3. +5 −5 index.cgi
  4. +4 −4 main.js
View
@@ -0,0 +1,15 @@
+# Simple Webconverger Neon demo controller
+
+Configure [Neon](http://neon.webconverger.com/) **HTML sign** to demo site, e.g. http://demo3.webconverger.com
+
+It should prompt you a URL you need to take another browser, to control what Website the sign shows.
+
+# Demo
+
+* http://demo.webconverger.com
+* http://demo2.webconverger.com
+* http://demo3.webconverger.com
+
+# Limitations
+
+https://developer.mozilla.org/en/The_X-FRAME-OPTIONS_response_header
View
@@ -20,7 +20,7 @@ body {
left: 25%;
opacity: 0;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
- width: 50%;
+ width: 70%;
min-height: 40px;
padding: 30px;
text-align: center;
View
@@ -7,9 +7,9 @@ IFS='=&'
parm=($QUERY_STRING)
IFS=$saveIFS
-if test "${parm[0]}" == "macid"
+if test "${parm[0]}" == "mac"
then
- macid=$(/bin/busybox httpd -d "${parm[1]}")
+ mac=$(/bin/busybox httpd -d "${parm[1]}")
fi
cat <<END
@@ -34,8 +34,8 @@ Content-Type: text/html
</html>
END
-if test "$macid"
+if test "$mac"
then
- mkdir -p $macid
- cp control.cgi $macid/index.cgi
+ mkdir -p $mac
+ cp control.cgi $mac/index.cgi
fi
View
@@ -9,16 +9,16 @@ function getQueryVariable(variable) {
}
}
-uniqueID = getQueryVariable("macid");
+uniqueID = getQueryVariable("mac");
humane.timeout = 0;
if (uniqueID) {
-humane.info("Control this demo by going to http://" + window.location.hostname + "/" + uniqueID);
+humane.info("Control this demo by going to http://" + window.location.hostname + "/\n" + uniqueID);
setInterval(function() {
var nocache = Math.random();
var script = document.createElement('script')
script.src = uniqueID + "/main.js?" + nocache;
document.body.appendChild(script)
-}, 2000);
+}, 3000);
} else {
-humane.error("Please specify a /?macid= query");
+humane.error("Please specify a /?mac= query");
}

0 comments on commit 7df9c26

Please sign in to comment.