JSFiddle - React, Tailwind, and code Playground

HTML

<div id="popupDiv">
<script type='text/javascript'>
var adParams = {a: '54161005', size: '600x400',serverdomain: 'adk2trk2.cpmrocket.com'  };
</script>
<script type='text/javascript' src='http://adk2cdn.cpmrocket.com/cpmrocket/scripts/smart/smart.js'></script>  
</div>

CSS

#popupDiv {
    display: none;
    color:#000 !important;
    margin: 8px 0px 2px 4px !important;
    padding: 5px 0px 8px 0px !important;
    -webkit-border-radius:  5px 5px 5px 5px;
    -moz-border-radius: 5px 5px 5px 5px !important ;
    border-radius: 5px 5px 5px 5px;
    background-color:rgba(100%,100%,100%,1) !important;
    border-width: 1px !important;
    border-color: rgba( 0, 20, 45, .5) !important;
    border-style: solid !important;
    color: rgba( 0%,0%,0%,1) !important;
    box-shadow: 2px 2px 2px rgba(0%,0%,0%,0.2) !important;
}

JavaScript

$(document).ready(function() {

  // If the 'hide cookie is not set we show the message
  if (!readCookie('hide')) {
    $('#popupDiv').show();
  }

  // Add the event that closes the popup and sets the cookie that tells us to
  // not show it again until one day has passed.
  $('#popupDiv').click(function() {
    $('#popupDiv').hide();
    createCookie('hide', true, 1)
    return false;
  });

});

// ---
// And some generic cookie logic
// ---
function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else var expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}

function eraseCookie(name) {
  createCookie(name,"",-1);
}