dorfylegends/backend/templates/landmass.html

19 lines
380 B
HTML
Raw Normal View History

2022-05-04 15:07:35 +03:00
{{template "layout.html" .}}
{{define "title"}}{{ title .Name }}{{end}}
{{define "content"}}
2022-05-10 10:51:04 +03:00
{{ if world.MapReady }}
2022-05-08 10:35:57 +03:00
<div class="object-map">
<div id="map" style="width: 300px; height: 300px"></div>
</div>
{{initMap}}
{{ addLandmass .Id }}
<script>map.addLayer(landmassesLayer);</script>
2022-05-10 10:51:04 +03:00
{{- end }}
2022-05-08 10:35:57 +03:00
2022-05-08 15:10:59 +03:00
<h1>{{ title .Name }}</h1>
<p>landmass</p>
2022-05-04 15:07:35 +03:00
<p>{{ json . }}</p>
{{- end }}