summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/photo.liquid19
1 files changed, 15 insertions, 4 deletions
diff --git a/templates/photo.liquid b/templates/photo.liquid
index 088403b..b609516 100644
--- a/templates/photo.liquid
+++ b/templates/photo.liquid
@@ -145,6 +145,18 @@ a {
color: white;
text-decoration: underline;
}
+#container {
+ width: 100%;
+ overflow-y: scroll;
+ overflow-x: hidden;
+ text-align: center;
+}
+#container img {
+ max-height: 100%;
+ max-width: 100%;
+ display: block;
+ margin: 0 auto;
+}
</style>
</head>
<body class='vbox viewport'>
@@ -157,22 +169,21 @@ a {
</section>
<footer>
<aside>
- <a href='/page/terms'>Terms and Conditions</a>
+ <a href='/page/privacy'>Privacy</a>
</aside>
<aside>
<a href='http://armoryonpark.org/'><img src='/assets/img/armory.png' id='armory'></a>
</aside>
<aside>
- <a href='/page/privacy'>Privacy Policy</a>
+ <a href='/page/credits'>Credits</a>
</aside>
</footer>
</body>
<script>
var hash = document.location.pathname.replace('/photo/','').replace(/\/.*/,'')
-console.log(hash)
+image(hash, 'plain')
image(hash, 'dots')
image(hash, 'lines')
-image(hash, 'plain')
function image(hash, type) {
var img = new Image
img.src = 'https://marsupial.s3.amazonaws.com/armory/mail/' + hash + '-' + type + '.jpg'