slide-em-up 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -27,6 +27,7 @@ How to do your first presentation with Slide'em up?
27
27
  {
28
28
  "title": "My first presentation",
29
29
  "theme": "CSSS",
30
+ "duration": 20,
30
31
  "sections": {
31
32
  "main": "Title of my main section"
32
33
  }
@@ -84,9 +85,9 @@ like this:
84
85
  Themes
85
86
  ------
86
87
 
87
- Several themes are available: shower, 3d_slideshow, html5rocks and CSSS.
88
- To choose the theme for your presentation, edit the `presentation.json`
89
- file and change the `"theme"` element.
88
+ Several themes are available: shower, 3d_slideshow, html5rocks, CSSS
89
+ and memories. To choose the theme for your presentation, edit the
90
+ `presentation.json` file and change the `"theme"` element.
90
91
 
91
92
 
92
93
  Remote Control
@@ -7,7 +7,7 @@ require "yajl"
7
7
 
8
8
  module SlideEmUp
9
9
  class Presentation
10
- Meta = Struct.new(:title, :dir, :css, :js)
10
+ Meta = Struct.new(:title, :dir, :css, :js, :duration)
11
11
  Theme = Struct.new(:title, :dir, :css, :js)
12
12
  Section = Struct.new(:number, :title, :dir, :slides)
13
13
  Slide = Struct.new(:number, :classes, :markdown, :html)
@@ -16,8 +16,8 @@ module SlideEmUp
16
16
 
17
17
  def initialize(dir)
18
18
  infos = extract_normal_infos(dir) || extract_infos_from_showoff(dir) || {}
19
- infos = { "title" => "No title", "theme" => "shower" }.merge(infos)
20
- @meta = build_meta(infos["title"], dir)
19
+ infos = { "title" => "No title", "theme" => "shower", "duration" => 60 }.merge(infos)
20
+ @meta = build_meta(infos["title"], dir, infos["duration"])
21
21
  @theme = build_theme(infos["theme"])
22
22
  @common = build_theme("common")
23
23
  @parts = infos["sections"] || raise(Exception, "check your presentation.json or showoff.json file")
@@ -52,7 +52,7 @@ module SlideEmUp
52
52
  { "title" => infos["name"], "theme" => "showoff", "sections" => sections }
53
53
  end
54
54
 
55
- def build_meta(title, dir)
55
+ def build_meta(title, dir, duration)
56
56
  Meta.new.tap do |m|
57
57
  m.title = title
58
58
  m.dir = dir
@@ -60,6 +60,7 @@ module SlideEmUp
60
60
  m.css = Dir["**/*.css"]
61
61
  m.js = Dir["**/*.js"]
62
62
  end
63
+ m.duration = duration
63
64
  end
64
65
  end
65
66
 
@@ -1,3 +1,3 @@
1
1
  module SlideEmUp
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -9,7 +9,7 @@
9
9
  <% end %>
10
10
  <link rel="stylesheet" href="css/pygments/native.css">
11
11
  </head>
12
- <body data-duration="60">
12
+ <body data-duration="<%= meta.duration %>">
13
13
  <section>
14
14
  <header class="slide">
15
15
  <h1><%= meta.title %></h1>
@@ -1,324 +1,62 @@
1
- /* line 1, ../../../app/stylesheets/pygments/colorful.scss */
2
- .hll {
3
- background-color: #ffffcc;
4
- }
5
-
6
- /* line 3, ../../../app/stylesheets/pygments/colorful.scss */
7
- .c {
8
- color: #808080;
9
- }
10
-
11
- /* line 5, ../../../app/stylesheets/pygments/colorful.scss */
12
- .err {
13
- color: #F00000;
14
- background-color: #F0A0A0;
15
- }
16
-
17
- /* line 8, ../../../app/stylesheets/pygments/colorful.scss */
18
- .k {
19
- color: #008000;
20
- font-weight: bold;
21
- }
22
-
23
- /* line 11, ../../../app/stylesheets/pygments/colorful.scss */
24
- .o {
25
- color: #303030;
26
- }
27
-
28
- /* line 13, ../../../app/stylesheets/pygments/colorful.scss */
29
- .cm {
30
- color: #808080;
31
- }
32
-
33
- /* line 15, ../../../app/stylesheets/pygments/colorful.scss */
34
- .cp {
35
- color: #507090;
36
- }
37
-
38
- /* line 17, ../../../app/stylesheets/pygments/colorful.scss */
39
- .c1 {
40
- color: #808080;
41
- }
42
-
43
- /* line 19, ../../../app/stylesheets/pygments/colorful.scss */
44
- .cs {
45
- color: #cc0000;
46
- font-weight: bold;
47
- }
48
-
49
- /* line 22, ../../../app/stylesheets/pygments/colorful.scss */
50
- .gd {
51
- color: #A00000;
52
- }
53
-
54
- /* line 24, ../../../app/stylesheets/pygments/colorful.scss */
55
- .ge {
56
- font-style: italic;
57
- }
58
-
59
- /* line 26, ../../../app/stylesheets/pygments/colorful.scss */
60
- .gr {
61
- color: #FF0000;
62
- }
63
-
64
- /* line 28, ../../../app/stylesheets/pygments/colorful.scss */
65
- .gh {
66
- color: #000080;
67
- font-weight: bold;
68
- }
69
-
70
- /* line 31, ../../../app/stylesheets/pygments/colorful.scss */
71
- .gi {
72
- color: #00A000;
73
- }
74
-
75
- /* line 33, ../../../app/stylesheets/pygments/colorful.scss */
76
- .go {
77
- color: #808080;
78
- }
79
-
80
- /* line 35, ../../../app/stylesheets/pygments/colorful.scss */
81
- .gp {
82
- color: #c65d09;
83
- font-weight: bold;
84
- }
85
-
86
- /* line 38, ../../../app/stylesheets/pygments/colorful.scss */
87
- .gs {
88
- font-weight: bold;
89
- }
90
-
91
- /* line 40, ../../../app/stylesheets/pygments/colorful.scss */
92
- .gu {
93
- color: #800080;
94
- font-weight: bold;
95
- }
96
-
97
- /* line 43, ../../../app/stylesheets/pygments/colorful.scss */
98
- .gt {
99
- color: #0040D0;
100
- }
101
-
102
- /* line 45, ../../../app/stylesheets/pygments/colorful.scss */
103
- .kc, .kd, .kn {
104
- color: #008000;
105
- font-weight: bold;
106
- }
107
-
108
- /* line 48, ../../../app/stylesheets/pygments/colorful.scss */
109
- .kp {
110
- color: #003080;
111
- font-weight: bold;
112
- }
113
-
114
- /* line 51, ../../../app/stylesheets/pygments/colorful.scss */
115
- .kr {
116
- color: #008000;
117
- font-weight: bold;
118
- }
119
-
120
- /* line 54, ../../../app/stylesheets/pygments/colorful.scss */
121
- .kt {
122
- color: #303090;
123
- font-weight: bold;
124
- }
125
-
126
- /* line 57, ../../../app/stylesheets/pygments/colorful.scss */
127
- .m {
128
- color: #6000E0;
129
- font-weight: bold;
130
- }
131
-
132
- /* line 60, ../../../app/stylesheets/pygments/colorful.scss */
133
- .s {
134
- background-color: #fff0f0;
135
- }
136
-
137
- /* line 62, ../../../app/stylesheets/pygments/colorful.scss */
138
- .na {
139
- color: #0000C0;
140
- }
141
-
142
- /* line 64, ../../../app/stylesheets/pygments/colorful.scss */
143
- .nb {
144
- color: #007020;
145
- }
146
-
147
- /* line 66, ../../../app/stylesheets/pygments/colorful.scss */
148
- .nc {
149
- color: #B00060;
150
- font-weight: bold;
151
- }
152
-
153
- /* line 69, ../../../app/stylesheets/pygments/colorful.scss */
154
- .no {
155
- color: #003060;
156
- font-weight: bold;
157
- }
158
-
159
- /* line 72, ../../../app/stylesheets/pygments/colorful.scss */
160
- .nd {
161
- color: #505050;
162
- font-weight: bold;
163
- }
164
-
165
- /* line 75, ../../../app/stylesheets/pygments/colorful.scss */
166
- .ni {
167
- color: #800000;
168
- font-weight: bold;
169
- }
170
-
171
- /* line 78, ../../../app/stylesheets/pygments/colorful.scss */
172
- .ne {
173
- color: #F00000;
174
- font-weight: bold;
175
- }
176
-
177
- /* line 81, ../../../app/stylesheets/pygments/colorful.scss */
178
- .nf {
179
- color: #0060B0;
180
- font-weight: bold;
181
- }
182
-
183
- /* line 84, ../../../app/stylesheets/pygments/colorful.scss */
184
- .nl {
185
- color: #907000;
186
- font-weight: bold;
187
- }
188
-
189
- /* line 87, ../../../app/stylesheets/pygments/colorful.scss */
190
- .nn {
191
- color: #0e84b5;
192
- font-weight: bold;
193
- }
194
-
195
- /* line 90, ../../../app/stylesheets/pygments/colorful.scss */
196
- .nt {
197
- color: #007000;
198
- }
199
-
200
- /* line 92, ../../../app/stylesheets/pygments/colorful.scss */
201
- .nv {
202
- color: #906030;
203
- }
204
-
205
- /* line 94, ../../../app/stylesheets/pygments/colorful.scss */
206
- .ow {
207
- color: #000000;
208
- font-weight: bold;
209
- }
210
-
211
- /* line 97, ../../../app/stylesheets/pygments/colorful.scss */
212
- .w {
213
- color: #bbbbbb;
214
- }
215
-
216
- /* line 99, ../../../app/stylesheets/pygments/colorful.scss */
217
- .mf {
218
- color: #6000E0;
219
- font-weight: bold;
220
- }
221
-
222
- /* line 102, ../../../app/stylesheets/pygments/colorful.scss */
223
- .mh {
224
- color: #005080;
225
- font-weight: bold;
226
- }
227
-
228
- /* line 105, ../../../app/stylesheets/pygments/colorful.scss */
229
- .mi {
230
- color: #0000D0;
231
- font-weight: bold;
232
- }
233
-
234
- /* line 108, ../../../app/stylesheets/pygments/colorful.scss */
235
- .mo {
236
- color: #4000E0;
237
- font-weight: bold;
238
- }
239
-
240
- /* line 111, ../../../app/stylesheets/pygments/colorful.scss */
241
- .sb {
242
- background-color: #fff0f0;
243
- }
244
-
245
- /* line 113, ../../../app/stylesheets/pygments/colorful.scss */
246
- .sc {
247
- color: #0040D0;
248
- }
249
-
250
- /* line 115, ../../../app/stylesheets/pygments/colorful.scss */
251
- .sd {
252
- color: #D04020;
253
- }
254
-
255
- /* line 117, ../../../app/stylesheets/pygments/colorful.scss */
256
- .s2 {
257
- background-color: #fff0f0;
258
- }
259
-
260
- /* line 119, ../../../app/stylesheets/pygments/colorful.scss */
261
- .se {
262
- color: #606060;
263
- font-weight: bold;
264
- background-color: #fff0f0;
265
- }
266
-
267
- /* line 123, ../../../app/stylesheets/pygments/colorful.scss */
268
- .sh {
269
- background-color: #fff0f0;
270
- }
271
-
272
- /* line 125, ../../../app/stylesheets/pygments/colorful.scss */
273
- .si {
274
- background-color: #e0e0e0;
275
- }
276
-
277
- /* line 127, ../../../app/stylesheets/pygments/colorful.scss */
278
- .sx {
279
- color: #D02000;
280
- background-color: #fff0f0;
281
- }
282
-
283
- /* line 130, ../../../app/stylesheets/pygments/colorful.scss */
284
- .sr {
285
- color: #000000;
286
- background-color: #fff0ff;
287
- }
288
-
289
- /* line 133, ../../../app/stylesheets/pygments/colorful.scss */
290
- .s1 {
291
- background-color: #fff0f0;
292
- }
293
-
294
- /* line 135, ../../../app/stylesheets/pygments/colorful.scss */
295
- .ss {
296
- color: #A06000;
297
- }
298
-
299
- /* line 137, ../../../app/stylesheets/pygments/colorful.scss */
300
- .bp {
301
- color: #007020;
302
- }
303
-
304
- /* line 139, ../../../app/stylesheets/pygments/colorful.scss */
305
- .vc {
306
- color: #306090;
307
- }
308
-
309
- /* line 141, ../../../app/stylesheets/pygments/colorful.scss */
310
- .vg {
311
- color: #d07000;
312
- font-weight: bold;
313
- }
314
-
315
- /* line 144, ../../../app/stylesheets/pygments/colorful.scss */
316
- .vi {
317
- color: #3030B0;
318
- }
319
-
320
- /* line 146, ../../../app/stylesheets/pygments/colorful.scss */
321
- .il {
322
- color: #0000D0;
323
- font-weight: bold;
324
- }
1
+ code .hll { background-color: #ffffcc }
2
+ code { background: #ffffff; }
3
+ code .c { color: #808080 } /* Comment */
4
+ code .err { color: #F00000; background-color: #F0A0A0 } /* Error */
5
+ code .k { color: #008000; font-weight: bold } /* Keyword */
6
+ code .o { color: #303030 } /* Operator */
7
+ code .cm { color: #808080 } /* Comment.Multiline */
8
+ code .cp { color: #507090 } /* Comment.Preproc */
9
+ code .c1 { color: #808080 } /* Comment.Single */
10
+ code .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
11
+ code .gd { color: #A00000 } /* Generic.Deleted */
12
+ code .ge { font-style: italic } /* Generic.Emph */
13
+ code .gr { color: #FF0000 } /* Generic.Error */
14
+ code .gh { color: #000080; font-weight: bold } /* Generic.Heading */
15
+ code .gi { color: #00A000 } /* Generic.Inserted */
16
+ code .go { color: #808080 } /* Generic.Output */
17
+ code .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
18
+ code .gs { font-weight: bold } /* Generic.Strong */
19
+ code .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
20
+ code .gt { color: #0040D0 } /* Generic.Traceback */
21
+ code .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
22
+ code .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
23
+ code .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
24
+ code .kp { color: #003080; font-weight: bold } /* Keyword.Pseudo */
25
+ code .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
26
+ code .kt { color: #303090; font-weight: bold } /* Keyword.Type */
27
+ code .m { color: #6000E0; font-weight: bold } /* Literal.Number */
28
+ code .s { background-color: #fff0f0 } /* Literal.String */
29
+ code .na { color: #0000C0 } /* Name.Attribute */
30
+ code .nb { color: #007020 } /* Name.Builtin */
31
+ code .nc { color: #B00060; font-weight: bold } /* Name.Class */
32
+ code .no { color: #003060; font-weight: bold } /* Name.Constant */
33
+ code .nd { color: #505050; font-weight: bold } /* Name.Decorator */
34
+ code .ni { color: #800000; font-weight: bold } /* Name.Entity */
35
+ code .ne { color: #F00000; font-weight: bold } /* Name.Exception */
36
+ code .nf { color: #0060B0; font-weight: bold } /* Name.Function */
37
+ code .nl { color: #907000; font-weight: bold } /* Name.Label */
38
+ code .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
39
+ code .nt { color: #007000 } /* Name.Tag */
40
+ code .nv { color: #906030 } /* Name.Variable */
41
+ code .ow { color: #000000; font-weight: bold } /* Operator.Word */
42
+ code .w { color: #bbbbbb } /* Text.Whitespace */
43
+ code .mf { color: #6000E0; font-weight: bold } /* Literal.Number.Float */
44
+ code .mh { color: #005080; font-weight: bold } /* Literal.Number.Hex */
45
+ code .mi { color: #0000D0; font-weight: bold } /* Literal.Number.Integer */
46
+ code .mo { color: #4000E0; font-weight: bold } /* Literal.Number.Oct */
47
+ code .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
48
+ code .sc { color: #0040D0 } /* Literal.String.Char */
49
+ code .sd { color: #D04020 } /* Literal.String.Doc */
50
+ code .s2 { background-color: #fff0f0 } /* Literal.String.Double */
51
+ code .se { color: #606060; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
52
+ code .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
53
+ code .si { background-color: #e0e0e0 } /* Literal.String.Interpol */
54
+ code .sx { color: #D02000; background-color: #fff0f0 } /* Literal.String.Other */
55
+ code .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
56
+ code .s1 { background-color: #fff0f0 } /* Literal.String.Single */
57
+ code .ss { color: #A06000 } /* Literal.String.Symbol */
58
+ code .bp { color: #007020 } /* Name.Builtin.Pseudo */
59
+ code .vc { color: #306090 } /* Name.Variable.Class */
60
+ code .vg { color: #d07000; font-weight: bold } /* Name.Variable.Global */
61
+ code .vi { color: #3030B0 } /* Name.Variable.Instance */
62
+ code .il { color: #0000D0; font-weight: bold } /* Literal.Number.Integer.Long */