Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -139981,8 +139981,19 @@ <h4>
try {


let n = parseInt($("#share-threshold")[0].value);
let m = parseInt($("#share-total")[0].value);
let thresholdValue = $("#share-threshold")[0].value.trim();
let totalValue = $("#share-total")[0].value.trim();
if (!/^\d+$/.test(thresholdValue) || !/^\d+$/.test(totalValue)) {
await run_task(type_text, "#calc-status", "Threshold and total shares must be whole numbers", "text-red");
return;
}

let n = parseInt(thresholdValue, 10);
let m = parseInt(totalValue, 10);
if (n < 2) {
await run_task(type_text, "#calc-status", "Minimum threshold is 2 shares", "text-red");
return;
}
if (m > 15) {
await run_task(type_text, "#calc-status", "This tool limited to 15 total shares", "text-red");
return;
Expand Down Expand Up @@ -140302,4 +140313,4 @@ <h4>



</body></html>
</body></html>