2019-07-18 06:41:52 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2019-07-23 07:58:43 +03:00
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Audio Player</title>
|
2019-08-03 11:32:39 +03:00
|
|
|
<script type="text/javascript" src="pcm-to-wav.js"></script>
|
2019-07-24 11:25:02 +03:00
|
|
|
<script type="text/javascript" src="adpcm.js"></script>
|
2019-07-23 07:58:43 +03:00
|
|
|
<script type="text/javascript" src="main.js"></script>
|
2019-08-11 13:12:51 +03:00
|
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
2019-07-23 07:58:43 +03:00
|
|
|
</head>
|
|
|
|
|
2019-08-05 06:16:58 +03:00
|
|
|
<body style="height: 100%">
|
2019-08-16 09:51:07 +03:00
|
|
|
<div class="card m-auto" style="width: 40rem;">
|
2019-08-11 13:12:51 +03:00
|
|
|
<div class="card-body">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="form-group">
|
2019-08-16 09:51:07 +03:00
|
|
|
<input class="form-control-file" type="file" id="fileinput">
|
2019-08-11 13:12:51 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="container-fluid">
|
2019-08-16 11:21:53 +03:00
|
|
|
<form enctype="multipart/form-data" onsubmit="presubmit();">
|
2019-08-11 13:12:51 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label>App key:</label>
|
2019-08-16 11:21:53 +03:00
|
|
|
<input class="form-control form-control-sm" type="input" id="ak" name="ak">
|
2019-08-11 13:12:51 +03:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Media ID:</label>
|
2019-08-16 11:21:53 +03:00
|
|
|
<input class="form-control form-control-sm" type="input" id="id" name="id">
|
2019-08-11 13:12:51 +03:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Start date or timestamp:</label>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
2019-08-16 11:21:53 +03:00
|
|
|
<input class="form-control form-control-sm" type="datetime-local" id="sd" name="sd" onchange="sync('sd', 'st', true);">
|
2019-08-11 13:12:51 +03:00
|
|
|
</div>
|
|
|
|
<div class="col">
|
2019-08-16 11:21:53 +03:00
|
|
|
<input class="form-control form-control-sm" type="input" id="st" name="st" onchange="sync('sd', 'sd', false);">
|
2019-08-11 13:12:51 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Finish date or timestamp:</label>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
2019-08-16 11:21:53 +03:00
|
|
|
<input class="form-control form-control-sm" type="datetime-local" id="fd" name="fd" onchange="sync('fd', 'ft', true);">
|
2019-08-11 13:12:51 +03:00
|
|
|
</div>
|
|
|
|
<div class="col">
|
2019-08-16 11:21:53 +03:00
|
|
|
<input class="form-control form-control-sm" type="input" id="ft" name="ft" onchange="sync('fd', 'fd', false);">
|
2019-08-11 13:12:51 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2019-08-16 09:51:07 +03:00
|
|
|
<input class="btn btn-primary" type="submit" value="Get Audio" id="submit">
|
2019-08-11 13:12:51 +03:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2019-08-16 09:51:07 +03:00
|
|
|
<input type="hidden" id="ts">
|
2019-08-11 13:12:51 +03:00
|
|
|
</div>
|
|
|
|
</form>
|
2019-08-16 09:51:07 +03:00
|
|
|
<span class="form-inline mb-3">
|
|
|
|
<label>MAC:</label>
|
|
|
|
<input type="input" class="form-control form-control-sm mx-sm-3" id="ma" placeholder="00:00:00:00:00:00">
|
|
|
|
<label>Pin:</label>
|
|
|
|
<input type="input" class="form-control form-control-sm mx-sm-3" id="pn" value="V0" style="width: 3rem">
|
|
|
|
<button class="btn-sm btn-secondary" onClick="updateMID('ma','pn','id');">Convert to Media ID</button>
|
|
|
|
</span>
|
2019-08-11 13:12:51 +03:00
|
|
|
<div class="container-fluid">
|
|
|
|
<audio class="mx-auto" controls="controls" id="audio">
|
|
|
|
Your browser does not support the <code>audio</code> element.
|
|
|
|
<source id="source" src="" type="audio/wav" />
|
|
|
|
</audio>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-18 06:41:52 +03:00
|
|
|
</div>
|
2019-07-23 07:58:43 +03:00
|
|
|
</div>
|
2019-08-11 13:12:51 +03:00
|
|
|
<footer id="sticky-footer" class="footer fixed-bottom py-4 bg-dark text-white-50" style="width: 100%;">
|
2019-08-03 11:32:39 +03:00
|
|
|
<div class="container text-center">
|
2019-08-11 13:12:51 +03:00
|
|
|
<small>©2019 Australian Ocean Laboratory Limited (AusOcean) (<a rel="license" href="https://www.ausocean.org/license">License</a>)</small>
|
2019-08-03 11:32:39 +03:00
|
|
|
</div>
|
|
|
|
</footer>
|
2019-07-23 07:58:43 +03:00
|
|
|
</body>
|
|
|
|
|
2019-07-18 06:41:52 +03:00
|
|
|
</html>
|