cic-internal-integration/apps/cic-ussd/emulator/browser/index.html
2021-03-07 18:01:44 +00:00

38 lines
1.1 KiB
HTML

<html>
<head>
<title>USSD Session emulator</title>
<script src='./ussd.js' language='javascript'></script>
<style type="text/css">
#monitor {
width: 100%;
height: 90%;
}
div#session {
display: none;
}
</style>
</head>
<body>
<textarea id="monitor" disabled="1"></textarea>
<div id="login">
<label for="user">API username</label>
<input type="text" id="user" name="user" />
<label for="user">API password</label>
<input type="text" id="pass" name="pass" /> <br/>
<label for="host">API host</label>
<input type="text" id="host" name="host" />
<label for="host">API port</label>
<input type="text" id="port" name="port" />
<label for="host">SSL</label>
<input type="checkbox" id="ssl" name="ssl" checked="1"/> <br/>
<hr/>
<input type="text" id="phone" /> <button onclick="setPhone(document.getElementById('phone').value);" id="send_phone">set phone number</button>
</div>
<div id="session">
<input type="text" id="input" /> <button onclick="send(document.getElementById('input').value);" id="send_input">send as </button> <button onclick='abort();'>abort</button>
</div>
</body>
</html>