projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0372010
)
Disable modal on small screens
author
Marius Gavrilescu
<marius@ieval.ro>
Sun, 19 Apr 2015 07:49:42 +0000
(10:49 +0300)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sun, 19 Apr 2015 07:49:42 +0000
(10:49 +0300)
js/10-modal.js
patch
|
blob
|
blame
|
history
diff --git
a/js/10-modal.js
b/js/10-modal.js
index 62cbb271c56b32f0f779d0ca4529814aeadeb9b8..9bf83ce71f634aad3bfb124fcba63962edb6a782 100644
(file)
--- a/
js/10-modal.js
+++ b/
js/10-modal.js
@@
-13,6
+13,8
@@
function hide_modal () {
}
$(function() {
+ if(window.innerWidth < 768)
+ return;
modal = $('.modal')[0];
backdrop = $('.backdrop')[0];
$(modal).on('transitionend', el => {
This page took
0.010457 seconds
and
4
git commands to generate.