Verified Commit 529f8c0d authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

change name of classes

parent 173a2da7
......@@ -21,8 +21,8 @@
</div>
<div class="banner-buttons">
<a class="btn lap-cookies-accept">{{ site.banner_accept_text }}</a>
<a class="btn lap-cookies-refuse">{{ site.banner_refuse_text }}</a>
<a class="btn lap-accept">{{ site.banner_accept_text }}</a>
<a class="btn lap-refuse">{{ site.banner_refuse_text }}</a>
<a class="btn lap-cookies-more" href="{{ site.path_policy }}">{{ site.banner_more_text }}</a>
</div>
......
......@@ -47,8 +47,8 @@
line-height: 54px;
}
#lap-cookies-banner .banner-buttons .lap-cookies-accept,
#lap-cookies-banner .banner-buttons .lap-cookies-refuse,
#lap-cookies-banner .banner-buttons .lap-accept,
#lap-cookies-banner .banner-buttons .lap-refuse,
#lap-cookies-banner .banner-buttons .lap-cookies-more,
#lap-cookies-banner .banner-buttons .btn.active {
border: 1px solid #198cdc;
......@@ -60,8 +60,8 @@
-webkit-box-sizing: border-box;
}
#lap-cookies-banner .banner-buttons .lap-cookies-accept:hover,
#lap-cookies-banner .banner-buttons .lap-cookies-refuse:hover,
#lap-cookies-banner .banner-buttons .lap-accept:hover,
#lap-cookies-banner .banner-buttons .lap-refuse:hover,
#lap-cookies-banner .banner-buttons .lap-cookies-more:hover,
#lap-cookies-banner .banner-buttons .btn.selected {
background: white;
......
......@@ -116,8 +116,8 @@ function accept() {
setResultText(true);
// style
$('.lap-cookies-accept').addClass('selected');
$('.lap-cookies-refuse').removeClass('selected');
$('.lap-accept').addClass('selected');
$('.lap-refuse').removeClass('selected');
$("input[id^=check]").not(this).prop('checked', true);
}
......@@ -139,8 +139,8 @@ function refuse(doNotTrack) {
setResultText(false);
// style
$('.lap-cookies-refuse').addClass('selected');
$('.lap-cookies-accept').removeClass('selected');
$('.lap-refuse').addClass('selected');
$('.lap-accept').removeClass('selected');
$("input[id^=check]").not(this).prop('checked', false);
}
......@@ -162,14 +162,14 @@ function toggleBox(boxID) {
*/
$(document).ready(function() {
// accept
$('.lap-cookies-accept').click(function(e) {
$('.lap-accept').click(function(e) {
e.preventDefault(true);
accept();
hideBanner();
});
// refuse
$('.lap-cookies-refuse').click(function(e) {
$('.lap-refuse').click(function(e) {
e.preventDefault(true);
refuse(false);
hideBanner();
......
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