dlegr250_material_design 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5188ae4c95e1eeeb8e390de63df735ea459cf2c3
|
4
|
+
data.tar.gz: 718a5c09ba0a07c4a4a6080841a314d21cc26cff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d850a1f029eb596298bc49b30b9fbcdee44eca3bfa032ebf836fe91f086d5fdf2447a1bd2f687f94ce54e86e0db89b3e4abb0934bd2b8d392956b85a695b7ad
|
7
|
+
data.tar.gz: e6b7c4714acb9f0901aadbbaf7d40b749f5b0fa902db71fe3592bed9a5de9867b5a0dc5e2a8d2b367b5bf206e29a530bdec5d1fa5454f8b5d955f34412ccb56a
|
@@ -13,6 +13,11 @@ class App.MD.Layout
|
|
13
13
|
@$rightSidebar = $("#right-sidebar")
|
14
14
|
@$sidebars = $(".sidebar")
|
15
15
|
|
16
|
+
# Used for media query device breakpoints
|
17
|
+
@$smallWidth = 400
|
18
|
+
@$mediumWidth = 750
|
19
|
+
@$largeWidth = 1000
|
20
|
+
|
16
21
|
@setEvents: () ->
|
17
22
|
$(document).on "page:fetch", =>
|
18
23
|
@.hideOverlay()
|
@@ -34,7 +39,8 @@ class App.MD.Layout
|
|
34
39
|
if @$main.length > 0
|
35
40
|
if @$leftSidebar.length > 0
|
36
41
|
@$main.hammer({}).bind("swiperight", =>
|
37
|
-
|
42
|
+
if $(window).width() <= @$mediumWidth
|
43
|
+
@.showLeftSidebar()
|
38
44
|
)
|
39
45
|
|
40
46
|
@$leftSidebar.hammer({}).bind("swipeleft", =>
|
@@ -43,7 +49,8 @@ class App.MD.Layout
|
|
43
49
|
|
44
50
|
if @$rightSidebar.length > 0
|
45
51
|
@$main.hammer({}).bind("swipeleft", =>
|
46
|
-
|
52
|
+
if $(window).width() <= @$mediumWidth
|
53
|
+
@.showRightSidebar()
|
47
54
|
)
|
48
55
|
|
49
56
|
@$rightSidebar.hammer({}).bind("swiperight", =>
|