31 lines
No EOL
623 B
HTML
31 lines
No EOL
623 B
HTML
{{template "layout.html" .}}
|
|
|
|
{{define "title"}}Legends Browser{{end}}
|
|
|
|
{{define "content"}}
|
|
<h3>Civilizations</h3>
|
|
|
|
<ul>
|
|
{{- range $race, $civs := .Civilizations }}
|
|
<li>{{ $race }}</li>
|
|
<ul>
|
|
{{- range $civs }}
|
|
<li>{{ entity .Id }}</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end }}
|
|
</ul>
|
|
|
|
<div id="map" style="height: 400px"></div>
|
|
<script>
|
|
var map = L.map('map').setView([5, 5], 13);
|
|
|
|
var imageUrl = '$suburi/map'
|
|
var imageBounds = [[0, 0],
|
|
[10, 10]];
|
|
|
|
var imageLayer = L.imageOverlay(imageUrl, imageBounds, { opacity: 0.5 });
|
|
imageLayer.addTo(map);
|
|
|
|
</script>
|
|
{{- end }} |