<!-- Bootstrap HTML -->
<div id="lawmsg" class="alert alert-info alert-dismissible h6 fade show fixed-bottom" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
We use cookies on this website to distinguish you from other users. We use this data to enhance your experience and for targeted advertising. By continuing to use this website you consent to our use of cookies. For more information, please see our
<a href="https://info.profilesonly.com" target="_blank">Cookie Policy</a>.
</div>
// Cookie Law Jvascript, from http://W3Schools.com
function setCookie(cookieName, cookieValue, numdaystilexpireasinteger) {
var d = new Date();
d.setTime(d.getTime() + (numdaystilexpireasinteger*24*60*60*1000));
var expires = "expires="+ d.toUTCString();
document.cookie = cookieName+ "=" + cookieValue + ";" + expires + ";path=/";
}
function getCookie(cookieName) {
var name = cookieName+ "=";
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(';');
for(var i = 0; i <ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}
function showLaw() {
var x = getCookie("cookieName"); //call cookie to get its value
if (x != "") {
$("#lawmsg").remove();
} else {
setCookie("cookieName", "cookieValue", 2);
}
}