From 95353dca98b27af7559ee7333dbd889c48590087 Mon Sep 17 00:00:00 2001 From: "James@STCH" Date: Wed, 1 Jun 2022 15:40:13 +0200 Subject: [PATCH 01/13] add blur This should work; but not 100% certain. --- James' Things/foundry patches/loginpage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/James' Things/foundry patches/loginpage.sh b/James' Things/foundry patches/loginpage.sh index 2aacff1..f9d0d8a 100644 --- a/James' Things/foundry patches/loginpage.sh +++ b/James' Things/foundry patches/loginpage.sh @@ -11,8 +11,8 @@ sed -i -e 's+url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1H sed -i -e 's+rgb(150, 12, 16)+rgb(0, 150, 136)+g' ./foundry_login.css sed -i -e 's+rgb(228, 9, 19)+rgb(0, 188, 170)+g' ./foundry_login.css -# Make the Width responsive -sed -i -e 's+width: 400px !important;+width: 90% !important;+g' ./foundry_login.css +# Make the Width responsive and add a sick blur effect +sed -i -e 's+width: 400px !important;+width: 90% !important;backdrop-filter: blur(7px) !important;+g' ./foundry_login.css # Append to the Foundry Style.css cat ./foundry_login.css >> /home/foundry/resources/app/public/css/style.css From 92c4888e8dc36b97414467b7473330e2b3a6dd84 Mon Sep 17 00:00:00 2001 From: "James@SCF-GC" Date: Wed, 1 Jun 2022 19:54:47 +0200 Subject: [PATCH 02/13] Renamed the loginpatches to logincss --- James' Things/foundry patches/{loginpage.sh => loginpagecss.sh} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename James' Things/foundry patches/{loginpage.sh => loginpagecss.sh} (100%) diff --git a/James' Things/foundry patches/loginpage.sh b/James' Things/foundry patches/loginpagecss.sh similarity index 100% rename from James' Things/foundry patches/loginpage.sh rename to James' Things/foundry patches/loginpagecss.sh From f1d2c994873986468f3f476c4efe4cda80b9a944 Mon Sep 17 00:00:00 2001 From: "James@SCF-GC" Date: Wed, 1 Jun 2022 19:55:27 +0200 Subject: [PATCH 03/13] Initial --- James' Things/foundry patches/loginmusic.sh | 1 + 1 file changed, 1 insertion(+) create mode 100644 James' Things/foundry patches/loginmusic.sh diff --git a/James' Things/foundry patches/loginmusic.sh b/James' Things/foundry patches/loginmusic.sh new file mode 100644 index 0000000..3293afa --- /dev/null +++ b/James' Things/foundry patches/loginmusic.sh @@ -0,0 +1 @@ +# Add Music to the login screen From 3f0198397d738d725dadbf1f8d2c84089d592021 Mon Sep 17 00:00:00 2001 From: "James@SCF-GC" Date: Wed, 1 Jun 2022 20:19:57 +0200 Subject: [PATCH 04/13] added Musicpatch --- James' Things/foundry patches/loginmusic.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/James' Things/foundry patches/loginmusic.sh b/James' Things/foundry patches/loginmusic.sh index 3293afa..182309e 100644 --- a/James' Things/foundry patches/loginmusic.sh +++ b/James' Things/foundry patches/loginmusic.sh @@ -1 +1,3 @@ # Add Music to the login screen +Video="
" +echo "$Video" >> /home/foundry/resources/app/templates/setup/join-game.html From 13d2513b7d0458b0487a994fd152d8d7264801b6 Mon Sep 17 00:00:00 2001 From: "James@SCF-GC" Date: Wed, 1 Jun 2022 20:20:09 +0200 Subject: [PATCH 05/13] remove CSS after finishing --- James' Things/foundry patches/loginpagecss.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/James' Things/foundry patches/loginpagecss.sh b/James' Things/foundry patches/loginpagecss.sh index f9d0d8a..aa22a01 100644 --- a/James' Things/foundry patches/loginpagecss.sh +++ b/James' Things/foundry patches/loginpagecss.sh @@ -16,6 +16,8 @@ sed -i -e 's+width: 400px !important;+width: 90% !important;backdrop-filter: blu # Append to the Foundry Style.css cat ./foundry_login.css >> /home/foundry/resources/app/public/css/style.css +rm ./foundry_login.css + # Note: this is how dockerized Foundry likes to handle the sed... or linux... whatever it's a note, don't read into it #sed -i -e 's+A+B+g' ./foundry_login.css From eab512160fc3b9f1ee4b0226104f919599278fc3 Mon Sep 17 00:00:00 2001 From: "James@SCF-GC" Date: Wed, 1 Jun 2022 20:30:34 +0200 Subject: [PATCH 06/13] Added videoid Identifier --- James' Things/foundry patches/loginmusic.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/James' Things/foundry patches/loginmusic.sh b/James' Things/foundry patches/loginmusic.sh index 182309e..d089bb3 100644 --- a/James' Things/foundry patches/loginmusic.sh +++ b/James' Things/foundry patches/loginmusic.sh @@ -1,3 +1,4 @@ # Add Music to the login screen -Video="
" +videoid="ZjQZxqTipHM" +Video="
" echo "$Video" >> /home/foundry/resources/app/templates/setup/join-game.html From 3dd5ead682d927a1c8a82fffbbe6b0896813489c Mon Sep 17 00:00:00 2001 From: "James@SCF-GC" Date: Wed, 1 Jun 2022 20:46:49 +0200 Subject: [PATCH 07/13] i think I fixed it? --- James' Things/foundry patches/loginmusic.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/James' Things/foundry patches/loginmusic.sh b/James' Things/foundry patches/loginmusic.sh index d089bb3..59ceb84 100644 --- a/James' Things/foundry patches/loginmusic.sh +++ b/James' Things/foundry patches/loginmusic.sh @@ -1,4 +1,5 @@ # Add Music to the login screen videoid="ZjQZxqTipHM" -Video="
" -echo "$Video" >> /home/foundry/resources/app/templates/setup/join-game.html + +Video='
' +sed '70 i $Video' >> /home/foundry/resources/app/templates/setup/join-game.html From 208dfe387914880befaa52212b31eaebc567be41 Mon Sep 17 00:00:00 2001 From: "James@SCF-GC" Date: Wed, 1 Jun 2022 20:55:19 +0200 Subject: [PATCH 08/13] i'm a dumbdumb --- James' Things/foundry patches/loginmusic.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/James' Things/foundry patches/loginmusic.sh b/James' Things/foundry patches/loginmusic.sh index 59ceb84..3354c03 100644 --- a/James' Things/foundry patches/loginmusic.sh +++ b/James' Things/foundry patches/loginmusic.sh @@ -2,4 +2,5 @@ videoid="ZjQZxqTipHM" Video='
' -sed '70 i $Video' >> /home/foundry/resources/app/templates/setup/join-game.html +sed '69 i $Video' >> /home/foundry/resources/app/templates/setup/join-game.html +# Nice From 55e2279f2e1fbccdca10789a9905176fbb0278d5 Mon Sep 17 00:00:00 2001 From: "James@SCF-GC" Date: Wed, 1 Jun 2022 21:04:16 +0200 Subject: [PATCH 09/13] Now I got it! Trust me, I'm in control! --- James' Things/foundry patches/loginmusic.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/James' Things/foundry patches/loginmusic.sh b/James' Things/foundry patches/loginmusic.sh index 3354c03..55879ad 100644 --- a/James' Things/foundry patches/loginmusic.sh +++ b/James' Things/foundry patches/loginmusic.sh @@ -1,6 +1,5 @@ # Add Music to the login screen videoid="ZjQZxqTipHM" - Video='
' -sed '69 i $Video' >> /home/foundry/resources/app/templates/setup/join-game.html +sed -i -e '69i $Video' /home/foundry/resources/app/templates/setup/join-game.html # Nice From 51bd8dd07d90e6ee14e9dadf5753fc71667f0805 Mon Sep 17 00:00:00 2001 From: "James@SCF-GC" Date: Wed, 1 Jun 2022 21:07:24 +0200 Subject: [PATCH 10/13] I don't like shell :( --- James' Things/foundry patches/loginmusic.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/James' Things/foundry patches/loginmusic.sh b/James' Things/foundry patches/loginmusic.sh index 55879ad..14c33cf 100644 --- a/James' Things/foundry patches/loginmusic.sh +++ b/James' Things/foundry patches/loginmusic.sh @@ -1,5 +1,5 @@ # Add Music to the login screen -videoid="ZjQZxqTipHM" -Video='
' -sed -i -e '69i $Video' /home/foundry/resources/app/templates/setup/join-game.html +export videoid="ZjQZxqTipHM" +export Video='
' +sed -i -e '70i $Video' /home/foundry/resources/app/templates/setup/join-game.html # Nice From 156dbab82026aa2721f6062a58c88478da3b7044 Mon Sep 17 00:00:00 2001 From: "James@SCF-GC" Date: Wed, 1 Jun 2022 21:11:28 +0200 Subject: [PATCH 11/13] I hate linux sometimes DID YOU KNOW, THAT " AND ' ARE NOT THE SAME? Variables get put through with ther LITERAL NAME.... --- James' Things/foundry patches/loginmusic.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/James' Things/foundry patches/loginmusic.sh b/James' Things/foundry patches/loginmusic.sh index 14c33cf..0c1f01e 100644 --- a/James' Things/foundry patches/loginmusic.sh +++ b/James' Things/foundry patches/loginmusic.sh @@ -1,5 +1,5 @@ # Add Music to the login screen -export videoid="ZjQZxqTipHM" -export Video='
' -sed -i -e '70i $Video' /home/foundry/resources/app/templates/setup/join-game.html +videoid="ZjQZxqTipHM" +Video="
" +sed -i -e "70i $Video" /home/foundry/resources/app/templates/setup/join-game.html # Nice From a4066a29374e63f2517e5921702ab9948ec098e6 Mon Sep 17 00:00:00 2001 From: "James@SCF-GC" Date: Wed, 1 Jun 2022 21:20:45 +0200 Subject: [PATCH 12/13] added documentation --- James' Things/foundry patches/loginmusic.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/James' Things/foundry patches/loginmusic.sh b/James' Things/foundry patches/loginmusic.sh index 0c1f01e..79f30c6 100644 --- a/James' Things/foundry patches/loginmusic.sh +++ b/James' Things/foundry patches/loginmusic.sh @@ -1,5 +1,17 @@ # Add Music to the login screen + +# Videoid of the Youtube video you want to play videoid="ZjQZxqTipHM" -Video="
" -sed -i -e "70i $Video" /home/foundry/resources/app/templates/setup/join-game.html + +# The actual embed code that embeds the video. +# This is only in case you want to change some parameters. +# Don't forget to add the $videoid near the embed! +# (In case you still want to use that, but I highly doubt that) +iframe="" + +# The final string. +Video="
$iframe
" + +# Inject that bad boy into the foundry thing. Might break in future updates (May only need the line changed) +sed -i -e "69i $Video" /home/foundry/resources/app/templates/setup/join-game.html # Nice From c2b39231d85b6d673da35e55b9a4e0945336ce22 Mon Sep 17 00:00:00 2001 From: "James@SCF-GC" Date: Wed, 1 Jun 2022 22:01:42 +0200 Subject: [PATCH 13/13] added more spacing --- James' Things/foundry patches/loginmusic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/James' Things/foundry patches/loginmusic.sh b/James' Things/foundry patches/loginmusic.sh index 79f30c6..765dd7b 100644 --- a/James' Things/foundry patches/loginmusic.sh +++ b/James' Things/foundry patches/loginmusic.sh @@ -10,7 +10,7 @@ videoid="ZjQZxqTipHM" iframe="" # The final string. -Video="
$iframe
" +Video="
$iframe
" # Inject that bad boy into the foundry thing. Might break in future updates (May only need the line changed) sed -i -e "69i $Video" /home/foundry/resources/app/templates/setup/join-game.html