diff options
| author | Jules Laplace <jules@okfoc.us> | 2017-05-13 21:14:56 +0200 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2017-05-13 21:14:56 +0200 |
| commit | c58266b2dabb3afdd6027c0335af2207b86a1c0f (patch) | |
| tree | 6327e6c1a044f27bad455b23322db5820aa47dfb /templates | |
| parent | ad42b93438225e3cd7518998bd7f067abf4cb756 (diff) | |
route hotlinking photo
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/photo.liquid | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/photo.liquid b/templates/photo.liquid new file mode 100644 index 0000000..de229fa --- /dev/null +++ b/templates/photo.liquid @@ -0,0 +1,15 @@ +<!doctype html> +<html> +<head> +<title>Hansel and Gretel - Armory on Park</title> +</head> +<body> + +</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.body.appendChild(img) +</script> +</html> |
