Commit
·
089e758
1
Parent(s):
3533d0c
feat: block button before page loaded
Browse files- dist/index.js +0 -0
- index.html +1 -1
- src/index.js +4 -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">Download</button>
|
128 |
</div>
|
129 |
<p id="download-status" class="hidden"></p>
|
130 |
|
|
|
124 |
</div>
|
125 |
</form>
|
126 |
|
127 |
+
<button id="download" disabled>Download</button>
|
128 |
</div>
|
129 |
<p id="download-status" class="hidden"></p>
|
130 |
|
src/index.js
CHANGED
@@ -187,3 +187,7 @@ document.getElementById("user-input").addEventListener("keydown", (event) => {
|
|
187 |
onMessageSend();
|
188 |
}
|
189 |
});
|
|
|
|
|
|
|
|
|
|
187 |
onMessageSend();
|
188 |
}
|
189 |
});
|
190 |
+
|
191 |
+
document.onload = function () {
|
192 |
+
document.getElementById("download").disabled = false;
|
193 |
+
}
|