slideshow-service 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/Manifest.txt +42 -0
  3. data/lib/slideshow/service/public/slideshow-deck.js/core/deck.core.css +391 -0
  4. data/lib/slideshow/service/public/slideshow-deck.js/core/deck.core.html +39 -0
  5. data/lib/slideshow/service/public/slideshow-deck.js/core/deck.core.js +460 -0
  6. data/lib/slideshow/service/public/slideshow-deck.js/core/deck.core.scss +432 -0
  7. data/lib/slideshow/service/public/slideshow-deck.js/extensions/goto/deck.goto.css +41 -0
  8. data/lib/slideshow/service/public/slideshow-deck.js/extensions/goto/deck.goto.html +6 -0
  9. data/lib/slideshow/service/public/slideshow-deck.js/extensions/goto/deck.goto.js +118 -0
  10. data/lib/slideshow/service/public/slideshow-deck.js/extensions/goto/deck.goto.scss +46 -0
  11. data/lib/slideshow/service/public/slideshow-deck.js/extensions/hash/deck.hash.css +13 -0
  12. data/lib/slideshow/service/public/slideshow-deck.js/extensions/hash/deck.hash.html +2 -0
  13. data/lib/slideshow/service/public/slideshow-deck.js/extensions/hash/deck.hash.js +126 -0
  14. data/lib/slideshow/service/public/slideshow-deck.js/extensions/hash/deck.hash.scss +15 -0
  15. data/lib/slideshow/service/public/slideshow-deck.js/extensions/menu/deck.menu.css +46 -0
  16. data/lib/slideshow/service/public/slideshow-deck.js/extensions/menu/deck.menu.js +182 -0
  17. data/lib/slideshow/service/public/slideshow-deck.js/extensions/menu/deck.menu.scss +57 -0
  18. data/lib/slideshow/service/public/slideshow-deck.js/extensions/navigation/deck.navigation.css +43 -0
  19. data/lib/slideshow/service/public/slideshow-deck.js/extensions/navigation/deck.navigation.html +3 -0
  20. data/lib/slideshow/service/public/slideshow-deck.js/extensions/navigation/deck.navigation.js +83 -0
  21. data/lib/slideshow/service/public/slideshow-deck.js/extensions/navigation/deck.navigation.scss +56 -0
  22. data/lib/slideshow/service/public/slideshow-deck.js/extensions/scale/deck.scale.css +16 -0
  23. data/lib/slideshow/service/public/slideshow-deck.js/extensions/scale/deck.scale.js +155 -0
  24. data/lib/slideshow/service/public/slideshow-deck.js/extensions/scale/deck.scale.scss +17 -0
  25. data/lib/slideshow/service/public/slideshow-deck.js/extensions/status/deck.status.css +14 -0
  26. data/lib/slideshow/service/public/slideshow-deck.js/extensions/status/deck.status.html +6 -0
  27. data/lib/slideshow/service/public/slideshow-deck.js/extensions/status/deck.status.js +83 -0
  28. data/lib/slideshow/service/public/slideshow-deck.js/extensions/status/deck.status.scss +16 -0
  29. data/lib/slideshow/service/public/slideshow-deck.js/lib/jquery-1.6.4.min.js +4 -0
  30. data/lib/slideshow/service/public/slideshow-deck.js/lib/modernizr.custom.js +4 -0
  31. data/lib/slideshow/service/public/slideshow-deck.js/slides.html +119 -0
  32. data/lib/slideshow/service/public/slideshow-deck.js/style.css +59 -0
  33. data/lib/slideshow/service/public/slideshow-deck.js/themes/style/neon.css +114 -0
  34. data/lib/slideshow/service/public/slideshow-deck.js/themes/style/neon.scss +139 -0
  35. data/lib/slideshow/service/public/slideshow-deck.js/themes/style/swiss.css +75 -0
  36. data/lib/slideshow/service/public/slideshow-deck.js/themes/style/swiss.scss +91 -0
  37. data/lib/slideshow/service/public/slideshow-deck.js/themes/style/web-2.0.css +210 -0
  38. data/lib/slideshow/service/public/slideshow-deck.js/themes/style/web-2.0.scss +238 -0
  39. data/lib/slideshow/service/public/slideshow-deck.js/themes/transition/fade.css +44 -0
  40. data/lib/slideshow/service/public/slideshow-deck.js/themes/transition/fade.scss +70 -0
  41. data/lib/slideshow/service/public/slideshow-deck.js/themes/transition/horizontal-slide.css +79 -0
  42. data/lib/slideshow/service/public/slideshow-deck.js/themes/transition/horizontal-slide.scss +94 -0
  43. data/lib/slideshow/service/public/slideshow-deck.js/themes/transition/vertical-slide.css +97 -0
  44. data/lib/slideshow/service/public/slideshow-deck.js/themes/transition/vertical-slide.scss +116 -0
  45. data/lib/slideshow/service/version.rb +1 -1
  46. metadata +43 -1
