summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-10-02 21:07:13 +0100
committerubq323 <ubq323@ubq323.website>2023-10-02 21:07:16 +0100
commitc20bbe2b56f870b980c6e51556204b2b08bba4bd (patch)
tree0ea0b83d3c9f0c182abd7b4fc36eb70b01aac0aa
parent1b4ec11dd85a075183547481d37c30bdb87b7b5a (diff)
allow override of border colour
-rw-r--r--doc.txt3
-rwxr-xr-xembed.cgi3
2 files changed, 4 insertions, 2 deletions
diff --git a/doc.txt b/doc.txt
index 6a196d0..a9cf8c0 100644
--- a/doc.txt
+++ b/doc.txt
@@ -1,5 +1,5 @@
GEORGE documentation
-last updated 2022-07-20
+last updated 2023-10-02
GET https://george.gh0.pw/data.cgi
returns a json array of current GEORGE members.
@@ -18,6 +18,7 @@ c_george #3d3db8 text colour of the word "GEORGE"
c_links blue text colour of the NEXT and PREV links
c_underline blue underline colour of the word "GEORGE"
c_fg black text colour of all other text
+c_border black border colour for the entire embed
it is recommended that you embed the widget using an iframe tag like this:
<iframe height="50" src="https://george.gh0.pw/embed.cgi?membername" style="border:none;width:100%" sandbox="allow-top-navigation"></iframe>
diff --git a/embed.cgi b/embed.cgi
index c0f11c7..18db820 100755
--- a/embed.cgi
+++ b/embed.cgi
@@ -14,6 +14,7 @@ if __name__ == "__main__":
"george": '#3d3db8',
"links": 'blue',
"underline": "blue",
+ "border": "black",
}
@@ -75,7 +76,7 @@ f"""<!DOCTYPE html>
padding-left: 5px;
padding-right: 5px;
height: 45px;
- border: 1px solid black;
+ border: 1px solid {colors["border"]};
box-shadow: 5px 5px black;
background-color: {colors["bg"]};
color: {colors["fg"]};