summaryrefslogtreecommitdiff
path: root/create.html
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-17 16:36:57 +0200
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-17 16:36:57 +0200
commitebb096e2880cb7b00b58b15e42f253eab789d68e (patch)
tree5f92eaab8eb92077124cdae30f5bc4e776987062 /create.html
parentedf716d268ac87a7522f76c2b6b9880f7f2e7405 (diff)
downloadalgeria-ebb096e2880cb7b00b58b15e42f253eab789d68e.tar.gz
slow french reaction
Diffstat (limited to 'create.html')
-rw-r--r--create.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/create.html b/create.html
index e69de29..3147f84 100644
--- a/create.html
+++ b/create.html
@@ -0,0 +1,37 @@
+<style>
+ .hide { display: none; }
+</style>
+<p>
+Optional rules:
+<div class="only1954">
+<label>
+<input type="checkbox" name="slow_french_reaction" value="true">
+Slow French Reaction (1954 Scenario)
+</label>
+</div>
+
+<div class="only1954">
+<label>
+<input type="checkbox" name="more_deterministic_independence" value="true">
+More Deterministic Independence (1954 Scenario)
+</label>
+</div>
+
+<div>
+<label>
+<input type="checkbox" name="shorter_game" value="true">
+Shorter Game
+</label>
+</div>
+
+<script>
+let scenario = document.querySelector("select[name='scenario']");
+scenario.onchange = function (evt) {
+ document.querySelectorAll(".only1954").forEach(label => {
+ label.classList.toggle("hide", scenario.value !== "1954")
+ if (scenario.value !== "1954")
+ label.querySelector("input").checked = false
+ })
+}
+scenario.onchange();
+</script> \ No newline at end of file