diff options
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 |