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

View File

@@ -171,7 +171,6 @@ def workout_video_create_view(request,id=0):
if request.method == 'POST': if request.method == 'POST':
form = VideoAnalysisCreateForm(request.POST) form = VideoAnalysisCreateForm(request.POST)
metricsform = VideoAnalysisMetricsForm(request.POST,mode=mode) metricsform = VideoAnalysisMetricsForm(request.POST,mode=mode)
print(request.POST)
if form.is_valid() and metricsform.is_valid(): if form.is_valid() and metricsform.is_valid():
url = form.cleaned_data['url'] url = form.cleaned_data['url']
delay = form.cleaned_data['delay'] delay = form.cleaned_data['delay']