summaryrefslogtreecommitdiffstats
path: root/conf.d/project/htdocs/index.html
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-05-15 18:37:40 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-07-10 17:12:13 +0200
commit14c5b20de6357f57d1facf1c9742f78958df29a3 (patch)
tree9cedf974ae7563340a4cd2fe89d04002d6fc2810 /conf.d/project/htdocs/index.html
Initial commit
This is the skeleton, it compile but there isn't tests implemented for now. Change-Id: Ie810a9eb23d58797bebd6b64b00682238e4bd732 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/project/htdocs/index.html')
-rw-r--r--conf.d/project/htdocs/index.html43
1 files changed, 43 insertions, 0 deletions
diff --git a/conf.d/project/htdocs/index.html b/conf.d/project/htdocs/index.html
new file mode 100644
index 0000000..9a7d66f
--- /dev/null
+++ b/conf.d/project/htdocs/index.html
@@ -0,0 +1,43 @@
+<html>
+<head>
+ <title>Simple COntroller Test</title>
+ <link rel="stylesheet" href="AudioBinding.css">
+ <script type="text/javascript" src="AFB-websock.js"></script>
+ <script type="text/javascript" src="AudioBinding.js"></script>
+</head>
+
+<body onload="init('hal_registry','alsacore', 'hallist')">
+
+ <h1>Simple Control Test</h1>
+ <button id="connected" onclick="init()">Binder WS Fail</button>
+ <button id="mnitoring" onclick="window.open('/monitoring/monitor.html','_monitor_ctl')">Debug/Monitoring</a></button>
+ <br><br>
+
+ <h2>V2 API CALL</h2>
+ <ol>
+ <li><button onclick="callbinder('pol4a','request', {'uid':'navigation-role'});">Navigation Open</button></li>
+ <li><button onclick="callbinder('pol4a','request', {'uid':'emergency-role'});">Emergency Open</button></li>
+ <br>
+ <li><button onclick="callbinder('pol4a', 'request', {'uid':'release-current'});">Release Current Role</button></li>
+ </ol>
+
+ <h2>V3 API CALL</h2>
+ <ol>
+ <li><button onclick="callbinder('pol4a','navigation-role');">Navigation Open</button></li>
+ <li><button onclick="callbinder('pol4a','emergency-role');">Emergency Open</button></li>
+ <br>
+ <li><button onclick="callbinder('pol4a','release-current');">Release Current Role</button></li>
+ </ol>
+
+ <h2>Signal/Timeout</h2>
+ <ol>
+ <li><button onclick="callbinder('pol4a','signal-timeout', {'timeout':3, 'data':'state', 'event':'quit'});">Get Signal in 3s</button></li>
+ </ol>
+
+ <div id="main" style="visibility:hidden">
+ <ol>
+ <li>Question <pre id="question"></pre>
+ <li>Response <pre id="output"></pre>
+ <li>Events: <pre id="outevt"></pre>
+ </ol>
+ </div>