Private
Public Access
1
0

not working

This commit is contained in:
Sander Roosendaal
2019-11-19 08:41:50 +01:00
parent 471b95f885
commit ead7fb6561
2 changed files with 4 additions and 1 deletions

View File

@@ -293,6 +293,7 @@
</ul>
</form>
<script>
$(document).ready( function() {
// lock
var lock = document.getElementById("lock");
var output = document.getElementById("id_delay");
@@ -318,6 +319,7 @@
}
// Update the current slider value (each time you drag the slider handle)
slider.oninput = function() {
clearInterval(timeupdater)
if (lock.checked) {
if (this.value-output.value > 0) {
player.seekTo(this.value-output.value);
@@ -335,6 +337,7 @@
// console.log('changing');
output.value = this.value-Math.round(player.getCurrentTime());
}
timeupdater = setInterval(updateTime, 1000)
}
output.oninput = function() {
@@ -349,6 +352,7 @@
output.disabled = false;
}
}
});
</script>
{% endlanguage %}