mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 16:59:15 +02:00
new version
This commit is contained in:
+5
-1
@@ -932,7 +932,11 @@ function updateDatasetValIfChanged($element, dataLabel, newVal) {
|
||||
const updateDataElements = throttle(function(parsedData) {
|
||||
updateTextIfChanged($dataFrequency, parsedData.freq);
|
||||
$commandInput.attr("aria-label", "Current frequency: " + parsedData.freq);
|
||||
updateHtmlIfChanged($dataPi, parsedData.pi === '?' ? "<span class='opacity-half'>?</span>" : parsedData.pi);
|
||||
|
||||
const questionCount = (parsedData.pi.match(/\?/g) || []).length;
|
||||
const opacity = 1 - (questionCount * 0.2);
|
||||
|
||||
updateHtmlIfChanged($dataPi,`<span style="opacity:${opacity}">${parsedData.pi}</span>`);
|
||||
|
||||
if ($('#ps-underscores').is(':checked')) {
|
||||
parsedData.ps = parsedData.ps.replace(/\s/g, '_');
|
||||
|
||||
Reference in New Issue
Block a user