}
$(function() {
- if(document.documentElement.clientWidth)
- return;
modal = $('.modal')[0];
backdrop = $('.backdrop')[0];
$(modal).on('transitionend', el => {
});
$('.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 => {