Top cookie notice


This cookie notification shows up the first time a user visits a page. Clicking Got it dismisses the notification and also adds a cookie called acceptanceCookie to the window. The acceptanceCookie prevents future notifications from showing, and can also be read by any other JS in the window to determine whether or not the user has dismissed the notification. See more docs on the cookie library here: cookie/js cookie basic usage edit

Add to your website

looks_onePaste the AnyMod script inside your HTML's <head> section.

looks_twoPaste the mod tag anywhere you want this mod to show.

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Top cookie notice</title>

    <!-- AnyMod -->
    <script id="AnyMod-script">
      (function (m,o,d,u,l,a,r,i,z,e) {
        u[m]={Project:o,rq:[],Opts:r,ready:function(j){u[m].rq.push(j)}};function j(s){return encodeURIComponent(btoa(s))};z=l.getElementById(m+'-'+a);r=u.location;
      })('AnyMod','library','',window,document,'script',{ toolkit: true, tips: true, priority: 3 });
    <!-- /AnyMod -->


    <!-- Top cookie notice -->
    <div id="anymod-dknamn"></div>

Download HTML file