I have this text banner on my site. I want it to show it only to new visitors using cookies. I have very little knowledge of JS so please help me how can I show it to only first-time visitors.
I am using it on Discourse-based this Android forum site which is already built on Node.js.
<style>
.top {
background: linear-gradient(to right, #141517, #6A9113);
border-radius: 10px;
font-size: 20px;
color: white;
opacity: 0.9;
text-align: center;
padding: 25px;
line-height: 30px;
margin: 10px 0px 30px 0px;
}
</style>
<div class="top">
Welcome to the forum. This is demo text.
</div>