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