rhet-butler 0.5.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/default-configuration/assets/javascript/keyboard-nav.js +91 -0
- data/default-configuration/assets/javascript/rhet-present.js +855 -0
- data/default-configuration/assets/javascript/rhet-present.min.js +55 -0
- data/default-configuration/assets/stylesheets/_animate-helpers.scss +41 -0
- data/default-configuration/assets/stylesheets/animate/_attention.scss +36 -0
- data/default-configuration/assets/stylesheets/animate/_bounce.scss +71 -0
- data/default-configuration/assets/stylesheets/animate/_fade.scss +56 -0
- data/default-configuration/assets/stylesheets/animate/_flip.scss +98 -0
- data/default-configuration/assets/stylesheets/animate/_lightSpeed.scss +20 -0
- data/default-configuration/assets/stylesheets/animate/_roll.scss +20 -0
- data/default-configuration/assets/stylesheets/animate/_rotate.scss +40 -0
- data/default-configuration/assets/stylesheets/animate/_special.scss +17 -0
- data/default-configuration/assets/stylesheets/animate/_windblown.sass +17 -0
- data/default-configuration/assets/stylesheets/animate/attention/._pulse.scss.swp +0 -0
- data/default-configuration/assets/stylesheets/animate/attention/_flash.scss +34 -0
- data/default-configuration/assets/stylesheets/animate/attention/_pulse.scss +28 -0
- data/default-configuration/assets/stylesheets/animate/attention/_shake.scss +53 -0
- data/default-configuration/assets/stylesheets/animate/attention/_swing.scss +40 -0
- data/default-configuration/assets/stylesheets/animate/attention/_tada.scss +51 -0
- data/default-configuration/assets/stylesheets/animate/attention/_wiggle.scss +52 -0
- data/default-configuration/assets/stylesheets/animate/attention/_wobble.scss +41 -0
- data/default-configuration/assets/stylesheets/animate/bounce/_bounceIn.scss +151 -0
- data/default-configuration/assets/stylesheets/animate/bounce/_bounceOut.scss +139 -0
- data/default-configuration/assets/stylesheets/animate/fade/_fadeIn.sass +139 -0
- data/default-configuration/assets/stylesheets/animate/fade/_fadeOut.sass +139 -0
- data/default-configuration/assets/stylesheets/animate/flip/_flipIn.scss +78 -0
- data/default-configuration/assets/stylesheets/animate/flip/_flipOut.scss +66 -0
- data/default-configuration/assets/stylesheets/animate/lightSpeed/_lightSpeedIn.scss +37 -0
- data/default-configuration/assets/stylesheets/animate/lightSpeed/_lightSpeedOut.scss +29 -0
- data/default-configuration/assets/stylesheets/animate/roll/_rollIn.scss +29 -0
- data/default-configuration/assets/stylesheets/animate/roll/_rollOut.scss +28 -0
- data/default-configuration/assets/stylesheets/animate/rotate/_rotateIn.scss +208 -0
- data/default-configuration/assets/stylesheets/animate/rotate/_rotateOut.scss +208 -0
- data/default-configuration/assets/stylesheets/animate/special/_hinge.scss +49 -0
- data/default-configuration/assets/stylesheets/animate/windblown/_windblownIn.sass +28 -0
- data/default-configuration/assets/stylesheets/animate/windblown/_windblownOut.sass +24 -0
- data/default-configuration/assets/stylesheets/font.css +30 -0
- data/default-configuration/assets/stylesheets/highlight/arta.css +158 -0
- data/default-configuration/assets/stylesheets/highlight/ascetic.css +50 -0
- data/default-configuration/assets/stylesheets/highlight/brown_paper.css +104 -0
- data/default-configuration/assets/stylesheets/highlight/brown_papersq.png +0 -0
- data/default-configuration/assets/stylesheets/highlight/dark.css +103 -0
- data/default-configuration/assets/stylesheets/highlight/default.css +135 -0
- data/default-configuration/assets/stylesheets/highlight/far.css +111 -0
- data/default-configuration/assets/stylesheets/highlight/github.css +127 -0
- data/default-configuration/assets/stylesheets/highlight/googlecode.css +144 -0
- data/default-configuration/assets/stylesheets/highlight/idea.css +121 -0
- data/default-configuration/assets/stylesheets/highlight/ir_black.css +104 -0
- data/default-configuration/assets/stylesheets/highlight/magula.css +120 -0
- data/default-configuration/assets/stylesheets/highlight/monokai.css +114 -0
- data/default-configuration/assets/stylesheets/highlight/pojoaque.css +104 -0
- data/default-configuration/assets/stylesheets/highlight/pojoaque.jpg +0 -0
- data/default-configuration/assets/stylesheets/highlight/rainbow.css +114 -0
- data/default-configuration/assets/stylesheets/highlight/school_book.css +111 -0
- data/default-configuration/assets/stylesheets/highlight/school_book.png +0 -0
- data/default-configuration/assets/stylesheets/highlight/solarized_light.css +88 -0
- data/default-configuration/assets/stylesheets/highlight/sunburst.css +158 -0
- data/default-configuration/assets/stylesheets/highlight/tomorrow-night-blue.css +52 -0
- data/default-configuration/assets/stylesheets/highlight/tomorrow-night-bright.css +51 -0
- data/default-configuration/assets/stylesheets/highlight/tomorrow-night-eighties.css +51 -0
- data/default-configuration/assets/stylesheets/highlight/tomorrow-night.css +52 -0
- data/default-configuration/assets/stylesheets/highlight/tomorrow.css +49 -0
- data/default-configuration/assets/stylesheets/highlight/vs.css +86 -0
- data/default-configuration/assets/stylesheets/highlight/xcode.css +154 -0
- data/default-configuration/assets/stylesheets/highlight/zenburn.css +114 -0
- data/default-configuration/assets/stylesheets/presenter/rhet.css.sass +160 -0
- data/default-configuration/assets/stylesheets/rhet.css.sass +142 -0
- data/default-configuration/assets/themes.googleusercontent.com/static/fonts/arimo/v5/K-bXE71xZHgbUS_UdQjugvesZW2xOQ-xsNqO47m55DA.ttf +0 -0
- data/default-configuration/assets/themes.googleusercontent.com/static/fonts/cinzeldecorative/v1/pXhIVnhFtL_B9Vb1wq2F9wIh9oxuYcmvOvyh_107lQs.ttf +0 -0
- data/default-configuration/assets/themes.googleusercontent.com/static/fonts/cinzeldecorative/v1/pXhIVnhFtL_B9Vb1wq2F9zCUrkmwPfdnoTjOU_kXqBI.ttf +0 -0
- data/default-configuration/assets/themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJYW_AySPyikQrZReizgrnuw.ttf +0 -0
- data/default-configuration/assets/themes.googleusercontent.com/static/fonts/slackey/v3/bJZDrYrGx8atJRHR9DVdqg.ttf +0 -0
- data/default-configuration/common/config.yaml +17 -0
- data/default-configuration/common/templates/group.html.erb +5 -0
- data/default-configuration/common/templates/presentation.html.erb +11 -17
- data/default-configuration/common/templates/presenter-qr.html.erb +3 -3
- data/default-configuration/common/templates/slide.html.erb +3 -0
- data/default-configuration/common/templates/stylesheets.html.erb +1 -1
- data/default-configuration/presenter/templates/live-javascript.html.erb +4 -3
- data/default-configuration/presenter/templates/slide.html.erb +6 -0
- data/default-configuration/presenter/templates/stylesheets.html.erb +1 -1
- data/default-configuration/skels/config.yaml +15 -0
- data/default-configuration/skels/slides.yaml +6 -0
- data/default-configuration/viewer/templates/live-javascript.html.erb +1 -1
- data/lib/rhet-butler/arrangement-finder.rb +71 -0
- data/lib/rhet-butler/command-line.rb +69 -1
- data/lib/rhet-butler/configuration.rb +20 -5
- data/lib/rhet-butler/file-loading.rb +28 -0
- data/lib/rhet-butler/file-manager.rb +42 -22
- data/lib/rhet-butler/filter-resolver.rb +45 -0
- data/lib/rhet-butler/html-generator.rb +24 -4
- data/lib/rhet-butler/include-processor.rb +55 -0
- data/lib/rhet-butler/layout-rule.rb +17 -13
- data/lib/rhet-butler/resource-localizer.rb +22 -0
- data/lib/rhet-butler/sass-functions.rb +40 -0
- data/lib/rhet-butler/slide-arranger.rb +39 -0
- data/lib/rhet-butler/slide-group.rb +56 -21
- data/lib/rhet-butler/slide-includer.rb +5 -2
- data/lib/rhet-butler/slide-loader.rb +16 -332
- data/lib/rhet-butler/slide-processor.rb +27 -0
- data/lib/rhet-butler/slide-renderer.rb +42 -0
- data/lib/rhet-butler/slide-renderers/code.rb +19 -0
- data/lib/rhet-butler/slide-renderers/cues.rb +27 -0
- data/lib/rhet-butler/slide-renderers/textile.rb +14 -0
- data/lib/rhet-butler/slide-rendering.rb +22 -0
- data/lib/rhet-butler/slide-traverser.rb +45 -0
- data/lib/rhet-butler/slide.rb +40 -30
- data/lib/rhet-butler/stasis/css-transform.rb +55 -0
- data/lib/rhet-butler/stasis/document-transform.rb +32 -0
- data/lib/rhet-butler/stasis/html-transform.rb +51 -0
- data/lib/rhet-butler/stasis/http-loader.rb +19 -0
- data/lib/rhet-butler/stasis/identity-transform.rb +18 -0
- data/lib/rhet-butler/stasis/rack-loader.rb +57 -0
- data/lib/rhet-butler/stasis/resource-mapping.rb +55 -0
- data/lib/rhet-butler/stasis/transform-queue.rb +87 -0
- data/lib/rhet-butler/stasis/writer.rb +35 -0
- data/lib/rhet-butler/stasis.rb +18 -0
- data/lib/rhet-butler/static-generator.rb +21 -29
- data/lib/rhet-butler/web/assets-app.rb +24 -8
- data/lib/rhet-butler/web/main-app.rb +17 -8
- data/lib/rhet-butler/web/presentation-app.rb +22 -14
- data/lib/rhet-butler/web/qr-display-app.rb +4 -1
- data/lib/rhet-butler/yaml-schema.rb +5 -4
- data/lib/rhet-butler/yaml-type.rb +24 -1
- data/spec/html-generation.rb +7 -1
- data/spec/presentation-view.rb +33 -8
- data/spec/rhet-butler.rb +0 -13
- data/spec/slide-loader.rb +3 -3
- data/spec/slide-processing.rb +6 -3
- metadata +209 -119
- data/default-configuration/assets/javascript/impress.js +0 -800
- data/default-configuration/assets/stylesheets/presenter/presentation.css +0 -477
- data/lib/rhet-butler.rb +0 -2
@@ -0,0 +1,154 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
XCode style (c) Angel Garcia <angelgarcia.mail@gmail.com>
|
4
|
+
|
5
|
+
*/
|
6
|
+
|
7
|
+
pre code {
|
8
|
+
display: block; padding: 0.5em;
|
9
|
+
background: #fff; color: black;
|
10
|
+
}
|
11
|
+
|
12
|
+
pre .comment,
|
13
|
+
pre .template_comment,
|
14
|
+
pre .javadoc,
|
15
|
+
pre .comment * {
|
16
|
+
color: rgb(0,106,0);
|
17
|
+
}
|
18
|
+
|
19
|
+
pre .keyword,
|
20
|
+
pre .literal,
|
21
|
+
pre .nginx .title {
|
22
|
+
color: rgb(170,13,145);
|
23
|
+
}
|
24
|
+
pre .method,
|
25
|
+
pre .list .title,
|
26
|
+
pre .tag .title,
|
27
|
+
pre .setting .value,
|
28
|
+
pre .winutils,
|
29
|
+
pre .tex .command,
|
30
|
+
pre .http .title,
|
31
|
+
pre .request,
|
32
|
+
pre .status {
|
33
|
+
color: #008;
|
34
|
+
}
|
35
|
+
|
36
|
+
pre .envvar,
|
37
|
+
pre .tex .special {
|
38
|
+
color: #660;
|
39
|
+
}
|
40
|
+
|
41
|
+
pre .string {
|
42
|
+
color: rgb(196,26,22);
|
43
|
+
}
|
44
|
+
pre .tag .value,
|
45
|
+
pre .cdata,
|
46
|
+
pre .filter .argument,
|
47
|
+
pre .attr_selector,
|
48
|
+
pre .apache .cbracket,
|
49
|
+
pre .date,
|
50
|
+
pre .regexp {
|
51
|
+
color: #080;
|
52
|
+
}
|
53
|
+
|
54
|
+
pre .sub .identifier,
|
55
|
+
pre .pi,
|
56
|
+
pre .tag,
|
57
|
+
pre .tag .keyword,
|
58
|
+
pre .decorator,
|
59
|
+
pre .ini .title,
|
60
|
+
pre .shebang,
|
61
|
+
pre .prompt,
|
62
|
+
pre .hexcolor,
|
63
|
+
pre .rules .value,
|
64
|
+
pre .css .value .number,
|
65
|
+
pre .symbol,
|
66
|
+
pre .symbol .string,
|
67
|
+
pre .number,
|
68
|
+
pre .css .function,
|
69
|
+
pre .clojure .title,
|
70
|
+
pre .clojure .built_in {
|
71
|
+
color: rgb(28,0,207);
|
72
|
+
}
|
73
|
+
|
74
|
+
pre .class .title,
|
75
|
+
pre .haskell .type,
|
76
|
+
pre .smalltalk .class,
|
77
|
+
pre .javadoctag,
|
78
|
+
pre .yardoctag,
|
79
|
+
pre .phpdoc,
|
80
|
+
pre .typename,
|
81
|
+
pre .tag .attribute,
|
82
|
+
pre .doctype,
|
83
|
+
pre .class .id,
|
84
|
+
pre .built_in,
|
85
|
+
pre .setting,
|
86
|
+
pre .params,
|
87
|
+
pre .clojure .attribute {
|
88
|
+
color: rgb(92,38,153);
|
89
|
+
}
|
90
|
+
|
91
|
+
pre .variable {
|
92
|
+
color: rgb(63,110,116);
|
93
|
+
}
|
94
|
+
pre .css .tag,
|
95
|
+
pre .rules .property,
|
96
|
+
pre .pseudo,
|
97
|
+
pre .subst {
|
98
|
+
color: #000;
|
99
|
+
}
|
100
|
+
|
101
|
+
pre .css .class, pre .css .id {
|
102
|
+
color: #9B703F;
|
103
|
+
}
|
104
|
+
|
105
|
+
pre .value .important {
|
106
|
+
color: #ff7700;
|
107
|
+
font-weight: bold;
|
108
|
+
}
|
109
|
+
|
110
|
+
pre .rules .keyword {
|
111
|
+
color: #C5AF75;
|
112
|
+
}
|
113
|
+
|
114
|
+
pre .annotation,
|
115
|
+
pre .apache .sqbracket,
|
116
|
+
pre .nginx .built_in {
|
117
|
+
color: #9B859D;
|
118
|
+
}
|
119
|
+
|
120
|
+
pre .preprocessor,
|
121
|
+
pre .preprocessor * {
|
122
|
+
color: rgb(100,56,32);
|
123
|
+
}
|
124
|
+
|
125
|
+
pre .tex .formula {
|
126
|
+
background-color: #EEE;
|
127
|
+
font-style: italic;
|
128
|
+
}
|
129
|
+
|
130
|
+
pre .diff .header,
|
131
|
+
pre .chunk {
|
132
|
+
color: #808080;
|
133
|
+
font-weight: bold;
|
134
|
+
}
|
135
|
+
|
136
|
+
pre .diff .change {
|
137
|
+
background-color: #BCCFF9;
|
138
|
+
}
|
139
|
+
|
140
|
+
pre .addition {
|
141
|
+
background-color: #BAEEBA;
|
142
|
+
}
|
143
|
+
|
144
|
+
pre .deletion {
|
145
|
+
background-color: #FFC8BD;
|
146
|
+
}
|
147
|
+
|
148
|
+
pre .comment .yardoctag {
|
149
|
+
font-weight: bold;
|
150
|
+
}
|
151
|
+
|
152
|
+
pre .method .id {
|
153
|
+
color: #000;
|
154
|
+
}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Zenburn style from voldmar.ru (c) Vladimir Epifanov <voldmar@voldmar.ru>
|
4
|
+
based on dark.css by Ivan Sagalaev
|
5
|
+
|
6
|
+
*/
|
7
|
+
|
8
|
+
pre code {
|
9
|
+
display: block; padding: 0.5em;
|
10
|
+
background: #3F3F3F;
|
11
|
+
color: #DCDCDC;
|
12
|
+
}
|
13
|
+
|
14
|
+
pre .keyword,
|
15
|
+
pre .tag,
|
16
|
+
pre .css .class,
|
17
|
+
pre .css .id,
|
18
|
+
pre .lisp .title,
|
19
|
+
pre .nginx .title,
|
20
|
+
pre .request,
|
21
|
+
pre .status,
|
22
|
+
pre .clojure .attribute {
|
23
|
+
color: #E3CEAB;
|
24
|
+
}
|
25
|
+
|
26
|
+
pre .django .template_tag,
|
27
|
+
pre .django .variable,
|
28
|
+
pre .django .filter .argument {
|
29
|
+
color: #DCDCDC;
|
30
|
+
}
|
31
|
+
|
32
|
+
pre .number,
|
33
|
+
pre .date {
|
34
|
+
color: #8CD0D3;
|
35
|
+
}
|
36
|
+
|
37
|
+
pre .dos .envvar,
|
38
|
+
pre .dos .stream,
|
39
|
+
pre .variable,
|
40
|
+
pre .apache .sqbracket {
|
41
|
+
color: #EFDCBC;
|
42
|
+
}
|
43
|
+
|
44
|
+
pre .dos .flow,
|
45
|
+
pre .diff .change,
|
46
|
+
pre .python .exception,
|
47
|
+
pre .python .built_in,
|
48
|
+
pre .literal,
|
49
|
+
pre .tex .special {
|
50
|
+
color: #EFEFAF;
|
51
|
+
}
|
52
|
+
|
53
|
+
pre .diff .chunk,
|
54
|
+
pre .subst {
|
55
|
+
color: #8F8F8F;
|
56
|
+
}
|
57
|
+
|
58
|
+
pre .dos .keyword,
|
59
|
+
pre .python .decorator,
|
60
|
+
pre .title,
|
61
|
+
pre .haskell .type,
|
62
|
+
pre .diff .header,
|
63
|
+
pre .ruby .class .parent,
|
64
|
+
pre .apache .tag,
|
65
|
+
pre .nginx .built_in,
|
66
|
+
pre .tex .command,
|
67
|
+
pre .prompt {
|
68
|
+
color: #efef8f;
|
69
|
+
}
|
70
|
+
|
71
|
+
pre .dos .winutils,
|
72
|
+
pre .ruby .symbol,
|
73
|
+
pre .ruby .symbol .string,
|
74
|
+
pre .ruby .string {
|
75
|
+
color: #DCA3A3;
|
76
|
+
}
|
77
|
+
|
78
|
+
pre .diff .deletion,
|
79
|
+
pre .string,
|
80
|
+
pre .tag .value,
|
81
|
+
pre .preprocessor,
|
82
|
+
pre .built_in,
|
83
|
+
pre .sql .aggregate,
|
84
|
+
pre .javadoc,
|
85
|
+
pre .smalltalk .class,
|
86
|
+
pre .smalltalk .localvars,
|
87
|
+
pre .smalltalk .array,
|
88
|
+
pre .css .rules .value,
|
89
|
+
pre .attr_selector,
|
90
|
+
pre .pseudo,
|
91
|
+
pre .apache .cbracket,
|
92
|
+
pre .tex .formula {
|
93
|
+
color: #CC9393;
|
94
|
+
}
|
95
|
+
|
96
|
+
pre .shebang,
|
97
|
+
pre .diff .addition,
|
98
|
+
pre .comment,
|
99
|
+
pre .java .annotation,
|
100
|
+
pre .template_comment,
|
101
|
+
pre .pi,
|
102
|
+
pre .doctype {
|
103
|
+
color: #7F9F7F;
|
104
|
+
}
|
105
|
+
|
106
|
+
pre .coffeescript .javascript,
|
107
|
+
pre .javascript .xml,
|
108
|
+
pre .tex .formula,
|
109
|
+
pre .xml .javascript,
|
110
|
+
pre .xml .vbscript,
|
111
|
+
pre .xml .css,
|
112
|
+
pre .xml .cdata {
|
113
|
+
opacity: 0.5;
|
114
|
+
}
|
@@ -0,0 +1,160 @@
|
|
1
|
+
@import 'compass/reset'
|
2
|
+
@import 'compass'
|
3
|
+
@import 'animate-helpers'
|
4
|
+
@import 'animate/windblown'
|
5
|
+
@import 'animate/fade'
|
6
|
+
|
7
|
+
$default-animation-class-mode: silent
|
8
|
+
$default-animation-duration: 0.5s
|
9
|
+
$default-animation-timing-function: ease
|
10
|
+
|
11
|
+
+animate-windblown()
|
12
|
+
+animate-fade
|
13
|
+
|
14
|
+
html
|
15
|
+
height: 100vh
|
16
|
+
+perspective(1000)
|
17
|
+
+transform-style(preserve-3d)
|
18
|
+
|
19
|
+
body
|
20
|
+
font-family: 'PT Sans', sans-serif
|
21
|
+
background: rgba(215, 215, 215, 0.5)
|
22
|
+
@include background-image(radial-gradient( rgba(165, 165, 165, 0.5), rgba(211, 211, 211, 0.5)))
|
23
|
+
overflow: hidden
|
24
|
+
height: 100vh
|
25
|
+
|
26
|
+
.hint
|
27
|
+
display: none
|
28
|
+
|
29
|
+
/*
|
30
|
+
.root.moving
|
31
|
+
&.by-slide
|
32
|
+
&.forwards
|
33
|
+
.slide
|
34
|
+
&.previous
|
35
|
+
z-index: 10
|
36
|
+
&.current
|
37
|
+
z-index: 5
|
38
|
+
&.next
|
39
|
+
z-index: 3
|
40
|
+
.slide.previous.am-at
|
41
|
+
+animation(windblownOut .5s ease)
|
42
|
+
&.backwards
|
43
|
+
.slide
|
44
|
+
&.previous
|
45
|
+
z-index: 3
|
46
|
+
&.current
|
47
|
+
z-index: 5
|
48
|
+
&.next
|
49
|
+
z-index: 10
|
50
|
+
.slide.next.am-at
|
51
|
+
+animation(windblownIn .5s ease)
|
52
|
+
|
53
|
+
.rhet-butler
|
54
|
+
&.root
|
55
|
+
@include box-sizing(border-box)
|
56
|
+
width: 100vw
|
57
|
+
height: 50vh
|
58
|
+
margin: 0
|
59
|
+
padding: 0
|
60
|
+
overflow: hidden
|
61
|
+
|
62
|
+
&.current ~ .slide
|
63
|
+
display: block
|
64
|
+
left: 50vw
|
65
|
+
opacity: .7
|
66
|
+
|
67
|
+
&.current ~ .group .slide
|
68
|
+
display: block
|
69
|
+
left: 50vw
|
70
|
+
opacity: .7
|
71
|
+
|
72
|
+
.slide
|
73
|
+
@include box-sizing(border-box)
|
74
|
+
width: 46vw
|
75
|
+
height: 46vh
|
76
|
+
margin: 2vh 2vw
|
77
|
+
padding: 5vh 5vw
|
78
|
+
float: left
|
79
|
+
|
80
|
+
display: none
|
81
|
+
|
82
|
+
&.current,&.next,&.previous
|
83
|
+
display: block
|
84
|
+
|
85
|
+
&.current
|
86
|
+
.notes
|
87
|
+
position: absolute
|
88
|
+
display: block
|
89
|
+
width: 89vw
|
90
|
+
height: 39vh
|
91
|
+
margin: 2vh 2vw
|
92
|
+
padding: 3vh 3vw
|
93
|
+
top: 50vh
|
94
|
+
left: 0
|
95
|
+
border: 1px solid black
|
96
|
+
background-color: honeydew
|
97
|
+
|
98
|
+
&.previous
|
99
|
+
z-index: 10
|
100
|
+
|
101
|
+
&.current
|
102
|
+
z-index: 5
|
103
|
+
|
104
|
+
&.next
|
105
|
+
z-index: 3
|
106
|
+
|
107
|
+
@include background-image(linear-gradient(white, rgb(230, 230, 230)))
|
108
|
+
|
109
|
+
border: 1px solid rgba(0, 0, 0, .3)
|
110
|
+
border-radius: 10px
|
111
|
+
@include single-box-shadow(2px, 2px, 8px, 2px, rgb(100,100,100))
|
112
|
+
|
113
|
+
color: black
|
114
|
+
text-shadow: 0 2px 2px rgba(0, 0, 0, .1)
|
115
|
+
|
116
|
+
font-family: 'Open Sans', Arial, sans-serif
|
117
|
+
font-size: 5vh
|
118
|
+
line-height: 1.1em
|
119
|
+
letter-spacing: -1px
|
120
|
+
text-align: center
|
121
|
+
|
122
|
+
img
|
123
|
+
max-width: 100%
|
124
|
+
max-height: 100%
|
125
|
+
|
126
|
+
pre
|
127
|
+
font-family: monospace
|
128
|
+
text-align: initial
|
129
|
+
font-size: 4vh
|
130
|
+
line-height: 1em
|
131
|
+
code
|
132
|
+
border-radius: 10px
|
133
|
+
+box-shadow(-2px -2px 8px 2px rgb(140,140,140) inset, 2px 2px 8px 2px rgb(40, 40, 40) inset)
|
134
|
+
|
135
|
+
li
|
136
|
+
opacity: 0.5
|
137
|
+
|
138
|
+
@for $i from 1 through 10
|
139
|
+
&.current-cue-#{$i}
|
140
|
+
code span.cue-#{$i}
|
141
|
+
border-radius: 5px
|
142
|
+
+box-shadow(-1px -1px 0px 1px rgba(140,140,140,0.5) inset, 1px 1px 0px 1px rgba(40, 40, 40, 0.5) inset)
|
143
|
+
background-color: rgba(255,255,255,0.1)
|
144
|
+
|
145
|
+
@for $j from 1 through $i
|
146
|
+
li.cue-#{$j}
|
147
|
+
opacity: 1
|
148
|
+
|
149
|
+
p
|
150
|
+
margin: .4em 0
|
151
|
+
|
152
|
+
q
|
153
|
+
display: block
|
154
|
+
font-size: 50px
|
155
|
+
line-height: 72px
|
156
|
+
|
157
|
+
margin-top: 100px
|
158
|
+
|
159
|
+
strong
|
160
|
+
white-space: nowrap
|
@@ -0,0 +1,142 @@
|
|
1
|
+
@import 'compass/reset'
|
2
|
+
@import 'compass'
|
3
|
+
@import 'font.css'
|
4
|
+
@import 'animate-helpers'
|
5
|
+
@import 'animate/windblown'
|
6
|
+
@import 'animate/fade'
|
7
|
+
|
8
|
+
$default-animation-class-mode: silent
|
9
|
+
$default-animation-duration: 0.5s
|
10
|
+
$default-animation-timing-function: ease
|
11
|
+
|
12
|
+
+animate-windblown()
|
13
|
+
+animate-fade
|
14
|
+
|
15
|
+
html
|
16
|
+
height: 100vh
|
17
|
+
+perspective(1000)
|
18
|
+
+transform-style(preserve-3d)
|
19
|
+
|
20
|
+
body
|
21
|
+
font-family: 'Arimo', sans-serif
|
22
|
+
background: rgba(215, 215, 215, 0.5)
|
23
|
+
@include background-image(radial-gradient( rgba(165, 165, 165, 0.5), rgba(211, 211, 211, 0.5)))
|
24
|
+
overflow: hidden
|
25
|
+
height: 100vh
|
26
|
+
|
27
|
+
.hint
|
28
|
+
display: none
|
29
|
+
|
30
|
+
.root.moving
|
31
|
+
&.by-slide
|
32
|
+
&.forwards
|
33
|
+
.slide
|
34
|
+
&.previous
|
35
|
+
z-index: 10
|
36
|
+
&.current
|
37
|
+
z-index: 5
|
38
|
+
&.next
|
39
|
+
z-index: 3
|
40
|
+
.slide.previous.am-at
|
41
|
+
+animation(windblownOut .5s ease)
|
42
|
+
&.backwards
|
43
|
+
.slide
|
44
|
+
&.previous
|
45
|
+
z-index: 3
|
46
|
+
&.current
|
47
|
+
z-index: 5
|
48
|
+
&.next
|
49
|
+
z-index: 10
|
50
|
+
.slide.next.am-at
|
51
|
+
+animation(windblownIn .5s ease)
|
52
|
+
|
53
|
+
.slide
|
54
|
+
@include box-sizing(border-box)
|
55
|
+
|
56
|
+
-webkit-backface-visibility: hidden
|
57
|
+
+perspective(1000)
|
58
|
+
position: absolute
|
59
|
+
top: 0
|
60
|
+
left: 0
|
61
|
+
|
62
|
+
display: none
|
63
|
+
|
64
|
+
&.current,&.next,&.previous
|
65
|
+
display: block
|
66
|
+
|
67
|
+
&.previous
|
68
|
+
z-index: 10
|
69
|
+
|
70
|
+
&.current
|
71
|
+
z-index: 5
|
72
|
+
|
73
|
+
&.next
|
74
|
+
z-index: 3
|
75
|
+
|
76
|
+
width: 92vw
|
77
|
+
height: 92vh
|
78
|
+
margin: 4vh 4vw
|
79
|
+
padding: 10vh 10vw
|
80
|
+
|
81
|
+
@include background-image(linear-gradient(white, rgb(230, 230, 230)))
|
82
|
+
|
83
|
+
border: 1px solid rgba(0, 0, 0, .3)
|
84
|
+
border-radius: 10px
|
85
|
+
@include single-box-shadow(2px, 2px, 8px, 2px, rgb(100,100,100))
|
86
|
+
|
87
|
+
color: black
|
88
|
+
text-shadow: 0 2px 2px rgba(0, 0, 0, .1)
|
89
|
+
|
90
|
+
font-family: 'Arimo', sans-serif
|
91
|
+
font-size: 10vh
|
92
|
+
line-height: 1.1em
|
93
|
+
letter-spacing: -1px
|
94
|
+
text-align: center
|
95
|
+
|
96
|
+
.comic
|
97
|
+
font-family: 'Slackey', cursive
|
98
|
+
|
99
|
+
.dignified
|
100
|
+
font-family: 'Cinzel Decorative', cursive
|
101
|
+
|
102
|
+
img
|
103
|
+
max-width: 100%
|
104
|
+
max-height: 100%
|
105
|
+
|
106
|
+
pre
|
107
|
+
font-family: 'Droid Sans Mono', monospace
|
108
|
+
text-align: initial
|
109
|
+
font-size: 6vh
|
110
|
+
line-height: 1em
|
111
|
+
code
|
112
|
+
border-radius: 10px
|
113
|
+
+box-shadow(-2px -2px 8px 2px rgb(140,140,140) inset, 2px 2px 8px 2px rgb(40, 40, 40) inset)
|
114
|
+
|
115
|
+
li
|
116
|
+
opacity: 0
|
117
|
+
|
118
|
+
@for $i from 1 through 10
|
119
|
+
&.current-cue-#{$i}
|
120
|
+
code span.cue-#{$i}
|
121
|
+
border-radius: 5px
|
122
|
+
+box-shadow(-1px -1px 0px 1px rgba(140,140,140,0.5) inset, 1px 1px 0px 1px rgba(40, 40, 40, 0.5) inset)
|
123
|
+
background-color: rgba(255,255,255,0.1)
|
124
|
+
|
125
|
+
li.cue-#{$i}
|
126
|
+
+animation(fadeIn .6s ease both)
|
127
|
+
@for $j from 1 through $i
|
128
|
+
li.cue-#{$j}
|
129
|
+
opacity: 1
|
130
|
+
|
131
|
+
p
|
132
|
+
margin: .4em 0
|
133
|
+
|
134
|
+
q
|
135
|
+
display: block
|
136
|
+
font-size: 50px
|
137
|
+
line-height: 72px
|
138
|
+
|
139
|
+
margin-top: 100px
|
140
|
+
|
141
|
+
strong
|
142
|
+
white-space: nowrap
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,4 +1,21 @@
|
|
1
1
|
---
|
2
|
+
named-filters:
|
3
|
+
normal:
|
4
|
+
- !textile
|
5
|
+
- !cues
|
6
|
+
code:
|
7
|
+
- !code
|
8
|
+
- !textile
|
9
|
+
- !cues
|
10
|
+
|
11
|
+
template-cache: .template-cache
|
12
|
+
|
13
|
+
default-content-filters:
|
14
|
+
normal
|
15
|
+
|
16
|
+
default-note-filters:
|
17
|
+
normal
|
18
|
+
|
2
19
|
arrangement: horizontal
|
3
20
|
impress-config:
|
4
21
|
transition-duration: 200
|
@@ -9,25 +9,16 @@
|
|
9
9
|
<meta name="description" content="<%= presentation.description %>" />
|
10
10
|
<meta name="author" content="<%= presentation.author_name %>" />
|
11
11
|
|
12
|
+
<script src="/javascript/rhet-present.js"></script>
|
13
|
+
<script src="/javascript/keyboard-nav.js"></script>
|
12
14
|
<%= render 'stylesheets.html' %>
|
13
15
|
<%= render 'header-javascript.html' %>
|
14
16
|
</head>
|
15
17
|
|
16
|
-
<body
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
<p>For the best experience please use the latest <b>Chrome</b>, <b>Safari</b> or <b>Firefox</b> browser.</p>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<div id="impress" <% impress_config.each_pair do |name, value| %>
|
24
|
-
data-<%= name %>="<%= value %>"
|
25
|
-
<% end %>>
|
26
|
-
<% slides.each do |slide| %>
|
27
|
-
<div <%= slide.impress_attrs %>>
|
28
|
-
<%= slide.content %>
|
29
|
-
<%= render 'slide-notes.html', slide %>
|
30
|
-
</div>
|
18
|
+
<body id="presentation">
|
19
|
+
<div class="rhet-butler root" >
|
20
|
+
<% root_step.each do |child| %>
|
21
|
+
<%= render child.template_name, child %>
|
31
22
|
<% end %>
|
32
23
|
</div>
|
33
24
|
|
@@ -36,9 +27,12 @@
|
|
36
27
|
<p id="touch-hint" style="display:none">Tap on the left or right to navigate</p>
|
37
28
|
</div>
|
38
29
|
|
39
|
-
<script src="/javascript/impress.js"></script>
|
40
30
|
<%= render 'live-javascript.html' %>
|
41
|
-
<script>
|
31
|
+
<script>
|
32
|
+
var presenter = new rhetButler.Presenter(document, window);
|
33
|
+
presenter.setup("presentation");
|
34
|
+
setupUserInterface(presenter);
|
35
|
+
</script>
|
42
36
|
|
43
37
|
</body>
|
44
38
|
</html>
|
@@ -48,10 +48,10 @@
|
|
48
48
|
<li>
|
49
49
|
Scanning this QR code to control the presentation from your smart phone
|
50
50
|
<table cellspacing="0">
|
51
|
-
<% module_count.times do |x| %>
|
51
|
+
<% qr.module_count.times do |x| %>
|
52
52
|
<tr>
|
53
|
-
<% module_count.times do |y| %>
|
54
|
-
<td class='<%= dark?(x,y) ? "dark" : "light" %>'> </td>
|
53
|
+
<% qr.module_count.times do |y| %>
|
54
|
+
<td class='<%= qr.dark?(x,y) ? "dark" : "light" %>'> </td>
|
55
55
|
<% end %>
|
56
56
|
</tr>
|
57
57
|
<% end %>
|
@@ -4,11 +4,12 @@
|
|
4
4
|
var currentStep = null;
|
5
5
|
|
6
6
|
var earlyStepEnter = function(event){ currentStep = event.target.id };
|
7
|
-
document.addEventListener("
|
7
|
+
document.addEventListener("rhet:stepenter", earlyStepEnter);
|
8
8
|
|
9
9
|
var handleSockOpen = function() {
|
10
|
-
document.removeEventListener("
|
11
|
-
document.addEventListener("
|
10
|
+
document.removeEventListener("rhet:stepenter", earlyStepEnter);
|
11
|
+
document.addEventListener("rhet:stepenter", function(event){
|
12
|
+
console.log(event);
|
12
13
|
sock.send(event.target.id);
|
13
14
|
})
|
14
15
|
if(currentStep !== null){
|