From: Marius Gavrilescu Date: Wed, 5 Aug 2015 14:36:39 +0000 (+0300) Subject: Get rid of backdrop variable since it confuses Wappalyzer X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=db826688fdfc12865c5208a9c137142dddefd43a;p=gruntmaster-page.git Get rid of backdrop variable since it confuses Wappalyzer --- diff --git a/js/10-modal.js b/js/10-modal.js index d930f44..acee78b 100644 --- a/js/10-modal.js +++ b/js/10-modal.js @@ -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');