summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/photo.liquid11
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/photo.liquid b/templates/photo.liquid
index 481e715..278d4fe 100644
--- a/templates/photo.liquid
+++ b/templates/photo.liquid
@@ -169,8 +169,13 @@ a {
</body>
<script>
var hash = document.location.pathname.replace('/photo/','').replace(/\/.*/,'')
-var img = new Image
-img.src = 'https://marsupial.s3.amazonaws.com/armory/mail/' + hash + '.jpg'
-document.querySelector('#container').appendChild(img)
+image('dots')
+image('lines')
+image('plain')
+function image(hash, type) {
+ var img = new Image
+ img.src = 'https://marsupial.s3.amazonaws.com/armory/mail/' + hash + '-' + type + '.jpg'
+ document.querySelector('#container').appendChild(img)
+}
</script>
</html>