diff --git a/Software/data_src/index.htm b/Software/data_src/index.htm index 476d651..2492679 100644 --- a/Software/data_src/index.htm +++ b/Software/data_src/index.htm @@ -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") diff --git a/Software/data_src/static/css/tweaks.css b/Software/data_src/static/css/tweaks.css index 89fcf8c..42512f6 100644 --- a/Software/data_src/static/css/tweaks.css +++ b/Software/data_src/static/css/tweaks.css @@ -18,3 +18,10 @@ hr { background-color: gray } +.dtc-debugval { + color: #F2771A; + font: 0.8rem Inconsolata, monospace; + background-color: black; + padding: 10px; +} +