-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mirotalkwebrtc] - update config.template
- Loading branch information
1 parent
63160d3
commit e33eecf
Showing
3 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* @license For private project or commercial purposes contact us at: [email protected] or purchase it directly via Code Canyon: | ||
* @license https://codecanyon.net/item/a-selfhosted-mirotalks-webrtc-rooms-scheduler-server/42643313 | ||
* @author Miroslav Pejic - [email protected] | ||
* @version 1.0.76 | ||
* @version 1.0.77 | ||
*/ | ||
|
||
|
||
|
@@ -149,7 +149,7 @@ const toolTips = [ | |
{ element: refreshBtn, text: 'Refresh rooms', position: 'top' }, | ||
]; | ||
|
||
const html = { | ||
let html = { | ||
support: true, | ||
profile: true, | ||
projects: true, | ||
|
@@ -180,6 +180,7 @@ $(document).ready(async function () { | |
|
||
function loadConfig(cfg) { | ||
config = cfg; | ||
html = cfg.HTML ? cfg.HTML : html; | ||
console.log('Config', config); | ||
myProfile.setAttribute('href', config.Author.Profile); | ||
repoP2P.setAttribute('href', config.MiroTalk.P2P.GitHub.Repo); | ||
|
@@ -298,7 +299,10 @@ function hideElements() { | |
elemDisplay(showBoxesDS, false); | ||
elemDisplay(boxesDS, false); | ||
} | ||
!html.profile && elemDisplay(myProfile, false); | ||
if (!html.profile) { | ||
elemDisplay(myProfile, false); | ||
search.style.margin = '0px 5px 0px 10px'; // top right bottom left | ||
} | ||
!html.support && elemDisplay(navSup, false); | ||
//... | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters