]>
iEval git - plack-app-gruntmaster.git/blob - js/10-modal.js
3 function show_modal () {
4 modal
.classList
.remove('hidden');
5 q('.backdrop').classList
.remove('hidden');
6 setTimeout(function (){
7 document
.body
.classList
.add('modal-open');
11 function hide_modal () {
12 document
.body
.classList
.remove('modal-open');
17 $(modal
).on('transitionend', el
=> {
18 if(!document
.body
.classList
.contains('modal-open'))
19 modal
.classList
.add('hidden');
21 $('.backdrop,.modal').each(el
=> document
.body
.appendChild(el
) );
22 $('#solution').on('click', e
=> {
23 if(window
.matchMedia("(min-width: 768px)").matches
){
28 $('.backdrop').on('click', hide_modal
);
29 window
.onkeyup
= event
=> {
30 if (event
.keyCode
=== 27)
This page took 0.041336 seconds and 4 git commands to generate.