- New option:
delay-before-close
(default:null
), allows delaying the notice closing by the specified number of milliseconds - New option:
fade-out-duration-ms
(default:2000
), allows specifying the fade out duration (in milliseconds) expires
option now handles simple numeric strings as "expires in X number of seconds from now"- New options/callbacks:
on-inserted
,on-closed
(default:null
) -- see README for more details - New option:
padding
(default:5px 16px
), allows setting the padding for cases when one has no control over the site's CSS - New option:
moreinfo-class
(default:null
), allows specifying which link will get themoreinfo
link (for cases when yourmessage
has more than one link, and you do not want the first one to havemoreinfo
link set on it)
data-effect="fade"
oreffect: 'fade'
now applies when the notice is closed too (meaning the notice now fades out when closing, if/when it was faded in)
- Empty
linkmsg
option does not throw an error now
1.2.2 - 2018-04-19
- Debug option works now (closes banner without setting the cookie)
1.2.1 - 2017-10-26
- New option:
close-precedes
(defaults totrue
, keeping backwards compatibility) -- allows controlling whether.cookiebanner-close
element follows or precedes the<span>
containing the message
- Tightened up some loose ends in tests
- Added some more eslint rules
- Upgraded eslint dev dependency to ~4.8.0
1.2.0 - 2017-08-01
- New option:
moreinfo-rel
(controls rel attribute value formoreinfo
link, defaults tonoopener noreferrer
)
1.1.1 - 2017-03-30
- Nothing really, just bumping version for cdnjs to pick up latest version
1.1.0 - 2017-03-30
- New option:
moreinfo-font-size
(sets font-size formoreinfo
link when the site's CSS can't be changed)
1.0.0 - 2017-01-13
- Now hosted on CDNJS.
- New option: dismiss the notice by clicking anywhere on the page.
- New option: dismiss the notice as soon as the window is scrolled.
- New option: agree automatically on first visit and show the notice only on first page view.
- New option: agree and close the notice automatically after a certain amount of time passes.
- New option:
close-style
. - New option:
cookie-secure
. - New option:
moreinfo-decoration
. - New option:
moreinfo-font-weight
. - New option:
moreinfo-target
. - Minified version included in the
dist/
directory and it contains a short license header. - This CHANGELOG :)
- Misc. Readme/Documentation changes.
- Fix warnings/notices when running tests on newer phantomjs versions (2.1.x).