summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-28 20:51:30 +0100
committerTor Andersson <tor@ccxvii.net>2023-01-28 20:51:30 +0100
commitd8fd6baedb04ece10d4fc78eb8aac91f4cd283c9 (patch)
tree42284b02651dccd6d042a6d5110bcc4ba95eabda
parent534feca2fcbbea485d8bbe9b666da967bdebb4c0 (diff)
downloadhammer-of-the-scots-d8fd6baedb04ece10d4fc78eb8aac91f4cd283c9.tar.gz
Reword delayed hit/autohit options.
-rw-r--r--create.html21
-rw-r--r--play.html2
2 files changed, 7 insertions, 16 deletions
diff --git a/create.html b/create.html
index 963a647..1affdb4 100644
--- a/create.html
+++ b/create.html
@@ -21,30 +21,21 @@ Scottish infantry fire at +1 when the English have no archers.
<dt>
<label>
<input type="checkbox" id="delay_hits" name="delay_hits" value="true">
-Delay hit assignment
+Delayed hit assignment
</label>
-<dd>Let all blocks with the same initiative fire before assigning hits.
-<dd>This option is recommended for games that are not played live.
+<dd>Fire all blocks with the same initiative before assigning hits.
<dt>
<label>
<input type="checkbox" id="autohit" name="autohit" value="true">
-Automatically assign hits when possible.
+Automatic hit assignment
</label>
-<dd>
-<i class="warning" id="warning"></i>
+<dd>Assign hits automatically when there is no choice.
</dl>
<script>
let cb1 = document.getElementById("autohit")
let cb2 = document.getElementById("delay_hits")
-let msg = document.getElementById("warning")
-function warn_opts() {
- if (cb1.checked)
- msg.textContent = "Tip: Delay hit assignment is a better option for async play."
- else
- msg.textContent = ""
-}
-cb1.onchange = function () { if (cb1.checked) cb2.checked = false; warn_opts() }
-cb2.onchange = function () { if (cb2.checked) cb1.checked = false; warn_opts() }
+cb1.onchange = function () { if (cb1.checked) cb2.checked = false }
+cb2.onchange = function () { if (cb2.checked) cb1.checked = false }
</script>
diff --git a/play.html b/play.html
index 7dfe0e5..724c171 100644
--- a/play.html
+++ b/play.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
<meta charset="UTF-8">