not working
This commit is contained in:
@@ -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 %}
|
||||||
|
|
||||||
|
|||||||
@@ -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']
|
||||||
|
|||||||
Reference in New Issue
Block a user