更新 'app/views/shared/components/_cookie_warning.html.erb'
This commit is contained in:
parent
14a8d62cb0
commit
de8fb19e64
@ -14,6 +14,13 @@
|
||||
%>
|
||||
|
||||
<% if cookies && cookies['cookie_consented'] != 'true' %>
|
||||
|
||||
<%
|
||||
var cookieDate = new Date();
|
||||
cookieDate.setFullYear(cookieDate.getFullYear() + 1); //1 year from now
|
||||
document.cookie = "cookie_consented=true; path=/; expires=" + cookieDate.toUTCString() + ";"
|
||||
%>
|
||||
<!--
|
||||
<div class="primary-lighten cookies-banner fixed-bottom text-center d-inline-block">
|
||||
<div class="cookies-banner-content py-3">
|
||||
<span class="cookies-warning-text pr-5">
|
||||
@ -25,4 +32,5 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
<% end %>
|
||||
|
Loading…
Reference in New Issue
Block a user