Verified Commit bd772610 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

minor changes

parent 0b67c17f
......@@ -39,7 +39,7 @@
#lap-cookies-banner .banner-buttons .lap-cookies-accept:hover,
#lap-cookies-banner .banner-buttons .lap-cookies-refuse:hover,
#lap-cookies-banner .banner-buttons .lap-cookies-more:hover,
#lap-cookies-banner .banner-buttons .btn.disabled {
#lap-cookies-banner .banner-buttons .btn.selected {
background: white;
color: #198cdc !important;
border: 1px solid #198cdc;
......
......@@ -25,7 +25,7 @@ function loadMatomo() {
/* setResultText: change the text in the footer */
function setResultText(acceptCookies){
if (acceptCookies == true) {
if (acceptCookies === true) {
$('#gdpr-result-text').html(settings.accept_all_text);
} else {
$('#gdpr-result-text').html(settings.only_necessary_text);
......@@ -82,9 +82,8 @@ function hasConsent() {
} else if (isCookieSetTo(0)) {
setResultText(false);
return false;
} else {
return null
}
return null;
}
/* accept: accept the cookies */
......@@ -102,8 +101,8 @@ function accept(cookieMgmt) {
setResultText(true);
// style
$('.lap-cookies-accept').addClass('disabled');
$('.lap-cookies-refuse').removeClass('disabled');
$('.lap-cookies-accept').addClass('selected');
$('.lap-cookies-refuse').removeClass('selected');
}
/* accept: refuse the cookies */
......@@ -121,8 +120,8 @@ function refuse(cookieMgmt) {
setResultText(false);
// style
$('.lap-cookies-refuse').addClass('disabled');
$('.lap-cookies-accept').removeClass('disabled');
$('.lap-cookies-refuse').addClass('selected');
$('.lap-cookies-accept').removeClass('selected');
}
......@@ -164,5 +163,4 @@ $( document ).ready(function() {
showCookieBanner();
}
}
});
\ No newline at end of file
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