The cookie consent banner is used to display a notification of cookie usage, link to privacy policy, with a button to accept. The banner will not display if a user has already accepted. This is required across on msstate.edu websites.
Usage
- Please include the javascript asset below before the closing
<body>of all pages on your website.
Javascript
<script src="https://cdn01.its.msstate.edu/i/ccb/1.0/ccb.js"></script>
Below is the rendered HTML code for reference.
HTML
<div class="msstate-ccb msstate-ccb--visible" role="region" aria-label="Cookie consent notice" aria-live="polite" style="z-index: 2147483647;">
<p class="msstate-ccb__message">We use cookies to improve your experience. Please read our <a href="https://www.msstate.edu/privacy" target="_blank" rel="noopener noreferrer" class="local">Privacy Policy</a> or click Accept.</p>
<button type="button" class="msstate-ccb__button">I Accept</button>
</div>