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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/presenter.html.haml +7 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e0f76e3b85122c82c27e93edbfb226b8dd0e22e
4
- data.tar.gz: cdf2edbed93f4f4a2bcf05c1a94e96aa86e477ef
3
+ metadata.gz: 7dba91287c963d052565479ec01052ca5377b43a
4
+ data.tar.gz: 79dba65d21528ee60b18eed29074c5374458793f
5
5
  SHA512:
6
- metadata.gz: fd5ffbbc9f3bb9e94a260fe7f9a1f67dbb02e3ff7b1428af18eac8d9940596629b01678abc4ee159cc206a6108542d46e5ce05588acbe5e2e718800ba7f954ea
7
- data.tar.gz: d9276ce559af73f0edc3838a2ca73a5528fdc2e5d1bfd036605c540596efddb712e01032471fdeb5908ae799fcd2798e16b91dd057a8594caa372098e56e86b8
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown_presenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu Tanguay-Carel