diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-07-25 17:33:52 +0200 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2017-07-25 17:33:52 +0200 |
commit | a3cecd20f812c3fc71141a487443568c861c160a (patch) | |
tree | f7b1c23fd5af0385985ae3a2e3abf558ec5bc0f6 /htdocs/UNICENS.html | |
parent | d00d127abd72f632b36db1619f6282a8e5c61798 (diff) |
Update HTML test page to new template. Added Config file selection from UI.
Diffstat (limited to 'htdocs/UNICENS.html')
-rw-r--r-- | htdocs/UNICENS.html | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/htdocs/UNICENS.html b/htdocs/UNICENS.html index 73c1b66..11746c6 100644 --- a/htdocs/UNICENS.html +++ b/htdocs/UNICENS.html @@ -1,17 +1,22 @@ <html> <head> - <title>Hello world test</title> + <title>Unicens Simple Test</title> + <link rel="stylesheet" href="Ucs2Binding.css"> <script type="text/javascript" src="AFB-websock.js"></script> - <script type="text/javascript" src="AudioBinding.js"></script> + <script type="text/javascript" src="Ucs2Binding.js"></script> - -<body onload="init();"> - <h1>Hello world test</h1> - <button id="connected" onclick="init()">Binder WS Fail</button></li> +<body onload="init('ucs2_config','unicens', 'listconfig');"> + <h1>Unicens Simple Test</h1> + + <button id="connected" onclick="init('ucs2_config','unicens', 'listconfig')">Binder WS Fail</button> + <br><br> + <b>Selected HAL </b> + <select id='ucs2_config'></select> <br> + <ol> - <li><button onclick="callbinder('UNICENS','initialise', {filename:'data/config_multichannel_audio_kit.xml'})">Parse XML and Start UNICENS</button></li> + <li><button onclick="callbinder('UNICENS','initialise', {filename:ucs2_config})">Parse XML and Start UNICENS</button></li> <li><button onclick="callbinder('UNICENS','setvol', {channel:'master', volume: 255})">Set Master Volume to 255</button></li> <li><button onclick="callbinder('unicens','setvol', {channel:'master', volume: 230})">Set Master Volume to 230</button></li> <li><button onclick="callbinder('unicens','setvol', {channel:'master', volume: 215})">Set Master Volume to 215</button></li> @@ -26,8 +31,8 @@ <br> <div id="main" style="visibility:hidden"> <ol> - <li>Question <div id="question"></div> - <li>Response <div id="output"></div> - <li>Events: <div id="outevt"></div> + <li>Question <pre id="question"></pre> + <li>Response <pre id="output"></pre> + <li>Events: <pre id="outevt"></pre> </ol> </div> |