fixed time issue

This commit is contained in:
alicestrt 2021-01-06 17:25:12 +01:00
parent c628f2463b
commit bc6f5999d8

View File

@ -36,10 +36,10 @@
</audio> </audio>
</div> </div>
<div class="map_legend"> <div class="map_legend">
<div id="box1" onclick="popup_bg(120,group1)"><i class="fas fa-play"></i></div> <p>Folklore literature</p> <div id="box1" onclick="popup_bg(120)"><i class="fas fa-play"></i></div> <p>Folklore literature</p>
<div id="box2" onclick="popup_bg(300,group2)"><i class="fas fa-play"></i></div><p>Islamic Mysticism</p> <div id="box2" onclick="popup_bg(300)"><i class="fas fa-play"></i></div><p>Islamic Mysticism</p>
<div id="box3" onclick="popup_bg(500,group3)"><i class="fas fa-play"></i></div> <p>Contemporary poets</p> <div id="box3" onclick="popup_bg(500)"><i class="fas fa-play"></i></div> <p>Contemporary poets</p>
<div id="box4" onclick="popup_bg(700,group4)"><i class="fas fa-play"></i></div> <p>Contemporary musicians</p> <div id="box4" onclick="popup_bg(700)"><i class="fas fa-play"></i></div> <p>Contemporary musicians</p>
</div> </div>
</div> </div>
</div> </div>
@ -134,11 +134,9 @@ Technical details: We have built the visualization from scratch using a javascri
</script> </script>
<script> <script>
function popup_bg(time,group) { function popup_bg(time) {
var box = document.getElementById("audioBG"); var box = document.getElementById("audioBG");
// if (box.currentTime>0) { console.log(time);
// box.currentTime = 0;
// } else {
box.currentTime = time; box.currentTime = time;
box.play(); box.play();
btn.innerHTML = "(Pause)"; btn.innerHTML = "(Pause)";