Adds an option for a hint message shown only to guests.
This commit is contained in:
parent
282defc54c
commit
63aa60f2d6
16
close.js
16
close.js
|
@ -1,4 +1,4 @@
|
|||
/* global interfaceConfig */
|
||||
/* global interfaceConfig, getConfigParamsFromUrl */
|
||||
//list of tips
|
||||
var hints = [
|
||||
"You can pin participants by clicking on their thumbnails.",// jshint ignore:line
|
||||
|
@ -32,7 +32,7 @@ function insertTextMsg(id, msg){
|
|||
var el = document.getElementById(id);
|
||||
|
||||
if (el)
|
||||
el.innerText = msg;
|
||||
el.innerHTML = msg;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -42,6 +42,18 @@ function onLoad() {
|
|||
//Works only for close2.html because close.html doesn't have this element.
|
||||
insertTextMsg('thanksMessage',
|
||||
'Thank you for using ' + interfaceConfig.APP_NAME);
|
||||
|
||||
// If there is a setting show a special message only for the guests
|
||||
if (interfaceConfig.CLOSE_PAGE_GUEST_HINT) {
|
||||
let params = getConfigParamsFromUrl('search');
|
||||
if ( params.guest ) {
|
||||
var element = document.getElementById('hintQuestion');
|
||||
element.classList.add('hide');
|
||||
insertTextMsg('hintMessage', interfaceConfig.CLOSE_PAGE_GUEST_HINT);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
insertTextMsg('hintMessage', getHint());
|
||||
}
|
||||
|
||||
|
|
|
@ -53,6 +53,8 @@ var interfaceConfig = { // eslint-disable-line no-unused-vars
|
|||
* Whether to only show the filmstrip (and hide the toolbar).
|
||||
*/
|
||||
filmStripOnly: false,
|
||||
//A html text to be shown to guests on the close page, false disables it
|
||||
CLOSE_PAGE_GUEST_HINT: false,
|
||||
RANDOM_AVATAR_URL_PREFIX: false,
|
||||
RANDOM_AVATAR_URL_SUFFIX: false,
|
||||
FILM_STRIP_MAX_HEIGHT: 120,
|
||||
|
|
Loading…
Reference in New Issue