mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-20 20:55:54 -05:00
changed controls
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
name="%REACT_APP_SITE_NAME%"
|
||||
content="Listen to live Police and Fire radio broadcasts. Archived for 30 days and searchable."
|
||||
/>
|
||||
<!-- Below is an ugly hack! I needed a way to add a tag to insert Twitter Meta if needed-->
|
||||
<!-- I SED the tag below out and replace it with an EJS tag to insert a block of meta -->
|
||||
<meta name="temp" conent="replace"/>
|
||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/apple-touch-icon.png" />
|
||||
<!--
|
||||
|
||||
@@ -4,6 +4,14 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>OpenMHz</title>
|
||||
<script src="https://unpkg.com/wavesurfer.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="demo">
|
||||
<div id="waveform">
|
||||
<!-- Here be the waveform -->
|
||||
</div>
|
||||
<script>
|
||||
// Create an instance
|
||||
let wavesurfer;
|
||||
@@ -30,28 +38,9 @@
|
||||
// Load audio from URL
|
||||
wavesurfer.load(call_url);
|
||||
|
||||
// toggle play button
|
||||
document
|
||||
.querySelector('[data-action="play"]')
|
||||
.addEventListener("click", wavesurfer.playPause.bind(wavesurfer));
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="demo">
|
||||
<div id="waveform">
|
||||
<!-- Here be the waveform -->
|
||||
</div>
|
||||
|
||||
<div class="controls">
|
||||
<button class="btn btn-primary" data-action="play">
|
||||
<i class="glyphicon glyphicon-play"></i>
|
||||
Play /
|
||||
<i class="glyphicon glyphicon-pause"></i>
|
||||
Pause
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user