clean up htmx tags
This commit is contained in:
parent
2c8ae83641
commit
9ed4591f53
34
index.html
34
index.html
|
@ -111,21 +111,21 @@
|
||||||
</figure>
|
</figure>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<div id="control">
|
<div id="control" hx-swap="none">
|
||||||
<button hx-get="/api/alloc/32" hx-swap="none">/32</button>
|
<button hx-get="/api/alloc/32">/32</button>
|
||||||
<button hx-get="/api/alloc/31" hx-swap="none">/31</button>
|
<button hx-get="/api/alloc/31">/31</button>
|
||||||
<button hx-get="/api/alloc/30" hx-swap="none">/30</button>
|
<button hx-get="/api/alloc/30">/30</button>
|
||||||
<button hx-get="/api/alloc/29" hx-swap="none">/29</button>
|
<button hx-get="/api/alloc/29">/29</button>
|
||||||
<button hx-get="/api/alloc/28" hx-swap="none">/28</button>
|
<button hx-get="/api/alloc/28">/28</button>
|
||||||
<button hx-get="/api/alloc/27" hx-swap="none">/27</button>
|
<button hx-get="/api/alloc/27">/27</button>
|
||||||
<button hx-get="/api/alloc/26" hx-swap="none">/26</button>
|
<button hx-get="/api/alloc/26">/26</button>
|
||||||
<button hx-get="/api/alloc/25" hx-swap="none">/25</button>
|
<button hx-get="/api/alloc/25">/25</button>
|
||||||
<button hx-get="/api/alloc/24" hx-swap="none">/24</button>
|
<button hx-get="/api/alloc/24">/24</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ block "update" .Update }}<div id="updatemsg" class="card {{ .Type }}" hx-swap-oob="morph">{{ with .Content }}{{ . }}{{ end }}</div>{{ end }}
|
{{ block "update" .Update }}<div id="updatemsg" class="card {{ .Type }}" hx-swap-oob="morph">{{ with .Content }}{{ . }}{{ end }}</div>{{ end }}
|
||||||
{{ block "treemap" .Treemap }}
|
{{ block "treemap" .Treemap }}
|
||||||
<div id="treemap" hx-swap-oob="morph">
|
<div id="treemap" hx-swap="none" hx-swap-oob="morph">
|
||||||
{{- with .ViewBox }}
|
{{- with .ViewBox }}
|
||||||
<svg viewBox="{{.X}} {{.Y}} {{.W}} {{.H}}">
|
<svg viewBox="{{.X}} {{.Y}} {{.W}} {{.H}}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -143,16 +143,16 @@
|
||||||
{{- range .Regions }}
|
{{- range .Regions }}
|
||||||
<g style="fill:var(--cfg); stroke:white; stroke-width:0.1;">
|
<g style="fill:var(--cfg); stroke:white; stroke-width:0.1;">
|
||||||
<title>{{.Prefix}}</title>\n", p
|
<title>{{.Prefix}}</title>\n", p
|
||||||
<rect hx-get="/api/dealloc/{{.Prefix}}" hx-swap="none" {{ with .Rect }}x="{{.X}}" y="{{.Y}}" width="{{.W}}" height="{{.H}}"{{end}} rx="0.2"/>
|
<rect hx-get="/api/dealloc/{{.Prefix}}" {{ with .Rect }}x="{{.X}}" y="{{.Y}}" width="{{.W}}" height="{{.H}}"{{end}} rx="0.2"/>
|
||||||
</g>
|
</g>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ block "used" .Api }}
|
{{ block "used" .Api }}
|
||||||
<div id="state" hx-swap-oob="morph">
|
<div id="state" hx-swap-oob="morph" hx-swap="none">
|
||||||
<h2>grouped</h2>
|
<h2>grouped</h2>
|
||||||
<div id="used-grouped" hx-swap-oob="morph">
|
<div id="used-grouped">
|
||||||
{{- range .UsedGrouped }}
|
{{- range .UsedGrouped }}
|
||||||
{{- $first := index . 0 }}
|
{{- $first := index . 0 }}
|
||||||
{{- $bits := $first.Bits }}
|
{{- $bits := $first.Bits }}
|
||||||
|
@ -160,7 +160,7 @@
|
||||||
<h3>/{{ $bits }}</h3>
|
<h3>/{{ $bits }}</h3>
|
||||||
<table id="group-{{ $bits }}">
|
<table id="group-{{ $bits }}">
|
||||||
{{- range . }}
|
{{- range . }}
|
||||||
<tr hx-get="/api/dealloc/{{.}}" hx-swap="none"><td>{{.Addr}}</td><td>{{.Bits}}</td></tr>
|
<tr hx-get="/api/dealloc/{{.}}"><td>{{.Addr}}</td><td>{{.Bits}}</td></tr>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -168,10 +168,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>all</h2>
|
<h2>all</h2>
|
||||||
<div id="used" hx-swap-oob="morph">
|
<div id="used">
|
||||||
<table>
|
<table>
|
||||||
{{- range .Used }}
|
{{- range .Used }}
|
||||||
<tr hx-get="/api/dealloc/{{.}}" hx-swap="none"><td>{{.Addr}}</td><td>{{.Bits}}</td></tr>{{ end }}
|
<tr hx-get="/api/dealloc/{{.}}"><td>{{.Addr}}</td><td>{{.Bits}}</td></tr>{{ end }}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user