Summary Files Commits Branches @commit @diff @stats
path: root / ext / attention.awk
diff options
context:
space:
mode:
1 files changed, 9 insertions, 0 deletions
-rw-r--r--ext/attention.awk9
diff --git a/ext/attention.awk b/ext/attention.awk
new file mode 100644
index 0000000..9182635
--- /dev/null
+++ b/ext/attention.awk
@@ -0,0 +1,9 @@
+BEGIN {
+ define("question", open_attention("dialog-question.png"))
+ define("warn", open_attention("dialog-warning.png"))
+ define("important", open_attention("dialog-important.png"))
+}
+
+function open_attention(name, image) {
+ return "<p class=\"special-par " name "-par\"><img src=\"/img/" image "\" class=\"special-par-icon borderless unzoomable\" alt=\"" name "\">"
+}