diff --git a/snstranscripts.html b/snstranscripts.html index e181ce9..09f7d5d 100644 --- a/snstranscripts.html +++ b/snstranscripts.html @@ -177,17 +177,17 @@

Inserisci la password necessaria -
-
+
+
- - + - -
@@ -302,7 +302,7 @@

Inserisci la password necessaria // collapsible main button let caButton = document.createElement("a"); - caButton.classList.add("btn", "btn-primary", "btn-block", "col-12") + caButton.setAttribute("id", "cbt_" + element); caButton.setAttribute("data-bs-toggle", "collapse") caButton.setAttribute("href", "#".concat(element)) @@ -310,6 +310,11 @@

Inserisci la password necessaria caButton.setAttribute("aria-expanded", "false") caButton.setAttribute("aria-controls", element) caButton.innerHTML = snsVideoJson[element]["title"] + " (" + snsVideoJson[element]["videoPublishedAt"].substr(0, 10) + " | ~" + jsonSnSTranscript[element]["duration"] + " min.) - #" + counter.toString(); + if (jsonSnSTranscript[element]["text"].toLowerCase() == "nessuna trascrizione"){ + caButton.classList.add("btn", "btn-secondary", "btn-block", "col-12") + } else { + caButton.classList.add("btn", "btn-primary", "btn-block", "col-12") + } collapseBtnDiv.appendChild(caButton); counter -= 1;