update(assets): change gnous logo

fix(cookie): remove cookie banner (csrf no need cookie banner) (close #17)
This commit is contained in:
Romain J 2020-11-05 09:51:55 +01:00
parent eeaaa8a1cc
commit 3f7e775526
6 changed files with 264 additions and 31 deletions

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 14 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -15,7 +15,7 @@ Don't judge me
window.theme = document.querySelector('input[name=theme]');
theme.checked = document.documentElement.getAttribute('data-theme') === 'dark';
window.applyTheme = function(theme) {
window.applyTheme = function (theme) {
document.documentElement.setAttribute('data-theme', theme);
let cards = document.querySelectorAll(".uk-card.uk-card-default,.uk-card.uk-card-secondary");
@ -35,22 +35,6 @@ Don't judge me
})
</script>
<!-- cookie banner -->
<script>
cookies = document.cookie.split('; ');
banner_cookie = document.cookie.split('; ').filter(e => e.startsWith('cookie-banner='))[0];
banner_cookie_div = document.getElementById("banner_cookie_div");
if (banner_cookie === undefined || banner_cookie.split('cookie-banner=')[1] !== 'hidden') {
banner_cookie_div.addEventListener('click', event => {
document.cookie = 'cookie-banner=hidden';
banner_cookie_div.style.display = "none"
});
} else {
banner_cookie_div.style.display = "none"
}
</script>
<!-- sidebar -->
<script>
offcanvas_nav = document.getElementById("offcanvas-nav");

View File

@ -31,16 +31,4 @@
</label>
</div>
</div>
</footer>
<div id="banner_cookie_div" class="uk-notification uk-notification-bottom-center" style="display: block">
<div class="uk-notification-message" style="opacity: 1; margin-bottom: 0px;">
<a href="" class="uk-notification-close uk-icon uk-close">
<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" data-svg="close-icon">
<line fill="none" stroke="#000" stroke-width="1.1" x1="1" y1="1" x2="13" y2="13"></line>
<line fill="none" stroke="#000" stroke-width="1.1" x1="13" y1="1" x2="1" y2="13"></line>
</svg>
</a>
<div>{% trans "Bla bla bla... bannière alakon pour dire qu&amp;on utilise des cookies (pour la langue et cette bannière)" %}</div>
</div>
</div>
</footer>