turn button to disabled after click

This commit is contained in:
lifeadventurer
2023-11-23 11:06:58 +08:00
parent 042b5c6826
commit 79b0c3517d

View File

@@ -141,6 +141,10 @@ function Appear() {
$('#r-1-desc').show();
$('#r-2-event').show();
$('#r-2-desc').show();
// disable the btn
$('#btn').click(() => {
$(this).prop('disabled', true);
});
// transform ip to four numbers
let num = ip.split(".").map(num => parseInt(num));