diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-05-21 02:44:05 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-05-21 02:44:05 +0200 |
| commit | d91a5283e2c9246760c110332e59513de62cfa07 (patch) | |
| tree | 7509e4bf897232deb558ec2f32aed1a190fcd4ba /templates | |
| parent | 113eca6e9d60c923da82474941acf5c9640bd917 (diff) | |
new backend to fetch feedback from a google doc
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/photo.liquid | 11 |
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> |
