X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/cf76dbd53927cb38154845748fb3481cf013970f..d5a6347a4687eff0f47e832407160bdec086bd75:/src/wolnelektury/static/js/main.js?ds=sidebyside diff --git a/src/wolnelektury/static/js/main.js b/src/wolnelektury/static/js/main.js index acc38a933..2feb7b8eb 100644 --- a/src/wolnelektury/static/js/main.js +++ b/src/wolnelektury/static/js/main.js @@ -543,4 +543,12 @@ $(".c-media__settings").toggleClass('active'); }); + const crisis = document.querySelector(".annoy-banner_crisis-container"); + const crisisLink = document.querySelector('.annoy-banner_crisis-container a.action'); + if (crisis) { + crisis.addEventListener("click", function() { + crisisLink.click(); + }); + } + })();