markdown_presenter 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/presenter.html.haml +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dba91287c963d052565479ec01052ca5377b43a
|
4
|
+
data.tar.gz: 79dba65d21528ee60b18eed29074c5374458793f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56ee434dfa6e263ed8ab3e4a6054c0ffd3d3ce8926db099c36fcc8aacd58e0a9d6d1c0a90e72613d94bfce4345540830c290b7da43cca851904dd96e30c46aaa
|
7
|
+
data.tar.gz: 521c5b11abd2766b8798c767708a00c0115d0a97cce5ab83913596b94795aa389c9df826be174ec84ed6a0981fabb98e663cfdd6271d1cd2f1e668c1c0fc7b97
|
data/presenter.html.haml
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
%script{type:'text/javascript'}= yield 'js/jquery-1.10.2.min.js'
|
7
7
|
%style= yield 'css/uikit.almost-flat.min.css'
|
8
8
|
%script{type:'text/javascript'}= yield 'js/uikit.min.js'
|
9
|
+
%script{type:'text/javascript'}= yield 'js/hammer.min.js'
|
9
10
|
%link{href:'http://fonts.googleapis.com/css?family=Luckiest+Guy', rel:'stylesheet', type:'text/css'}
|
10
11
|
%link{href:'http://fonts.googleapis.com/css?family=Ubuntu', rel:'stylesheet', type:'text/css'}
|
11
12
|
|
@@ -92,6 +93,12 @@
|
|
92
93
|
else if (e.keyCode == 39){ next(); return false;}
|
93
94
|
return true;
|
94
95
|
});
|
96
|
+
|
97
|
+
slides.each(function(_, elem){
|
98
|
+
var hammertime = Hammer(elem);
|
99
|
+
hammertime.on("swipeleft", next);
|
100
|
+
hammertime.on("swiperight", previous);
|
101
|
+
});
|
95
102
|
|
96
103
|
show(parseCurrentSlideIndex());
|
97
104
|
|