Skip to content

Instantly share code, notes, and snippets.

View brew-martin's full-sized avatar
:octocat:

Martin Sherwood brew-martin

:octocat:
View GitHub Profile
" Make IE Better Compatible "
<!--[if IE]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
======================================================
IE6 Only
==================
_selector {...}
@brew-martin
brew-martin / gist:5281323
Last active February 26, 2023 11:41
Small and simple cookie banner, uses a bit of PHP, JavaScript/jQuery and some CSS for styling the banner.
<?php if(!isset($_COOKIE["comply_cookie"])) { ?>
<div id="cookies">
<p>Our website uses cookies. By continuing we assume your permission to deploy cookies, as detailed in our <a href="yourPolicy">privacy policy</a>.
<span class="cookie-accept" title="Okay, close"><img src="img/close.png" alt="Close"/></span></p>
</div>
<?php } ?>