diff --git a/css/tarteaucitron.css b/css/tarteaucitron.css index 07c1305..7e75ead 100644 --- a/css/tarteaucitron.css +++ b/css/tarteaucitron.css @@ -250,6 +250,14 @@ /*** * Big alert */ +.tarteaucitronAlertBigTop { + top: 0; +} + +.tarteaucitronAlertBigBottom { + bottom: 0; +} + #tarteaucitronAlertBig { background: #333; color: #fff !important; @@ -259,7 +267,6 @@ padding: 5px 5%; position: fixed; text-align: center; - top: 0; width: 90%; box-sizing: content-box; z-index: 2147483645; diff --git a/tarteaucitron.js b/tarteaucitron.js index 7695e5b..3ab2319 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -23,6 +23,7 @@ var tarteaucitron = { "autoOpen": false, "grayArea": false, "highPrivacy": false, + "orientation": "top", "showAlertSmall": true }; @@ -56,7 +57,8 @@ var tarteaucitron = { html = '', lastTitle, alert = false, - index; + index, + orientation = 'Top'; // dedup, clean and sort job[] function cleanArray(arr) { @@ -161,8 +163,13 @@ var tarteaucitron = { html += ' '; html += ''; + // get the banner orientation + if (default.orientation === 'bottom') { + orientation = 'Bottom'; + } + if (defaults.highPrivacy) { - html += '