Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Commit 5267cdf

Browse files
authored
Update index.html
Signed-off-by: Blake Arnold <[email protected]>
1 parent 2048f07 commit 5267cdf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,13 @@
221221
</body>
222222
<script>
223223
showTabContent('tab1')
224+
document.getElementById('newMessageBtn').addEventListener('click', function() {
225+
document.getElementById('message').value = '';
226+
let fileInput = document.getElementById('fileInput');
227+
if(fileInput) fileInput.value = '';
228+
let msgNum = Math.floor(Math.random() * 900000) + 100000;
229+
document.getElementById('messageNum').value = msgNum;
230+
});
224231
function strToBuf(str) {
225232
return new TextEncoder().encode(str);
226233
}

0 commit comments

Comments
 (0)