chore: format code

This commit is contained in:
Dillon
2019-08-09 21:25:13 +08:00
parent 0e48c9f3e3
commit c16db324fa
8 changed files with 137 additions and 147 deletions

View File

@@ -8,9 +8,7 @@
{{ $id = printf "#%s" $id }}
{{ with .Get "date" }}
<script>
if (!window.countdownMap) {
var countdownMap = {}
}
var countdownMap = window.countdownMap || {};
countdownMap["{{ $id }}"] = {{ . }};
</script>
{{ end }}

View File

@@ -7,9 +7,7 @@
{{ end }}
{{ $id = printf "#%s" $id }}
<script>
if (!window.typeitMap) {
var typeitMap = {}
}
var typeitMap = window.typeitMap || {};
typeitMap["{{ $id }}"] = {{ .Inner | safeHTML }};
</script>
{{ end }}