projects
/
plack-app-gruntmaster.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix mobilenav and modal
[plack-app-gruntmaster.git]
/
js
/
10-modal.js
diff --git
a/js/10-modal.js
b/js/10-modal.js
index eea85d7ac43e7a080aff36bd9164ea840071752b..3a8a214a6c1716bda539d27ed58ff7b2313bd0e2 100644
(file)
--- a/
js/10-modal.js
+++ b/
js/10-modal.js
@@
-13,8
+13,6
@@
function hide_modal () {
}
$(function() {
}
$(function() {
- if(document.documentElement.clientWidth)
- return;
modal = $('.modal')[0];
backdrop = $('.backdrop')[0];
$(modal).on('transitionend', el => {
modal = $('.modal')[0];
backdrop = $('.backdrop')[0];
$(modal).on('transitionend', el => {
@@
-23,8
+21,10
@@
$(function() {
});
$('.backdrop,.modal').each(el => document.body.appendChild(el) );
$('#solution').on('click', e => {
});
$('.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 => {
});
$('.backdrop').on('click', hide_modal);
window.onkeyup = event => {
This page took
0.009827 seconds
and
4
git commands to generate.