deckify 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -22,11 +22,7 @@ Then go to [http://localhost:4333](http://localhost:4333). You'll want to change
22
22
 
23
23
  ## Customization
24
24
 
25
- If you want custom CSS or JavaScript, you'll want to edit the custom_*.md files to link to javascript and stylesheets in the appropriate directories.
26
-
27
- ## Note
28
-
29
- Including script and link tags results in a blank slide at the end. In order to insert the JavaScript and stylesheets into the slide deck, the showoff.json file includes sections for the custom files. These are loaded last in the sections list. I do not know how to avoid this at this point.
25
+ If you want custom CSS or JavaScript, you'll want to edit the showoff.json file and the custom_javascripts and custom_stylesheets options.
30
26
 
31
27
  ## Author
32
28
 
data/lib/deckify.rb CHANGED
@@ -17,23 +17,16 @@ module Deckify
17
17
  template "first_slide.md"
18
18
  end
19
19
 
20
- def create_custom_javascripts_md
21
- template "custom_javascripts.md"
22
- end
23
- def create_custom_javascript
24
- template "javascripts/custom_javascript.js"
20
+ def create_speaker_notes
21
+ template "javascripts/speaker_notes.js"
22
+ template "stylesheets/speaker_notes.css"
25
23
  end
26
24
 
27
- def create_custom_stylesheets_md
28
- template "custom_stylesheets.md"
29
- end
30
25
  def create_custom_stylesheets
31
26
  template "stylesheets/custom_stylesheet.css"
32
27
  template "stylesheets/pre.css"
33
28
  end
34
29
 
35
- # create directory for javascripts and css
36
-
37
30
  def create_guardfile
38
31
  template "Guardfile"
39
32
  end
@@ -1,3 +1,3 @@
1
1
  module Deckify
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'deckrb'
3
+ gem 'deckrb', :git => "git://github.com/jronallo/deck.rb.git", :branch => 'custom_assets'
@@ -0,0 +1,15 @@
1
+ $(document).ready(function() {
2
+ $('.slide_toc').after('<div id="notes_toggle"><div>notes</div></div>');
3
+ $('#notes_toggle').on('click', function(){
4
+ $('.notes').toggle();
5
+ $.deck('toggleScale');
6
+ $.deck('toggleScale');
7
+ });
8
+ $('body').bind('keyup', function(e){
9
+ if(e.keyCode==78){
10
+ $('.notes').toggle();
11
+ $.deck('toggleScale');
12
+ $.deck('toggleScale');
13
+ }
14
+ });
15
+ });
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "style": "swiss",
3
3
  "transition": "fade",
4
+ "custom_javascripts": [
5
+ "javascripts/speaker_notes.js"
6
+ ],
7
+ "custom_stylesheets": [
8
+ "stylesheets/pre.css",
9
+ "stylesheets/speaker_notes.css"
10
+ ],
4
11
  "sections": [
5
- "first_slide.md",
6
- "custom_javascripts.md",
7
- "custom_stylesheets.md"
12
+ "first_slide.md"
8
13
  ]
9
14
  }
@@ -1 +1,18 @@
1
- .deck-container .slide h2 {color: #EF2B2D;}
1
+ .deck-container .slide h2 {color: #EF2B2D;}
2
+
3
+ .deck-container .slide.h1 h2 {
4
+ padding: 0 48px;
5
+ position: absolute;
6
+ left: 0;
7
+ right: 0;
8
+ top: 30%;
9
+ -webkit-transform: translate(0, -50%);
10
+ -moz-transform: translate(0, -50%);
11
+ -ms-transform: translate(0, -50%);
12
+ -o-transform: translate(0, -50%);
13
+ transform: translate(0, -50%);
14
+ font-weight: bold;
15
+ text-align: center;
16
+ padding-top: 1em;
17
+ max-height: 100%;
18
+ }
@@ -0,0 +1,25 @@
1
+ p.notes {
2
+ display:none;
3
+ margin-top: 10px;
4
+ padding: 10px;
5
+ border: 1px solid gray;
6
+ color: gray;
7
+ border-radius: 5px;
8
+ }
9
+
10
+ #notes_toggle {
11
+ position: fixed;
12
+ bottom: 4px;
13
+ left: 250px;
14
+ height: 80%;
15
+ color: #888;
16
+ z-index: 3;
17
+ margin: 0;
18
+ }
19
+
20
+ #notes_toggle div {
21
+ position: absolute;
22
+ bottom: 0px;
23
+ cursor: pointer;
24
+ font-size: 80%;
25
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deckify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-29 00:00:00.000000000 Z
12
+ date: 2012-12-31 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: scaffold generator for deck.rb
15
15
  email:
@@ -31,13 +31,13 @@ files:
31
31
  - lib/templates/Gemfile
32
32
  - lib/templates/Guardfile
33
33
  - lib/templates/config.ru
34
- - lib/templates/custom_javascripts.md
35
- - lib/templates/custom_stylesheets.md
36
34
  - lib/templates/first_slide.md
37
35
  - lib/templates/javascripts/custom_javascript.js
36
+ - lib/templates/javascripts/speaker_notes.js
38
37
  - lib/templates/showoff.json
39
38
  - lib/templates/stylesheets/custom_stylesheet.css
40
39
  - lib/templates/stylesheets/pre.css
40
+ - lib/templates/stylesheets/speaker_notes.css
41
41
  homepage: https://github.com/jronallo/deckify
42
42
  licenses: []
43
43
  post_install_message:
@@ -1 +0,0 @@
1
- <script type="text/javascript" src="javascripts/custom_javascript.js"></script>
@@ -1,2 +0,0 @@
1
- <link rel="stylesheet" type="text/css" href="stylesheets/custom_stylesheet.css"/>
2
- <link rel="stylesheet" type="text/css" href="stylesheets/pre.css"/>