aboutsummaryrefslogtreecommitdiff
path: root/embed
blob: 6561ccf89e3907f9d2fe5a88fab1b616a9c64112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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