bg
This commit is contained in:
BIN
assets/public/politictalk/background_pt.png
Normal file
BIN
assets/public/politictalk/background_pt.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 296 KiB |
@@ -1,10 +1,11 @@
|
|||||||
{
|
{
|
||||||
"inviteDomain": "politictalk.parallelglobe.io",
|
"inviteDomain": "politictalk.parallelglobe.io",
|
||||||
"backgroundColor": "#101820",
|
"backgroundColor": "#101820",
|
||||||
|
"backgroundImageUrl": "/images/politictalk/background_pt.png",
|
||||||
"pollCreationRequiresPermission": true,
|
"pollCreationRequiresPermission": true,
|
||||||
"logoClickUrl": "https://parallelglobe.io/politictalk",
|
"logoClickUrl": "https://parallelglobe.io/politictalk",
|
||||||
"logoImageUrl": "/images/politictalk/pgLogo.svg",
|
"logoImageUrl": "/images/politictalk/pgLogo.svg",
|
||||||
"premeetingBackground": "url(/images/politictalk/pg_bg.png)",
|
"premeetingBackground": "url(/images/politictalk/background_pt.png)",
|
||||||
"customTheme": {
|
"customTheme": {
|
||||||
"palette": {
|
"palette": {
|
||||||
"ui01": "#101820",
|
"ui01": "#101820",
|
||||||
|
|||||||
@@ -405,7 +405,7 @@ module:hook("muc-occupant-pre-join", function(event)
|
|||||||
ensure_room_data(room);
|
ensure_room_data(room);
|
||||||
local participant_limit = get_participant_limit(session);
|
local participant_limit = get_participant_limit(session);
|
||||||
local active_participant_count = table_count(room._data.politictalk_participant_jids);
|
local active_participant_count = table_count(room._data.politictalk_participant_jids);
|
||||||
local active_room_occupancy_count = active_participant_count + get_active_host_count(room);
|
local active_room_occupancy_count = active_participant_count;
|
||||||
if
|
if
|
||||||
participant_limit
|
participant_limit
|
||||||
and active_room_occupancy_count >= participant_limit
|
and active_room_occupancy_count >= participant_limit
|
||||||
|
|||||||
@@ -1,4 +1,24 @@
|
|||||||
<style>
|
<style>
|
||||||
|
html:not(.politictalk-direct-access-blocked) body,
|
||||||
|
html:not(.politictalk-direct-access-blocked) #react,
|
||||||
|
html:not(.politictalk-direct-access-blocked) #videoconference_page,
|
||||||
|
html:not(.politictalk-direct-access-blocked) .conference,
|
||||||
|
html:not(.politictalk-direct-access-blocked) #largeVideoContainer,
|
||||||
|
html:not(.politictalk-direct-access-blocked) .large-video-container,
|
||||||
|
html:not(.politictalk-direct-access-blocked) .filmstrip,
|
||||||
|
html:not(.politictalk-direct-access-blocked) .stage-view {
|
||||||
|
background-color: #101820 !important;
|
||||||
|
background-image: url('/images/politictalk/background_pt.png') !important;
|
||||||
|
background-position: center center !important;
|
||||||
|
background-repeat: no-repeat !important;
|
||||||
|
background-size: cover !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
html:not(.politictalk-direct-access-blocked) #largeVideo,
|
||||||
|
html:not(.politictalk-direct-access-blocked) .large-video-background {
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
.politictalk-room-logo {
|
.politictalk-room-logo {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -116,6 +136,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
|
html:not(.politictalk-direct-access-blocked) body,
|
||||||
|
html:not(.politictalk-direct-access-blocked) #react,
|
||||||
|
html:not(.politictalk-direct-access-blocked) #videoconference_page,
|
||||||
|
html:not(.politictalk-direct-access-blocked) .conference,
|
||||||
|
html:not(.politictalk-direct-access-blocked) #largeVideoContainer,
|
||||||
|
html:not(.politictalk-direct-access-blocked) .large-video-container,
|
||||||
|
html:not(.politictalk-direct-access-blocked) .filmstrip,
|
||||||
|
html:not(.politictalk-direct-access-blocked) .stage-view {
|
||||||
|
background-position: center center !important;
|
||||||
|
}
|
||||||
|
|
||||||
.politictalk-room-logo {
|
.politictalk-room-logo {
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
@@ -257,6 +288,33 @@
|
|||||||
window.config = window.config || {};
|
window.config = window.config || {};
|
||||||
window.config.subject = meetingTitle;
|
window.config.subject = meetingTitle;
|
||||||
window.config.localSubject = meetingTitle;
|
window.config.localSubject = meetingTitle;
|
||||||
|
document.title = meetingTitle + ' | PoliticTalk';
|
||||||
|
}
|
||||||
|
|
||||||
|
function mountPoliticTalkDocumentTitle() {
|
||||||
|
var meetingTitle = getPoliticTalkMeetingTitle();
|
||||||
|
var pageTitle = meetingTitle ? meetingTitle + ' | PoliticTalk' : 'PoliticTalk';
|
||||||
|
|
||||||
|
if (directAccessBlocked || !document.head) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
document.title = pageTitle;
|
||||||
|
|
||||||
|
if (window.politicTalkTitleObserver) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.politicTalkTitleObserver = new MutationObserver(function() {
|
||||||
|
if (document.title !== pageTitle) {
|
||||||
|
document.title = pageTitle;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
window.politicTalkTitleObserver.observe(document.head, {
|
||||||
|
childList: true,
|
||||||
|
characterData: true,
|
||||||
|
subtree: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function preventHostLeaveButtonExecution() {
|
function preventHostLeaveButtonExecution() {
|
||||||
@@ -410,11 +468,13 @@
|
|||||||
|
|
||||||
if (document.readyState === 'loading') {
|
if (document.readyState === 'loading') {
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
mountPoliticTalkDocumentTitle();
|
||||||
mountPoliticTalkLogo();
|
mountPoliticTalkLogo();
|
||||||
mountDirectAccessMessage();
|
mountDirectAccessMessage();
|
||||||
mountHostHangupPolicy();
|
mountHostHangupPolicy();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
mountPoliticTalkDocumentTitle();
|
||||||
mountPoliticTalkLogo();
|
mountPoliticTalkLogo();
|
||||||
mountDirectAccessMessage();
|
mountDirectAccessMessage();
|
||||||
mountHostHangupPolicy();
|
mountHostHangupPolicy();
|
||||||
|
|||||||
Reference in New Issue
Block a user