X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e2a460b0a960df9482701ab10ec135a5cc3c69ac..33af401eb4abe15a37d0147807d06a9b19eaa802:/src/wolnelektury/static/2021/scripts/main.js?ds=sidebyside diff --git a/src/wolnelektury/static/2021/scripts/main.js b/src/wolnelektury/static/2021/scripts/main.js index 8120b43fa..b79abf8e0 100644 --- a/src/wolnelektury/static/2021/scripts/main.js +++ b/src/wolnelektury/static/2021/scripts/main.js @@ -73,4 +73,24 @@ $(this).text(dataLabel); } }); +})(); + +//Zmieniamy się popup +(function() { + let $change = $('.l-change-pop'); + function change() { + if(localStorage.getItem('change') === null) { + $change.addClass('show'); + } else { + $change.remove(); + return false; + } + + $change.on('click', '.l-change-pop__close', function () { + $change.slideUp(); + localStorage.setItem('change', 'showed'); + }); + } + + if($change.length) { change(); } })(); \ No newline at end of file