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('/') + '/';
|
||||
|
||||
var tarteaucitron = {
|
||||
"showAlertSmall": true, // show the small banner on bottom right ?
|
||||
"autoOpen": false, // auto open the panel with #tarteaucitron hash ?
|
||||
"cdn": cdn,
|
||||
"user": {},
|
||||
|
|
@ -143,10 +144,13 @@ var tarteaucitron = {
|
|||
html += ' ' + tarteaucitron.lang.close;
|
||||
html += ' </span>';
|
||||
html += '</div>';
|
||||
html += '<div id="tarteaucitronAlertSmall" onclick="tarteaucitron.userInterface.openPanel();">';
|
||||
html += ' <span id="tarteaucitronDot"></span>';
|
||||
html += ' ' + tarteaucitron.lang.alertSmall;
|
||||
html += '</div>';
|
||||
|
||||
if (tarteaucitron.showAlertSmall === true) {
|
||||
html += '<div id="tarteaucitronAlertSmall" onclick="tarteaucitron.userInterface.openPanel();">';
|
||||
html += ' <span id="tarteaucitronDot"></span>';
|
||||
html += ' ' + tarteaucitron.lang.alertSmall;
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
div.id = 'tarteaucitronRoot';
|
||||
body.appendChild(div, body);
|
||||
|
|
|
|||
Loading…
Reference in New Issue