X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=js%2F10-modal.js;h=3a8a214a6c1716bda539d27ed58ff7b2313bd0e2;hb=0ffa7a2279c36443ce58a2b0d383e45011b7230e;hp=62cbb271c56b32f0f779d0ca4529814aeadeb9b8;hpb=03720101d7d5fee1808661f211e2cb6c557742c4;p=plack-app-gruntmaster.git diff --git a/js/10-modal.js b/js/10-modal.js index 62cbb27..3a8a214 100644 --- a/js/10-modal.js +++ b/js/10-modal.js @@ -21,8 +21,10 @@ $(function() { }); $('.backdrop,.modal').each(el => document.body.appendChild(el) ); $('#solution').on('click', e => { - show_modal(); - e.preventDefault(); + if(window.matchMedia("(min-width: 768px)").matches){ + show_modal(); + e.preventDefault(); + } }); $('.backdrop').on('click', hide_modal); window.onkeyup = event => {