summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"]};