@@ -0,0 +1,432 @@
1
+ html {
2
+ height:100%;
3
+ }
4
+
5
+ .deck-container {
6
+ position:relative;
7
+ height:100%;
8
+ width:70%;
9
+ margin:0 auto;
10
+ padding:0 48px;
11
+ font-size:16px;
12
+ line-height:1.25;
13
+ overflow:hidden;
14
+
15
+ .js & {
16
+ visibility:hidden;
17
+ }
18
+
19
+ .ready & {
20
+ visibility:visible;
21
+ }
22
+
23
+ .touch & {
24
+ -webkit-text-size-adjust:none;
25
+ }
26
+
27
+ /* Resets and base styles from HTML5 Boilerplate */
28
+ div, span, object, iframe,
29
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
30
+ abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
31
+ small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
32
+ fieldset, form, label, legend,
33
+ table, caption, tbody, tfoot, thead, tr, th, td,
34
+ article, aside, canvas, details, figcaption, figure,
35
+ footer, header, hgroup, menu, nav, section, summary,
36
+ time, mark, audio, video {
37
+ margin: 0;
38
+ padding: 0;
39
+ border: 0;
40
+ font-size: 100%;
41
+ font: inherit;
42
+ vertical-align: baseline;
43
+ }
44
+
45
+ article, aside, details, figcaption, figure,
46
+ footer, header, hgroup, menu, nav, section {
47
+ display: block;
48
+ }
49
+
50
+ blockquote, q {
51
+ quotes:none;
52
+
53
+ &:before, &:after {
54
+ content:"";
55
+ content:none;
56
+ }
57
+ }
58
+
59
+ ins {
60
+ background-color:#ff9;
61
+ color:#000;
62
+ text-decoration:none;
63
+ }
64
+
65
+ mark {
66
+ background-color:#ff9;
67
+ color:#000;
68
+ font-style:italic;
69
+ font-weight:bold;
70
+ }
71
+
72
+ del {
73
+ text-decoration:line-through;
74
+ }
75
+
76
+ abbr[title], dfn[title] {
77
+ border-bottom:1px dotted;
78
+ cursor:help;
79
+ }
80
+
81
+ table {
82
+ border-collapse:collapse;
83
+ border-spacing:0;
84
+ }
85
+
86
+ hr {
87
+ display:block;
88
+ height:1px;
89
+ border:0;
90
+ border-top:1px solid #ccc;
91
+ margin:1em 0;
92
+ padding:0;
93
+ }
94
+
95
+ input, select {
96
+ vertical-align:middle;
97
+ }
98
+
99
+ select, input, textarea, button {
100
+ font:99% sans-serif;
101
+ }
102
+
103
+ pre, code, kbd, samp {
104
+ font-family:monospace, sans-serif;
105
+ }
106
+
107
+ a {
108
+ -webkit-tap-highlight-color:rgba(0,0,0,0);
109
+
110
+ &:hover, &:active {
111
+ outline:none;
112
+ }
113
+ }
114
+
115
+ ul, ol {
116
+ margin-left:2em;
117
+ vertical-align:top;
118
+ }
119
+
120
+ ol {
121
+ list-style-type:decimal;
122
+ }
123
+
124
+ nav {
125
+ ul, li {
126
+ margin:0;
127
+ list-style:none;
128
+ list-style-image:none;
129
+ }
130
+ }
131
+
132
+ small {
133
+ font-size:85%;
134
+ }
135
+
136
+ strong, th {
137
+ font-weight:bold;
138
+ }
139
+
140
+ td {
141
+ vertical-align:top;
142
+ }
143
+
144
+ sub, sup {
145
+ font-size:75%;
146
+ line-height:0;
147
+ position:relative;
148
+ }
149
+
150
+ sup {
151
+ top:-0.5em;
152
+ }
153
+
154
+ sub { bottom: -0.25em; }
155
+
156
+ textarea {
157
+ overflow:auto;
158
+ }
159
+
160
+ legend {
161
+ .ie6 &, .ie7 & {
162
+ margin-left:-7px;
163
+ }
164
+ }
165
+
166
+ input[type="radio"] {
167
+ vertical-align:text-bottom;
168
+ }
169
+
170
+ input[type="checkbox"] {
171
+ vertical-align:bottom;
172
+ }
173
+
174
+ .ie7 input[type="checkbox"] {
175
+ vertical-align:baseline;
176
+ }
177
+
178
+ .ie6 input {
179
+ vertical-align:text-bottom;
180
+ }
181
+
182
+ label, input[type="button"], input[type="submit"], input[type="image"], button {
183
+ cursor:pointer;
184
+ }
185
+
186
+ button, input, select, textarea {
187
+ margin: 0;
188
+ }
189
+
190
+ input, textarea {
191
+ &:invalid {
192
+ border-radius:1px;
193
+ -moz-box-shadow:0px 0px 5px red;
194
+ -webkit-box-shadow:0px 0px 5px red;
195
+ box-shadow: 0px 0px 5px red;
196
+
197
+ .no-boxshadow {
198
+ background-color: #f0dddd;
199
+ }
200
+ }
201
+ }
202
+
203
+ button {
204
+ width:auto;
205
+ overflow:visible;
206
+ }
207
+
208
+ .ie7 & img {
209
+ -ms-interpolation-mode: bicubic; }
210
+
211
+ &, select, input, textarea {
212
+ color:#444;
213
+ }
214
+
215
+ a {
216
+ color:#607890;
217
+
218
+ &:hover, &:focus {
219
+ color:#036;
220
+ }
221
+
222
+ &:link {
223
+ -webkit-tap-highlight-color: #fff;
224
+ }
225
+ }
226
+ /* End HTML5 Boilerplate adaptations */
227
+
228
+ h1 {
229
+ font-size:4.5em;
230
+ font-weight:bold;
231
+ text-align:center;
232
+ padding-top:1em;
233
+
234
+ .csstransforms & {
235
+ padding:0 48px;
236
+ position:absolute;
237
+ left:0;
238
+ right:0;
239
+ top:50%;
240
+ -webkit-transform:translate(0, -50%);
241
+ -moz-transform:translate(0, -50%);
242
+ -ms-transform:translate(0, -50%);
243
+ -o-transform:translate(0, -50%);
244
+ transform:translate(0, -50%);
245
+ }
246
+ }
247
+
248
+ h2 {
249
+ font-size:2.25em;
250
+ font-weight:bold;
251
+ padding-top:.5em;
252
+ margin:0 0 .66666em 0;
253
+ border-bottom:3px solid #888;
254
+ }
255
+
256
+ h3 {
257
+ font-size:1.4375em;
258
+ font-weight:bold;
259
+ margin-bottom:.30435em;
260
+ }
261
+
262
+ h4 {
263
+ font-size:1.25em;
264
+ font-weight:bold;
265
+ margin-bottom:.25em;
266
+ }
267
+
268
+ h5 {
269
+ font-size:1.125em;
270
+ font-weight:bold;
271
+ margin-bottom:.2222em;
272
+ }
273
+
274
+ h6 {
275
+ font-size:1em;
276
+ font-weight:bold;
277
+ }
278
+
279
+ img, iframe, video {
280
+ display:block;
281
+ max-width:100%;
282
+ }
283
+
284
+ video, iframe, img {
285
+ display:block;
286
+ margin:0 auto;
287
+ }
288
+
289
+ p, blockquote, iframe, img, ul, ol, pre, video {
290
+ margin-bottom:1em;
291
+ }
292
+
293
+ pre {
294
+ white-space:pre;
295
+ white-space:pre-wrap;
296
+ word-wrap:break-word;
297
+ padding: 1em;
298
+ border:1px solid #888;
299
+ }
300
+
301
+ em {
302
+ font-style:italic;
303
+ }
304
+
305
+ li {
306
+ padding:.25em 0;
307
+ vertical-align:middle;
308
+ }
309
+
310
+ &.deck-loading {
311
+ display:none;
312
+ }
313
+ }
314
+
315
+ .slide {
316
+ width:auto;
317
+ min-height:100%;
318
+ position:relative;
319
+ }
320
+
321
+ .deck-before, .deck-previous, .deck-next, .deck-after {
322
+ position:absolute;
323
+ left:-999em;
324
+ top:-999em;
325
+ }
326
+
327
+ .deck-current {
328
+ z-index:2;
329
+ }
330
+
331
+ .slide .slide {
332
+ visibility:hidden;
333
+ position:static;
334
+ min-height:0;
335
+ }
336
+
337
+ .deck-child-current {
338
+ position:static;
339
+ z-index:2;
340
+
341
+ .slide {
342
+ visibility:hidden;
343
+ }
344
+
345
+ .deck-previous, .deck-before, .deck-current {
346
+ visibility:visible;
347
+ }
348
+ }
349
+
350
+ body.deck-container {
351
+ overflow:visible;
352
+ }
353
+
354
+ @media all and (orientation:portrait) {
355
+
356
+ }
357
+
358
+ @media all and (orientation:landscape) {
359
+
360
+ }
361
+
362
+ @media screen and (max-device-width: 480px) {
363
+
364
+ /* html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
365
+ }
366
+
367
+
368
+ @media print {
369
+ * {
370
+ background: transparent !important;
371
+ color: black !important;
372
+ text-shadow: none !important;
373
+ filter:none !important;
374
+ -ms-filter: none !important;
375
+ -webkit-box-reflect:none !important;
376
+ -moz-box-reflect:none !important;
377
+ -webkit-box-shadow:none !important;
378
+ -moz-box-shadow:none !important;
379
+ box-shadow:none !important;
380
+
381
+ :before, :after {
382
+ display:none !important;
383
+ }
384
+ }
385
+ a, a:visited { color: #444 !important; text-decoration: underline; }
386
+ a[href]:after { content: " (" attr(href) ")"; }
387
+ abbr[title]:after { content: " (" attr(title) ")"; }
388
+ .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }
389
+ pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
390
+ thead { display: table-header-group; }
391
+ tr, img { page-break-inside: avoid; }
392
+ @page { margin: 0.5cm; }
393
+ p, h2, h3 { orphans: 3; widows: 3; }
394
+ h2, h3{ page-break-after: avoid; }
395
+
396
+ .slide {
397
+ position:static !important;
398
+ visibility:visible !important;
399
+ display:block !important;
400
+ -webkit-transform:none !important;
401
+ -moz-transform:none !important;
402
+ -o-transform:none !important;
403
+ -ms-transform:none !important;
404
+ transform:none !important;
405
+ opacity:1 !important;
406
+ }
407
+
408
+ h1 {
409
+ -webkit-transform:none !important;
410
+ -moz-transform:none !important;
411
+ -o-transform:none !important;
412
+ -ms-transform:none !important;
413
+ transform:none !important;
414
+ padding:0 !important;
415
+ position:static !important;
416
+ }
417
+
418
+ .deck-container > .slide {
419
+ page-break-after: always;
420
+ }
421
+
422
+ .deck-container {
423
+ width:100% !important;
424
+ height:auto !important;
425
+ padding:0 !important;
426
+ display:block !important;
427
+ }
428
+
429
+ script {
430
+ display:none;
431
+ }
432
+ }
@@ -0,0 +1,41 @@
1
+ .deck-container .goto-form {
2
+ position: absolute;
3
+ z-index: 3;
4
+ bottom: 10px;
5
+ left: 50%;
6
+ height: 1.75em;
7
+ margin: 0 0 0 -7.125em;
8
+ line-height: 1.75em;
9
+ padding: 0.625em;
10
+ display: none;
11
+ background: #ccc;
12
+ overflow: hidden;
13
+ }
14
+ .borderradius .deck-container .goto-form {
15
+ -webkit-border-radius: 10px;
16
+ -moz-border-radius: 10px;
17
+ border-radius: 10px;
18
+ }
19
+ .deck-container .goto-form label {
20
+ font-weight: bold;
21
+ }
22
+ .deck-container .goto-form label, .deck-container .goto-form input {
23
+ display: inline-block;
24
+ font-family: inherit;
25
+ }
26
+
27
+ .deck-goto .goto-form {
28
+ display: block;
29
+ }
30
+
31
+ #goto-slide {
32
+ width: 4.375em;
33
+ margin: 0 0.625em;
34
+ height: 1.4375em;
35
+ }
36
+
37
+ @media print {
38
+ .goto-form, #goto-slide {
39
+ display: none !important;
40
+ }
41
+ }
@@ -0,0 +1,6 @@
1
+ <!-- Place the following snippet at the bottom of the deck container. -->
2
+ <form action="." method="get" class="goto-form">
3
+ <label for="goto-slide">Go to slide:</label>
4
+ <input type="number" name="slidenum" id="goto-slide">
5
+ <input type="submit" value="Go">
6
+ </form>
@@ -0,0 +1,118 @@
1
+ /*!
2
+ Deck JS - deck.goto
3
+ Copyright (c) 2011 Caleb Troughton
4
+ Dual licensed under the MIT license and GPL license.
5
+ https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt
6
+ https://github.com/imakewebthings/deck.js/blob/master/GPL-license.txt
7
+ */
8
+
9
+ /*
10
+ This module adds the necessary methods and key bindings to show and hide a form
11
+ for jumping to any slide number in the deck (and processes that form
12
+ accordingly). The form-showing state is indicated by the presence of a class on
13
+ the deck container.
14
+ */
15
+ (function($, deck, undefined) {
16
+ var $d = $(document);
17
+
18
+ /*
19
+ Extends defaults/options.
20
+
21
+ options.classes.goto
22
+ This class is added to the deck container when showing the Go To Slide
23
+ form.
24
+
25
+ options.selectors.gotoForm
26
+ The element that matches this selector is the form that is submitted
27
+ when a user hits enter after typing a slide number in the gotoInput
28
+ element.
29
+
30
+ options.selectors.gotoInput
31
+ The element that matches this selector is the text input field for
32
+ entering a slide number in the Go To Slide form.
33
+
34
+ options.keys.goto
35
+ The numeric keycode used to toggle between showing and hiding the Go To
36
+ Slide form.
37
+ */
38
+ $.extend(true, $[deck].defaults, {
39
+ classes: {
40
+ goto: 'deck-goto'
41
+ },
42
+
43
+ selectors: {
44
+ gotoForm: '.goto-form',
45
+ gotoInput: '#goto-slide'
46
+ },
47
+
48
+ keys: {
49
+ goto: 71 // g
50
+ }
51
+ });
52
+
53
+ /*
54
+ jQuery.deck('showGoTo')
55
+
56
+ Shows the Go To Slide form by adding the class specified by the goto class
57
+ option to the deck container.
58
+ */
59
+ $[deck]('extend', 'showGoTo', function() {
60
+ $[deck]('getContainer').addClass($[deck]('getOptions').classes.goto);
61
+ $($[deck]('getOptions').selectors.gotoInput).focus();
62
+ });
63
+
64
+ /*
65
+ jQuery.deck('hideGoTo')
66
+
67
+ Hides the Go To Slide form by removing the class specified by the goto class
68
+ option from the deck container.
69
+ */
70
+ $[deck]('extend', 'hideGoTo', function() {
71
+ $[deck]('getContainer').removeClass($[deck]('getOptions').classes.goto);
72
+ $($[deck]('getOptions').selectors.gotoInput).blur();
73
+ });
74
+
75
+ /*
76
+ jQuery.deck('toggleGoTo')
77
+
78
+ Toggles between showing and hiding the Go To Slide form.
79
+ */
80
+ $[deck]('extend', 'toggleGoTo', function() {
81
+ $[deck]($[deck]('getContainer').hasClass($[deck]('getOptions').classes.goto) ? 'hideGoTo' : 'showGoTo');
82
+ });
83
+
84
+ $d.bind('deck.init', function() {
85
+ // Bind key events
86
+ $d.unbind('keydown.deckgoto').bind('keydown.deckgoto', function(e) {
87
+ var key = $[deck]('getOptions').keys.goto;
88
+
89
+ if (e.which === key ||$.inArray(e.which, key) > -1) {
90
+ e.preventDefault();
91
+ $[deck]('toggleGoTo');
92
+ }
93
+ });
94
+
95
+ // Process form submittal, go to the slide entered
96
+ $($[deck]('getOptions').selectors.gotoForm)
97
+ .unbind('submit.deckgoto')
98
+ .bind('submit.deckgoto', function(e) {
99
+ var $field = ($($[deck]('getOptions').selectors.gotoInput)),
100
+ i = parseInt($field.val(), 10);
101
+
102
+ if (!($.isNaN(i) || i < 1 || i > $[deck]('getSlides').length)) {
103
+ $[deck]('go', i - 1);
104
+ $[deck]('hideGoTo');
105
+ $field.val('');
106
+ }
107
+
108
+ e.preventDefault();
109
+ });
110
+
111
+ $($[deck]('getOptions').selectors.gotoInput)
112
+ .unbind('keydown.deckgoto')
113
+ .bind('keydown.deckgoto', function(e) {
114
+ e.stopPropagation();
115
+ });
116
+ });
117
+ })(jQuery, 'deck');
118
+
@@ -0,0 +1,46 @@
1
+ .deck-container {
2
+ .goto-form {
3
+ position:absolute;
4
+ z-index:3;
5
+ bottom:10px;
6
+ left:50%;
7
+ height:1.75em;
8
+ margin:0 0 0 -7.125em;
9
+ line-height:1.75em;
10
+ padding:0.625em;
11
+ display:none;
12
+ background:#ccc;
13
+ overflow:hidden;
14
+
15
+ .borderradius & {
16
+ -webkit-border-radius:10px;
17
+ -moz-border-radius:10px;
18
+ border-radius:10px;
19
+ }
20
+
21
+ label {
22
+ font-weight:bold;
23
+ }
24
+
25
+ label, input {
26
+ display:inline-block;
27
+ font-family:inherit;
28
+ }
29
+ }
30
+ }
31
+
32
+ .deck-goto .goto-form {
33
+ display:block;
34
+ }
35
+
36
+ #goto-slide {
37
+ width:4.375em;
38
+ margin:0 0.625em;
39
+ height:1.4375em;
40
+ }
41
+
42
+ @media print {
43
+ .goto-form, #goto-slide {
44
+ display:none !important;
45
+ }
46
+ }
@@ -0,0 +1,13 @@
1
+ .deck-container .deck-permalink {
2
+ display: none;
3
+ position: absolute;
4
+ z-index: 4;
5
+ bottom: 30px;
6
+ right: 0;
7
+ width: 48px;
8
+ text-align: center;
9
+ }
10
+
11
+ .no-history .deck-container:hover .deck-permalink {
12
+ display: block;
13
+ }
@@ -0,0 +1,2 @@
1
+ <!-- Place the following snippet at the bottom of the deck container. -->
2
+ <a href="." title="Permalink to this slide" class="deck-permalink">#</a>