summaryrefslogtreecommitdiffstats
path: root/conf.d/project/htdocs/index.html
diff options
context:
space:
mode:
authorThierry Bultel <thierry.bultel@iot.bzh>2018-07-11 17:45:28 +0200
committerThierry Bultel <thierry.bultel@iot.bzh>2018-07-17 10:50:07 +0200
commitd6eba3146057f104f5b2ad52b47ec42c72ca45df (patch)
tree78c601b2d1bc4f3f469beb4d5b0c35a7a35d22d3 /conf.d/project/htdocs/index.html
parent9c519f325590fcf4dfcfe30798fddb5a102dc389 (diff)
added an html5 page for testing
Change-Id: Ia07a32583a08b9b3e17296e560d80a2758f00658 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'conf.d/project/htdocs/index.html')
-rw-r--r--conf.d/project/htdocs/index.html75
1 files changed, 75 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..4efa887
--- /dev/null
+++ b/conf.d/project/htdocs/index.html
@@ -0,0 +1,75 @@
+<html>
+ <head>
+ <title>Radio Test</title>
+ <link rel="stylesheet" href="RadioBinding.css">
+ <script type="text/javascript" src="jquery-3.3.1.min.js"></script>
+ <script type="text/javascript" src="AFB-websock.js"></script>
+ <script type="text/javascript" src="RadioBinding.js"></script>
+ </head>
+
+ <body onload="init()">
+
+ <h1>Radio Test</h1>
+ <button id="connected" onclick="init()">Binder WS Fail</button>
+ <button id="monitoring" onclick="window.open('/monitoring/monitor.html', '_monitor_ctl')">Debug/Monitoring</a></button>
+ <br><br>
+
+ <h2>V3 API CALL</h2>
+ <ol>
+ <li><button onclick="callbinder('radio', 'frequency', {} );">Frequency</button></li>
+ <br>
+
+ <li><button onclick="callbinder('radio', 'rds', { } );">RDS</button></li>
+ <br>
+
+ <form id='band'>
+ <input type="radio" name="band" value="FM" checked>FM</input>
+ <input type="radio" name="band" value="AM">AM</input>
+ <input type="radio" name="band" value="DAB">DAB</input>
+ </form>
+
+ <li>
+ <button onclick="checkband();">Check if band is supported</button>
+ <button onclick="setband();">Set band</button>
+ <button onclick="get_frequency_range();">Get frequency range</button>
+ <button onclick="get_frequency_step();">Get frequency step</button>
+ </li>
+ <br>
+
+ <li>
+ <button onclick="callbinder('radio', 'start', { } );">Start</button>
+ <button onclick="callbinder('radio', 'stop', { } );">Stop</button>
+ </li>
+ <br>
+
+
+ <li>
+ <button onclick="get_stereo_mode();">Get Stereo mode</button>
+ <button onclick="set_stereo_mode();">Set Stereo mode</button>
+ <form id='mode'>
+ <input type="radio" name="mode" value="stereo" checked>Stereo</input>
+ <input type="radio" name="mode" value="mono">Mono</input>
+ </form>
+ </li>
+ <br>
+
+ <li>
+ <button onclick="callbinder('radio', 'scan_start', { direction:'backward' } );">Scan Backward</button>
+ <button onclick="callbinder('radio', 'scan_start', { direction:'forward' } );">Scan Forward</button>
+ </li>
+ <br>
+
+ </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>
+
+ <script>
+ </script>
+
+ \ No newline at end of file