aboutsummaryrefslogtreecommitdiff
path: root/embed
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-21 13:52:18 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-21 13:52:18 +0200
commit22e26f2691a6296e4c6b0a960c5d15807bab2ed1 (patch)
treef23f007498538cce7b70451a656da77905417732 /embed
downloadpv-22e26f2691a6296e4c6b0a960c5d15807bab2ed1.tar.gz
First commit
Diffstat (limited to 'embed')
-rwxr-xr-xembed15
1 files changed, 15 insertions, 0 deletions
diff --git a/embed b/embed
new file mode 100755
index 0000000..6561ccf
--- /dev/null
+++ b/embed
@@ -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