Update index.html
Browse files- index.html +4 -4
index.html
CHANGED
|
@@ -786,8 +786,8 @@
|
|
| 786 |
const input = document.querySelector(`input[name="${field.id}"]`);
|
| 787 |
if (!input) return;
|
| 788 |
input.value = audioUrl;
|
| 789 |
-
input.disabled = true;
|
| 790 |
-
input.
|
| 791 |
const label = input.previousElementSibling;
|
| 792 |
if (label?.tagName === "LABEL") label.style.display = "none";
|
| 793 |
});
|
|
@@ -899,7 +899,7 @@
|
|
| 899 |
if (!label.getAttribute('data-original')) {
|
| 900 |
label.setAttribute('data-original', originalText);
|
| 901 |
}
|
| 902 |
-
console.log(originalText)
|
| 903 |
// Check if the label contains markdown syntax
|
| 904 |
if (originalText.includes('**') || originalText.includes('*') || originalText.includes('`') || originalText.includes('#')) {
|
| 905 |
label.innerHTML = parseMarkdown(originalText);
|
|
@@ -910,7 +910,7 @@
|
|
| 910 |
// Use the pre-sampled audio files based on current submission count
|
| 911 |
const audioFile = audioSamples[submitted];
|
| 912 |
const audioUrl = getAudioUrl(audioFile);
|
| 913 |
-
console.log(audioUrl)
|
| 914 |
applyAudioFields(audioUrl);
|
| 915 |
const introSection = document.querySelector(
|
| 916 |
`#form-${formDef.id} .form-intro`,
|
|
|
|
| 786 |
const input = document.querySelector(`input[name="${field.id}"]`);
|
| 787 |
if (!input) return;
|
| 788 |
input.value = audioUrl;
|
| 789 |
+
//input.disabled = true;
|
| 790 |
+
input.style.display = "none";
|
| 791 |
const label = input.previousElementSibling;
|
| 792 |
if (label?.tagName === "LABEL") label.style.display = "none";
|
| 793 |
});
|
|
|
|
| 899 |
if (!label.getAttribute('data-original')) {
|
| 900 |
label.setAttribute('data-original', originalText);
|
| 901 |
}
|
| 902 |
+
//console.log(originalText)
|
| 903 |
// Check if the label contains markdown syntax
|
| 904 |
if (originalText.includes('**') || originalText.includes('*') || originalText.includes('`') || originalText.includes('#')) {
|
| 905 |
label.innerHTML = parseMarkdown(originalText);
|
|
|
|
| 910 |
// Use the pre-sampled audio files based on current submission count
|
| 911 |
const audioFile = audioSamples[submitted];
|
| 912 |
const audioUrl = getAudioUrl(audioFile);
|
| 913 |
+
//console.log(audioUrl)
|
| 914 |
applyAudioFields(audioUrl);
|
| 915 |
const introSection = document.querySelector(
|
| 916 |
`#form-${formDef.id} .form-intro`,
|