Compare commits
2 Commits
170c66ff49
...
ae8eef52ef
Author | SHA1 | Date | |
---|---|---|---|
ae8eef52ef | |||
d9ee193e26 |
@ -3,7 +3,7 @@
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>KTM CAN Chain Oiler</title>
|
||||
<title>Dark Emergency Timer</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="static/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="static/css/custom.css">
|
||||
@ -63,7 +63,7 @@
|
||||
<div class="col text-center">
|
||||
<div class="jumbotron">
|
||||
<img src="static/img/logo.png" width="120" height="120" class="img-fluid" alt="">
|
||||
<h3 class="pt-3">KTM CAN Chain Lube</h3>
|
||||
<h3 class="pt-3">Dark Emergency Timer</h3>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Div Group Battery remain -->
|
||||
|
@ -84,7 +84,6 @@ function onMessage(event) {
|
||||
|
||||
processDTCNotifications(dtcArray);
|
||||
fillDTCTable(dtcArray);
|
||||
|
||||
} else if (data.startsWith("MAPPING_STATUS:")) {
|
||||
const data_sliced = data.slice(15);
|
||||
statusMapping = createMapping(data_sliced);
|
||||
@ -194,6 +193,19 @@ function fillValuesToHTML(dataset) {
|
||||
}
|
||||
}
|
||||
|
||||
function formatTime(seconds) {
|
||||
var hrs = Math.floor(seconds / 3600);
|
||||
var mins = Math.floor((seconds % 3600) / 60);
|
||||
var secs = seconds % 60;
|
||||
|
||||
return (
|
||||
String(hrs).padStart(2, "0") +
|
||||
":" +
|
||||
String(mins).padStart(2, "0") +
|
||||
":" +
|
||||
String(secs).padStart(2, "0")
|
||||
);
|
||||
}
|
||||
|
||||
// Funktion zum Setzen des ausgewählten Werts für Dropdowns
|
||||
function setDropdownValue(selectElement, value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user