slideshow-service 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +7 -0
  2. data/HISTORY.md +3 -0
  3. data/Manifest.txt +29 -0
  4. data/README.md +27 -0
  5. data/Rakefile +32 -0
  6. data/lib/slideshow/service.rb +185 -0
  7. data/lib/slideshow/service/docs/welcome.md +52 -0
  8. data/lib/slideshow/service/public/css/markdown/note.css +34 -0
  9. data/lib/slideshow/service/public/i/dots-white.gif +0 -0
  10. data/lib/slideshow/service/public/js/lib3rd/jquery-2.0.1.min.js +6 -0
  11. data/lib/slideshow/service/public/js/markdown.note.js +69 -0
  12. data/lib/slideshow/service/public/slideshow-s6-blank/s6/jquery.js +8176 -0
  13. data/lib/slideshow/service/public/slideshow-s6-blank/s6/jquery.slideshow.js +534 -0
  14. data/lib/slideshow/service/public/slideshow-s6-blank/s6/print.css +1 -0
  15. data/lib/slideshow/service/public/slideshow-s6-blank/s6/projection.css +109 -0
  16. data/lib/slideshow/service/public/slideshow-s6-blank/s6/screen.css +50 -0
  17. data/lib/slideshow/service/public/slideshow-s6-blank/slides.html +46 -0
  18. data/lib/slideshow/service/public/slideshow-s6-blank/slides.pdf.html +63 -0
  19. data/lib/slideshow/service/public/slideshow-s6-blank/style.css +94 -0
  20. data/lib/slideshow/service/public/style.css +62 -0
  21. data/lib/slideshow/service/version.rb +25 -0
  22. data/lib/slideshow/service/views/_debug.erb +28 -0
  23. data/lib/slideshow/service/views/_editor.erb +33 -0
  24. data/lib/slideshow/service/views/_editor_head.erb +6 -0
  25. data/lib/slideshow/service/views/_editor_setup.erb +18 -0
  26. data/lib/slideshow/service/views/_version.erb +9 -0
  27. data/lib/slideshow/service/views/debug.erb +3 -0
  28. data/lib/slideshow/service/views/editor.erb +8 -0
  29. data/lib/slideshow/service/views/index.erb +10 -0
  30. data/lib/slideshow/service/views/layout.erb +36 -0
  31. metadata +148 -0
@@ -0,0 +1 @@
1
+ /*********************************
2
  * CSS @media print rules (not projection or screen)
1
3
  */
2
4
  * Make sure all slides are visible (to make them all appear in prin)
3
5
  */
4
6
  display: block !important;
5
7
  }
6
8
  * Extra styling for first slide (title slide)
7
9
  */
8
10
  border-bottom: 1px dotted silver;
9
11
  }
10
12
  * Turn on print-specific stuff/classes
11
13
  */
12
14
  * Turn off online (screen/projection)-specific stuff/classes
13
15
  */
14
16
  * The following rule keeps the layout stuff out of print.
15
17
  * Remove at your own risk!
16
18
  */
