X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9fcf7be584a442a94cfb7c0d2b97b61ad52730e5..06175c1d644d5a6f3093c945f18d6b3c33cc8d46:/src/wolnelektury/static/2021/scripts/main.js diff --git a/src/wolnelektury/static/2021/scripts/main.js b/src/wolnelektury/static/2021/scripts/main.js index 68708377d..4d177715c 100644 --- a/src/wolnelektury/static/2021/scripts/main.js +++ b/src/wolnelektury/static/2021/scripts/main.js @@ -28,7 +28,7 @@ }); })(); -// Ebook/Audiobook Btns +/// Ebook/Audiobook Btns (function() { let button = $('.c-media__btn button:not(.l-button--media--full)'); let popupLayer = $('.c-media__popup'); @@ -138,6 +138,14 @@ } if($change.length) { change(); } + + + function quit_experiment() { + document.cookie = 'EXPERIMENT_layout=off; path=/; max-age=31536000'; + window.location.reload(true); + } + $(".quit-experiment").click(quit_experiment); + })(); //Switch