Created
December 16, 2014 15:08
-
-
Save johnchambers/5a6e67f2d7d39031af17 to your computer and use it in GitHub Desktop.
Bootstrap 3 - Footer Cookie Alert/Banner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="cookie_directive_container" class="container" style="display: none"> | |
<nav class="navbar navbar-default navbar-fixed-bottom"> | |
<div class="container"> | |
<div class="navbar-inner navbar-content-center" id="cookie_accept"> | |
<a href="#" class="btn btn-default pull-right">Close</a> | |
<p class="text-muted credit"> | |
By using our website you are consenting to our use of cookies in accordance with our <a href="/cookies">cookie policy</a>. | |
</p> | |
<br> | |
</div> | |
</div> | |
</nav> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey thanks for such a great light-weight cookie policy banner.
Personally, I wouldn' make it so when you click on the cookie policy link it sets the cookie, only after they explicitly click on the button instead, i.e.
By default, most people will likely want the cookie policy in a separate window, so I'd suggest your template could use target="_blank".