summaryrefslogtreecommitdiff
path: root/munia.html
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-12-05 15:35:10 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-12-05 15:35:10 +0100
commit4781ca61960a86f2cae8191c0bdcbdae0acb5d1d (patch)
tree04ccd486a688ad54a74fc95e4a2a1394a9431aa6 /munia.html
parent46a8ed79f6afdca1d3e1ccebfb90eb3c1b5feb68 (diff)
Major brushup of javascript protocol handler.
Diffstat (limited to 'munia.html')
-rw-r--r--munia.html24
1 files changed, 10 insertions, 14 deletions
diff --git a/munia.html b/munia.html
index 04adeed..972f595 100644
--- a/munia.html
+++ b/munia.html
@@ -5,31 +5,27 @@
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="-1"/>
<title>Munia</title>
- <link rel="stylesheet" type="text/css" href="/munia.css" media="screen"/>
+ <link rel="stylesheet" type="text/css" href="munia.css" media="screen"/>
</head>
<body id="body">
<div id="wstask_status">TaskProto not initialized</div>
-TaskProto: <input type="text" id="input_task_data" value="observe 0" onfocus="clear()"/>
-<input type="button" value="submit" onclick="task_submit()"/><br/>
+<div id="input_div">
+ TaskProto: <input type="text" id="input_task_data"
+ onkeyup="task_submit_KeyUpHandler(this, event)"
+ value=""/>
+ <input type="button" value="submit" onclick="task_submit()"/><br/>
</div>
-<script type="text/javascript">
-function task_submit() {
- var data = document.getElementById("input_task_data").value;
- socket_task.send(data);
-}
-</script>
-
<div id="boards" class="boards"></div>
<pre class="log" id="log">Event information log
=====================
</pre>
-<script type="text/javascript" charset="utf-8" src="/proto.js"></script>
-<script type="text/javascript" charset="utf-8" src="/task.js"></script>
-<script type="text/javascript" charset="utf-8" src="/view.js"></script>
-<script type="text/javascript" charset="utf-8" src="/handler.js"></script>
+<script type="text/javascript" charset="utf-8" src="proto.js"></script>
+<script type="text/javascript" charset="utf-8" src="task.js"></script>
+<script type="text/javascript" charset="utf-8" src="view.js"></script>
+<script type="text/javascript" charset="utf-8" src="handler.js"></script>
</body>
</html>