From b547cf890823cbc0bc1b61622db505d1be77dafb Mon Sep 17 00:00:00 2001 From: loma-one Date: Sat, 16 Sep 2023 16:54:54 +0200 Subject: [PATCH 1/7] Coloured box added Among other things, I use the page header to inform about current maintenance work or other upcoming work. The information should therefore be provided within an appropriate framework. With a little CSS, the page header gets a frame in green. The font was adjusted to an appropriate size. --- pageheader/pageheader.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pageheader/pageheader.css b/pageheader/pageheader.css index 8b3282fb..17ad64c1 100644 --- a/pageheader/pageheader.css +++ b/pageheader/pageheader.css @@ -21,3 +21,13 @@ margin-top: 25px; font-size: 20px; } + +/* The pageheader box */ +.pageheader { + padding: 20px; + background-color: #2eb885; /* Green */ + color: white; + border: 1px solid transparent; + border-radius: 2px; + margin-bottom: 15px; +} -- 2.43.4 From b9a95036a51920cd594366dceed16eeb81dac92f Mon Sep 17 00:00:00 2001 From: loma-one Date: Wed, 20 Sep 2023 15:32:18 +0200 Subject: [PATCH 2/7] Coloured box added --- pageheader/pageheader.css | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/pageheader/pageheader.css b/pageheader/pageheader.css index 17ad64c1..3360522e 100644 --- a/pageheader/pageheader.css +++ b/pageheader/pageheader.css @@ -20,14 +20,11 @@ width: 100%; margin-top: 25px; font-size: 20px; -} - -/* The pageheader box */ -.pageheader { - padding: 20px; - background-color: #2eb885; /* Green */ - color: white; - border: 1px solid transparent; - border-radius: 2px; - margin-bottom: 15px; + /* The pageheader box */ + padding: 20px; + background-color: #2eb885; /* Green */ + color: white; + border: 1px solid transparent; + border-radius: 2px; + margin-bottom: 15px; } -- 2.43.4 From 7d445b226fc268764d9c396bb345680378f28609 Mon Sep 17 00:00:00 2001 From: loma-one Date: Sat, 23 Sep 2023 18:28:54 +0200 Subject: [PATCH 3/7] pageheader/pageheader.css aktualisiert --- pageheader/pageheader.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pageheader/pageheader.css b/pageheader/pageheader.css index 3360522e..33ab6ad7 100644 --- a/pageheader/pageheader.css +++ b/pageheader/pageheader.css @@ -22,8 +22,8 @@ font-size: 20px; /* The pageheader box */ padding: 20px; - background-color: #2eb885; /* Green */ - color: white; + /*background-color: #2eb885; /* Green */ + /*color: white;*/ border: 1px solid transparent; border-radius: 2px; margin-bottom: 15px; -- 2.43.4 From 8cdb5a5ae3853f1293407021623097ba79f9b515 Mon Sep 17 00:00:00 2001 From: loma-one Date: Tue, 3 Oct 2023 10:51:42 +0200 Subject: [PATCH 4/7] [pageheader] Improve visibility Removed commented out code from your pull request --- pageheader/pageheader.css | 2 -- 1 file changed, 2 deletions(-) diff --git a/pageheader/pageheader.css b/pageheader/pageheader.css index 33ab6ad7..f6c28fbf 100644 --- a/pageheader/pageheader.css +++ b/pageheader/pageheader.css @@ -22,8 +22,6 @@ font-size: 20px; /* The pageheader box */ padding: 20px; - /*background-color: #2eb885; /* Green */ - /*color: white;*/ border: 1px solid transparent; border-radius: 2px; margin-bottom: 15px; -- 2.43.4 From e86b7ada2f732fb3d5d24a2f04322e0882038557 Mon Sep 17 00:00:00 2001 From: loma-one Date: Sun, 10 Dec 2023 17:23:45 +0100 Subject: [PATCH 5/7] webrtc is no longer launched as an iFrame, but as a browser window. With the iFrame solution there could be problems activating the microphone settings. Therefore, a separate browser window is now opened. --- webrtc/webrtc.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/webrtc/webrtc.php b/webrtc/webrtc.php index e142b374..d81027c8 100644 --- a/webrtc/webrtc.php +++ b/webrtc/webrtc.php @@ -2,9 +2,10 @@ /* * Name: WebRTC Application * Description: add a webrtc instance for video/audio - * Version: 1.0 + * Version: 1.1 * Author: Stephen Mahood * Author: Tobias Diekershoff + * Author: Matthias Ebers */ use Friendica\App; @@ -54,13 +55,17 @@ function webrtc_content(): string /* landingpage to create chatrooms */ $webrtcurl = DI::config()->get('webrtc','webrtcurl'); - /* embedd the landing page in an iframe */ + /* open the landing page in a new browser window without controls */ + $o .= ''; + + + $o .= '

'.DI::l10n()->t('Video Chat').'

'; $o .= '

'.DI::l10n()->t('WebRTC is a video and audio conferencing tool that works in all modern browsers. Just create a new chat room and send the link to someone you want to chat with.').'

'; if ($webrtcurl == '') { $o .= '

'.DI::l10n()->t('Please contact your friendica admin and send a reminder to configure the WebRTC addon.').'

'; - } else { - $o .= ''; } return $o; -- 2.43.4 From 82e109cf1058d2cc36bd59518f0e55e0865d8ead Mon Sep 17 00:00:00 2001 From: loma-one Date: Sun, 10 Dec 2023 20:14:50 +0100 Subject: [PATCH 6/7] webrtc/webrtc.php aktualisiert --- webrtc/webrtc.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/webrtc/webrtc.php b/webrtc/webrtc.php index d81027c8..259a7a91 100644 --- a/webrtc/webrtc.php +++ b/webrtc/webrtc.php @@ -60,8 +60,6 @@ function webrtc_content(): string window.open("' . $webrtcurl . '", "_blank", "toolbar=no,scrollbars=no,resizable=no,top=100,left=100,width=740,height=740"); '; - - $o .= '

'.DI::l10n()->t('Video Chat').'

'; $o .= '

'.DI::l10n()->t('WebRTC is a video and audio conferencing tool that works in all modern browsers. Just create a new chat room and send the link to someone you want to chat with.').'

'; if ($webrtcurl == '') { -- 2.43.4 From 0661e982f2bfd89e3f586d31bfd9a4e76af25134 Mon Sep 17 00:00:00 2001 From: loma-one Date: Sun, 10 Dec 2023 21:11:46 +0100 Subject: [PATCH 7/7] webrtc/webrtc.php aktualisiert $o = instead of $o .= --- webrtc/webrtc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/webrtc.php b/webrtc/webrtc.php index 259a7a91..993f984f 100644 --- a/webrtc/webrtc.php +++ b/webrtc/webrtc.php @@ -56,7 +56,7 @@ function webrtc_content(): string $webrtcurl = DI::config()->get('webrtc','webrtcurl'); /* open the landing page in a new browser window without controls */ - $o .= ''; -- 2.43.4