@@ -0,0 +1,109 @@
1
+ /*********************************
2
+ * CSS @media projection rules (not print or screen)
3
+ *
4
+ * 1) projection -> slideshow mode (display one slide at-a-time; hide all others)
5
+ * 2) screen -> outline mode (display all slides-at-once on screen)
6
+ * 3) print -> print (and print preview)
7
+ *
8
+ * toogle between slideshow/outline mode using t-key
9
+ */
10
+
11
+ html,
12
+ body,
13
+ .presentation { margin: 0; padding: 0; }
14
+
15
+
16
+ .slide { display: none;
17
+ position: absolute;
18
+ top: 0; left: 0;
19
+ margin: 0;
20
+ padding: 2% 4% 0% 4%; /* css note: order is => top right bottom left */
21
+ width: 92%; height: 95%; /* css note: to get to 100% add padding/border/margin */
22
+ overflow-x: hidden; overflow-y: auto;
23
+ z-index: 2;
24
+ }
25
+
26
+ #slide1 { display: block; }
27
+
28
+ .notes { display: none; } /* handout notes/note (use note? handout? notes? */
29
+
30
+
31
+ /********* format layout block
32
+ *
33
+ * .layout
34
+ * > #header
35
+ * > #footer
36
+ * > #controls (holding navigation controls)
37
+ * > #navLinks
38
+ * > #toggle
39
+ * > #navList
40
+ * > #jumplist
41
+ * > #currentSlide (e.g. 1/7)
42
+ *
43
+ */
44
+
45
+ .layout { display: block; }
46
+
47
+ #header { position: fixed;
48
+ top: 0; left: 0;
49
+ width: 100%; height: 0.5em;
50
+ z-index: 1;
51
+ }
52
+
53
+ #footer { position: fixed;
54
+ top: auto; bottom: 0;
55
+ padding: 1em 0; /* css note: order is => 1st top,bottom; 2nd right,left */
56
+ width: 100%; height: 1em;
57
+ z-index: 5;
58
+
59
+ /* todo: move font-size and font-style to blank.css */
60
+ font-size: 100%; font-weight: bold;
61
+ }
62
+
63
+ /* todo: move font-size and font-style to blank.css */
64
+
65
+ #footer h1 { display: block; margin: 0; padding: 0 1em; font-size: 0.5em; }
66
+ #footer h2 { display: block; margin: 0; padding: 0 1em; font-size: 0.5em; font-style: italic; }
67
+
68
+
69
+ /*************************
70
+ * format for navigation controls
71
+ */
72
+
73
+
74
+ #controls { position: fixed;
75
+ left: 60%; bottom: 0;
76
+ width: 40%;
77
+ z-index: 100;
78
+ text-align: right;
79
+ font: bold 1.2em Verdana, Helvetica, sans-serif;
80
+ }
81
+
82
+ #controls :focus { outline: 1px dotted white;}
83
+
84
+ #controls #navLinks { text-align: right; margin: 0; visibility: hidden; }
85
+
86
+ #controls #navLinks a { padding: 0; margin: 0 0.5em; cursor: pointer; border: none; }
87
+
88
+ #controls #navLinks :link,
89
+ #controls #navLinks :visited {text-decoration: none; }
90
+
91
+ #controls #navList #jumplist { background: white; color: black; }
92
+
93
+ /*************************
94
+ * format for
95
+ * currentSlide block ( e.g. 2/20 )
96
+ */
97
+
98
+ #currentSlide { position: fixed;
99
+ left: 45%; bottom: 1em;
100
+ width: 10%;
101
+ z-index: 10;
102
+ text-align: center;
103
+ font-size: 0.8em;
104
+ }
105
+
106
+ #currentSlide :link,
107
+ #currentSlide :visited { text-decoration: none; }
108
+
109
+
@@ -0,0 +1,50 @@
1
+ /*********************************
2
+ * CSS @media screen (not projection or print)
3
+ *
4
+ * 1) projection -> slideshow mode (display one slide at-a-time; hide all others)
5
+ * 2) screen -> outline mode (display all slides-at-once on screen)
6
+ * 3) print -> print (and print preview)
7
+ *
8
+ * toogle between slideshow/outline mode using t-key
9
+ */
10
+
11
+
12
+ /****
13
+ * hide layout stuff (header, footer, navLinks, navList etc.)
14
+ */
15
+
16
+ .layout * { display: none; }
17
+
18
+ .projection { display: none; }
19
+
20
+ /*************
21
+ * make toggle button visible and reposition to upper right corner *
22
+ * note: toogle button is nested inside #controls > #navLinks > #toogle
23
+ */
24
+
25
+ #controls,
26
+ #navLinks,
27
+ #toggle { display: block;
28
+ visibility: visible;
29
+ margin: 0; padding: 0;
30
+ }
31
+
32
+ #toggle { position: fixed;
33
+ top: 0; right: 0;
34
+ padding: 0.5em;
35
+ border-left: 1px solid;
36
+ border-bottom: 1px solid;
37
+ background: white;
38
+ }
39
+
40
+
41
+ /*************
42
+ * making the outline look pretty-ish
43
+ */
44
+
45
+ #slide1, #slide1 h1, #slide1 h2, #slide1 h3, #slide1 h4 {border: none; margin: 0;}
46
+ #slide1 h1 {padding-top: 1.5em;}
47
+
48
+ .slide { margin: 1.5em 0 0; border-top: 1px solid #888; }
49
+ .slide h1 { border-bottom: 1px solid #AAA; }
50
+
@@ -0,0 +1,46 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="content-type" content="text/html;charset=utf-8">
5
+ <title>{{ headers['title'] }}</title>
6
+
7
+ <meta name="generator" content="{{ headers['generator'] }}">
8
+ <meta name="author" content="{{ headers['author'] }}" >
9
+
10
+ <!-- S6 style sheet links -->
11
+ <link rel="stylesheet" href="style.css" media="projection" id="styleProjection">
12
+ <link rel="stylesheet" href="s6/screen.css" media="screen" id="styleScreen">
13
+ <link rel="stylesheet" href="s6/print.css" media="print">
14
+
15
+ <!-- S6 JS -->
16
+ <script src="s6/jquery.js"></script>
17
+ <script src="s6/jquery.slideshow.js"></script>
18
+ <script>
19
+ $(document).ready( function() {
20
+ Slideshow.init();
21
+ } );
22
+
23
+ {{ more_content_for_js }}
24
+ </script>
25
+
26
+
27
+ {{ more_content_for_head }}
28
+
29
+ </head>
30
+ <body>
31
+
32
+ <div class="layout">
33
+ <div id="header"></div>
34
+ <div id="footer">
35
+ <h1>{{ headers['footer'] }}</h1>
36
+ <h2>{{ headers['subfooter'] }}</h2>
37
+ </div>
38
+ </div>
39
+
40
+ <div class="presentation">
41
+
42
+ {{ content }}
43
+
44
+ </div><!-- presentation -->
45
+ </body>
46
+ </html>
@@ -0,0 +1,63 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>{{ headers['title'] }}</title>
6
+
7
+ {{ more_content_for_head }}
8
+
9
+ <style>
10
+ html, body { margin: 0; padding: 0; }
11
+
12
+ body { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; }
13
+
14
+ a:link, a:visited { color: black; }
15
+
16
+ h1 { font-size: 30pt; }
17
+ h2 { font-size: 28pt; }
18
+ h3 { font-size: 25pt; }
19
+ p, li, dt, dd, td, th { font-size: 18pt; }
20
+
21
+ pre { font-size: 14pt; }
22
+ pre.small { font-size: 11pt; }
23
+
24
+ pre.code {
25
+ background-color: azure;
26
+ padding: 5px;
27
+ }
28
+
29
+ ul { list-style-type: square; }
30
+
31
+ .center { text-align: center; }
32
+
33
+ .slide { page-break-after: always;
34
+ min-height: 100mm;
35
+ padding: 40px;
36
+
37
+ border: 1px dotted black;
38
+
39
+ /*
40
+ background: -moz-linear-gradient( top, maroon, red);
41
+ */
42
+ }
43
+
44
+ /* {{ more_content_for_css }}
45
+ */
46
+
47
+
48
+ /*
49
+ for princexml (CSS3 paged media support)
50
+ @page { size: A4 landscape }
51
+ */
52
+ </style>
53
+
54
+ </head>
55
+ <body>
56
+
57
+ <div class="presentation">
58
+
59
+ {{ content }}
60
+
61
+ </div> <!-- presentation -->
62
+ </body>
63
+ </html>
@@ -0,0 +1,94 @@
1
+
2
+ @import url(s6/projection.css); /* required to make the slide show run at all */
3
+
4
+ body { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; }
5
+
6
+ a:link, a:visited { color: black; }
7
+
8
+ .slide h1 { font-size: 30pt; }
9
+
10
+ .slide h1 { text-align: center; }
11
+
12
+ .slide h1.fullscreen { position: absolute;
13
+ top: 40%;
14
+ width: 100%; }
15
+
16
+ /* lets you create slides with no heading (because heading is hidden but gets included in toc) */
17
+ .slide h1.hidden { display: none; }
18
+
19
+
20
+ .slide h2 { font-size: 28pt; }
21
+
22
+ h3 { font-size: 25pt; }
23
+
24
+ /* todo: add special formating for .cover slide
25
+ lets you use h1(cover). for title/cover slide (a la S5 slide0) but more generic (not bound to 1st slide)
26
+ */
27
+
28
+ .cover h1 { /* tbd */ }
29
+ .cover h2 { /* tbd */ }
30
+
31
+ /* todo: add special formating for h1, h2 in footer */
32
+
33
+ #footer h1 { /* tbd */ }
34
+ #footer h2 { /* tbd */ }
35
+
36
+
37
+ p, li, dt, dd, td, th { font-size: 18pt; }
38
+
39
+ ul { list-style-type: square; }
40
+
41
+ /**********************************/
42
+ /* general text-alignment classes */
43
+
44
+ .left { text-align: left; }
45
+ .center { text-align: center; }
46
+ .right { text-align: right; }
47
+
48
+ /**********************************/
49
+ /* general font-size classes */
50
+
51
+ .small { font-size: 97%; }
52
+
53
+ .x-small,
54
+ .smaller { font-size: 88%; }
55
+
56
+ .xx-small,
57
+ .smallest,
58
+ .tiny { font-size: 82%; }
59
+
60
+
61
+
62
+ pre { font-size: 16pt; }
63
+
64
+ .code {
65
+ background-color: azure;
66
+ padding: 5px;
67
+ }
68
+
69
+ .footnote a:first-of-type { text-decoration: none; }
70
+
71
+
72
+ p.small { font-size: 97%; }
73
+
74
+ p.x-small,
75
+ p.smaller,
76
+ p.footnote { font-size: 88%; }
77
+
78
+ p.xx-small,
79
+ p.smallest,
80
+ p.tiny { font-size: 82%; }
81
+
82
+
83
+ .help p,
84
+ .help td { font-size: 88%; }
85
+
86
+
87
+ .step { color: silver; }
88
+ /* or hide next steps e.g. .step { visibility: hidden; } */
89
+ .stepcurrent { color: black; }
90
+
91
+
92
+ /**
93
+ {{ more_content_for_css }}
94
+ **/
@@ -0,0 +1,62 @@
1
+ body {
2
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
3
+
4
+
5
+ a, a:visited {
6
+ color: black; /* was #8B0000; */
7
+ text-decoration: none; }
8
+
9
+ a:hover {
10
+ color: black; /* was #8B0000; */
11
+ text-decoration: underline; }
12
+
13
+ .header .title a,
14
+ .header .title a:visited {
15
+ text-decoration: none;
16
+ }
17
+
18
+ .footer {
19
+ margin: 10px;
20
+ }
21
+
22
+
23
+
24
+ .params {
25
+ color: green;
26
+ font-style: italic;
27
+ font-weight: bold; }
28
+
29
+ pre {
30
+ background-color: #F3F3F3;
31
+ border-bottom: 1px solid #BBBBBB;
32
+ border-top: 1px solid #BBBBBB;
33
+ padding: 4px; }
34
+
35
+
36
+ h3 {
37
+ border-bottom: 1px solid black;
38
+ }
39
+
40
+ /****************
41
+ * api
42
+ */
43
+
44
+ .api a, .api a:visited {
45
+ color: black;
46
+ }
47
+
48
+
49
+ /**********
50
+ * version / powered by
51
+ */
52
+
53
+ .version {
54
+ text-align: center;
55
+ margin-top: 10px;
56
+ color: grey; }
57
+ .version a,
58
+ .version a:visited,
59
+ .version span {
60
+ font-size: 12px;
61
+ color: grey; }
62
+