diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-21 13:52:18 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-21 13:52:18 +0200 |
commit | 22e26f2691a6296e4c6b0a960c5d15807bab2ed1 (patch) | |
tree | f23f007498538cce7b70451a656da77905417732 /embed | |
download | pv-22e26f2691a6296e4c6b0a960c5d15807bab2ed1.tar.gz |
First commit
Diffstat (limited to 'embed')
-rwxr-xr-x | embed | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +#!/bin/sh -e + +: ${WWW:=http://git.ankarstrom.se/preview} + +cat <<HTML +<div style='width: 100%; background: #ddd;'> +<div style='padding: 10px; text-align: center;'> +Preview of <a href='$WWW/$1.pdf'>$1.pdf</a> +</div> +</div> +HTML + +for f in "$1"*.svg; do + echo "<embed src='$WWW/$f' type='image/svg+xml' width='100%'/>" +done |