summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>