av/cmd/audio-player/index.html

83 lines
4.2 KiB
HTML
Raw Normal View History

2019-07-18 06:41:52 +03:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Audio Player</title>
<script type="text/javascript" src="pcm-to-wav.js"></script>
<script type="text/javascript" src="adpcm.js"></script>
<script type="text/javascript" src="main.js"></script>
<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">
</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;">
<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">
</div>
</div>
<div class="container-fluid">
<form enctype="multipart/form-data" onsubmit="presubmit();">
<div class="form-group">
<label>App key:</label>
<input class="form-control form-control-sm" type="input" id="ak" name="ak">
</div>
<div class="form-group">
<label>Media ID:</label>
<input class="form-control form-control-sm" type="input" id="id" name="id">
</div>
<div class="form-group">
<label>Start date or timestamp:</label>
<div class="row">
<div class="col">
<input class="form-control form-control-sm" type="datetime-local" id="sd" name="sd" onchange="sync('sd', 'st', true);">
</div>
<div class="col">
<input class="form-control form-control-sm" type="input" id="st" name="st" onchange="sync('sd', 'sd', false);">
</div>
</div>
</div>
<div class="form-group">
<label>Finish date or timestamp:</label>
<div class="row">
<div class="col">
<input class="form-control form-control-sm" type="datetime-local" id="fd" name="fd" onchange="sync('fd', 'ft', true);">
</div>
<div class="col">
<input class="form-control form-control-sm" type="input" id="ft" name="ft" onchange="sync('fd', 'fd', false);">
</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">
</div>
<div class="form-group">
2019-08-16 09:51:07 +03:00
<input type="hidden" id="ts">
</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>
<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>
</div>
<footer id="sticky-footer" class="footer fixed-bottom py-4 bg-dark text-white-50" style="width: 100%;">
<div class="container text-center">
<small>&copy;2019 Australian Ocean Laboratory Limited (AusOcean) (<a rel="license" href="https://www.ausocean.org/license">License</a>)</small>
</div>
</footer>
</body>
2019-07-18 06:41:52 +03:00
</html>