From 3fbfd2b20adb64c200f6fbae948cb46fad287766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sat, 21 Mar 2020 00:34:59 +0100 Subject: Add rudementary popup system. --- module/output/html.scm | 26 ++++++++++++++++--- static/script.js | 12 +++++++++ static/style.css | 70 ++++++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 102 insertions(+), 6 deletions(-) diff --git a/module/output/html.scm b/module/output/html.scm index 26cf4b86..36424edc 100644 --- a/module/output/html.scm +++ b/module/output/html.scm @@ -88,6 +88,18 @@ +(define (event-debug-html event) + `(table + (tbody + ,@(hash-map->list + (match-lambda* + [(key vline) + `(tr (th ,key) (td ,(format #f "~a" (value vline))))] + [_ (error "What are you doing‽")]) + (attributes event))))) + + + ;;; Procedures for wide output @@ -149,7 +161,11 @@ ,(when (date