Caution:
This post was published in 2018 and may contain
information, techniques, or code examples that are no longer
current. Please double-check official documentation and
modern best practices before using anything from this article.
This post is from 2019, it may be out-of-date. For a better solution try: Cookie Script for GDPR
Simple no-nonsense JavaScript and CSS cookie pop-up notification for legacy websites. Required jQuery.