forked from jitsi/jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(close_pages): Refactor the close pages.
- Loading branch information
1 parent
da6af88
commit 4bcd75f
Showing
5 changed files
with
54 additions
and
67 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* global interfaceConfig */ | ||
//list of tips | ||
var hints = [ | ||
"You can pin participants by clicking on their thumbnails.",// jshint ignore:line | ||
"You can tell others you have something to say by using the \"Raise Hand\" feature",// jshint ignore:line | ||
"You can learn about key shortcuts by pressing Shift+?",// jshint ignore:line | ||
"You can learn more about the state of everyone's connection by hovering on the bars in their thumbnail",// jshint ignore:line | ||
"You can hide all thumbnails by using the button in the bottom right corner"// jshint ignore:line | ||
]; | ||
|
||
/** | ||
* Get a random hint meessage from hint array. | ||
* | ||
* @return {string} the hint message. | ||
*/ | ||
function getHint(){ | ||
var l = hints.length - 1; | ||
var n = Math.round(Math.random() * l); | ||
|
||
return hints[n]; | ||
} | ||
|
||
/** | ||
* Inserts text message | ||
* into DOM element | ||
* | ||
* @param id {string} element identificator | ||
* @param msg {string} text message | ||
*/ | ||
// eslint-disable-next-line no-unused-vars | ||
function insertTextMsg(id, msg){ | ||
var el = document.getElementById(id); | ||
|
||
if (el) | ||
el.innerText = msg; | ||
} | ||
|
||
/** | ||
* Sets the hint and thanks messages. Will be executed on load event. | ||
*/ | ||
function onLoad() { | ||
//Works only for close2.html because close.html doesn't have this element. | ||
insertTextMsg('thanksMessage', | ||
'Thank you for using ' + interfaceConfig.APP_NAME); | ||
insertTextMsg('hintMessage', getHint()); | ||
} | ||
|
||
window.onload = onLoad; |
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 was deleted.
Oops, something went wrong.
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