Commit
·
f7c6c35
1
Parent(s):
089e758
feat: add loading text to button
Browse files- dist/index.js +0 -0
- index.html +1 -1
- src/index.js +1 -0
dist/index.js
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
index.html
CHANGED
|
@@ -124,7 +124,7 @@
|
|
| 124 |
</div>
|
| 125 |
</form>
|
| 126 |
|
| 127 |
-
<button id="download" disabled>
|
| 128 |
</div>
|
| 129 |
<p id="download-status" class="hidden"></p>
|
| 130 |
|
|
|
|
| 124 |
</div>
|
| 125 |
</form>
|
| 126 |
|
| 127 |
+
<button id="download" disabled>Loading...</button>
|
| 128 |
</div>
|
| 129 |
<p id="download-status" class="hidden"></p>
|
| 130 |
|
src/index.js
CHANGED
|
@@ -189,5 +189,6 @@ document.getElementById("user-input").addEventListener("keydown", (event) => {
|
|
| 189 |
});
|
| 190 |
|
| 191 |
document.onload = function () {
|
|
|
|
| 192 |
document.getElementById("download").disabled = false;
|
| 193 |
}
|
|
|
|
| 189 |
});
|
| 190 |
|
| 191 |
document.onload = function () {
|
| 192 |
+
document.getElementById("download").textContent = "Download";
|
| 193 |
document.getElementById("download").disabled = false;
|
| 194 |
}
|