move scripting up so it's available on partially loaded pages
This commit is contained in:
parent
942025be9b
commit
921524a42a
|
@ -18,17 +18,6 @@
|
||||||
<button onclick="oldestnewest(this)">scroll down</button>
|
<button onclick="oldestnewest(this)">scroll down</button>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div id="honksonpage">
|
|
||||||
<div>
|
|
||||||
{{ $BonkCSRF := .HonkCSRF }}
|
|
||||||
{{ $IsPreview := .IsPreview }}
|
|
||||||
{{ $MapLink := .MapLink }}
|
|
||||||
{{ range .Honks }}
|
|
||||||
{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "IsPreview" $IsPreview }}
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
{{ if .HonkCSRF }}
|
{{ if .HonkCSRF }}
|
||||||
<script>
|
<script>
|
||||||
var csrftoken = {{ .HonkCSRF }}
|
var csrftoken = {{ .HonkCSRF }}
|
||||||
|
@ -42,3 +31,14 @@ servermsgs[curpagestate.name + ":" + curpagestate.arg] = "{{ .ServerMessage }}"
|
||||||
</script>
|
</script>
|
||||||
<script src="/honkpage.js{{ .JSParam }}"></script>
|
<script src="/honkpage.js{{ .JSParam }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
<div id="honksonpage">
|
||||||
|
<div>
|
||||||
|
{{ $BonkCSRF := .HonkCSRF }}
|
||||||
|
{{ $IsPreview := .IsPreview }}
|
||||||
|
{{ $MapLink := .MapLink }}
|
||||||
|
{{ range .Honks }}
|
||||||
|
{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "IsPreview" $IsPreview }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
Loading…
Reference in New Issue