From c685cc8f25adc5b2b72e4bda185fef7ec8dd6592 Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 8 Nov 2024 11:39:04 +0100 Subject: push all, yolo --- templates/battleSingle.html | 266 ++++++++++++++++++++++---------------------- templates/nav.html | 4 +- 2 files changed, 138 insertions(+), 132 deletions(-) (limited to 'templates') diff --git a/templates/battleSingle.html b/templates/battleSingle.html index b5bb6d6..267a0df 100644 --- a/templates/battleSingle.html +++ b/templates/battleSingle.html @@ -11,116 +11,115 @@ Settings Registered Bots Output +Debug

Settings

-
-
- - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - + + - + id="bit-{{$bit.ID}}" + name="bit-{{$bit.ID}}" + {{if $bit.Enabled}}checked{{end}}/> + + {{- end }} + + + + + + + + - - - - - - - - - - - {{ if .res }} - + {{ end }} @@ -131,41 +130,38 @@ {{ if .myBots }} - - - - - - - - - + + + + + + + + + {{ else }} @@ -176,6 +172,7 @@ {{ end }} +
- {{ range $idx, $bot := .battle.Bots }}{{if $idx}},{{end}}{{ $bot.Name }}{{ end }} +
+ {{ range $idx, $bot := .battle.Bots }}{{if $idx}},{{end}}{{ $bot.Name }}{{ end }} +
Archs + {{ range $idx, $arch := .archs }}{{if $idx}},{{end}} + + + {{- end }} +
Archs - {{ range $idx, $arch := .archs }}{{if $idx}},{{end}} +
Bits{{ range $idx, $bit := .bits }}{{if $idx}},{{end}} - - {{- end }} -
+ + + + + + +
+ +
+
Bits{{ range $idx, $bit := .bits }}{{if $idx}},{{end}} - - - {{- end }} -
- - - - - - -
- -
-
{{ .res }}
{{ .res }}
- - - {{ range $bot := .myBots }} - - - - - {{ end }} - - -
- - - -
-
+ + {{ range $bot := .myBots }} + + + + + {{ end }} +
+ + + +
+

@@ -184,6 +181,12 @@ +

+ + + + +

Registered Bots

@@ -194,7 +197,10 @@
{{ .battle.RawOutput }}
- + +

Debug

+ +
{{ .battle }}
{{ template "footer" . }} {{ end }} diff --git a/templates/nav.html b/templates/nav.html index 117f48a..cd710cb 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -1,7 +1,7 @@ {{ define "nav" }}
-

- EARLY BETA - Data can be deleted at random! +

+ EARLY BETA - Data can be deleted at random! - insecure af but almost functional

r2wa.rs -- cgit 1.4.1