summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorGrailFinder <wohilas@gmail.com>2024-03-23 07:26:24 +0300
committerGrailFinder <wohilas@gmail.com>2024-03-23 07:26:24 +0300
commit87d71e65ed131b3e15510af968dd5ba0d30d851d (patch)
tree78249d3ece11bb6c3fc96fd1c23273ae87e02523 /components
parent5f2eb541052f6f6f02d5bc4320f9c19e21c6f59f (diff)
Feat: parse input; show actions
Diffstat (limited to 'components')
-rw-r--r--components/index.html21
1 files changed, 20 insertions, 1 deletions
diff --git a/components/index.html b/components/index.html
index 90e8050..7c4cb82 100644
--- a/components/index.html
+++ b/components/index.html
@@ -10,7 +10,22 @@
<div id="ancestor">
<hr />
<div>
- HELLO {{.}}
+ HELLO {{.ID}}
+ <br />
+ You have {{len .Actions}} actions.
+ <br />
+ Your current score: {{.Score}}
+ <br />
+ {{ range .Actions }}
+ Action Name: {{.Name}}
+ <br />
+ Action Magnitude: {{.Magnitude}}
+ <br />
+ Action Type: {{.Type}}
+ <br />
+ Repeatable: {{.Repeatable}}
+ <br />
+ {{end}}
</div>
<div>
@@ -22,6 +37,10 @@
<input type="number" default="1" name="magnitude"><br />
<label>Repeatable:</label><br />
<input type="checkbox" name="repeatable"></input><br />
+ <input type="radio" name="act_type" value="plus" checked>
+ <label for="plus">Plus</label>
+ <input type="radio" name="act_type" value="minus">
+ <label for="minus">Minus</label><br>
<input type="submit">
</form>
</div>