Add a cookie notice for users which visit dporn.club for the first time

in #utopian-io7 years ago (edited)

New Features

  • What feature(s) did you add?
    Add a cookie notice for users which visit dporn.club for the first time
    as requested here

Realized with the help of open source js library Cookie consent.
All what is necessary to do is add the following into the HTML file.

<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener('load',function(){window.cookieconsent.initialise({'palette':{'popup':{'background':'#122e45','text':'#ffffff'},'button':{'background':'#06D6A9','text':'#ffffff'}},
'content':{'message':'This Website does take use of Cookies!','dismiss':'I understand','link':'More Information','href':'https://dporn.club/learn-more.html'}})});
</script>

The Message and Colors itself can be changed withing the config object.

Screenshot of the outcome (responsive)

responsiveoutcome.png



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Coin Marketplace

STEEM 0.18
TRX 0.15
JST 0.029
BTC 62837.64
ETH 2542.11
USDT 1.00
SBD 2.65