summaryrefslogtreecommitdiff
path: root/HouseControl.ino
diff options
context:
space:
mode:
authorMike Beattie <mike@ethernal.org>2012-03-22 18:45:58 +1300
committerMike Beattie <mike@ethernal.org>2012-03-22 18:45:58 +1300
commit6fd8e3ccc1c5577835911c66e0838a1f936c8939 (patch)
treef92cb5c3b8612ab5e2a50d56b63683eaceea7f6d /HouseControl.ino
parenta87dead663112fddb2354497f2db3aec72c49c0b (diff)
Remove commented HTML.
Signed-off-by: Mike Beattie <mike@ethernal.org>
Diffstat (limited to 'HouseControl.ino')
-rw-r--r--HouseControl.ino75
1 files changed, 0 insertions, 75 deletions
diff --git a/HouseControl.ino b/HouseControl.ino
index 3b0f078..704561b 100644
--- a/HouseControl.ino
+++ b/HouseControl.ino
@@ -187,7 +187,6 @@ void httpHandler(WebServer &server, WebServer::ConnectionType type, char *url_ta
/* we don't output the body for a HEAD request */
if (type == WebServer::GET) {
/* store the HTML in program memory using the P macro - See index.html for content, encode_html.sh for getting this data */
-// /*
P(message) = {
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xc5, 0x56, 0x5b, 0x8f, 0x9b, 0x38,
0x14, 0x7e, 0xcf, 0xaf, 0xb0, 0xd4, 0x59, 0x99, 0xa8, 0x01, 0x02, 0x53, 0xfa, 0x40, 0x08, 0x2f,
@@ -245,80 +244,6 @@ void httpHandler(WebServer &server, WebServer::ConnectionType type, char *url_ta
};
server.writeP(message, sizeof(message));
-// */
- /*
- P(message) =
- "<html><head><title>Door Control</title>"
- "<meta id='viewport' name='viewport' content='width=160; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;'>"
- "<style>"
- "body {background-color:#bbb;font-family:'Verdana',sans-serif}"
- "h2 {line-height:50%;}"
- "h3 {line-height:5%;}"
- ".page {text-align:center;}"
- ".centred-table,.dobutton {text-align:center;margin-left:auto;margin-right:auto;}"
- ".button {padding-bottom:5px;}"
- ".dobutton {height:50px;width:200px;}"
- ".unlockedlabel,.openlabel,.closedlabel,.statelabel {background-color:#a5a5a5;padding:3px;border-radius:4px;}"
- ".lockedlabel {visibility:hidden;}"
- ".unlockedlabel {background-color:#55f;}"
- ".openlabel {background-color:#f55;}"
- ".closedlabel {background-color:#5f5;}"
- "</style>"
- "<script type='text/javascript' src='http://code.jquery.com/jquery-1.5.2.min.js'></script>"
- "<script type='text/javascript'>"
- "$(document).ready(function() {"
- " $('#fda').click(function(){$.post('do', {frontdoor: 1});});"
- " $('#gd1a').click(function(){$.post('do', {garagedoor1: 1});});"
- " $('#gd2a').click(function(){$.post('do', {garagedoor2: 1});});"
- " updateStatus();"
- "});"
- "function updateStatus() {"
- " $.getJSON('json', function(data) {"
- " $.each(data, function(key, val) {"
- " $('#' + key).attr('class', val + 'label');"
- " });"
- " setTimeout(updateStatus, 1000);"
- " });"
- "}"
- "</script>"
- "</head>"
- "<body>"
- "<div class=page>"
- "<h2>15 Park Lane</h2>"
- "<h3>Door Control</h3>"
- "<table class=centred-table>"
- "<tr>"
- "<td><div id=fdo class=statelabel>Open</div></td>"
- "<td><div id=fdu class=lockedlabel>Unlocked</div></td>"
- "<td><div id=fdc class=statelabel>Closed</div></td>"
- "</tr>"
- "<tr>"
- "<td colspan=3><div class=button><input type=button class=dobutton id=fda value='Front Door' /></div></td>"
- "</tr>"
- "<tr>"
- "<td><div id=gd1o class=statelabel>Open</div></td>"
- "<td></td>"
- "<td><div id=gd1c class=statelabel>Closed</div></td>"
- "</tr>"
- "<tr>"
- "<td colspan=3><div class=button><input type=button class=dobutton id=gd1a value='Garage Door 1' /></div></td>"
- "</tr>"
- "<tr>"
- "<td><div id=gd2o class=statelabel>Open</div></td>"
- "<td></td>"
- "<td><div id=gd2c class=statelabel>Closed</div></td>"
- "</tr>"
- "<tr>"
- "<td colspan=3><div class=button><input type=button class=dobutton id=gd2a value='Garage Door 2' /></div></td>"
- "</tr>"
- "</table>"
- "</div>"
- "</body>"
- "</html>";
-
-
- server.printP(message);
- */
}
}