]> iEval git - gruntmaster-page.git/commitdiff
Get rid of backdrop variable since it confuses Wappalyzer
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 5 Aug 2015 14:36:39 +0000 (17:36 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 5 Aug 2015 14:36:55 +0000 (17:36 +0300)
js/10-modal.js

index d930f44ef0b6b3f956f0076b8055295c8f73de1e..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);
@@ -14,7 +14,6 @@ function hide_modal () {
 
 $(function() {
        modal = q('.modal');
-       backdrop = q('.backdrop');
        $(modal).on('transitionend', el => {
                if(!document.body.classList.contains('modal-open'))
                        modal.classList.add('hidden');
This page took 0.018386 seconds and 4 git commands to generate.