Commit 3a3960bf authored by klafyvel's avatar klafyvel

Merge branch 'remove_cookie_banner' into 'master'

Remove cookie banner

Closes #75

See merge request federez/re2o!92
parents d7be9e90 0e60e974
......@@ -56,7 +56,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<div id="wrap">
{% include "cookie_banner.html" %}
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
{% if not 'accept_cookies' in request.COOKIES%}
function accept_cookie() {
var d = new Date();
var expiration_time = 7 * 24 * 60 * 60 * 1000; // Accepte les cookies pendant 7 jours.
d.setTime(d.getTime() + expiration_time);
var expires = "expires="+ d.toUTCString();
document.cookie = "accept_cookies=1;" + expires + ";path=/";
var banner = document.getElementById("cookie_banner");
<div class="navbar text-center" id="cookie_banner">
<p>Ce site utilise des cookies. En poursuivant sur ce site j'accepte l'utilisation des cookies sur ce site.</p>
<a class="btn btn-primary btn-sm" role="button" onclick="accept_cookie();" title="Accepter">
J'ai compris !
{% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment