Summary Files Commits Branches @commit @diff @stats
path: root / ext / attention.awk
diff options
context:
space:
mode:
Commitfe054ac33b1d28ae16dbae9305651188f0b22608 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-07-20 19:46:45 +0300
Committer
 Syndamia <kamen@syndamia.com>
2025-07-20 19:46:45 +0300
Files390118dfa7ea1cd9a0de4e257198c99585e16fde /ext/attention.awk
syndamia.com-fe054ac33b1d28ae16dbae9305651188f0b22608.tar
syndamia.com-fe054ac33b1d28ae16dbae9305651188f0b22608.tar.gz
syndamia.com-fe054ac33b1d28ae16dbae9305651188f0b22608.zip
Parentd54c672035ab29b0d392bd7641c83808945ee21b (diff)
feat(src/ext): Implemented a large part of the awk_edits functionality via dunbar
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 "\">"
+}