Private
Public Access
1
0

google gauge working

This commit is contained in:
Sander Roosendaal
2019-12-10 17:33:00 +01:00
parent 128e0a7ca2
commit db7c224beb
2 changed files with 48 additions and 61 deletions

View File

@@ -29,6 +29,8 @@
{% block meta %}
{% leaflet_js %}
{% leaflet_css %}
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript" src="{% static 'js/videogauges.js' %}"></script>
<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>
@@ -270,7 +272,9 @@ function copyText() {
{% for group in metricsgroups %}
try {
set_{{ group }}();
} catch (e) {}
} catch (e) {
console.log(e);
}
{% endfor %}
try {
var newLatLng = new L.LatLng(lat, lon);
@@ -372,7 +376,7 @@ function copyText() {
{% endfor %}
{% for group in metricsgroups %}
<li class="grid_2">
<canvas id="{{ group }}"></canvas>
<div id="{{ group }}"></div>
</li>
{% endfor %}
</ul>
@@ -496,7 +500,8 @@ function copyText() {
{% for group in metricsgroups %}
try {
set_{{ group }}();
} catch (e) {}
} catch (e) {
}
{% endfor %}
try {
var newLatLng = new L.LatLng(lat, lon);
@@ -563,7 +568,9 @@ function copyText() {
{% for group in metricsgroups %}
try {
set_{{ group }}();
} catch (e) {}
} catch (e) {
console.log(e);
}
{% endfor %}
try {
var newLatLng = new L.LatLng(lat, lon);
@@ -692,8 +699,6 @@ dataplay.onclick = function() {
});
</script>
<script type="text/javascript" src="https://bernii.github.io/gauge.js/dist/gauge.js"></script>
<script type="text/javascript" src="{% static 'js/videogauges.js' %}"></script>
{% endlanguage %}
{% endblock %}