From c20bbe2b56f870b980c6e51556204b2b08bba4bd Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 2 Oct 2023 21:07:13 +0100 Subject: allow override of border colour --- doc.txt | 3 ++- embed.cgi | 3 ++- 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: 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""" 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"]}; -- cgit v1.2.3