diff --git a/tarteaucitron.js b/tarteaucitron.js index fe7bef9..560fe04 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -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 += ' '; html += ''; - html += '
'; - html += ' '; - html += ' ' + tarteaucitron.lang.alertSmall; - html += '
'; + + if (tarteaucitron.showAlertSmall === true) { + html += '
'; + html += ' '; + html += ' ' + tarteaucitron.lang.alertSmall; + html += '
'; + } div.id = 'tarteaucitronRoot'; body.appendChild(div, body);