new version

This commit is contained in:
2026-04-11 13:45:44 +02:00
parent 97b087bb5e
commit 477a80045f
8 changed files with 18 additions and 13 deletions
+5 -1
View File
@@ -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, '_');