minor FormatTweaks for DTC-DebugVal in WebUI

This commit is contained in:
Marcel Peterkau 2022-09-02 00:10:21 +02:00
parent 371e21429d
commit 140414ee8b
2 changed files with 13 additions and 1 deletions

View File

@ -662,7 +662,12 @@
$.getJSON('static/tt_dtc/dtc_' + dtc + '.json', function (data) {
modal.find('.modal-title').text(data.title)
modal.find('.dtc-desc').text(data.description)
modal.find('.dtc-debugval').text(debugval)
if (debugval > 0) {
modal.find('.dtc-debugval').text("Debugvalue: " + debugval)
}
else {
modal.find('.dtc-debugval').remove()
}
}).fail(function () {
console.log("An error has occurred.");
modal.find('.modal-title').text("Fehler")

View File

@ -18,3 +18,10 @@ hr {
background-color: gray
}
.dtc-debugval {
color: #F2771A;
font: 0.8rem Inconsolata, monospace;
background-color: black;
padding: 10px;
}