]> iEval git - plack-app-gruntmaster.git/blobdiff - js/10-modal.js
Get rid of backdrop variable since it confuses Wappalyzer
[plack-app-gruntmaster.git] / js / 10-modal.js
index 3a8a214a6c1716bda539d27ed58ff7b2313bd0e2..acee78b7fdd6c3e4d525bfc8515bef911c050e2f 100644 (file)
@@ -1,8 +1,8 @@
-let modal, backdrop, hiding;
+let modal, hiding;
 
 function show_modal () {
        modal.classList.remove('hidden');
-       backdrop.classList.remove('hidden');
+       q('.backdrop').classList.remove('hidden');
        setTimeout(function (){
                document.body.classList.add('modal-open');
        }, 20);
@@ -13,8 +13,7 @@ function hide_modal () {
 }
 
 $(function() {
-       modal = $('.modal')[0];
-       backdrop = $('.backdrop')[0];
+       modal = q('.modal');
        $(modal).on('transitionend', el => {
                if(!document.body.classList.contains('modal-open'))
                        modal.classList.add('hidden');
This page took 0.017399 seconds and 4 git commands to generate.