Private
Public Access
1
0

better metrics selection

This commit is contained in:
Sander Roosendaal
2019-11-18 10:52:34 +01:00
parent 9650a7cb71
commit 01c02b2b02
5 changed files with 66 additions and 24 deletions

View File

@@ -13,6 +13,15 @@
{% leaflet_css %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script>
$(document).ready(function() {
$('form').submit(function(e) {
$(':disabled').each(function(e) {
$(this).removeAttr('disabled');
});
});
});
</script>
{% endblock %}
{% block main %}
@@ -158,7 +167,7 @@
{% endfor %}
// gauge.set(catch_now);
var newLatLng = new L.LatLng(lat, lon);
console.log(newLatLng);
// console.log(newLatLng);
marker.setLatLng(newLatLng);
}
if(videotime !== oldTime) {
@@ -275,8 +284,10 @@
<script>
// lock
var lock = document.getElementById("lock");
var output = document.getElementById("id_delay");
{% if locked %}
lock.checked = true;
output.disabled = true;
{% endif %}
@@ -310,7 +321,7 @@
}
}
} else {
console.log('changing');
// console.log('changing');
output.value = this.value-Math.round(player.getCurrentTime());
}
}