mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-20 21:19:31 -07:00
finish transition to json data fetching
add smooth close animation
This commit is contained in:
@@ -24,13 +24,15 @@
|
||||
{{ $.Scratch.Add "img" slice }}
|
||||
{{ range . }}
|
||||
{{ $index = sub $index 1}}
|
||||
{{ $.Scratch.Add "img" (dict "link" .RelPermalink "height" .Height "width" .Width) }}
|
||||
<div class="image_container" data-index="{{ $index }}" data-status="inactive">
|
||||
<img src="{{ .RelPermalink }}" height="{{ .Height }}" width="{{ .Width }}"/>
|
||||
</div>
|
||||
{{ $.Scratch.Add "img" (dict "index" (string $index) "url" (string .RelPermalink) "height" (string .Height) "width" (string .Width)) }}
|
||||
{{ end }}
|
||||
<script id="images_array" type="application/json">{{ $.Scratch.Get "img" | jsonify | safeJS }}</script>
|
||||
{{ end }}
|
||||
<div class="image_container" id="layer5" data-status="null"></div>
|
||||
<div class="image_container" id="layer4" data-status="null"></div>
|
||||
<div class="image_container" id="layer3" data-status="null"></div>
|
||||
<div class="image_container" id="layer2" data-status="null"></div>
|
||||
<div class="image_container" id="layer1" data-status="null"></div>
|
||||
</div>
|
||||
<footer>
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
Reference in New Issue
Block a user