|
@@ -19,9 +19,8 @@
|
19
|
19
|
</div>
|
20
|
20
|
</div>
|
21
|
21
|
</div>
|
|
22
|
+ <script src="/static/js/config.js"></script>
|
22
|
23
|
<script src="/static/js/jquery-3.7.1.min.js"></script>
|
23
|
|
- <script src="/static/js/jquery.marquee.min.js"></script>
|
24
|
|
- <script src="/static/bootstrap/js/bootstrap.bundle.min.js"></script>
|
25
|
24
|
<script>
|
26
|
25
|
async function getDistance() {
|
27
|
26
|
try {
|
|
@@ -35,7 +34,7 @@
|
35
|
34
|
async function updateDistance() {
|
36
|
35
|
var dist = await getDistance();
|
37
|
36
|
var bar = document.getElementById("distance-bar");
|
38
|
|
- var percentage = dist>2000 ? 100 : parseInt((100.0*dist)/2000.0);
|
|
37
|
+ var percentage = dist>2000 ? 100 : parseInt((100.0*dist)/MAX_DISTANCE);
|
39
|
38
|
bar.style.width=`${percentage}%`;
|
40
|
39
|
bar.textContent = dist;
|
41
|
40
|
}
|