game Of Life

This commit is contained in:
JurajKubrican
2025-03-04 16:31:19 +01:00
parent 7ed413648c
commit 00c209032f
16 changed files with 540 additions and 346 deletions

View File

@@ -3,19 +3,27 @@
<div class="boxes-container">
<label>
Auto play boxes
<input type="checkbox" id="auto-boxes"/>
<input type="checkbox" id="auto-boxes" />
</label>
<label>
Auto play Game of Life
<input type="checkbox" id="game-of-life" />
</label>
<div class="boxes">
{{range $index, $value := .}}<label
{{range .}}<label
><input
type="checkbox"
id="box-{{$index}}"
id="box-{{.Id}}"
name="checked"
{{if
$value}}checked{{end}} /></label
.Value
}}
checked="true"
{{end}} /></label
>{{end}}
</div>
</div>
<script src="js/ws.js"></script>
<script src="js/boxes.js"></script>
{{end}}