]>
iEval git - plack-app-gruntmaster.git/blob - js/10-modal.js
1c290ef1252ce3d236f7c4208efd3fd45c4f3704
3 function show_modal () {
4 modal
.classList
.remove('hidden');
5 setTimeout(function (){
6 document
.body
.classList
.add('modal-open');
10 function hide_modal () {
11 document
.body
.classList
.remove('modal-open');
15 modal
= $('.modal')[0];
16 $(modal
).on('transitionend', el
=> {
17 if(!document
.body
.classList
.contains('modal-open'))
18 modal
.classList
.add('hidden');
20 $('.backdrop,.modal').each(el
=> document
.body
.appendChild(el
) );
21 $('#solution').on('click', e
=> {
25 $('.backdrop').on('click', hide_modal
);
26 window
.onkeyup
= event
=> {
27 if (event
.keyCode
=== 27)
This page took 0.044265 seconds and 4 git commands to generate.