summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-07-20 18:40:37 +0100
committerubq323 <ubq323@ubq323.website>2022-07-20 18:40:37 +0100
commitf9fe76a083a1d3f5a62e5e569b3794679da5cfb8 (patch)
treed7e42767abaeefa981ae7cd96f24089d66fe652e
parentea32223eb5cbe692ca0d99ab76bf24fbebc8a696 (diff)
allow changing the underline colour via url parameters
-rwxr-xr-xembed.cgi7
1 files 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"""<!DOCTYPE html>
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"""<!DOCTYPE html>
#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;