So simple that no comments.
Requirements:
Html.
<div class="cookie_law_omfg"> Eat our cookies or leave. <button id="accept_cookies" class="button small radius secondary"> I agree. Do not show this message. </button></div>
CSS.
div.cookie_law_omfg { display: none; color: #fff; position: fixed; bottom: 0; width: 100%; padding: 10px 50px 5px 50px; background-color: rgba(0, 0, 0, 0.8); z-index: 99999; button { float: right; }}
JS: jQuery.
$(document).ready(function () { if (!$.cookie("ESHLOX_NET_accept_cookies")) { $(".cookie_law_omfg").show(); } $("#accept_cookies").click(function () { $(".cookie_law_omfg").hide(); $.cookie("ESHLOX_NET_accept_cookies", "i_like_cookies_omnomnom", { expires: 365, path: "/", }); });});
Questions?