From f9fe76a083a1d3f5a62e5e569b3794679da5cfb8 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Wed, 20 Jul 2022 18:40:37 +0100 Subject: allow changing the underline colour via url parameters --- embed.cgi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/embed.cgi b/embed.cgi index a3449b6..c0f11c7 100755 --- a/embed.cgi +++ b/embed.cgi @@ -12,7 +12,9 @@ if __name__ == "__main__": "bg": 'white', "fg": 'black', "george": '#3d3db8', - "links": 'blue' + "links": 'blue', + "underline": "blue", + } print("Content-Type: text/html") @@ -77,6 +79,7 @@ f""" box-shadow: 5px 5px black; background-color: {colors["bg"]}; color: {colors["fg"]}; + display: flex; flex-wrap: nowrap; justify-content: space-between; @@ -84,7 +87,7 @@ f""" #george {{ color: {colors["george"]}; text-decoration: underline; - text-decoration-color: blue; + text-decoration-color: {colors["underline"]}; text-decoration-thickness: 2px; font-style: oblique; animation: 2s infinite alternate george; -- cgit v1.2.3