/* Cookie Law */
#gk-cookie-law { background: #E55E48; bottom: 0; color: #fff; font: 400 16px/52px 'Open Sans',sans-serif; height: 52px; left: 0; margin: 0!important; position: fixed; text-align: center; width: 100%; z-index: 10001; }
#gk-cookie-law span { display: inline-block; max-width: 90%; }
#gk-cookie-law a { color: #fff; font-weight: 600; text-decoration: underline}
#gk-cookie-law a:hover { color: #222}
#gk-cookie-law a.gk-cookie-law-close { background: #c33c26; color: #fff; display: block; float: right; font-size: 28px; font-weight: bold; height: 52px; line-height: 52px; width: 52px;text-decoration: none}
#gk-cookie-law a.gk-cookie-law-close:active,
#gk-cookie-law a.gk-cookie-law-close:focus,
#gk-cookie-law a.gk-cookie-law-close:hover { background: #282828; }
@media (max-width: 1280px) { #gk-cookie-law { font-size: 13px!important; } }
@media (max-width: 1050px) { #gk-cookie-law { font-size: 12px!important; line-height: 26px!important; } }
@media (max-width: 620px) { #gk-cookie-law { font-size: 11px!important; line-height: 18px!important; } #gk-cookie-law span { max-width: 80%; } }
@media (max-width: 400px) { #gk-cookie-law { font-size: 10px!important; line-height: 13px!important; } }
<p id="gk-cookie-law"><span>GavickPro website uses cookies. By continuing to use this website, you are giving consent to cookies being used. For more information visit our <a href="http://www.gavick.com/cookies.html">Cookie policy.</a></span> <a href="#close" class="gk-cookie-law-close">×</a></p>
<script type="text/javascript">
function gkCreateCookie(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=/";
}
jQuery(document).ready(function() {
if(jQuery(document).find(\'#gk-cookie-law\')) {
jQuery(document).find(\'#gk-cookie-law a\').each(function(i, el) {
el = jQuery(el);
el.click(function(e) {
// for both links
gkCreateCookie(\'gk-demo-cookie-law\', \'1\', 365);
if(jQuery(e.target).attr(\'href\') == \'#close\') {
e.preventDefault();
jQuery(document).find(\'#gk-cookie-law\').remove();
} else {
window.location.href = jQuery(e.target).attr(\'href\');
}
});
});
}
});</script>
<script type="text/javascript">
function gkCreateCookie(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=/";
}
jQuery(document).ready(function() {
if(jQuery(document).find('#gk-cookie-law')) {
jQuery(document).find('#gk-cookie-law a').each(function(i, el) {
el = jQuery(el);
el.click(function(e) {
// for both links
gkCreateCookie('gk-demo-cookie-law', '1', 365);
if(jQuery(e.target).attr('href') == '#close') {
e.preventDefault();
jQuery(document).find('#gk-cookie-law').remove();
} else {
window.location.href = jQuery(e.target).attr('href');
}
});
});
}
});</script>
<?php if(!isset($_COOKIE['gk-demo-cookie-law'])) : ?>
<p id="gk-cookie-law"><span>GavickPro website uses cookies. By continuing to use this website, you are giving consent to cookies being used. For more information visit our <a href="http://www.gavick.com/cookies.html">Cookie policy.</a></span> <a href="#close" class="gk-cookie-law-close">×</a></p>
<?php endif; ?>