Option to hide the small banner on bottom right
This commit is contained in:
parent
eaa9907fb1
commit
c97575c2dd
|
|
@ -6,6 +6,7 @@ var scripts = document.getElementsByTagName('script'),
|
||||||
cdn = path.split('/').slice(0, -1).join('/') + '/';
|
cdn = path.split('/').slice(0, -1).join('/') + '/';
|
||||||
|
|
||||||
var tarteaucitron = {
|
var tarteaucitron = {
|
||||||
|
"showAlertSmall": true, // show the small banner on bottom right ?
|
||||||
"autoOpen": false, // auto open the panel with #tarteaucitron hash ?
|
"autoOpen": false, // auto open the panel with #tarteaucitron hash ?
|
||||||
"cdn": cdn,
|
"cdn": cdn,
|
||||||
"user": {},
|
"user": {},
|
||||||
|
|
@ -143,10 +144,13 @@ var tarteaucitron = {
|
||||||
html += ' ' + tarteaucitron.lang.close;
|
html += ' ' + tarteaucitron.lang.close;
|
||||||
html += ' </span>';
|
html += ' </span>';
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
html += '<div id="tarteaucitronAlertSmall" onclick="tarteaucitron.userInterface.openPanel();">';
|
|
||||||
html += ' <span id="tarteaucitronDot"></span>';
|
if (tarteaucitron.showAlertSmall === true) {
|
||||||
html += ' ' + tarteaucitron.lang.alertSmall;
|
html += '<div id="tarteaucitronAlertSmall" onclick="tarteaucitron.userInterface.openPanel();">';
|
||||||
html += '</div>';
|
html += ' <span id="tarteaucitronDot"></span>';
|
||||||
|
html += ' ' + tarteaucitron.lang.alertSmall;
|
||||||
|
html += '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
div.id = 'tarteaucitronRoot';
|
div.id = 'tarteaucitronRoot';
|
||||||
body.appendChild(div, body);
|
body.appendChild(div, body);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue