Add a cookie notice for users which visit dporn.club for the first time
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)
Posted on Utopian.io - Rewarding Open Source Contributors
Your contribution cannot be approved because it does not follow the Utopian Rules.
You can contact us on Discord.
[utopian-moderator]
Hello! I forgot to pull the request on github x) here it is https://github.com/wehmoen/dporn/pull/1
Sorry for that. can you take a look at it again @mkt ?
Hey @mkt, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!