Skip to content

Commit

Permalink
Increment your number at end of contact
Browse files Browse the repository at this point in the history
  • Loading branch information
qsantos committed Oct 24, 2024
1 parent a41c51c commit dad2a35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/contest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl))

let yourRealNumber = 1;
let theirRealCallSign = null;
let theirRealNumber = null;
let youSending = false;
Expand Down Expand Up @@ -202,6 +203,9 @@ async function sendReportAndNumber() {
theirCallSign.value = '';
theirNumber.value = '';
theirCallSign.focus();
// Increment your number
yourRealNumber += 1;
yourNumber.value = formatNumber(yourRealNumber);
}

function yourCallSignKeyDown(event) {
Expand Down

0 comments on commit dad2a35

Please sign in to comment.