├── .gitignore ├── LICENSE ├── README.md ├── css ├── reveal │ ├── reset.css │ ├── reveal.css │ └── theme │ │ ├── beige.css │ │ ├── black-contrast.css │ │ ├── black.css │ │ ├── blood.css │ │ ├── dracula.css │ │ ├── fonts │ │ ├── league-gothic │ │ │ ├── LICENSE │ │ │ ├── league-gothic.css │ │ │ ├── league-gothic.eot │ │ │ ├── league-gothic.ttf │ │ │ └── league-gothic.woff │ │ └── source-sans-pro │ │ │ ├── LICENSE │ │ │ ├── source-sans-pro-italic.eot │ │ │ ├── source-sans-pro-italic.ttf │ │ │ ├── source-sans-pro-italic.woff │ │ │ ├── source-sans-pro-regular.eot │ │ │ ├── source-sans-pro-regular.ttf │ │ │ ├── source-sans-pro-regular.woff │ │ │ ├── source-sans-pro-semibold.eot │ │ │ ├── source-sans-pro-semibold.ttf │ │ │ ├── source-sans-pro-semibold.woff │ │ │ ├── source-sans-pro-semibolditalic.eot │ │ │ ├── source-sans-pro-semibolditalic.ttf │ │ │ ├── source-sans-pro-semibolditalic.woff │ │ │ └── source-sans-pro.css │ │ ├── league.css │ │ ├── moon.css │ │ ├── night.css │ │ ├── serif.css │ │ ├── simple.css │ │ ├── sky.css │ │ ├── solarized.css │ │ ├── white-contrast.css │ │ ├── white.css │ │ └── white_contrast_compact_verbatim_headers.css └── vlearn.css ├── img ├── download.svg ├── github.svg ├── movie.svg ├── new-video.svg ├── pause.svg ├── play.svg └── stop.svg ├── index.html ├── js ├── app.js ├── dist │ ├── ffmpeg │ │ ├── 814.ffmpeg.js │ │ ├── ffmpeg-core.min.js │ │ ├── ffmpeg-core.min.wasm │ │ ├── ffmpeg.min.js │ │ └── util.min.js │ ├── html2canvas │ │ └── html2canvas.min.js │ └── reveal │ │ ├── reveal.js │ │ └── reveal.js.map └── plugin │ ├── highlight │ ├── highlight.esm.js │ ├── highlight.js │ ├── monokai.css │ ├── plugin.js │ └── zenburn.css │ ├── markdown │ ├── markdown.esm.js │ ├── markdown.js │ └── plugin.js │ ├── math │ ├── katex.js │ ├── math.esm.js │ ├── math.js │ ├── mathjax2.js │ ├── mathjax3.js │ └── plugin.js │ ├── notes │ ├── notes.esm.js │ ├── notes.js │ ├── plugin.js │ └── speaker-view.html │ ├── search │ ├── plugin.js │ ├── search.esm.js │ └── search.js │ └── zoom │ ├── plugin.js │ ├── zoom.esm.js │ └── zoom.js └── robots.txt /.gitignore: -------------------------------------------------------------------------------- 1 | .editorconfig 2 | *.mp3 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Jason McGhee 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # On-Demand Education 2 | 3 | With a few words and a click of a button, quickly get an engaging, high quality video. 4 | (And optionally save and share it!) 5 | 6 | Try it here, right now! [https://vlearn.ing](https://vlearn.ing) 7 | 8 | Running it: 9 | - Clone the repo 10 | - Open `index.html` in a browser 11 | 12 | Demo: 13 | 14 | 15 | 16 | 17 | 18 | Example Video: 19 | 20 | https://github.com/jasonjmcghee/vlearn/assets/1522149/149cba89-85a1-4667-9644-c9bae52fe287 21 | 22 | 23 | The kind of thing you might find on youtube. 24 | 25 | There's a huge amount left to explore here. 26 | 27 | I really want to push this closer to **personalized education**, 28 | which might be possible through the use of another project which 29 | helps you "remember" (i.e. keep a record of) everything you see 30 | on your computer - called [rem](https://github.com/jasonjmcghee/rem). 31 | And / or other mechanisms to keep a record of all of your knowledge 32 | via an embedding space that an LLM can perform RAG on. 33 | 34 | ------------------------------------ 35 | 36 | Contributions welcome! 37 | 38 | Things I'd love to add: 39 | 40 | - [ ] Local model support (mistral + XTTSv2) 41 | - [ ] Settings to choose models (3.5 / 4 / local, hd vs not) 42 | - [ ] Animations? 43 | -------------------------------------------------------------------------------- /css/reveal/reset.css: -------------------------------------------------------------------------------- 1 | /* http://meyerweb.com/eric/tools/css/reset/ 2 | v4.0 | 20180602 3 | License: none (public domain) 4 | */ 5 | 6 | html, body, div, span, applet, object, iframe, 7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 8 | a, abbr, acronym, address, big, cite, code, 9 | del, dfn, em, img, ins, kbd, q, s, samp, 10 | small, strike, strong, sub, sup, tt, var, 11 | b, u, i, center, 12 | dl, dt, dd, ol, ul, li, 13 | fieldset, form, label, legend, 14 | table, caption, tbody, tfoot, thead, tr, th, td, 15 | article, aside, canvas, details, embed, 16 | figure, figcaption, footer, header, hgroup, 17 | main, menu, nav, output, ruby, section, summary, 18 | time, mark, audio, video { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | font-size: 100%; 23 | font: inherit; 24 | vertical-align: baseline; 25 | } 26 | /* HTML5 display-role reset for older browsers */ 27 | article, aside, details, figcaption, figure, 28 | footer, header, hgroup, main, menu, nav, section { 29 | display: block; 30 | } -------------------------------------------------------------------------------- /css/reveal/theme/beige.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Beige theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | @import url(./fonts/league-gothic/league-gothic.css); 7 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 8 | section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 { 9 | color: #fff; 10 | } 11 | 12 | /********************************************* 13 | * GLOBAL STYLES 14 | *********************************************/ 15 | :root { 16 | --r-background-color: #f7f3de; 17 | --r-main-font: Lato, sans-serif; 18 | --r-main-font-size: 40px; 19 | --r-main-color: #333; 20 | --r-block-margin: 20px; 21 | --r-heading-margin: 0 0 20px 0; 22 | --r-heading-font: League Gothic, Impact, sans-serif; 23 | --r-heading-color: #333; 24 | --r-heading-line-height: 1.2; 25 | --r-heading-letter-spacing: normal; 26 | --r-heading-text-transform: uppercase; 27 | --r-heading-text-shadow: none; 28 | --r-heading-font-weight: normal; 29 | --r-heading1-text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); 30 | --r-heading1-size: 3.77em; 31 | --r-heading2-size: 2.11em; 32 | --r-heading3-size: 1.55em; 33 | --r-heading4-size: 1em; 34 | --r-code-font: monospace; 35 | --r-link-color: #8b743d; 36 | --r-link-color-dark: #564826; 37 | --r-link-color-hover: #c0a86e; 38 | --r-selection-background-color: rgba(79, 64, 28, 0.99); 39 | --r-selection-color: #fff; 40 | } 41 | 42 | .reveal-viewport { 43 | background: #f7f2d3; 44 | background: -moz-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%); 45 | background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, white), color-stop(100%, #f7f2d3)); 46 | background: -webkit-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%); 47 | background: -o-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%); 48 | background: -ms-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%); 49 | background: radial-gradient(center, circle cover, white 0%, #f7f2d3 100%); 50 | background-color: var(--r-background-color); 51 | } 52 | 53 | .reveal { 54 | font-family: var(--r-main-font); 55 | font-size: var(--r-main-font-size); 56 | font-weight: normal; 57 | color: var(--r-main-color); 58 | } 59 | 60 | .reveal ::selection { 61 | color: var(--r-selection-color); 62 | background: var(--r-selection-background-color); 63 | text-shadow: none; 64 | } 65 | 66 | .reveal ::-moz-selection { 67 | color: var(--r-selection-color); 68 | background: var(--r-selection-background-color); 69 | text-shadow: none; 70 | } 71 | 72 | .reveal .slides section, 73 | .reveal .slides section > section { 74 | line-height: 1.3; 75 | font-weight: inherit; 76 | } 77 | 78 | /********************************************* 79 | * HEADERS 80 | *********************************************/ 81 | .reveal h1, 82 | .reveal h2, 83 | .reveal h3, 84 | .reveal h4, 85 | .reveal h5, 86 | .reveal h6 { 87 | margin: var(--r-heading-margin); 88 | color: var(--r-heading-color); 89 | font-family: var(--r-heading-font); 90 | font-weight: var(--r-heading-font-weight); 91 | line-height: var(--r-heading-line-height); 92 | letter-spacing: var(--r-heading-letter-spacing); 93 | text-transform: var(--r-heading-text-transform); 94 | text-shadow: var(--r-heading-text-shadow); 95 | word-wrap: break-word; 96 | } 97 | 98 | .reveal h1 { 99 | font-size: var(--r-heading1-size); 100 | } 101 | 102 | .reveal h2 { 103 | font-size: var(--r-heading2-size); 104 | } 105 | 106 | .reveal h3 { 107 | font-size: var(--r-heading3-size); 108 | } 109 | 110 | .reveal h4 { 111 | font-size: var(--r-heading4-size); 112 | } 113 | 114 | .reveal h1 { 115 | text-shadow: var(--r-heading1-text-shadow); 116 | } 117 | 118 | /********************************************* 119 | * OTHER 120 | *********************************************/ 121 | .reveal p { 122 | margin: var(--r-block-margin) 0; 123 | line-height: 1.3; 124 | } 125 | 126 | /* Remove trailing margins after titles */ 127 | .reveal h1:last-child, 128 | .reveal h2:last-child, 129 | .reveal h3:last-child, 130 | .reveal h4:last-child, 131 | .reveal h5:last-child, 132 | .reveal h6:last-child { 133 | margin-bottom: 0; 134 | } 135 | 136 | /* Ensure certain elements are never larger than the slide itself */ 137 | .reveal img, 138 | .reveal video, 139 | .reveal iframe { 140 | max-width: 95%; 141 | max-height: 95%; 142 | } 143 | 144 | .reveal strong, 145 | .reveal b { 146 | font-weight: bold; 147 | } 148 | 149 | .reveal em { 150 | font-style: italic; 151 | } 152 | 153 | .reveal ol, 154 | .reveal dl, 155 | .reveal ul { 156 | display: inline-block; 157 | text-align: left; 158 | margin: 0 0 0 1em; 159 | } 160 | 161 | .reveal ol { 162 | list-style-type: decimal; 163 | } 164 | 165 | .reveal ul { 166 | list-style-type: disc; 167 | } 168 | 169 | .reveal ul ul { 170 | list-style-type: square; 171 | } 172 | 173 | .reveal ul ul ul { 174 | list-style-type: circle; 175 | } 176 | 177 | .reveal ul ul, 178 | .reveal ul ol, 179 | .reveal ol ol, 180 | .reveal ol ul { 181 | display: block; 182 | margin-left: 40px; 183 | } 184 | 185 | .reveal dt { 186 | font-weight: bold; 187 | } 188 | 189 | .reveal dd { 190 | margin-left: 40px; 191 | } 192 | 193 | .reveal blockquote { 194 | display: block; 195 | position: relative; 196 | width: 70%; 197 | margin: var(--r-block-margin) auto; 198 | padding: 5px; 199 | font-style: italic; 200 | background: rgba(255, 255, 255, 0.05); 201 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); 202 | } 203 | 204 | .reveal blockquote p:first-child, 205 | .reveal blockquote p:last-child { 206 | display: inline-block; 207 | } 208 | 209 | .reveal q { 210 | font-style: italic; 211 | } 212 | 213 | .reveal pre { 214 | display: block; 215 | position: relative; 216 | width: 90%; 217 | margin: var(--r-block-margin) auto; 218 | text-align: left; 219 | font-size: 0.55em; 220 | font-family: var(--r-code-font); 221 | line-height: 1.2em; 222 | word-wrap: break-word; 223 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); 224 | } 225 | 226 | .reveal code { 227 | font-family: var(--r-code-font); 228 | text-transform: none; 229 | tab-size: 2; 230 | } 231 | 232 | .reveal pre code { 233 | display: block; 234 | padding: 5px; 235 | overflow: auto; 236 | max-height: 400px; 237 | word-wrap: normal; 238 | } 239 | 240 | .reveal .code-wrapper { 241 | white-space: normal; 242 | } 243 | 244 | .reveal .code-wrapper code { 245 | white-space: pre; 246 | } 247 | 248 | .reveal table { 249 | margin: auto; 250 | border-collapse: collapse; 251 | border-spacing: 0; 252 | } 253 | 254 | .reveal table th { 255 | font-weight: bold; 256 | } 257 | 258 | .reveal table th, 259 | .reveal table td { 260 | text-align: left; 261 | padding: 0.2em 0.5em 0.2em 0.5em; 262 | border-bottom: 1px solid; 263 | } 264 | 265 | .reveal table th[align=center], 266 | .reveal table td[align=center] { 267 | text-align: center; 268 | } 269 | 270 | .reveal table th[align=right], 271 | .reveal table td[align=right] { 272 | text-align: right; 273 | } 274 | 275 | .reveal table tbody tr:last-child th, 276 | .reveal table tbody tr:last-child td { 277 | border-bottom: none; 278 | } 279 | 280 | .reveal sup { 281 | vertical-align: super; 282 | font-size: smaller; 283 | } 284 | 285 | .reveal sub { 286 | vertical-align: sub; 287 | font-size: smaller; 288 | } 289 | 290 | .reveal small { 291 | display: inline-block; 292 | font-size: 0.6em; 293 | line-height: 1.2em; 294 | vertical-align: top; 295 | } 296 | 297 | .reveal small * { 298 | vertical-align: top; 299 | } 300 | 301 | .reveal img { 302 | margin: var(--r-block-margin) 0; 303 | } 304 | 305 | /********************************************* 306 | * LINKS 307 | *********************************************/ 308 | .reveal a { 309 | color: var(--r-link-color); 310 | text-decoration: none; 311 | transition: color 0.15s ease; 312 | } 313 | 314 | .reveal a:hover { 315 | color: var(--r-link-color-hover); 316 | text-shadow: none; 317 | border: none; 318 | } 319 | 320 | .reveal .roll span:after { 321 | color: #fff; 322 | background: var(--r-link-color-dark); 323 | } 324 | 325 | /********************************************* 326 | * Frame helper 327 | *********************************************/ 328 | .reveal .r-frame { 329 | border: 4px solid var(--r-main-color); 330 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); 331 | } 332 | 333 | .reveal a .r-frame { 334 | transition: all 0.15s linear; 335 | } 336 | 337 | .reveal a:hover .r-frame { 338 | border-color: var(--r-link-color); 339 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); 340 | } 341 | 342 | /********************************************* 343 | * NAVIGATION CONTROLS 344 | *********************************************/ 345 | .reveal .controls { 346 | color: var(--r-link-color); 347 | } 348 | 349 | /********************************************* 350 | * PROGRESS BAR 351 | *********************************************/ 352 | .reveal .progress { 353 | background: rgba(0, 0, 0, 0.2); 354 | color: var(--r-link-color); 355 | } 356 | 357 | /********************************************* 358 | * PRINT BACKGROUND 359 | *********************************************/ 360 | @media print { 361 | .backgrounds { 362 | background-color: var(--r-background-color); 363 | } 364 | } -------------------------------------------------------------------------------- /css/reveal/theme/black-contrast.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Black compact & high contrast reveal.js theme, with headers not in capitals. 3 | * 4 | * By Peter Kehl. Based on black.(s)css by Hakim El Hattab, http://hakim.se 5 | * 6 | * - Keep the source similar to black.css - for easy comparison. 7 | * - $mainFontSize controls code blocks, too (although under some ratio). 8 | */ 9 | @import url(./fonts/source-sans-pro/source-sans-pro.css); 10 | section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 { 11 | color: #000; 12 | } 13 | 14 | /********************************************* 15 | * GLOBAL STYLES 16 | *********************************************/ 17 | :root { 18 | --r-background-color: #000000; 19 | --r-main-font: Source Sans Pro, Helvetica, sans-serif; 20 | --r-main-font-size: 42px; 21 | --r-main-color: #fff; 22 | --r-block-margin: 20px; 23 | --r-heading-margin: 0 0 20px 0; 24 | --r-heading-font: Source Sans Pro, Helvetica, sans-serif; 25 | --r-heading-color: #fff; 26 | --r-heading-line-height: 1.2; 27 | --r-heading-letter-spacing: normal; 28 | --r-heading-text-transform: uppercase; 29 | --r-heading-text-shadow: none; 30 | --r-heading-font-weight: 600; 31 | --r-heading1-text-shadow: none; 32 | --r-heading1-size: 2.5em; 33 | --r-heading2-size: 1.6em; 34 | --r-heading3-size: 1.3em; 35 | --r-heading4-size: 1em; 36 | --r-code-font: monospace; 37 | --r-link-color: #42affa; 38 | --r-link-color-dark: #068de9; 39 | --r-link-color-hover: #8dcffc; 40 | --r-selection-background-color: #bee4fd; 41 | --r-selection-color: #fff; 42 | } 43 | 44 | .reveal-viewport { 45 | background: #000000; 46 | background-color: var(--r-background-color); 47 | } 48 | 49 | .reveal { 50 | font-family: var(--r-main-font); 51 | font-size: var(--r-main-font-size); 52 | font-weight: normal; 53 | color: var(--r-main-color); 54 | } 55 | 56 | .reveal ::selection { 57 | color: var(--r-selection-color); 58 | background: var(--r-selection-background-color); 59 | text-shadow: none; 60 | } 61 | 62 | .reveal ::-moz-selection { 63 | color: var(--r-selection-color); 64 | background: var(--r-selection-background-color); 65 | text-shadow: none; 66 | } 67 | 68 | .reveal .slides section, 69 | .reveal .slides section > section { 70 | line-height: 1.3; 71 | font-weight: inherit; 72 | } 73 | 74 | /********************************************* 75 | * HEADERS 76 | *********************************************/ 77 | .reveal h1, 78 | .reveal h2, 79 | .reveal h3, 80 | .reveal h4, 81 | .reveal h5, 82 | .reveal h6 { 83 | margin: var(--r-heading-margin); 84 | color: var(--r-heading-color); 85 | font-family: var(--r-heading-font); 86 | font-weight: var(--r-heading-font-weight); 87 | line-height: var(--r-heading-line-height); 88 | letter-spacing: var(--r-heading-letter-spacing); 89 | text-transform: var(--r-heading-text-transform); 90 | text-shadow: var(--r-heading-text-shadow); 91 | word-wrap: break-word; 92 | } 93 | 94 | .reveal h1 { 95 | font-size: var(--r-heading1-size); 96 | } 97 | 98 | .reveal h2 { 99 | font-size: var(--r-heading2-size); 100 | } 101 | 102 | .reveal h3 { 103 | font-size: var(--r-heading3-size); 104 | } 105 | 106 | .reveal h4 { 107 | font-size: var(--r-heading4-size); 108 | } 109 | 110 | .reveal h1 { 111 | text-shadow: var(--r-heading1-text-shadow); 112 | } 113 | 114 | /********************************************* 115 | * OTHER 116 | *********************************************/ 117 | .reveal p { 118 | margin: var(--r-block-margin) 0; 119 | line-height: 1.3; 120 | } 121 | 122 | /* Remove trailing margins after titles */ 123 | .reveal h1:last-child, 124 | .reveal h2:last-child, 125 | .reveal h3:last-child, 126 | .reveal h4:last-child, 127 | .reveal h5:last-child, 128 | .reveal h6:last-child { 129 | margin-bottom: 0; 130 | } 131 | 132 | /* Ensure certain elements are never larger than the slide itself */ 133 | .reveal img, 134 | .reveal video, 135 | .reveal iframe { 136 | max-width: 95%; 137 | max-height: 95%; 138 | } 139 | 140 | .reveal strong, 141 | .reveal b { 142 | font-weight: bold; 143 | } 144 | 145 | .reveal em { 146 | font-style: italic; 147 | } 148 | 149 | .reveal ol, 150 | .reveal dl, 151 | .reveal ul { 152 | display: inline-block; 153 | text-align: left; 154 | margin: 0 0 0 1em; 155 | } 156 | 157 | .reveal ol { 158 | list-style-type: decimal; 159 | } 160 | 161 | .reveal ul { 162 | list-style-type: disc; 163 | } 164 | 165 | .reveal ul ul { 166 | list-style-type: square; 167 | } 168 | 169 | .reveal ul ul ul { 170 | list-style-type: circle; 171 | } 172 | 173 | .reveal ul ul, 174 | .reveal ul ol, 175 | .reveal ol ol, 176 | .reveal ol ul { 177 | display: block; 178 | margin-left: 40px; 179 | } 180 | 181 | .reveal dt { 182 | font-weight: bold; 183 | } 184 | 185 | .reveal dd { 186 | margin-left: 40px; 187 | } 188 | 189 | .reveal blockquote { 190 | display: block; 191 | position: relative; 192 | width: 70%; 193 | margin: var(--r-block-margin) auto; 194 | padding: 5px; 195 | font-style: italic; 196 | background: rgba(255, 255, 255, 0.05); 197 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); 198 | } 199 | 200 | .reveal blockquote p:first-child, 201 | .reveal blockquote p:last-child { 202 | display: inline-block; 203 | } 204 | 205 | .reveal q { 206 | font-style: italic; 207 | } 208 | 209 | .reveal pre { 210 | display: block; 211 | position: relative; 212 | width: 90%; 213 | margin: var(--r-block-margin) auto; 214 | text-align: left; 215 | font-size: 0.55em; 216 | font-family: var(--r-code-font); 217 | line-height: 1.2em; 218 | word-wrap: break-word; 219 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); 220 | } 221 | 222 | .reveal code { 223 | font-family: var(--r-code-font); 224 | text-transform: none; 225 | tab-size: 2; 226 | } 227 | 228 | .reveal pre code { 229 | display: block; 230 | padding: 5px; 231 | overflow: auto; 232 | max-height: 400px; 233 | word-wrap: normal; 234 | } 235 | 236 | .reveal .code-wrapper { 237 | white-space: normal; 238 | } 239 | 240 | .reveal .code-wrapper code { 241 | white-space: pre; 242 | } 243 | 244 | .reveal table { 245 | margin: auto; 246 | border-collapse: collapse; 247 | border-spacing: 0; 248 | } 249 | 250 | .reveal table th { 251 | font-weight: bold; 252 | } 253 | 254 | .reveal table th, 255 | .reveal table td { 256 | text-align: left; 257 | padding: 0.2em 0.5em 0.2em 0.5em; 258 | border-bottom: 1px solid; 259 | } 260 | 261 | .reveal table th[align=center], 262 | .reveal table td[align=center] { 263 | text-align: center; 264 | } 265 | 266 | .reveal table th[align=right], 267 | .reveal table td[align=right] { 268 | text-align: right; 269 | } 270 | 271 | .reveal table tbody tr:last-child th, 272 | .reveal table tbody tr:last-child td { 273 | border-bottom: none; 274 | } 275 | 276 | .reveal sup { 277 | vertical-align: super; 278 | font-size: smaller; 279 | } 280 | 281 | .reveal sub { 282 | vertical-align: sub; 283 | font-size: smaller; 284 | } 285 | 286 | .reveal small { 287 | display: inline-block; 288 | font-size: 0.6em; 289 | line-height: 1.2em; 290 | vertical-align: top; 291 | } 292 | 293 | .reveal small * { 294 | vertical-align: top; 295 | } 296 | 297 | .reveal img { 298 | margin: var(--r-block-margin) 0; 299 | } 300 | 301 | /********************************************* 302 | * LINKS 303 | *********************************************/ 304 | .reveal a { 305 | color: var(--r-link-color); 306 | text-decoration: none; 307 | transition: color 0.15s ease; 308 | } 309 | 310 | .reveal a:hover { 311 | color: var(--r-link-color-hover); 312 | text-shadow: none; 313 | border: none; 314 | } 315 | 316 | .reveal .roll span:after { 317 | color: #fff; 318 | background: var(--r-link-color-dark); 319 | } 320 | 321 | /********************************************* 322 | * Frame helper 323 | *********************************************/ 324 | .reveal .r-frame { 325 | border: 4px solid var(--r-main-color); 326 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); 327 | } 328 | 329 | .reveal a .r-frame { 330 | transition: all 0.15s linear; 331 | } 332 | 333 | .reveal a:hover .r-frame { 334 | border-color: var(--r-link-color); 335 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); 336 | } 337 | 338 | /********************************************* 339 | * NAVIGATION CONTROLS 340 | *********************************************/ 341 | .reveal .controls { 342 | color: var(--r-link-color); 343 | } 344 | 345 | /********************************************* 346 | * PROGRESS BAR 347 | *********************************************/ 348 | .reveal .progress { 349 | background: rgba(0, 0, 0, 0.2); 350 | color: var(--r-link-color); 351 | } 352 | 353 | /********************************************* 354 | * PRINT BACKGROUND 355 | *********************************************/ 356 | @media print { 357 | .backgrounds { 358 | background-color: var(--r-background-color); 359 | } 360 | } -------------------------------------------------------------------------------- /css/reveal/theme/black.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Black theme for reveal.js. This is the opposite of the 'white' theme. 3 | * 4 | * Originally by Hakim El Hattab, http://hakim.se 5 | */ 6 | @import url(./fonts/source-sans-pro/source-sans-pro.css); 7 | section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 { 8 | color: #222; 9 | } 10 | 11 | /********************************************* 12 | * GLOBAL STYLES 13 | *********************************************/ 14 | :root { 15 | --r-background-color: #191919; 16 | --r-main-font: Source Sans Pro, Helvetica, sans-serif; 17 | --r-main-font-size: 36px; 18 | --r-main-color: #e8e8e8; 19 | --r-block-margin: 20px; 20 | --r-heading-margin: 0 auto 20px auto; 21 | --r-heading-font: Source Sans Pro, Helvetica, sans-serif; 22 | --r-heading-color: #e8e8e8; 23 | --r-heading-line-height: 1.2; 24 | --r-heading-letter-spacing: normal; 25 | --r-heading-text-transform: uppercase; 26 | --r-heading-text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5); 27 | --r-heading-font-weight: 600; 28 | --r-heading1-text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5); 29 | --r-heading1-size: 1.8em; 30 | --r-heading2-size: 1.6em; 31 | --r-heading3-size: 1.3em; 32 | --r-heading4-size: 1em; 33 | --r-code-font: monospace; 34 | --r-link-color: #42affa; 35 | --r-link-color-dark: #068de9; 36 | --r-link-color-hover: #8dcffc; 37 | --r-selection-background-color: rgba(66, 175, 250, 0.75); 38 | --r-selection-color: #fff; 39 | } 40 | 41 | .reveal-viewport { 42 | background: #191919; 43 | background-color: var(--r-background-color); 44 | } 45 | 46 | .slide-background-image { 47 | width: 100%; 48 | height: 100%; 49 | background-size: cover; 50 | position: absolute; 51 | z-index: 0; 52 | filter: blur(2px); 53 | overflow: hidden; 54 | } 55 | 56 | .slide-overlay { 57 | width: calc(100% - 24px); 58 | height: calc(100% - 24px); 59 | /*background: black;*/ 60 | position: absolute; 61 | top: 12px; 62 | left: 12px; 63 | opacity: 0.8; 64 | z-index: 2; 65 | } 66 | 67 | .reveal { 68 | font-family: var(--r-main-font); 69 | font-size: var(--r-main-font-size); 70 | font-weight: normal; 71 | color: var(--r-main-color); 72 | } 73 | 74 | .reveal ::selection { 75 | color: var(--r-selection-color); 76 | background: var(--r-selection-background-color); 77 | text-shadow: none; 78 | } 79 | 80 | .reveal ::-moz-selection { 81 | color: var(--r-selection-color); 82 | background: var(--r-selection-background-color); 83 | text-shadow: none; 84 | } 85 | 86 | .slides { 87 | z-index: 100 !important; 88 | text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5); 89 | } 90 | 91 | .reveal .slides section, 92 | .reveal .slides section > section { 93 | line-height: 1.3; 94 | font-weight: inherit; 95 | /*background: rgba(0, 0, 0, 0.75);*/ 96 | top: 20px !important; 97 | padding: 20px 0; 98 | } 99 | 100 | /********************************************* 101 | * HEADERS 102 | *********************************************/ 103 | .reveal h1, 104 | .reveal h2, 105 | .reveal h3, 106 | .reveal h4, 107 | .reveal h5, 108 | .reveal h6 { 109 | max-width: 95%; 110 | margin: var(--r-heading-margin); 111 | color: var(--r-heading-color); 112 | font-family: var(--r-heading-font); 113 | font-weight: var(--r-heading-font-weight); 114 | line-height: var(--r-heading-line-height); 115 | letter-spacing: var(--r-heading-letter-spacing); 116 | text-transform: var(--r-heading-text-transform); 117 | text-shadow: var(--r-heading-text-shadow); 118 | word-wrap: break-word; 119 | } 120 | 121 | .reveal h1 { 122 | font-size: var(--r-heading1-size); 123 | } 124 | 125 | .reveal h2 { 126 | font-size: var(--r-heading2-size); 127 | } 128 | 129 | .reveal h3 { 130 | font-size: var(--r-heading3-size); 131 | } 132 | 133 | .reveal h4 { 134 | font-size: var(--r-heading4-size); 135 | } 136 | 137 | .reveal h1 { 138 | text-shadow: var(--r-heading1-text-shadow); 139 | } 140 | 141 | /********************************************* 142 | * OTHER 143 | *********************************************/ 144 | .reveal p { 145 | margin: var(--r-block-margin) 0; 146 | line-height: 1.3; 147 | } 148 | 149 | /* Remove trailing margins after titles */ 150 | .reveal h1:last-child, 151 | .reveal h2:last-child, 152 | .reveal h3:last-child, 153 | .reveal h4:last-child, 154 | .reveal h5:last-child, 155 | .reveal h6:last-child { 156 | margin-bottom: 0; 157 | } 158 | 159 | /* Ensure certain elements are never larger than the slide itself */ 160 | .reveal img, 161 | .reveal video, 162 | .reveal iframe { 163 | max-width: 95%; 164 | max-height: 95%; 165 | } 166 | 167 | .reveal strong, 168 | .reveal b { 169 | font-weight: bold; 170 | } 171 | 172 | .reveal em { 173 | font-style: italic; 174 | } 175 | 176 | .reveal ol, 177 | .reveal dl, 178 | .reveal ul { 179 | max-width: 85%; 180 | display: inline-block; 181 | text-align: left; 182 | margin: 0 0 0 1em; 183 | } 184 | 185 | .reveal ol { 186 | list-style-type: decimal; 187 | } 188 | 189 | .reveal ul { 190 | list-style-type: disc; 191 | } 192 | 193 | .reveal ul ul { 194 | list-style-type: square; 195 | } 196 | 197 | .reveal ul ul ul { 198 | list-style-type: circle; 199 | } 200 | 201 | .reveal ul ul, 202 | .reveal ul ol, 203 | .reveal ol ol, 204 | .reveal ol ul { 205 | display: block; 206 | margin-left: 40px; 207 | } 208 | 209 | .reveal dt { 210 | font-weight: bold; 211 | } 212 | 213 | .reveal dd { 214 | margin-left: 40px; 215 | } 216 | 217 | .reveal blockquote { 218 | display: block; 219 | position: relative; 220 | width: 70%; 221 | margin: var(--r-block-margin) auto; 222 | background: rgba(24, 24, 24, 0.9); 223 | box-shadow: 0 0 2px rgba(0, 0, 0, 0.2); 224 | padding: 10px 20px 10px 30px; 225 | border-left: 8px solid rgba(255, 255, 255, 0.3); 226 | text-align: left; 227 | font-size: calc(var(--r-main-font-size) - 8px); 228 | } 229 | 230 | .reveal blockquote p:first-child, 231 | .reveal blockquote p:last-child { 232 | display: inline-block; 233 | } 234 | 235 | .reveal q { 236 | font-style: italic; 237 | } 238 | 239 | .reveal pre { 240 | display: block; 241 | border-radius: 6px; 242 | position: relative; 243 | width: max-content; 244 | min-width: 60%; 245 | margin: var(--r-block-margin) auto; 246 | text-align: left; 247 | font-size: 0.55em; 248 | font-family: var(--r-code-font); 249 | line-height: 1.2em; 250 | word-wrap: break-word; 251 | text-shadow: var(--r-heading-text-shadow); 252 | box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5); 253 | background: rgba(24, 24, 24, 0.9) !important; 254 | } 255 | 256 | .reveal code { 257 | font-family: var(--r-code-font); 258 | text-transform: none; 259 | tab-size: 2; 260 | } 261 | 262 | .reveal pre code { 263 | display: block; 264 | padding: 12px; 265 | overflow: auto; 266 | max-height: 400px; 267 | word-wrap: normal; 268 | } 269 | 270 | .reveal pre code span { 271 | line-height: 1.2; 272 | } 273 | 274 | .hljs { 275 | background: rgba(24, 24, 24, 0.0) !important; 276 | } 277 | 278 | .reveal .code-wrapper { 279 | white-space: normal; 280 | } 281 | 282 | .reveal .code-wrapper code { 283 | white-space: pre; 284 | min-width: fit-content; 285 | } 286 | 287 | .reveal table { 288 | margin: auto; 289 | border-collapse: collapse; 290 | border-spacing: 0; 291 | } 292 | 293 | .reveal table th { 294 | font-weight: bold; 295 | } 296 | 297 | .reveal table th, 298 | .reveal table td { 299 | text-align: left; 300 | padding: 0.2em 0.5em 0.2em 0.5em; 301 | border-bottom: 1px solid; 302 | } 303 | 304 | .reveal table th[align=center], 305 | .reveal table td[align=center] { 306 | text-align: center; 307 | } 308 | 309 | .reveal table th[align=right], 310 | .reveal table td[align=right] { 311 | text-align: right; 312 | } 313 | 314 | .reveal table tbody tr:last-child th, 315 | .reveal table tbody tr:last-child td { 316 | border-bottom: none; 317 | } 318 | 319 | .reveal sup { 320 | vertical-align: super; 321 | font-size: smaller; 322 | } 323 | 324 | .reveal sub { 325 | vertical-align: sub; 326 | font-size: smaller; 327 | } 328 | 329 | .reveal small { 330 | display: inline-block; 331 | font-size: 0.6em; 332 | line-height: 1.2em; 333 | vertical-align: top; 334 | } 335 | 336 | .reveal small * { 337 | vertical-align: top; 338 | } 339 | 340 | .reveal img { 341 | margin: var(--r-block-margin) 0; 342 | } 343 | 344 | /********************************************* 345 | * LINKS 346 | *********************************************/ 347 | .reveal a { 348 | color: var(--r-link-color); 349 | text-decoration: none; 350 | transition: color 0.15s ease; 351 | } 352 | 353 | .reveal a:hover { 354 | color: var(--r-link-color-hover); 355 | text-shadow: none; 356 | border: none; 357 | } 358 | 359 | .reveal .roll span:after { 360 | color: #fff; 361 | background: var(--r-link-color-dark); 362 | } 363 | 364 | /********************************************* 365 | * Frame helper 366 | *********************************************/ 367 | .reveal .r-frame { 368 | border: 4px solid var(--r-main-color); 369 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); 370 | } 371 | 372 | .reveal a .r-frame { 373 | transition: all 0.15s linear; 374 | } 375 | 376 | .reveal a:hover .r-frame { 377 | border-color: var(--r-link-color); 378 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); 379 | } 380 | 381 | /********************************************* 382 | * NAVIGATION CONTROLS 383 | *********************************************/ 384 | .reveal .controls { 385 | color: var(--r-link-color); 386 | } 387 | 388 | /********************************************* 389 | * PROGRESS BAR 390 | *********************************************/ 391 | .reveal .progress { 392 | background: rgba(0, 0, 0, 0.2); 393 | color: var(--r-link-color); 394 | } 395 | 396 | /********************************************* 397 | * PRINT BACKGROUND 398 | *********************************************/ 399 | @media print { 400 | .backgrounds { 401 | background-color: var(--r-background-color); 402 | } 403 | } 404 | -------------------------------------------------------------------------------- /css/reveal/theme/blood.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Blood theme for reveal.js 3 | * Author: Walther http://github.com/Walther 4 | * 5 | * Designed to be used with highlight.js theme 6 | * "monokai_sublime.css" available from 7 | * https://github.com/isagalaev/highlight.js/ 8 | * 9 | * For other themes, change $codeBackground accordingly. 10 | * 11 | */ 12 | @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic); 13 | section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 { 14 | color: #222; 15 | } 16 | 17 | /********************************************* 18 | * GLOBAL STYLES 19 | *********************************************/ 20 | :root { 21 | --r-background-color: #222; 22 | --r-main-font: Ubuntu, sans-serif; 23 | --r-main-font-size: 40px; 24 | --r-main-color: #eee; 25 | --r-block-margin: 20px; 26 | --r-heading-margin: 0 0 20px 0; 27 | --r-heading-font: Ubuntu, sans-serif; 28 | --r-heading-color: #eee; 29 | --r-heading-line-height: 1.2; 30 | --r-heading-letter-spacing: normal; 31 | --r-heading-text-transform: uppercase; 32 | --r-heading-text-shadow: 2px 2px 2px #222; 33 | --r-heading-font-weight: normal; 34 | --r-heading1-text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); 35 | --r-heading1-size: 3.77em; 36 | --r-heading2-size: 2.11em; 37 | --r-heading3-size: 1.55em; 38 | --r-heading4-size: 1em; 39 | --r-code-font: monospace; 40 | --r-link-color: #a23; 41 | --r-link-color-dark: #6a1520; 42 | --r-link-color-hover: #dd5566; 43 | --r-selection-background-color: #a23; 44 | --r-selection-color: #fff; 45 | } 46 | 47 | .reveal-viewport { 48 | background: #222; 49 | background-color: var(--r-background-color); 50 | } 51 | 52 | .reveal { 53 | font-family: var(--r-main-font); 54 | font-size: var(--r-main-font-size); 55 | font-weight: normal; 56 | color: var(--r-main-color); 57 | } 58 | 59 | .reveal ::selection { 60 | color: var(--r-selection-color); 61 | background: var(--r-selection-background-color); 62 | text-shadow: none; 63 | } 64 | 65 | .reveal ::-moz-selection { 66 | color: var(--r-selection-color); 67 | background: var(--r-selection-background-color); 68 | text-shadow: none; 69 | } 70 | 71 | .reveal .slides section, 72 | .reveal .slides section > section { 73 | line-height: 1.3; 74 | font-weight: inherit; 75 | } 76 | 77 | /********************************************* 78 | * HEADERS 79 | *********************************************/ 80 | .reveal h1, 81 | .reveal h2, 82 | .reveal h3, 83 | .reveal h4, 84 | .reveal h5, 85 | .reveal h6 { 86 | margin: var(--r-heading-margin); 87 | color: var(--r-heading-color); 88 | font-family: var(--r-heading-font); 89 | font-weight: var(--r-heading-font-weight); 90 | line-height: var(--r-heading-line-height); 91 | letter-spacing: var(--r-heading-letter-spacing); 92 | text-transform: var(--r-heading-text-transform); 93 | text-shadow: var(--r-heading-text-shadow); 94 | word-wrap: break-word; 95 | } 96 | 97 | .reveal h1 { 98 | font-size: var(--r-heading1-size); 99 | } 100 | 101 | .reveal h2 { 102 | font-size: var(--r-heading2-size); 103 | } 104 | 105 | .reveal h3 { 106 | font-size: var(--r-heading3-size); 107 | } 108 | 109 | .reveal h4 { 110 | font-size: var(--r-heading4-size); 111 | } 112 | 113 | .reveal h1 { 114 | text-shadow: var(--r-heading1-text-shadow); 115 | } 116 | 117 | /********************************************* 118 | * OTHER 119 | *********************************************/ 120 | .reveal p { 121 | margin: var(--r-block-margin) 0; 122 | line-height: 1.3; 123 | } 124 | 125 | /* Remove trailing margins after titles */ 126 | .reveal h1:last-child, 127 | .reveal h2:last-child, 128 | .reveal h3:last-child, 129 | .reveal h4:last-child, 130 | .reveal h5:last-child, 131 | .reveal h6:last-child { 132 | margin-bottom: 0; 133 | } 134 | 135 | /* Ensure certain elements are never larger than the slide itself */ 136 | .reveal img, 137 | .reveal video, 138 | .reveal iframe { 139 | max-width: 95%; 140 | max-height: 95%; 141 | } 142 | 143 | .reveal strong, 144 | .reveal b { 145 | font-weight: bold; 146 | } 147 | 148 | .reveal em { 149 | font-style: italic; 150 | } 151 | 152 | .reveal ol, 153 | .reveal dl, 154 | .reveal ul { 155 | display: inline-block; 156 | text-align: left; 157 | margin: 0 0 0 1em; 158 | } 159 | 160 | .reveal ol { 161 | list-style-type: decimal; 162 | } 163 | 164 | .reveal ul { 165 | list-style-type: disc; 166 | } 167 | 168 | .reveal ul ul { 169 | list-style-type: square; 170 | } 171 | 172 | .reveal ul ul ul { 173 | list-style-type: circle; 174 | } 175 | 176 | .reveal ul ul, 177 | .reveal ul ol, 178 | .reveal ol ol, 179 | .reveal ol ul { 180 | display: block; 181 | margin-left: 40px; 182 | } 183 | 184 | .reveal dt { 185 | font-weight: bold; 186 | } 187 | 188 | .reveal dd { 189 | margin-left: 40px; 190 | } 191 | 192 | .reveal blockquote { 193 | display: block; 194 | position: relative; 195 | width: 70%; 196 | margin: var(--r-block-margin) auto; 197 | padding: 5px; 198 | font-style: italic; 199 | background: rgba(255, 255, 255, 0.05); 200 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); 201 | } 202 | 203 | .reveal blockquote p:first-child, 204 | .reveal blockquote p:last-child { 205 | display: inline-block; 206 | } 207 | 208 | .reveal q { 209 | font-style: italic; 210 | } 211 | 212 | .reveal pre { 213 | display: block; 214 | position: relative; 215 | width: 90%; 216 | margin: var(--r-block-margin) auto; 217 | text-align: left; 218 | font-size: 0.55em; 219 | font-family: var(--r-code-font); 220 | line-height: 1.2em; 221 | word-wrap: break-word; 222 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); 223 | } 224 | 225 | .reveal code { 226 | font-family: var(--r-code-font); 227 | text-transform: none; 228 | tab-size: 2; 229 | } 230 | 231 | .reveal pre code { 232 | display: block; 233 | padding: 5px; 234 | overflow: auto; 235 | max-height: 400px; 236 | word-wrap: normal; 237 | } 238 | 239 | .reveal .code-wrapper { 240 | white-space: normal; 241 | } 242 | 243 | .reveal .code-wrapper code { 244 | white-space: pre; 245 | } 246 | 247 | .reveal table { 248 | margin: auto; 249 | border-collapse: collapse; 250 | border-spacing: 0; 251 | } 252 | 253 | .reveal table th { 254 | font-weight: bold; 255 | } 256 | 257 | .reveal table th, 258 | .reveal table td { 259 | text-align: left; 260 | padding: 0.2em 0.5em 0.2em 0.5em; 261 | border-bottom: 1px solid; 262 | } 263 | 264 | .reveal table th[align=center], 265 | .reveal table td[align=center] { 266 | text-align: center; 267 | } 268 | 269 | .reveal table th[align=right], 270 | .reveal table td[align=right] { 271 | text-align: right; 272 | } 273 | 274 | .reveal table tbody tr:last-child th, 275 | .reveal table tbody tr:last-child td { 276 | border-bottom: none; 277 | } 278 | 279 | .reveal sup { 280 | vertical-align: super; 281 | font-size: smaller; 282 | } 283 | 284 | .reveal sub { 285 | vertical-align: sub; 286 | font-size: smaller; 287 | } 288 | 289 | .reveal small { 290 | display: inline-block; 291 | font-size: 0.6em; 292 | line-height: 1.2em; 293 | vertical-align: top; 294 | } 295 | 296 | .reveal small * { 297 | vertical-align: top; 298 | } 299 | 300 | .reveal img { 301 | margin: var(--r-block-margin) 0; 302 | } 303 | 304 | /********************************************* 305 | * LINKS 306 | *********************************************/ 307 | .reveal a { 308 | color: var(--r-link-color); 309 | text-decoration: none; 310 | transition: color 0.15s ease; 311 | } 312 | 313 | .reveal a:hover { 314 | color: var(--r-link-color-hover); 315 | text-shadow: none; 316 | border: none; 317 | } 318 | 319 | .reveal .roll span:after { 320 | color: #fff; 321 | background: var(--r-link-color-dark); 322 | } 323 | 324 | /********************************************* 325 | * Frame helper 326 | *********************************************/ 327 | .reveal .r-frame { 328 | border: 4px solid var(--r-main-color); 329 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); 330 | } 331 | 332 | .reveal a .r-frame { 333 | transition: all 0.15s linear; 334 | } 335 | 336 | .reveal a:hover .r-frame { 337 | border-color: var(--r-link-color); 338 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); 339 | } 340 | 341 | /********************************************* 342 | * NAVIGATION CONTROLS 343 | *********************************************/ 344 | .reveal .controls { 345 | color: var(--r-link-color); 346 | } 347 | 348 | /********************************************* 349 | * PROGRESS BAR 350 | *********************************************/ 351 | .reveal .progress { 352 | background: rgba(0, 0, 0, 0.2); 353 | color: var(--r-link-color); 354 | } 355 | 356 | /********************************************* 357 | * PRINT BACKGROUND 358 | *********************************************/ 359 | @media print { 360 | .backgrounds { 361 | background-color: var(--r-background-color); 362 | } 363 | } 364 | .reveal p { 365 | font-weight: 300; 366 | text-shadow: 1px 1px #222; 367 | } 368 | 369 | section.has-light-background p, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4 { 370 | text-shadow: none; 371 | } 372 | 373 | .reveal h1, 374 | .reveal h2, 375 | .reveal h3, 376 | .reveal h4, 377 | .reveal h5, 378 | .reveal h6 { 379 | font-weight: 700; 380 | } 381 | 382 | .reveal p code { 383 | background-color: #23241f; 384 | display: inline-block; 385 | border-radius: 7px; 386 | } 387 | 388 | .reveal small code { 389 | vertical-align: baseline; 390 | } -------------------------------------------------------------------------------- /css/reveal/theme/fonts/league-gothic/LICENSE: -------------------------------------------------------------------------------- 1 | SIL Open Font License (OFL) 2 | http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL 3 | -------------------------------------------------------------------------------- /css/reveal/theme/fonts/league-gothic/league-gothic.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'League Gothic'; 3 | src: url('./league-gothic.eot'); 4 | src: url('./league-gothic.eot?#iefix') format('embedded-opentype'), 5 | url('./league-gothic.woff') format('woff'), 6 | url('./league-gothic.ttf') format('truetype'); 7 | 8 | font-weight: normal; 9 | font-style: normal; 10 | } 11 | -------------------------------------------------------------------------------- /css/reveal/theme/fonts/league-gothic/league-gothic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/league-gothic/league-gothic.eot -------------------------------------------------------------------------------- /css/reveal/theme/fonts/league-gothic/league-gothic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/league-gothic/league-gothic.ttf -------------------------------------------------------------------------------- /css/reveal/theme/fonts/league-gothic/league-gothic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/league-gothic/league-gothic.woff -------------------------------------------------------------------------------- /css/reveal/theme/fonts/source-sans-pro/LICENSE: -------------------------------------------------------------------------------- 1 | SIL Open Font License 2 | 3 | Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. 4 | 5 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 6 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 7 | 8 | —————————————————————————————- 9 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 10 | —————————————————————————————- 11 | 12 | PREAMBLE 13 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. 14 | 15 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. 16 | 17 | DEFINITIONS 18 | “Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. 19 | 20 | “Reserved Font Name” refers to any names specified as such after the copyright statement(s). 21 | 22 | “Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s). 23 | 24 | “Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. 25 | 26 | “Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. 27 | 28 | PERMISSION & CONDITIONS 29 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 30 | 31 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 32 | 33 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 34 | 35 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 36 | 37 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 38 | 39 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. 40 | 41 | TERMINATION 42 | This license becomes null and void if any of the above conditions are not met. 43 | 44 | DISCLAIMER 45 | THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -------------------------------------------------------------------------------- /css/reveal/theme/fonts/source-sans-pro/source-sans-pro-italic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/source-sans-pro/source-sans-pro-italic.eot -------------------------------------------------------------------------------- /css/reveal/theme/fonts/source-sans-pro/source-sans-pro-italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/source-sans-pro/source-sans-pro-italic.ttf -------------------------------------------------------------------------------- /css/reveal/theme/fonts/source-sans-pro/source-sans-pro-italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/source-sans-pro/source-sans-pro-italic.woff -------------------------------------------------------------------------------- /css/reveal/theme/fonts/source-sans-pro/source-sans-pro-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/source-sans-pro/source-sans-pro-regular.eot -------------------------------------------------------------------------------- /css/reveal/theme/fonts/source-sans-pro/source-sans-pro-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/source-sans-pro/source-sans-pro-regular.ttf -------------------------------------------------------------------------------- /css/reveal/theme/fonts/source-sans-pro/source-sans-pro-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/source-sans-pro/source-sans-pro-regular.woff -------------------------------------------------------------------------------- /css/reveal/theme/fonts/source-sans-pro/source-sans-pro-semibold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/source-sans-pro/source-sans-pro-semibold.eot -------------------------------------------------------------------------------- /css/reveal/theme/fonts/source-sans-pro/source-sans-pro-semibold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/source-sans-pro/source-sans-pro-semibold.ttf -------------------------------------------------------------------------------- /css/reveal/theme/fonts/source-sans-pro/source-sans-pro-semibold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/source-sans-pro/source-sans-pro-semibold.woff -------------------------------------------------------------------------------- /css/reveal/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.eot -------------------------------------------------------------------------------- /css/reveal/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf -------------------------------------------------------------------------------- /css/reveal/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/css/reveal/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff -------------------------------------------------------------------------------- /css/reveal/theme/fonts/source-sans-pro/source-sans-pro.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Source Sans Pro'; 3 | src: url('./source-sans-pro-regular.eot'); 4 | src: url('./source-sans-pro-regular.eot?#iefix') format('embedded-opentype'), 5 | url('./source-sans-pro-regular.woff') format('woff'), 6 | url('./source-sans-pro-regular.ttf') format('truetype'); 7 | font-weight: normal; 8 | font-style: normal; 9 | } 10 | 11 | @font-face { 12 | font-family: 'Source Sans Pro'; 13 | src: url('./source-sans-pro-italic.eot'); 14 | src: url('./source-sans-pro-italic.eot?#iefix') format('embedded-opentype'), 15 | url('./source-sans-pro-italic.woff') format('woff'), 16 | url('./source-sans-pro-italic.ttf') format('truetype'); 17 | font-weight: normal; 18 | font-style: italic; 19 | } 20 | 21 | @font-face { 22 | font-family: 'Source Sans Pro'; 23 | src: url('./source-sans-pro-semibold.eot'); 24 | src: url('./source-sans-pro-semibold.eot?#iefix') format('embedded-opentype'), 25 | url('./source-sans-pro-semibold.woff') format('woff'), 26 | url('./source-sans-pro-semibold.ttf') format('truetype'); 27 | font-weight: 600; 28 | font-style: normal; 29 | } 30 | 31 | @font-face { 32 | font-family: 'Source Sans Pro'; 33 | src: url('./source-sans-pro-semibolditalic.eot'); 34 | src: url('./source-sans-pro-semibolditalic.eot?#iefix') format('embedded-opentype'), 35 | url('./source-sans-pro-semibolditalic.woff') format('woff'), 36 | url('./source-sans-pro-semibolditalic.ttf') format('truetype'); 37 | font-weight: 600; 38 | font-style: italic; 39 | } 40 | -------------------------------------------------------------------------------- /css/reveal/theme/league.css: -------------------------------------------------------------------------------- 1 | /** 2 | * League theme for reveal.js. 3 | * 4 | * This was the default theme pre-3.0.0. 5 | * 6 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 7 | */ 8 | @import url(./fonts/league-gothic/league-gothic.css); 9 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 10 | section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 { 11 | color: #222; 12 | } 13 | 14 | /********************************************* 15 | * GLOBAL STYLES 16 | *********************************************/ 17 | :root { 18 | --r-background-color: #2b2b2b; 19 | --r-main-font: Lato, sans-serif; 20 | --r-main-font-size: 40px; 21 | --r-main-color: #eee; 22 | --r-block-margin: 20px; 23 | --r-heading-margin: 0 0 20px 0; 24 | --r-heading-font: League Gothic, Impact, sans-serif; 25 | --r-heading-color: #eee; 26 | --r-heading-line-height: 1.2; 27 | --r-heading-letter-spacing: normal; 28 | --r-heading-text-transform: uppercase; 29 | --r-heading-text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); 30 | --r-heading-font-weight: normal; 31 | --r-heading1-text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); 32 | --r-heading1-size: 3.77em; 33 | --r-heading2-size: 2.11em; 34 | --r-heading3-size: 1.55em; 35 | --r-heading4-size: 1em; 36 | --r-code-font: monospace; 37 | --r-link-color: #13DAEC; 38 | --r-link-color-dark: #0d99a5; 39 | --r-link-color-hover: #71e9f4; 40 | --r-selection-background-color: #FF5E99; 41 | --r-selection-color: #fff; 42 | } 43 | 44 | .reveal-viewport { 45 | background: #1c1e20; 46 | background: -moz-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%); 47 | background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #555a5f), color-stop(100%, #1c1e20)); 48 | background: -webkit-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%); 49 | background: -o-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%); 50 | background: -ms-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%); 51 | background: radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%); 52 | background-color: var(--r-background-color); 53 | } 54 | 55 | .reveal { 56 | font-family: var(--r-main-font); 57 | font-size: var(--r-main-font-size); 58 | font-weight: normal; 59 | color: var(--r-main-color); 60 | } 61 | 62 | .reveal ::selection { 63 | color: var(--r-selection-color); 64 | background: var(--r-selection-background-color); 65 | text-shadow: none; 66 | } 67 | 68 | .reveal ::-moz-selection { 69 | color: var(--r-selection-color); 70 | background: var(--r-selection-background-color); 71 | text-shadow: none; 72 | } 73 | 74 | .reveal .slides section, 75 | .reveal .slides section > section { 76 | line-height: 1.3; 77 | font-weight: inherit; 78 | } 79 | 80 | /********************************************* 81 | * HEADERS 82 | *********************************************/ 83 | .reveal h1, 84 | .reveal h2, 85 | .reveal h3, 86 | .reveal h4, 87 | .reveal h5, 88 | .reveal h6 { 89 | margin: var(--r-heading-margin); 90 | color: var(--r-heading-color); 91 | font-family: var(--r-heading-font); 92 | font-weight: var(--r-heading-font-weight); 93 | line-height: var(--r-heading-line-height); 94 | letter-spacing: var(--r-heading-letter-spacing); 95 | text-transform: var(--r-heading-text-transform); 96 | text-shadow: var(--r-heading-text-shadow); 97 | word-wrap: break-word; 98 | } 99 | 100 | .reveal h1 { 101 | font-size: var(--r-heading1-size); 102 | } 103 | 104 | .reveal h2 { 105 | font-size: var(--r-heading2-size); 106 | } 107 | 108 | .reveal h3 { 109 | font-size: var(--r-heading3-size); 110 | } 111 | 112 | .reveal h4 { 113 | font-size: var(--r-heading4-size); 114 | } 115 | 116 | .reveal h1 { 117 | text-shadow: var(--r-heading1-text-shadow); 118 | } 119 | 120 | /********************************************* 121 | * OTHER 122 | *********************************************/ 123 | .reveal p { 124 | margin: var(--r-block-margin) 0; 125 | line-height: 1.3; 126 | } 127 | 128 | /* Remove trailing margins after titles */ 129 | .reveal h1:last-child, 130 | .reveal h2:last-child, 131 | .reveal h3:last-child, 132 | .reveal h4:last-child, 133 | .reveal h5:last-child, 134 | .reveal h6:last-child { 135 | margin-bottom: 0; 136 | } 137 | 138 | /* Ensure certain elements are never larger than the slide itself */ 139 | .reveal img, 140 | .reveal video, 141 | .reveal iframe { 142 | max-width: 95%; 143 | max-height: 95%; 144 | } 145 | 146 | .reveal strong, 147 | .reveal b { 148 | font-weight: bold; 149 | } 150 | 151 | .reveal em { 152 | font-style: italic; 153 | } 154 | 155 | .reveal ol, 156 | .reveal dl, 157 | .reveal ul { 158 | display: inline-block; 159 | text-align: left; 160 | margin: 0 0 0 1em; 161 | } 162 | 163 | .reveal ol { 164 | list-style-type: decimal; 165 | } 166 | 167 | .reveal ul { 168 | list-style-type: disc; 169 | } 170 | 171 | .reveal ul ul { 172 | list-style-type: square; 173 | } 174 | 175 | .reveal ul ul ul { 176 | list-style-type: circle; 177 | } 178 | 179 | .reveal ul ul, 180 | .reveal ul ol, 181 | .reveal ol ol, 182 | .reveal ol ul { 183 | display: block; 184 | margin-left: 40px; 185 | } 186 | 187 | .reveal dt { 188 | font-weight: bold; 189 | } 190 | 191 | .reveal dd { 192 | margin-left: 40px; 193 | } 194 | 195 | .reveal blockquote { 196 | display: block; 197 | position: relative; 198 | width: 70%; 199 | margin: var(--r-block-margin) auto; 200 | padding: 5px; 201 | font-style: italic; 202 | background: rgba(255, 255, 255, 0.05); 203 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); 204 | } 205 | 206 | .reveal blockquote p:first-child, 207 | .reveal blockquote p:last-child { 208 | display: inline-block; 209 | } 210 | 211 | .reveal q { 212 | font-style: italic; 213 | } 214 | 215 | .reveal pre { 216 | display: block; 217 | position: relative; 218 | width: 90%; 219 | margin: var(--r-block-margin) auto; 220 | text-align: left; 221 | font-size: 0.55em; 222 | font-family: var(--r-code-font); 223 | line-height: 1.2em; 224 | word-wrap: break-word; 225 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); 226 | } 227 | 228 | .reveal code { 229 | font-family: var(--r-code-font); 230 | text-transform: none; 231 | tab-size: 2; 232 | } 233 | 234 | .reveal pre code { 235 | display: block; 236 | padding: 5px; 237 | overflow: auto; 238 | max-height: 400px; 239 | word-wrap: normal; 240 | } 241 | 242 | .reveal .code-wrapper { 243 | white-space: normal; 244 | } 245 | 246 | .reveal .code-wrapper code { 247 | white-space: pre; 248 | } 249 | 250 | .reveal table { 251 | margin: auto; 252 | border-collapse: collapse; 253 | border-spacing: 0; 254 | } 255 | 256 | .reveal table th { 257 | font-weight: bold; 258 | } 259 | 260 | .reveal table th, 261 | .reveal table td { 262 | text-align: left; 263 | padding: 0.2em 0.5em 0.2em 0.5em; 264 | border-bottom: 1px solid; 265 | } 266 | 267 | .reveal table th[align=center], 268 | .reveal table td[align=center] { 269 | text-align: center; 270 | } 271 | 272 | .reveal table th[align=right], 273 | .reveal table td[align=right] { 274 | text-align: right; 275 | } 276 | 277 | .reveal table tbody tr:last-child th, 278 | .reveal table tbody tr:last-child td { 279 | border-bottom: none; 280 | } 281 | 282 | .reveal sup { 283 | vertical-align: super; 284 | font-size: smaller; 285 | } 286 | 287 | .reveal sub { 288 | vertical-align: sub; 289 | font-size: smaller; 290 | } 291 | 292 | .reveal small { 293 | display: inline-block; 294 | font-size: 0.6em; 295 | line-height: 1.2em; 296 | vertical-align: top; 297 | } 298 | 299 | .reveal small * { 300 | vertical-align: top; 301 | } 302 | 303 | .reveal img { 304 | margin: var(--r-block-margin) 0; 305 | } 306 | 307 | /********************************************* 308 | * LINKS 309 | *********************************************/ 310 | .reveal a { 311 | color: var(--r-link-color); 312 | text-decoration: none; 313 | transition: color 0.15s ease; 314 | } 315 | 316 | .reveal a:hover { 317 | color: var(--r-link-color-hover); 318 | text-shadow: none; 319 | border: none; 320 | } 321 | 322 | .reveal .roll span:after { 323 | color: #fff; 324 | background: var(--r-link-color-dark); 325 | } 326 | 327 | /********************************************* 328 | * Frame helper 329 | *********************************************/ 330 | .reveal .r-frame { 331 | border: 4px solid var(--r-main-color); 332 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); 333 | } 334 | 335 | .reveal a .r-frame { 336 | transition: all 0.15s linear; 337 | } 338 | 339 | .reveal a:hover .r-frame { 340 | border-color: var(--r-link-color); 341 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); 342 | } 343 | 344 | /********************************************* 345 | * NAVIGATION CONTROLS 346 | *********************************************/ 347 | .reveal .controls { 348 | color: var(--r-link-color); 349 | } 350 | 351 | /********************************************* 352 | * PROGRESS BAR 353 | *********************************************/ 354 | .reveal .progress { 355 | background: rgba(0, 0, 0, 0.2); 356 | color: var(--r-link-color); 357 | } 358 | 359 | /********************************************* 360 | * PRINT BACKGROUND 361 | *********************************************/ 362 | @media print { 363 | .backgrounds { 364 | background-color: var(--r-background-color); 365 | } 366 | } -------------------------------------------------------------------------------- /css/reveal/theme/moon.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Solarized Dark theme for reveal.js. 3 | * Author: Achim Staebler 4 | */ 5 | @import url(./fonts/league-gothic/league-gothic.css); 6 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 7 | /** 8 | * Solarized colors by Ethan Schoonover 9 | */ 10 | html * { 11 | color-profile: sRGB; 12 | rendering-intent: auto; 13 | } 14 | 15 | section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 { 16 | color: #222; 17 | } 18 | 19 | /********************************************* 20 | * GLOBAL STYLES 21 | *********************************************/ 22 | :root { 23 | --r-background-color: #002b36; 24 | --r-main-font: Lato, sans-serif; 25 | --r-main-font-size: 40px; 26 | --r-main-color: #93a1a1; 27 | --r-block-margin: 20px; 28 | --r-heading-margin: 0 0 20px 0; 29 | --r-heading-font: League Gothic, Impact, sans-serif; 30 | --r-heading-color: #eee8d5; 31 | --r-heading-line-height: 1.2; 32 | --r-heading-letter-spacing: normal; 33 | --r-heading-text-transform: uppercase; 34 | --r-heading-text-shadow: none; 35 | --r-heading-font-weight: normal; 36 | --r-heading1-text-shadow: none; 37 | --r-heading1-size: 3.77em; 38 | --r-heading2-size: 2.11em; 39 | --r-heading3-size: 1.55em; 40 | --r-heading4-size: 1em; 41 | --r-code-font: monospace; 42 | --r-link-color: #268bd2; 43 | --r-link-color-dark: #1a6091; 44 | --r-link-color-hover: #78b9e6; 45 | --r-selection-background-color: #d33682; 46 | --r-selection-color: #fff; 47 | } 48 | 49 | .reveal-viewport { 50 | background: #002b36; 51 | background-color: var(--r-background-color); 52 | } 53 | 54 | .reveal { 55 | font-family: var(--r-main-font); 56 | font-size: var(--r-main-font-size); 57 | font-weight: normal; 58 | color: var(--r-main-color); 59 | } 60 | 61 | .reveal ::selection { 62 | color: var(--r-selection-color); 63 | background: var(--r-selection-background-color); 64 | text-shadow: none; 65 | } 66 | 67 | .reveal ::-moz-selection { 68 | color: var(--r-selection-color); 69 | background: var(--r-selection-background-color); 70 | text-shadow: none; 71 | } 72 | 73 | .reveal .slides section, 74 | .reveal .slides section > section { 75 | line-height: 1.3; 76 | font-weight: inherit; 77 | } 78 | 79 | /********************************************* 80 | * HEADERS 81 | *********************************************/ 82 | .reveal h1, 83 | .reveal h2, 84 | .reveal h3, 85 | .reveal h4, 86 | .reveal h5, 87 | .reveal h6 { 88 | margin: var(--r-heading-margin); 89 | color: var(--r-heading-color); 90 | font-family: var(--r-heading-font); 91 | font-weight: var(--r-heading-font-weight); 92 | line-height: var(--r-heading-line-height); 93 | letter-spacing: var(--r-heading-letter-spacing); 94 | text-transform: var(--r-heading-text-transform); 95 | text-shadow: var(--r-heading-text-shadow); 96 | word-wrap: break-word; 97 | } 98 | 99 | .reveal h1 { 100 | font-size: var(--r-heading1-size); 101 | } 102 | 103 | .reveal h2 { 104 | font-size: var(--r-heading2-size); 105 | } 106 | 107 | .reveal h3 { 108 | font-size: var(--r-heading3-size); 109 | } 110 | 111 | .reveal h4 { 112 | font-size: var(--r-heading4-size); 113 | } 114 | 115 | .reveal h1 { 116 | text-shadow: var(--r-heading1-text-shadow); 117 | } 118 | 119 | /********************************************* 120 | * OTHER 121 | *********************************************/ 122 | .reveal p { 123 | margin: var(--r-block-margin) 0; 124 | line-height: 1.3; 125 | } 126 | 127 | /* Remove trailing margins after titles */ 128 | .reveal h1:last-child, 129 | .reveal h2:last-child, 130 | .reveal h3:last-child, 131 | .reveal h4:last-child, 132 | .reveal h5:last-child, 133 | .reveal h6:last-child { 134 | margin-bottom: 0; 135 | } 136 | 137 | /* Ensure certain elements are never larger than the slide itself */ 138 | .reveal img, 139 | .reveal video, 140 | .reveal iframe { 141 | max-width: 95%; 142 | max-height: 95%; 143 | } 144 | 145 | .reveal strong, 146 | .reveal b { 147 | font-weight: bold; 148 | } 149 | 150 | .reveal em { 151 | font-style: italic; 152 | } 153 | 154 | .reveal ol, 155 | .reveal dl, 156 | .reveal ul { 157 | display: inline-block; 158 | text-align: left; 159 | margin: 0 0 0 1em; 160 | } 161 | 162 | .reveal ol { 163 | list-style-type: decimal; 164 | } 165 | 166 | .reveal ul { 167 | list-style-type: disc; 168 | } 169 | 170 | .reveal ul ul { 171 | list-style-type: square; 172 | } 173 | 174 | .reveal ul ul ul { 175 | list-style-type: circle; 176 | } 177 | 178 | .reveal ul ul, 179 | .reveal ul ol, 180 | .reveal ol ol, 181 | .reveal ol ul { 182 | display: block; 183 | margin-left: 40px; 184 | } 185 | 186 | .reveal dt { 187 | font-weight: bold; 188 | } 189 | 190 | .reveal dd { 191 | margin-left: 40px; 192 | } 193 | 194 | .reveal blockquote { 195 | display: block; 196 | position: relative; 197 | width: 70%; 198 | margin: var(--r-block-margin) auto; 199 | padding: 5px; 200 | font-style: italic; 201 | background: rgba(255, 255, 255, 0.05); 202 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); 203 | } 204 | 205 | .reveal blockquote p:first-child, 206 | .reveal blockquote p:last-child { 207 | display: inline-block; 208 | } 209 | 210 | .reveal q { 211 | font-style: italic; 212 | } 213 | 214 | .reveal pre { 215 | display: block; 216 | position: relative; 217 | width: 90%; 218 | margin: var(--r-block-margin) auto; 219 | text-align: left; 220 | font-size: 0.55em; 221 | font-family: var(--r-code-font); 222 | line-height: 1.2em; 223 | word-wrap: break-word; 224 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); 225 | } 226 | 227 | .reveal code { 228 | font-family: var(--r-code-font); 229 | text-transform: none; 230 | tab-size: 2; 231 | } 232 | 233 | .reveal pre code { 234 | display: block; 235 | padding: 5px; 236 | overflow: auto; 237 | max-height: 400px; 238 | word-wrap: normal; 239 | } 240 | 241 | .reveal .code-wrapper { 242 | white-space: normal; 243 | } 244 | 245 | .reveal .code-wrapper code { 246 | white-space: pre; 247 | } 248 | 249 | .reveal table { 250 | margin: auto; 251 | border-collapse: collapse; 252 | border-spacing: 0; 253 | } 254 | 255 | .reveal table th { 256 | font-weight: bold; 257 | } 258 | 259 | .reveal table th, 260 | .reveal table td { 261 | text-align: left; 262 | padding: 0.2em 0.5em 0.2em 0.5em; 263 | border-bottom: 1px solid; 264 | } 265 | 266 | .reveal table th[align=center], 267 | .reveal table td[align=center] { 268 | text-align: center; 269 | } 270 | 271 | .reveal table th[align=right], 272 | .reveal table td[align=right] { 273 | text-align: right; 274 | } 275 | 276 | .reveal table tbody tr:last-child th, 277 | .reveal table tbody tr:last-child td { 278 | border-bottom: none; 279 | } 280 | 281 | .reveal sup { 282 | vertical-align: super; 283 | font-size: smaller; 284 | } 285 | 286 | .reveal sub { 287 | vertical-align: sub; 288 | font-size: smaller; 289 | } 290 | 291 | .reveal small { 292 | display: inline-block; 293 | font-size: 0.6em; 294 | line-height: 1.2em; 295 | vertical-align: top; 296 | } 297 | 298 | .reveal small * { 299 | vertical-align: top; 300 | } 301 | 302 | .reveal img { 303 | margin: var(--r-block-margin) 0; 304 | } 305 | 306 | /********************************************* 307 | * LINKS 308 | *********************************************/ 309 | .reveal a { 310 | color: var(--r-link-color); 311 | text-decoration: none; 312 | transition: color 0.15s ease; 313 | } 314 | 315 | .reveal a:hover { 316 | color: var(--r-link-color-hover); 317 | text-shadow: none; 318 | border: none; 319 | } 320 | 321 | .reveal .roll span:after { 322 | color: #fff; 323 | background: var(--r-link-color-dark); 324 | } 325 | 326 | /********************************************* 327 | * Frame helper 328 | *********************************************/ 329 | .reveal .r-frame { 330 | border: 4px solid var(--r-main-color); 331 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); 332 | } 333 | 334 | .reveal a .r-frame { 335 | transition: all 0.15s linear; 336 | } 337 | 338 | .reveal a:hover .r-frame { 339 | border-color: var(--r-link-color); 340 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); 341 | } 342 | 343 | /********************************************* 344 | * NAVIGATION CONTROLS 345 | *********************************************/ 346 | .reveal .controls { 347 | color: var(--r-link-color); 348 | } 349 | 350 | /********************************************* 351 | * PROGRESS BAR 352 | *********************************************/ 353 | .reveal .progress { 354 | background: rgba(0, 0, 0, 0.2); 355 | color: var(--r-link-color); 356 | } 357 | 358 | /********************************************* 359 | * PRINT BACKGROUND 360 | *********************************************/ 361 | @media print { 362 | .backgrounds { 363 | background-color: var(--r-background-color); 364 | } 365 | } -------------------------------------------------------------------------------- /css/reveal/theme/night.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Black theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | @import url(https://fonts.googleapis.com/css?family=Montserrat:700); 7 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic); 8 | section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 { 9 | color: #222; 10 | } 11 | 12 | /********************************************* 13 | * GLOBAL STYLES 14 | *********************************************/ 15 | :root { 16 | --r-background-color: #111; 17 | --r-main-font: Open Sans, sans-serif; 18 | --r-main-font-size: 40px; 19 | --r-main-color: #eee; 20 | --r-block-margin: 20px; 21 | --r-heading-margin: 0 0 20px 0; 22 | --r-heading-font: Montserrat, Impact, sans-serif; 23 | --r-heading-color: #eee; 24 | --r-heading-line-height: 1.2; 25 | --r-heading-letter-spacing: -0.03em; 26 | --r-heading-text-transform: none; 27 | --r-heading-text-shadow: none; 28 | --r-heading-font-weight: normal; 29 | --r-heading1-text-shadow: none; 30 | --r-heading1-size: 3.77em; 31 | --r-heading2-size: 2.11em; 32 | --r-heading3-size: 1.55em; 33 | --r-heading4-size: 1em; 34 | --r-code-font: monospace; 35 | --r-link-color: #e7ad52; 36 | --r-link-color-dark: #d08a1d; 37 | --r-link-color-hover: #f3d7ac; 38 | --r-selection-background-color: #e7ad52; 39 | --r-selection-color: #fff; 40 | } 41 | 42 | .reveal-viewport { 43 | background: #111; 44 | background-color: var(--r-background-color); 45 | } 46 | 47 | .reveal { 48 | font-family: var(--r-main-font); 49 | font-size: var(--r-main-font-size); 50 | font-weight: normal; 51 | color: var(--r-main-color); 52 | } 53 | 54 | .reveal ::selection { 55 | color: var(--r-selection-color); 56 | background: var(--r-selection-background-color); 57 | text-shadow: none; 58 | } 59 | 60 | .reveal ::-moz-selection { 61 | color: var(--r-selection-color); 62 | background: var(--r-selection-background-color); 63 | text-shadow: none; 64 | } 65 | 66 | .reveal .slides section, 67 | .reveal .slides section > section { 68 | line-height: 1.3; 69 | font-weight: inherit; 70 | } 71 | 72 | /********************************************* 73 | * HEADERS 74 | *********************************************/ 75 | .reveal h1, 76 | .reveal h2, 77 | .reveal h3, 78 | .reveal h4, 79 | .reveal h5, 80 | .reveal h6 { 81 | margin: var(--r-heading-margin); 82 | color: var(--r-heading-color); 83 | font-family: var(--r-heading-font); 84 | font-weight: var(--r-heading-font-weight); 85 | line-height: var(--r-heading-line-height); 86 | letter-spacing: var(--r-heading-letter-spacing); 87 | text-transform: var(--r-heading-text-transform); 88 | text-shadow: var(--r-heading-text-shadow); 89 | word-wrap: break-word; 90 | } 91 | 92 | .reveal h1 { 93 | font-size: var(--r-heading1-size); 94 | } 95 | 96 | .reveal h2 { 97 | font-size: var(--r-heading2-size); 98 | } 99 | 100 | .reveal h3 { 101 | font-size: var(--r-heading3-size); 102 | } 103 | 104 | .reveal h4 { 105 | font-size: var(--r-heading4-size); 106 | } 107 | 108 | .reveal h1 { 109 | text-shadow: var(--r-heading1-text-shadow); 110 | } 111 | 112 | /********************************************* 113 | * OTHER 114 | *********************************************/ 115 | .reveal p { 116 | margin: var(--r-block-margin) 0; 117 | line-height: 1.3; 118 | } 119 | 120 | /* Remove trailing margins after titles */ 121 | .reveal h1:last-child, 122 | .reveal h2:last-child, 123 | .reveal h3:last-child, 124 | .reveal h4:last-child, 125 | .reveal h5:last-child, 126 | .reveal h6:last-child { 127 | margin-bottom: 0; 128 | } 129 | 130 | /* Ensure certain elements are never larger than the slide itself */ 131 | .reveal img, 132 | .reveal video, 133 | .reveal iframe { 134 | max-width: 95%; 135 | max-height: 95%; 136 | } 137 | 138 | .reveal strong, 139 | .reveal b { 140 | font-weight: bold; 141 | } 142 | 143 | .reveal em { 144 | font-style: italic; 145 | } 146 | 147 | .reveal ol, 148 | .reveal dl, 149 | .reveal ul { 150 | display: inline-block; 151 | text-align: left; 152 | margin: 0 0 0 1em; 153 | } 154 | 155 | .reveal ol { 156 | list-style-type: decimal; 157 | } 158 | 159 | .reveal ul { 160 | list-style-type: disc; 161 | } 162 | 163 | .reveal ul ul { 164 | list-style-type: square; 165 | } 166 | 167 | .reveal ul ul ul { 168 | list-style-type: circle; 169 | } 170 | 171 | .reveal ul ul, 172 | .reveal ul ol, 173 | .reveal ol ol, 174 | .reveal ol ul { 175 | display: block; 176 | margin-left: 40px; 177 | } 178 | 179 | .reveal dt { 180 | font-weight: bold; 181 | } 182 | 183 | .reveal dd { 184 | margin-left: 40px; 185 | } 186 | 187 | .reveal blockquote { 188 | display: block; 189 | position: relative; 190 | width: 70%; 191 | margin: var(--r-block-margin) auto; 192 | padding: 5px; 193 | font-style: italic; 194 | background: rgba(255, 255, 255, 0.05); 195 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); 196 | } 197 | 198 | .reveal blockquote p:first-child, 199 | .reveal blockquote p:last-child { 200 | display: inline-block; 201 | } 202 | 203 | .reveal q { 204 | font-style: italic; 205 | } 206 | 207 | .reveal pre { 208 | display: block; 209 | position: relative; 210 | width: 90%; 211 | margin: var(--r-block-margin) auto; 212 | text-align: left; 213 | font-size: 0.55em; 214 | font-family: var(--r-code-font); 215 | line-height: 1.2em; 216 | word-wrap: break-word; 217 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); 218 | } 219 | 220 | .reveal code { 221 | font-family: var(--r-code-font); 222 | text-transform: none; 223 | tab-size: 2; 224 | } 225 | 226 | .reveal pre code { 227 | display: block; 228 | padding: 5px; 229 | overflow: auto; 230 | max-height: 400px; 231 | word-wrap: normal; 232 | } 233 | 234 | .reveal .code-wrapper { 235 | white-space: normal; 236 | } 237 | 238 | .reveal .code-wrapper code { 239 | white-space: pre; 240 | } 241 | 242 | .reveal table { 243 | margin: auto; 244 | border-collapse: collapse; 245 | border-spacing: 0; 246 | } 247 | 248 | .reveal table th { 249 | font-weight: bold; 250 | } 251 | 252 | .reveal table th, 253 | .reveal table td { 254 | text-align: left; 255 | padding: 0.2em 0.5em 0.2em 0.5em; 256 | border-bottom: 1px solid; 257 | } 258 | 259 | .reveal table th[align=center], 260 | .reveal table td[align=center] { 261 | text-align: center; 262 | } 263 | 264 | .reveal table th[align=right], 265 | .reveal table td[align=right] { 266 | text-align: right; 267 | } 268 | 269 | .reveal table tbody tr:last-child th, 270 | .reveal table tbody tr:last-child td { 271 | border-bottom: none; 272 | } 273 | 274 | .reveal sup { 275 | vertical-align: super; 276 | font-size: smaller; 277 | } 278 | 279 | .reveal sub { 280 | vertical-align: sub; 281 | font-size: smaller; 282 | } 283 | 284 | .reveal small { 285 | display: inline-block; 286 | font-size: 0.6em; 287 | line-height: 1.2em; 288 | vertical-align: top; 289 | } 290 | 291 | .reveal small * { 292 | vertical-align: top; 293 | } 294 | 295 | .reveal img { 296 | margin: var(--r-block-margin) 0; 297 | } 298 | 299 | /********************************************* 300 | * LINKS 301 | *********************************************/ 302 | .reveal a { 303 | color: var(--r-link-color); 304 | text-decoration: none; 305 | transition: color 0.15s ease; 306 | } 307 | 308 | .reveal a:hover { 309 | color: var(--r-link-color-hover); 310 | text-shadow: none; 311 | border: none; 312 | } 313 | 314 | .reveal .roll span:after { 315 | color: #fff; 316 | background: var(--r-link-color-dark); 317 | } 318 | 319 | /********************************************* 320 | * Frame helper 321 | *********************************************/ 322 | .reveal .r-frame { 323 | border: 4px solid var(--r-main-color); 324 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); 325 | } 326 | 327 | .reveal a .r-frame { 328 | transition: all 0.15s linear; 329 | } 330 | 331 | .reveal a:hover .r-frame { 332 | border-color: var(--r-link-color); 333 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); 334 | } 335 | 336 | /********************************************* 337 | * NAVIGATION CONTROLS 338 | *********************************************/ 339 | .reveal .controls { 340 | color: var(--r-link-color); 341 | } 342 | 343 | /********************************************* 344 | * PROGRESS BAR 345 | *********************************************/ 346 | .reveal .progress { 347 | background: rgba(0, 0, 0, 0.2); 348 | color: var(--r-link-color); 349 | } 350 | 351 | /********************************************* 352 | * PRINT BACKGROUND 353 | *********************************************/ 354 | @media print { 355 | .backgrounds { 356 | background-color: var(--r-background-color); 357 | } 358 | } -------------------------------------------------------------------------------- /css/reveal/theme/serif.css: -------------------------------------------------------------------------------- 1 | /** 2 | * A simple theme for reveal.js presentations, similar 3 | * to the default theme. The accent color is brown. 4 | * 5 | * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed. 6 | */ 7 | .reveal a { 8 | line-height: 1.3em; 9 | } 10 | 11 | section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 { 12 | color: #fff; 13 | } 14 | 15 | /********************************************* 16 | * GLOBAL STYLES 17 | *********************************************/ 18 | :root { 19 | --r-background-color: #F0F1EB; 20 | --r-main-font: Palatino Linotype, Book Antiqua, Palatino, FreeSerif, serif; 21 | --r-main-font-size: 40px; 22 | --r-main-color: #000; 23 | --r-block-margin: 20px; 24 | --r-heading-margin: 0 0 20px 0; 25 | --r-heading-font: Palatino Linotype, Book Antiqua, Palatino, FreeSerif, serif; 26 | --r-heading-color: #383D3D; 27 | --r-heading-line-height: 1.2; 28 | --r-heading-letter-spacing: normal; 29 | --r-heading-text-transform: none; 30 | --r-heading-text-shadow: none; 31 | --r-heading-font-weight: normal; 32 | --r-heading1-text-shadow: none; 33 | --r-heading1-size: 3.77em; 34 | --r-heading2-size: 2.11em; 35 | --r-heading3-size: 1.55em; 36 | --r-heading4-size: 1em; 37 | --r-code-font: monospace; 38 | --r-link-color: #51483D; 39 | --r-link-color-dark: #25211c; 40 | --r-link-color-hover: #8b7c69; 41 | --r-selection-background-color: #26351C; 42 | --r-selection-color: #fff; 43 | } 44 | 45 | .reveal-viewport { 46 | background: #F0F1EB; 47 | background-color: var(--r-background-color); 48 | } 49 | 50 | .reveal { 51 | font-family: var(--r-main-font); 52 | font-size: var(--r-main-font-size); 53 | font-weight: normal; 54 | color: var(--r-main-color); 55 | } 56 | 57 | .reveal ::selection { 58 | color: var(--r-selection-color); 59 | background: var(--r-selection-background-color); 60 | text-shadow: none; 61 | } 62 | 63 | .reveal ::-moz-selection { 64 | color: var(--r-selection-color); 65 | background: var(--r-selection-background-color); 66 | text-shadow: none; 67 | } 68 | 69 | .reveal .slides section, 70 | .reveal .slides section > section { 71 | line-height: 1.3; 72 | font-weight: inherit; 73 | } 74 | 75 | /********************************************* 76 | * HEADERS 77 | *********************************************/ 78 | .reveal h1, 79 | .reveal h2, 80 | .reveal h3, 81 | .reveal h4, 82 | .reveal h5, 83 | .reveal h6 { 84 | margin: var(--r-heading-margin); 85 | color: var(--r-heading-color); 86 | font-family: var(--r-heading-font); 87 | font-weight: var(--r-heading-font-weight); 88 | line-height: var(--r-heading-line-height); 89 | letter-spacing: var(--r-heading-letter-spacing); 90 | text-transform: var(--r-heading-text-transform); 91 | text-shadow: var(--r-heading-text-shadow); 92 | word-wrap: break-word; 93 | } 94 | 95 | .reveal h1 { 96 | font-size: var(--r-heading1-size); 97 | } 98 | 99 | .reveal h2 { 100 | font-size: var(--r-heading2-size); 101 | } 102 | 103 | .reveal h3 { 104 | font-size: var(--r-heading3-size); 105 | } 106 | 107 | .reveal h4 { 108 | font-size: var(--r-heading4-size); 109 | } 110 | 111 | .reveal h1 { 112 | text-shadow: var(--r-heading1-text-shadow); 113 | } 114 | 115 | /********************************************* 116 | * OTHER 117 | *********************************************/ 118 | .reveal p { 119 | margin: var(--r-block-margin) 0; 120 | line-height: 1.3; 121 | } 122 | 123 | /* Remove trailing margins after titles */ 124 | .reveal h1:last-child, 125 | .reveal h2:last-child, 126 | .reveal h3:last-child, 127 | .reveal h4:last-child, 128 | .reveal h5:last-child, 129 | .reveal h6:last-child { 130 | margin-bottom: 0; 131 | } 132 | 133 | /* Ensure certain elements are never larger than the slide itself */ 134 | .reveal img, 135 | .reveal video, 136 | .reveal iframe { 137 | max-width: 95%; 138 | max-height: 95%; 139 | } 140 | 141 | .reveal strong, 142 | .reveal b { 143 | font-weight: bold; 144 | } 145 | 146 | .reveal em { 147 | font-style: italic; 148 | } 149 | 150 | .reveal ol, 151 | .reveal dl, 152 | .reveal ul { 153 | display: inline-block; 154 | text-align: left; 155 | margin: 0 0 0 1em; 156 | } 157 | 158 | .reveal ol { 159 | list-style-type: decimal; 160 | } 161 | 162 | .reveal ul { 163 | list-style-type: disc; 164 | } 165 | 166 | .reveal ul ul { 167 | list-style-type: square; 168 | } 169 | 170 | .reveal ul ul ul { 171 | list-style-type: circle; 172 | } 173 | 174 | .reveal ul ul, 175 | .reveal ul ol, 176 | .reveal ol ol, 177 | .reveal ol ul { 178 | display: block; 179 | margin-left: 40px; 180 | } 181 | 182 | .reveal dt { 183 | font-weight: bold; 184 | } 185 | 186 | .reveal dd { 187 | margin-left: 40px; 188 | } 189 | 190 | .reveal blockquote { 191 | display: block; 192 | position: relative; 193 | width: 70%; 194 | margin: var(--r-block-margin) auto; 195 | padding: 5px; 196 | font-style: italic; 197 | background: rgba(255, 255, 255, 0.05); 198 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); 199 | } 200 | 201 | .reveal blockquote p:first-child, 202 | .reveal blockquote p:last-child { 203 | display: inline-block; 204 | } 205 | 206 | .reveal q { 207 | font-style: italic; 208 | } 209 | 210 | .reveal pre { 211 | display: block; 212 | position: relative; 213 | width: 90%; 214 | margin: var(--r-block-margin) auto; 215 | text-align: left; 216 | font-size: 0.55em; 217 | font-family: var(--r-code-font); 218 | line-height: 1.2em; 219 | word-wrap: break-word; 220 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); 221 | } 222 | 223 | .reveal code { 224 | font-family: var(--r-code-font); 225 | text-transform: none; 226 | tab-size: 2; 227 | } 228 | 229 | .reveal pre code { 230 | display: block; 231 | padding: 5px; 232 | overflow: auto; 233 | max-height: 400px; 234 | word-wrap: normal; 235 | } 236 | 237 | .reveal .code-wrapper { 238 | white-space: normal; 239 | } 240 | 241 | .reveal .code-wrapper code { 242 | white-space: pre; 243 | } 244 | 245 | .reveal table { 246 | margin: auto; 247 | border-collapse: collapse; 248 | border-spacing: 0; 249 | } 250 | 251 | .reveal table th { 252 | font-weight: bold; 253 | } 254 | 255 | .reveal table th, 256 | .reveal table td { 257 | text-align: left; 258 | padding: 0.2em 0.5em 0.2em 0.5em; 259 | border-bottom: 1px solid; 260 | } 261 | 262 | .reveal table th[align=center], 263 | .reveal table td[align=center] { 264 | text-align: center; 265 | } 266 | 267 | .reveal table th[align=right], 268 | .reveal table td[align=right] { 269 | text-align: right; 270 | } 271 | 272 | .reveal table tbody tr:last-child th, 273 | .reveal table tbody tr:last-child td { 274 | border-bottom: none; 275 | } 276 | 277 | .reveal sup { 278 | vertical-align: super; 279 | font-size: smaller; 280 | } 281 | 282 | .reveal sub { 283 | vertical-align: sub; 284 | font-size: smaller; 285 | } 286 | 287 | .reveal small { 288 | display: inline-block; 289 | font-size: 0.6em; 290 | line-height: 1.2em; 291 | vertical-align: top; 292 | } 293 | 294 | .reveal small * { 295 | vertical-align: top; 296 | } 297 | 298 | .reveal img { 299 | margin: var(--r-block-margin) 0; 300 | } 301 | 302 | /********************************************* 303 | * LINKS 304 | *********************************************/ 305 | .reveal a { 306 | color: var(--r-link-color); 307 | text-decoration: none; 308 | transition: color 0.15s ease; 309 | } 310 | 311 | .reveal a:hover { 312 | color: var(--r-link-color-hover); 313 | text-shadow: none; 314 | border: none; 315 | } 316 | 317 | .reveal .roll span:after { 318 | color: #fff; 319 | background: var(--r-link-color-dark); 320 | } 321 | 322 | /********************************************* 323 | * Frame helper 324 | *********************************************/ 325 | .reveal .r-frame { 326 | border: 4px solid var(--r-main-color); 327 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); 328 | } 329 | 330 | .reveal a .r-frame { 331 | transition: all 0.15s linear; 332 | } 333 | 334 | .reveal a:hover .r-frame { 335 | border-color: var(--r-link-color); 336 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); 337 | } 338 | 339 | /********************************************* 340 | * NAVIGATION CONTROLS 341 | *********************************************/ 342 | .reveal .controls { 343 | color: var(--r-link-color); 344 | } 345 | 346 | /********************************************* 347 | * PROGRESS BAR 348 | *********************************************/ 349 | .reveal .progress { 350 | background: rgba(0, 0, 0, 0.2); 351 | color: var(--r-link-color); 352 | } 353 | 354 | /********************************************* 355 | * PRINT BACKGROUND 356 | *********************************************/ 357 | @media print { 358 | .backgrounds { 359 | background-color: var(--r-background-color); 360 | } 361 | } -------------------------------------------------------------------------------- /css/reveal/theme/simple.css: -------------------------------------------------------------------------------- 1 | /** 2 | * A simple theme for reveal.js presentations, similar 3 | * to the default theme. The accent color is darkblue. 4 | * 5 | * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed. 6 | * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 7 | */ 8 | @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700); 9 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 10 | section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 { 11 | color: #fff; 12 | } 13 | 14 | /********************************************* 15 | * GLOBAL STYLES 16 | *********************************************/ 17 | :root { 18 | --r-background-color: #fff; 19 | --r-main-font: Lato, sans-serif; 20 | --r-main-font-size: 40px; 21 | --r-main-color: #000; 22 | --r-block-margin: 20px; 23 | --r-heading-margin: 0 0 20px 0; 24 | --r-heading-font: News Cycle, Impact, sans-serif; 25 | --r-heading-color: #000; 26 | --r-heading-line-height: 1.2; 27 | --r-heading-letter-spacing: normal; 28 | --r-heading-text-transform: none; 29 | --r-heading-text-shadow: none; 30 | --r-heading-font-weight: normal; 31 | --r-heading1-text-shadow: none; 32 | --r-heading1-size: 3.77em; 33 | --r-heading2-size: 2.11em; 34 | --r-heading3-size: 1.55em; 35 | --r-heading4-size: 1em; 36 | --r-code-font: monospace; 37 | --r-link-color: #00008B; 38 | --r-link-color-dark: #00003f; 39 | --r-link-color-hover: #0000f1; 40 | --r-selection-background-color: rgba(0, 0, 0, 0.99); 41 | --r-selection-color: #fff; 42 | } 43 | 44 | .reveal-viewport { 45 | background: #fff; 46 | background-color: var(--r-background-color); 47 | } 48 | 49 | .reveal { 50 | font-family: var(--r-main-font); 51 | font-size: var(--r-main-font-size); 52 | font-weight: normal; 53 | color: var(--r-main-color); 54 | } 55 | 56 | .reveal ::selection { 57 | color: var(--r-selection-color); 58 | background: var(--r-selection-background-color); 59 | text-shadow: none; 60 | } 61 | 62 | .reveal ::-moz-selection { 63 | color: var(--r-selection-color); 64 | background: var(--r-selection-background-color); 65 | text-shadow: none; 66 | } 67 | 68 | .reveal .slides section, 69 | .reveal .slides section > section { 70 | line-height: 1.3; 71 | font-weight: inherit; 72 | } 73 | 74 | /********************************************* 75 | * HEADERS 76 | *********************************************/ 77 | .reveal h1, 78 | .reveal h2, 79 | .reveal h3, 80 | .reveal h4, 81 | .reveal h5, 82 | .reveal h6 { 83 | margin: var(--r-heading-margin); 84 | color: var(--r-heading-color); 85 | font-family: var(--r-heading-font); 86 | font-weight: var(--r-heading-font-weight); 87 | line-height: var(--r-heading-line-height); 88 | letter-spacing: var(--r-heading-letter-spacing); 89 | text-transform: var(--r-heading-text-transform); 90 | text-shadow: var(--r-heading-text-shadow); 91 | word-wrap: break-word; 92 | } 93 | 94 | .reveal h1 { 95 | font-size: var(--r-heading1-size); 96 | } 97 | 98 | .reveal h2 { 99 | font-size: var(--r-heading2-size); 100 | } 101 | 102 | .reveal h3 { 103 | font-size: var(--r-heading3-size); 104 | } 105 | 106 | .reveal h4 { 107 | font-size: var(--r-heading4-size); 108 | } 109 | 110 | .reveal h1 { 111 | text-shadow: var(--r-heading1-text-shadow); 112 | } 113 | 114 | /********************************************* 115 | * OTHER 116 | *********************************************/ 117 | .reveal p { 118 | margin: var(--r-block-margin) 0; 119 | line-height: 1.3; 120 | } 121 | 122 | /* Remove trailing margins after titles */ 123 | .reveal h1:last-child, 124 | .reveal h2:last-child, 125 | .reveal h3:last-child, 126 | .reveal h4:last-child, 127 | .reveal h5:last-child, 128 | .reveal h6:last-child { 129 | margin-bottom: 0; 130 | } 131 | 132 | /* Ensure certain elements are never larger than the slide itself */ 133 | .reveal img, 134 | .reveal video, 135 | .reveal iframe { 136 | max-width: 95%; 137 | max-height: 95%; 138 | } 139 | 140 | .reveal strong, 141 | .reveal b { 142 | font-weight: bold; 143 | } 144 | 145 | .reveal em { 146 | font-style: italic; 147 | } 148 | 149 | .reveal ol, 150 | .reveal dl, 151 | .reveal ul { 152 | display: inline-block; 153 | text-align: left; 154 | margin: 0 0 0 1em; 155 | } 156 | 157 | .reveal ol { 158 | list-style-type: decimal; 159 | } 160 | 161 | .reveal ul { 162 | list-style-type: disc; 163 | } 164 | 165 | .reveal ul ul { 166 | list-style-type: square; 167 | } 168 | 169 | .reveal ul ul ul { 170 | list-style-type: circle; 171 | } 172 | 173 | .reveal ul ul, 174 | .reveal ul ol, 175 | .reveal ol ol, 176 | .reveal ol ul { 177 | display: block; 178 | margin-left: 40px; 179 | } 180 | 181 | .reveal dt { 182 | font-weight: bold; 183 | } 184 | 185 | .reveal dd { 186 | margin-left: 40px; 187 | } 188 | 189 | .reveal blockquote { 190 | display: block; 191 | position: relative; 192 | width: 70%; 193 | margin: var(--r-block-margin) auto; 194 | padding: 5px; 195 | font-style: italic; 196 | background: rgba(255, 255, 255, 0.05); 197 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); 198 | } 199 | 200 | .reveal blockquote p:first-child, 201 | .reveal blockquote p:last-child { 202 | display: inline-block; 203 | } 204 | 205 | .reveal q { 206 | font-style: italic; 207 | } 208 | 209 | .reveal pre { 210 | display: block; 211 | position: relative; 212 | width: 90%; 213 | margin: var(--r-block-margin) auto; 214 | text-align: left; 215 | font-size: 0.55em; 216 | font-family: var(--r-code-font); 217 | line-height: 1.2em; 218 | word-wrap: break-word; 219 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); 220 | } 221 | 222 | .reveal code { 223 | font-family: var(--r-code-font); 224 | text-transform: none; 225 | tab-size: 2; 226 | } 227 | 228 | .reveal pre code { 229 | display: block; 230 | padding: 5px; 231 | overflow: auto; 232 | max-height: 400px; 233 | word-wrap: normal; 234 | } 235 | 236 | .reveal .code-wrapper { 237 | white-space: normal; 238 | } 239 | 240 | .reveal .code-wrapper code { 241 | white-space: pre; 242 | } 243 | 244 | .reveal table { 245 | margin: auto; 246 | border-collapse: collapse; 247 | border-spacing: 0; 248 | } 249 | 250 | .reveal table th { 251 | font-weight: bold; 252 | } 253 | 254 | .reveal table th, 255 | .reveal table td { 256 | text-align: left; 257 | padding: 0.2em 0.5em 0.2em 0.5em; 258 | border-bottom: 1px solid; 259 | } 260 | 261 | .reveal table th[align=center], 262 | .reveal table td[align=center] { 263 | text-align: center; 264 | } 265 | 266 | .reveal table th[align=right], 267 | .reveal table td[align=right] { 268 | text-align: right; 269 | } 270 | 271 | .reveal table tbody tr:last-child th, 272 | .reveal table tbody tr:last-child td { 273 | border-bottom: none; 274 | } 275 | 276 | .reveal sup { 277 | vertical-align: super; 278 | font-size: smaller; 279 | } 280 | 281 | .reveal sub { 282 | vertical-align: sub; 283 | font-size: smaller; 284 | } 285 | 286 | .reveal small { 287 | display: inline-block; 288 | font-size: 0.6em; 289 | line-height: 1.2em; 290 | vertical-align: top; 291 | } 292 | 293 | .reveal small * { 294 | vertical-align: top; 295 | } 296 | 297 | .reveal img { 298 | margin: var(--r-block-margin) 0; 299 | } 300 | 301 | /********************************************* 302 | * LINKS 303 | *********************************************/ 304 | .reveal a { 305 | color: var(--r-link-color); 306 | text-decoration: none; 307 | transition: color 0.15s ease; 308 | } 309 | 310 | .reveal a:hover { 311 | color: var(--r-link-color-hover); 312 | text-shadow: none; 313 | border: none; 314 | } 315 | 316 | .reveal .roll span:after { 317 | color: #fff; 318 | background: var(--r-link-color-dark); 319 | } 320 | 321 | /********************************************* 322 | * Frame helper 323 | *********************************************/ 324 | .reveal .r-frame { 325 | border: 4px solid var(--r-main-color); 326 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); 327 | } 328 | 329 | .reveal a .r-frame { 330 | transition: all 0.15s linear; 331 | } 332 | 333 | .reveal a:hover .r-frame { 334 | border-color: var(--r-link-color); 335 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); 336 | } 337 | 338 | /********************************************* 339 | * NAVIGATION CONTROLS 340 | *********************************************/ 341 | .reveal .controls { 342 | color: var(--r-link-color); 343 | } 344 | 345 | /********************************************* 346 | * PROGRESS BAR 347 | *********************************************/ 348 | .reveal .progress { 349 | background: rgba(0, 0, 0, 0.2); 350 | color: var(--r-link-color); 351 | } 352 | 353 | /********************************************* 354 | * PRINT BACKGROUND 355 | *********************************************/ 356 | @media print { 357 | .backgrounds { 358 | background-color: var(--r-background-color); 359 | } 360 | } -------------------------------------------------------------------------------- /css/reveal/theme/sky.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Sky theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic); 7 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700); 8 | .reveal a { 9 | line-height: 1.3em; 10 | } 11 | 12 | section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 { 13 | color: #fff; 14 | } 15 | 16 | /********************************************* 17 | * GLOBAL STYLES 18 | *********************************************/ 19 | :root { 20 | --r-background-color: #f7fbfc; 21 | --r-main-font: Open Sans, sans-serif; 22 | --r-main-font-size: 40px; 23 | --r-main-color: #333; 24 | --r-block-margin: 20px; 25 | --r-heading-margin: 0 0 20px 0; 26 | --r-heading-font: Quicksand, sans-serif; 27 | --r-heading-color: #333; 28 | --r-heading-line-height: 1.2; 29 | --r-heading-letter-spacing: -0.08em; 30 | --r-heading-text-transform: uppercase; 31 | --r-heading-text-shadow: none; 32 | --r-heading-font-weight: normal; 33 | --r-heading1-text-shadow: none; 34 | --r-heading1-size: 3.77em; 35 | --r-heading2-size: 2.11em; 36 | --r-heading3-size: 1.55em; 37 | --r-heading4-size: 1em; 38 | --r-code-font: monospace; 39 | --r-link-color: #3b759e; 40 | --r-link-color-dark: #264c66; 41 | --r-link-color-hover: #74a7cb; 42 | --r-selection-background-color: #134674; 43 | --r-selection-color: #fff; 44 | } 45 | 46 | .reveal-viewport { 47 | background: #add9e4; 48 | background: -moz-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%); 49 | background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #f7fbfc), color-stop(100%, #add9e4)); 50 | background: -webkit-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%); 51 | background: -o-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%); 52 | background: -ms-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%); 53 | background: radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%); 54 | background-color: var(--r-background-color); 55 | } 56 | 57 | .reveal { 58 | font-family: var(--r-main-font); 59 | font-size: var(--r-main-font-size); 60 | font-weight: normal; 61 | color: var(--r-main-color); 62 | } 63 | 64 | .reveal ::selection { 65 | color: var(--r-selection-color); 66 | background: var(--r-selection-background-color); 67 | text-shadow: none; 68 | } 69 | 70 | .reveal ::-moz-selection { 71 | color: var(--r-selection-color); 72 | background: var(--r-selection-background-color); 73 | text-shadow: none; 74 | } 75 | 76 | .reveal .slides section, 77 | .reveal .slides section > section { 78 | line-height: 1.3; 79 | font-weight: inherit; 80 | } 81 | 82 | /********************************************* 83 | * HEADERS 84 | *********************************************/ 85 | .reveal h1, 86 | .reveal h2, 87 | .reveal h3, 88 | .reveal h4, 89 | .reveal h5, 90 | .reveal h6 { 91 | margin: var(--r-heading-margin); 92 | color: var(--r-heading-color); 93 | font-family: var(--r-heading-font); 94 | font-weight: var(--r-heading-font-weight); 95 | line-height: var(--r-heading-line-height); 96 | letter-spacing: var(--r-heading-letter-spacing); 97 | text-transform: var(--r-heading-text-transform); 98 | text-shadow: var(--r-heading-text-shadow); 99 | word-wrap: break-word; 100 | } 101 | 102 | .reveal h1 { 103 | font-size: var(--r-heading1-size); 104 | } 105 | 106 | .reveal h2 { 107 | font-size: var(--r-heading2-size); 108 | } 109 | 110 | .reveal h3 { 111 | font-size: var(--r-heading3-size); 112 | } 113 | 114 | .reveal h4 { 115 | font-size: var(--r-heading4-size); 116 | } 117 | 118 | .reveal h1 { 119 | text-shadow: var(--r-heading1-text-shadow); 120 | } 121 | 122 | /********************************************* 123 | * OTHER 124 | *********************************************/ 125 | .reveal p { 126 | margin: var(--r-block-margin) 0; 127 | line-height: 1.3; 128 | } 129 | 130 | /* Remove trailing margins after titles */ 131 | .reveal h1:last-child, 132 | .reveal h2:last-child, 133 | .reveal h3:last-child, 134 | .reveal h4:last-child, 135 | .reveal h5:last-child, 136 | .reveal h6:last-child { 137 | margin-bottom: 0; 138 | } 139 | 140 | /* Ensure certain elements are never larger than the slide itself */ 141 | .reveal img, 142 | .reveal video, 143 | .reveal iframe { 144 | max-width: 95%; 145 | max-height: 95%; 146 | } 147 | 148 | .reveal strong, 149 | .reveal b { 150 | font-weight: bold; 151 | } 152 | 153 | .reveal em { 154 | font-style: italic; 155 | } 156 | 157 | .reveal ol, 158 | .reveal dl, 159 | .reveal ul { 160 | display: inline-block; 161 | text-align: left; 162 | margin: 0 0 0 1em; 163 | } 164 | 165 | .reveal ol { 166 | list-style-type: decimal; 167 | } 168 | 169 | .reveal ul { 170 | list-style-type: disc; 171 | } 172 | 173 | .reveal ul ul { 174 | list-style-type: square; 175 | } 176 | 177 | .reveal ul ul ul { 178 | list-style-type: circle; 179 | } 180 | 181 | .reveal ul ul, 182 | .reveal ul ol, 183 | .reveal ol ol, 184 | .reveal ol ul { 185 | display: block; 186 | margin-left: 40px; 187 | } 188 | 189 | .reveal dt { 190 | font-weight: bold; 191 | } 192 | 193 | .reveal dd { 194 | margin-left: 40px; 195 | } 196 | 197 | .reveal blockquote { 198 | display: block; 199 | position: relative; 200 | width: 70%; 201 | margin: var(--r-block-margin) auto; 202 | padding: 5px; 203 | font-style: italic; 204 | background: rgba(255, 255, 255, 0.05); 205 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); 206 | } 207 | 208 | .reveal blockquote p:first-child, 209 | .reveal blockquote p:last-child { 210 | display: inline-block; 211 | } 212 | 213 | .reveal q { 214 | font-style: italic; 215 | } 216 | 217 | .reveal pre { 218 | display: block; 219 | position: relative; 220 | width: 90%; 221 | margin: var(--r-block-margin) auto; 222 | text-align: left; 223 | font-size: 0.55em; 224 | font-family: var(--r-code-font); 225 | line-height: 1.2em; 226 | word-wrap: break-word; 227 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); 228 | } 229 | 230 | .reveal code { 231 | font-family: var(--r-code-font); 232 | text-transform: none; 233 | tab-size: 2; 234 | } 235 | 236 | .reveal pre code { 237 | display: block; 238 | padding: 5px; 239 | overflow: auto; 240 | max-height: 400px; 241 | word-wrap: normal; 242 | } 243 | 244 | .reveal .code-wrapper { 245 | white-space: normal; 246 | } 247 | 248 | .reveal .code-wrapper code { 249 | white-space: pre; 250 | } 251 | 252 | .reveal table { 253 | margin: auto; 254 | border-collapse: collapse; 255 | border-spacing: 0; 256 | } 257 | 258 | .reveal table th { 259 | font-weight: bold; 260 | } 261 | 262 | .reveal table th, 263 | .reveal table td { 264 | text-align: left; 265 | padding: 0.2em 0.5em 0.2em 0.5em; 266 | border-bottom: 1px solid; 267 | } 268 | 269 | .reveal table th[align=center], 270 | .reveal table td[align=center] { 271 | text-align: center; 272 | } 273 | 274 | .reveal table th[align=right], 275 | .reveal table td[align=right] { 276 | text-align: right; 277 | } 278 | 279 | .reveal table tbody tr:last-child th, 280 | .reveal table tbody tr:last-child td { 281 | border-bottom: none; 282 | } 283 | 284 | .reveal sup { 285 | vertical-align: super; 286 | font-size: smaller; 287 | } 288 | 289 | .reveal sub { 290 | vertical-align: sub; 291 | font-size: smaller; 292 | } 293 | 294 | .reveal small { 295 | display: inline-block; 296 | font-size: 0.6em; 297 | line-height: 1.2em; 298 | vertical-align: top; 299 | } 300 | 301 | .reveal small * { 302 | vertical-align: top; 303 | } 304 | 305 | .reveal img { 306 | margin: var(--r-block-margin) 0; 307 | } 308 | 309 | /********************************************* 310 | * LINKS 311 | *********************************************/ 312 | .reveal a { 313 | color: var(--r-link-color); 314 | text-decoration: none; 315 | transition: color 0.15s ease; 316 | } 317 | 318 | .reveal a:hover { 319 | color: var(--r-link-color-hover); 320 | text-shadow: none; 321 | border: none; 322 | } 323 | 324 | .reveal .roll span:after { 325 | color: #fff; 326 | background: var(--r-link-color-dark); 327 | } 328 | 329 | /********************************************* 330 | * Frame helper 331 | *********************************************/ 332 | .reveal .r-frame { 333 | border: 4px solid var(--r-main-color); 334 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); 335 | } 336 | 337 | .reveal a .r-frame { 338 | transition: all 0.15s linear; 339 | } 340 | 341 | .reveal a:hover .r-frame { 342 | border-color: var(--r-link-color); 343 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); 344 | } 345 | 346 | /********************************************* 347 | * NAVIGATION CONTROLS 348 | *********************************************/ 349 | .reveal .controls { 350 | color: var(--r-link-color); 351 | } 352 | 353 | /********************************************* 354 | * PROGRESS BAR 355 | *********************************************/ 356 | .reveal .progress { 357 | background: rgba(0, 0, 0, 0.2); 358 | color: var(--r-link-color); 359 | } 360 | 361 | /********************************************* 362 | * PRINT BACKGROUND 363 | *********************************************/ 364 | @media print { 365 | .backgrounds { 366 | background-color: var(--r-background-color); 367 | } 368 | } -------------------------------------------------------------------------------- /css/reveal/theme/solarized.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Solarized Light theme for reveal.js. 3 | * Author: Achim Staebler 4 | */ 5 | @import url(./fonts/league-gothic/league-gothic.css); 6 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 7 | /** 8 | * Solarized colors by Ethan Schoonover 9 | */ 10 | html * { 11 | color-profile: sRGB; 12 | rendering-intent: auto; 13 | } 14 | 15 | /********************************************* 16 | * GLOBAL STYLES 17 | *********************************************/ 18 | :root { 19 | --r-background-color: #fdf6e3; 20 | --r-main-font: Lato, sans-serif; 21 | --r-main-font-size: 40px; 22 | --r-main-color: #657b83; 23 | --r-block-margin: 20px; 24 | --r-heading-margin: 0 0 20px 0; 25 | --r-heading-font: League Gothic, Impact, sans-serif; 26 | --r-heading-color: #586e75; 27 | --r-heading-line-height: 1.2; 28 | --r-heading-letter-spacing: normal; 29 | --r-heading-text-transform: uppercase; 30 | --r-heading-text-shadow: none; 31 | --r-heading-font-weight: normal; 32 | --r-heading1-text-shadow: none; 33 | --r-heading1-size: 3.77em; 34 | --r-heading2-size: 2.11em; 35 | --r-heading3-size: 1.55em; 36 | --r-heading4-size: 1em; 37 | --r-code-font: monospace; 38 | --r-link-color: #268bd2; 39 | --r-link-color-dark: #1a6091; 40 | --r-link-color-hover: #78b9e6; 41 | --r-selection-background-color: #d33682; 42 | --r-selection-color: #fff; 43 | } 44 | 45 | .reveal-viewport { 46 | background: #fdf6e3; 47 | background-color: var(--r-background-color); 48 | } 49 | 50 | .reveal { 51 | font-family: var(--r-main-font); 52 | font-size: var(--r-main-font-size); 53 | font-weight: normal; 54 | color: var(--r-main-color); 55 | } 56 | 57 | .reveal ::selection { 58 | color: var(--r-selection-color); 59 | background: var(--r-selection-background-color); 60 | text-shadow: none; 61 | } 62 | 63 | .reveal ::-moz-selection { 64 | color: var(--r-selection-color); 65 | background: var(--r-selection-background-color); 66 | text-shadow: none; 67 | } 68 | 69 | .reveal .slides section, 70 | .reveal .slides section > section { 71 | line-height: 1.3; 72 | font-weight: inherit; 73 | } 74 | 75 | /********************************************* 76 | * HEADERS 77 | *********************************************/ 78 | .reveal h1, 79 | .reveal h2, 80 | .reveal h3, 81 | .reveal h4, 82 | .reveal h5, 83 | .reveal h6 { 84 | margin: var(--r-heading-margin); 85 | color: var(--r-heading-color); 86 | font-family: var(--r-heading-font); 87 | font-weight: var(--r-heading-font-weight); 88 | line-height: var(--r-heading-line-height); 89 | letter-spacing: var(--r-heading-letter-spacing); 90 | text-transform: var(--r-heading-text-transform); 91 | text-shadow: var(--r-heading-text-shadow); 92 | word-wrap: break-word; 93 | } 94 | 95 | .reveal h1 { 96 | font-size: var(--r-heading1-size); 97 | } 98 | 99 | .reveal h2 { 100 | font-size: var(--r-heading2-size); 101 | } 102 | 103 | .reveal h3 { 104 | font-size: var(--r-heading3-size); 105 | } 106 | 107 | .reveal h4 { 108 | font-size: var(--r-heading4-size); 109 | } 110 | 111 | .reveal h1 { 112 | text-shadow: var(--r-heading1-text-shadow); 113 | } 114 | 115 | /********************************************* 116 | * OTHER 117 | *********************************************/ 118 | .reveal p { 119 | margin: var(--r-block-margin) 0; 120 | line-height: 1.3; 121 | } 122 | 123 | /* Remove trailing margins after titles */ 124 | .reveal h1:last-child, 125 | .reveal h2:last-child, 126 | .reveal h3:last-child, 127 | .reveal h4:last-child, 128 | .reveal h5:last-child, 129 | .reveal h6:last-child { 130 | margin-bottom: 0; 131 | } 132 | 133 | /* Ensure certain elements are never larger than the slide itself */ 134 | .reveal img, 135 | .reveal video, 136 | .reveal iframe { 137 | max-width: 95%; 138 | max-height: 95%; 139 | } 140 | 141 | .reveal strong, 142 | .reveal b { 143 | font-weight: bold; 144 | } 145 | 146 | .reveal em { 147 | font-style: italic; 148 | } 149 | 150 | .reveal ol, 151 | .reveal dl, 152 | .reveal ul { 153 | display: inline-block; 154 | text-align: left; 155 | margin: 0 0 0 1em; 156 | } 157 | 158 | .reveal ol { 159 | list-style-type: decimal; 160 | } 161 | 162 | .reveal ul { 163 | list-style-type: disc; 164 | } 165 | 166 | .reveal ul ul { 167 | list-style-type: square; 168 | } 169 | 170 | .reveal ul ul ul { 171 | list-style-type: circle; 172 | } 173 | 174 | .reveal ul ul, 175 | .reveal ul ol, 176 | .reveal ol ol, 177 | .reveal ol ul { 178 | display: block; 179 | margin-left: 40px; 180 | } 181 | 182 | .reveal dt { 183 | font-weight: bold; 184 | } 185 | 186 | .reveal dd { 187 | margin-left: 40px; 188 | } 189 | 190 | .reveal blockquote { 191 | display: block; 192 | position: relative; 193 | width: 70%; 194 | margin: var(--r-block-margin) auto; 195 | padding: 5px; 196 | font-style: italic; 197 | background: rgba(255, 255, 255, 0.05); 198 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); 199 | } 200 | 201 | .reveal blockquote p:first-child, 202 | .reveal blockquote p:last-child { 203 | display: inline-block; 204 | } 205 | 206 | .reveal q { 207 | font-style: italic; 208 | } 209 | 210 | .reveal pre { 211 | display: block; 212 | position: relative; 213 | width: 90%; 214 | margin: var(--r-block-margin) auto; 215 | text-align: left; 216 | font-size: 0.55em; 217 | font-family: var(--r-code-font); 218 | line-height: 1.2em; 219 | word-wrap: break-word; 220 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); 221 | } 222 | 223 | .reveal code { 224 | font-family: var(--r-code-font); 225 | text-transform: none; 226 | tab-size: 2; 227 | } 228 | 229 | .reveal pre code { 230 | display: block; 231 | padding: 5px; 232 | overflow: auto; 233 | max-height: 400px; 234 | word-wrap: normal; 235 | } 236 | 237 | .reveal .code-wrapper { 238 | white-space: normal; 239 | } 240 | 241 | .reveal .code-wrapper code { 242 | white-space: pre; 243 | } 244 | 245 | .reveal table { 246 | margin: auto; 247 | border-collapse: collapse; 248 | border-spacing: 0; 249 | } 250 | 251 | .reveal table th { 252 | font-weight: bold; 253 | } 254 | 255 | .reveal table th, 256 | .reveal table td { 257 | text-align: left; 258 | padding: 0.2em 0.5em 0.2em 0.5em; 259 | border-bottom: 1px solid; 260 | } 261 | 262 | .reveal table th[align=center], 263 | .reveal table td[align=center] { 264 | text-align: center; 265 | } 266 | 267 | .reveal table th[align=right], 268 | .reveal table td[align=right] { 269 | text-align: right; 270 | } 271 | 272 | .reveal table tbody tr:last-child th, 273 | .reveal table tbody tr:last-child td { 274 | border-bottom: none; 275 | } 276 | 277 | .reveal sup { 278 | vertical-align: super; 279 | font-size: smaller; 280 | } 281 | 282 | .reveal sub { 283 | vertical-align: sub; 284 | font-size: smaller; 285 | } 286 | 287 | .reveal small { 288 | display: inline-block; 289 | font-size: 0.6em; 290 | line-height: 1.2em; 291 | vertical-align: top; 292 | } 293 | 294 | .reveal small * { 295 | vertical-align: top; 296 | } 297 | 298 | .reveal img { 299 | margin: var(--r-block-margin) 0; 300 | } 301 | 302 | /********************************************* 303 | * LINKS 304 | *********************************************/ 305 | .reveal a { 306 | color: var(--r-link-color); 307 | text-decoration: none; 308 | transition: color 0.15s ease; 309 | } 310 | 311 | .reveal a:hover { 312 | color: var(--r-link-color-hover); 313 | text-shadow: none; 314 | border: none; 315 | } 316 | 317 | .reveal .roll span:after { 318 | color: #fff; 319 | background: var(--r-link-color-dark); 320 | } 321 | 322 | /********************************************* 323 | * Frame helper 324 | *********************************************/ 325 | .reveal .r-frame { 326 | border: 4px solid var(--r-main-color); 327 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); 328 | } 329 | 330 | .reveal a .r-frame { 331 | transition: all 0.15s linear; 332 | } 333 | 334 | .reveal a:hover .r-frame { 335 | border-color: var(--r-link-color); 336 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); 337 | } 338 | 339 | /********************************************* 340 | * NAVIGATION CONTROLS 341 | *********************************************/ 342 | .reveal .controls { 343 | color: var(--r-link-color); 344 | } 345 | 346 | /********************************************* 347 | * PROGRESS BAR 348 | *********************************************/ 349 | .reveal .progress { 350 | background: rgba(0, 0, 0, 0.2); 351 | color: var(--r-link-color); 352 | } 353 | 354 | /********************************************* 355 | * PRINT BACKGROUND 356 | *********************************************/ 357 | @media print { 358 | .backgrounds { 359 | background-color: var(--r-background-color); 360 | } 361 | } -------------------------------------------------------------------------------- /css/reveal/theme/white-contrast.css: -------------------------------------------------------------------------------- 1 | /** 2 | * White compact & high contrast reveal.js theme, with headers not in capitals. 3 | * 4 | * By Peter Kehl. Based on white.(s)css by Hakim El Hattab, http://hakim.se 5 | * 6 | * - Keep the source similar to black.css - for easy comparison. 7 | * - $mainFontSize controls code blocks, too (although under some ratio). 8 | */ 9 | @import url(./fonts/source-sans-pro/source-sans-pro.css); 10 | section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 { 11 | color: #fff; 12 | } 13 | 14 | /********************************************* 15 | * GLOBAL STYLES 16 | *********************************************/ 17 | :root { 18 | --r-background-color: #fff; 19 | --r-main-font: Source Sans Pro, Helvetica, sans-serif; 20 | --r-main-font-size: 42px; 21 | --r-main-color: #000; 22 | --r-block-margin: 20px; 23 | --r-heading-margin: 0 0 20px 0; 24 | --r-heading-font: Source Sans Pro, Helvetica, sans-serif; 25 | --r-heading-color: #000; 26 | --r-heading-line-height: 1.2; 27 | --r-heading-letter-spacing: normal; 28 | --r-heading-text-transform: uppercase; 29 | --r-heading-text-shadow: none; 30 | --r-heading-font-weight: 600; 31 | --r-heading1-text-shadow: none; 32 | --r-heading1-size: 2.5em; 33 | --r-heading2-size: 1.6em; 34 | --r-heading3-size: 1.3em; 35 | --r-heading4-size: 1em; 36 | --r-code-font: monospace; 37 | --r-link-color: #2a76dd; 38 | --r-link-color-dark: #1a53a1; 39 | --r-link-color-hover: #6ca0e8; 40 | --r-selection-background-color: #98bdef; 41 | --r-selection-color: #fff; 42 | } 43 | 44 | .reveal-viewport { 45 | background: #fff; 46 | background-color: var(--r-background-color); 47 | } 48 | 49 | .reveal { 50 | font-family: var(--r-main-font); 51 | font-size: var(--r-main-font-size); 52 | font-weight: normal; 53 | color: var(--r-main-color); 54 | } 55 | 56 | .reveal ::selection { 57 | color: var(--r-selection-color); 58 | background: var(--r-selection-background-color); 59 | text-shadow: none; 60 | } 61 | 62 | .reveal ::-moz-selection { 63 | color: var(--r-selection-color); 64 | background: var(--r-selection-background-color); 65 | text-shadow: none; 66 | } 67 | 68 | .reveal .slides section, 69 | .reveal .slides section > section { 70 | line-height: 1.3; 71 | font-weight: inherit; 72 | } 73 | 74 | /********************************************* 75 | * HEADERS 76 | *********************************************/ 77 | .reveal h1, 78 | .reveal h2, 79 | .reveal h3, 80 | .reveal h4, 81 | .reveal h5, 82 | .reveal h6 { 83 | margin: var(--r-heading-margin); 84 | color: var(--r-heading-color); 85 | font-family: var(--r-heading-font); 86 | font-weight: var(--r-heading-font-weight); 87 | line-height: var(--r-heading-line-height); 88 | letter-spacing: var(--r-heading-letter-spacing); 89 | text-transform: var(--r-heading-text-transform); 90 | text-shadow: var(--r-heading-text-shadow); 91 | word-wrap: break-word; 92 | } 93 | 94 | .reveal h1 { 95 | font-size: var(--r-heading1-size); 96 | } 97 | 98 | .reveal h2 { 99 | font-size: var(--r-heading2-size); 100 | } 101 | 102 | .reveal h3 { 103 | font-size: var(--r-heading3-size); 104 | } 105 | 106 | .reveal h4 { 107 | font-size: var(--r-heading4-size); 108 | } 109 | 110 | .reveal h1 { 111 | text-shadow: var(--r-heading1-text-shadow); 112 | } 113 | 114 | /********************************************* 115 | * OTHER 116 | *********************************************/ 117 | .reveal p { 118 | margin: var(--r-block-margin) 0; 119 | line-height: 1.3; 120 | } 121 | 122 | /* Remove trailing margins after titles */ 123 | .reveal h1:last-child, 124 | .reveal h2:last-child, 125 | .reveal h3:last-child, 126 | .reveal h4:last-child, 127 | .reveal h5:last-child, 128 | .reveal h6:last-child { 129 | margin-bottom: 0; 130 | } 131 | 132 | /* Ensure certain elements are never larger than the slide itself */ 133 | .reveal img, 134 | .reveal video, 135 | .reveal iframe { 136 | max-width: 95%; 137 | max-height: 95%; 138 | } 139 | 140 | .reveal strong, 141 | .reveal b { 142 | font-weight: bold; 143 | } 144 | 145 | .reveal em { 146 | font-style: italic; 147 | } 148 | 149 | .reveal ol, 150 | .reveal dl, 151 | .reveal ul { 152 | display: inline-block; 153 | text-align: left; 154 | margin: 0 0 0 1em; 155 | } 156 | 157 | .reveal ol { 158 | list-style-type: decimal; 159 | } 160 | 161 | .reveal ul { 162 | list-style-type: disc; 163 | } 164 | 165 | .reveal ul ul { 166 | list-style-type: square; 167 | } 168 | 169 | .reveal ul ul ul { 170 | list-style-type: circle; 171 | } 172 | 173 | .reveal ul ul, 174 | .reveal ul ol, 175 | .reveal ol ol, 176 | .reveal ol ul { 177 | display: block; 178 | margin-left: 40px; 179 | } 180 | 181 | .reveal dt { 182 | font-weight: bold; 183 | } 184 | 185 | .reveal dd { 186 | margin-left: 40px; 187 | } 188 | 189 | .reveal blockquote { 190 | display: block; 191 | position: relative; 192 | width: 70%; 193 | margin: var(--r-block-margin) auto; 194 | padding: 5px; 195 | font-style: italic; 196 | background: rgba(255, 255, 255, 0.05); 197 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); 198 | } 199 | 200 | .reveal blockquote p:first-child, 201 | .reveal blockquote p:last-child { 202 | display: inline-block; 203 | } 204 | 205 | .reveal q { 206 | font-style: italic; 207 | } 208 | 209 | .reveal pre { 210 | display: block; 211 | position: relative; 212 | width: 90%; 213 | margin: var(--r-block-margin) auto; 214 | text-align: left; 215 | font-size: 0.55em; 216 | font-family: var(--r-code-font); 217 | line-height: 1.2em; 218 | word-wrap: break-word; 219 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); 220 | } 221 | 222 | .reveal code { 223 | font-family: var(--r-code-font); 224 | text-transform: none; 225 | tab-size: 2; 226 | } 227 | 228 | .reveal pre code { 229 | display: block; 230 | padding: 5px; 231 | overflow: auto; 232 | max-height: 400px; 233 | word-wrap: normal; 234 | } 235 | 236 | .reveal .code-wrapper { 237 | white-space: normal; 238 | } 239 | 240 | .reveal .code-wrapper code { 241 | white-space: pre; 242 | } 243 | 244 | .reveal table { 245 | margin: auto; 246 | border-collapse: collapse; 247 | border-spacing: 0; 248 | } 249 | 250 | .reveal table th { 251 | font-weight: bold; 252 | } 253 | 254 | .reveal table th, 255 | .reveal table td { 256 | text-align: left; 257 | padding: 0.2em 0.5em 0.2em 0.5em; 258 | border-bottom: 1px solid; 259 | } 260 | 261 | .reveal table th[align=center], 262 | .reveal table td[align=center] { 263 | text-align: center; 264 | } 265 | 266 | .reveal table th[align=right], 267 | .reveal table td[align=right] { 268 | text-align: right; 269 | } 270 | 271 | .reveal table tbody tr:last-child th, 272 | .reveal table tbody tr:last-child td { 273 | border-bottom: none; 274 | } 275 | 276 | .reveal sup { 277 | vertical-align: super; 278 | font-size: smaller; 279 | } 280 | 281 | .reveal sub { 282 | vertical-align: sub; 283 | font-size: smaller; 284 | } 285 | 286 | .reveal small { 287 | display: inline-block; 288 | font-size: 0.6em; 289 | line-height: 1.2em; 290 | vertical-align: top; 291 | } 292 | 293 | .reveal small * { 294 | vertical-align: top; 295 | } 296 | 297 | .reveal img { 298 | margin: var(--r-block-margin) 0; 299 | } 300 | 301 | /********************************************* 302 | * LINKS 303 | *********************************************/ 304 | .reveal a { 305 | color: var(--r-link-color); 306 | text-decoration: none; 307 | transition: color 0.15s ease; 308 | } 309 | 310 | .reveal a:hover { 311 | color: var(--r-link-color-hover); 312 | text-shadow: none; 313 | border: none; 314 | } 315 | 316 | .reveal .roll span:after { 317 | color: #fff; 318 | background: var(--r-link-color-dark); 319 | } 320 | 321 | /********************************************* 322 | * Frame helper 323 | *********************************************/ 324 | .reveal .r-frame { 325 | border: 4px solid var(--r-main-color); 326 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); 327 | } 328 | 329 | .reveal a .r-frame { 330 | transition: all 0.15s linear; 331 | } 332 | 333 | .reveal a:hover .r-frame { 334 | border-color: var(--r-link-color); 335 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); 336 | } 337 | 338 | /********************************************* 339 | * NAVIGATION CONTROLS 340 | *********************************************/ 341 | .reveal .controls { 342 | color: var(--r-link-color); 343 | } 344 | 345 | /********************************************* 346 | * PROGRESS BAR 347 | *********************************************/ 348 | .reveal .progress { 349 | background: rgba(0, 0, 0, 0.2); 350 | color: var(--r-link-color); 351 | } 352 | 353 | /********************************************* 354 | * PRINT BACKGROUND 355 | *********************************************/ 356 | @media print { 357 | .backgrounds { 358 | background-color: var(--r-background-color); 359 | } 360 | } -------------------------------------------------------------------------------- /css/reveal/theme/white.css: -------------------------------------------------------------------------------- 1 | /** 2 | * White theme for reveal.js. This is the opposite of the 'black' theme. 3 | * 4 | * By Hakim El Hattab, http://hakim.se 5 | */ 6 | @import url(./fonts/source-sans-pro/source-sans-pro.css); 7 | section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 { 8 | color: #fff; 9 | } 10 | 11 | /********************************************* 12 | * GLOBAL STYLES 13 | *********************************************/ 14 | :root { 15 | --r-background-color: #fff; 16 | --r-main-font: Source Sans Pro, Helvetica, sans-serif; 17 | --r-main-font-size: 42px; 18 | --r-main-color: #222; 19 | --r-block-margin: 20px; 20 | --r-heading-margin: 0 0 20px 0; 21 | --r-heading-font: Source Sans Pro, Helvetica, sans-serif; 22 | --r-heading-color: #222; 23 | --r-heading-line-height: 1.2; 24 | --r-heading-letter-spacing: normal; 25 | --r-heading-text-transform: uppercase; 26 | --r-heading-text-shadow: none; 27 | --r-heading-font-weight: 600; 28 | --r-heading1-text-shadow: none; 29 | --r-heading1-size: 2.5em; 30 | --r-heading2-size: 1.6em; 31 | --r-heading3-size: 1.3em; 32 | --r-heading4-size: 1em; 33 | --r-code-font: monospace; 34 | --r-link-color: #2a76dd; 35 | --r-link-color-dark: #1a53a1; 36 | --r-link-color-hover: #6ca0e8; 37 | --r-selection-background-color: #98bdef; 38 | --r-selection-color: #fff; 39 | } 40 | 41 | .reveal-viewport { 42 | background: #fff; 43 | background-color: var(--r-background-color); 44 | } 45 | 46 | .reveal { 47 | font-family: var(--r-main-font); 48 | font-size: var(--r-main-font-size); 49 | font-weight: normal; 50 | color: var(--r-main-color); 51 | } 52 | 53 | .reveal ::selection { 54 | color: var(--r-selection-color); 55 | background: var(--r-selection-background-color); 56 | text-shadow: none; 57 | } 58 | 59 | .reveal ::-moz-selection { 60 | color: var(--r-selection-color); 61 | background: var(--r-selection-background-color); 62 | text-shadow: none; 63 | } 64 | 65 | .reveal .slides section, 66 | .reveal .slides section > section { 67 | line-height: 1.3; 68 | font-weight: inherit; 69 | } 70 | 71 | /********************************************* 72 | * HEADERS 73 | *********************************************/ 74 | .reveal h1, 75 | .reveal h2, 76 | .reveal h3, 77 | .reveal h4, 78 | .reveal h5, 79 | .reveal h6 { 80 | margin: var(--r-heading-margin); 81 | color: var(--r-heading-color); 82 | font-family: var(--r-heading-font); 83 | font-weight: var(--r-heading-font-weight); 84 | line-height: var(--r-heading-line-height); 85 | letter-spacing: var(--r-heading-letter-spacing); 86 | text-transform: var(--r-heading-text-transform); 87 | text-shadow: var(--r-heading-text-shadow); 88 | word-wrap: break-word; 89 | } 90 | 91 | .reveal h1 { 92 | font-size: var(--r-heading1-size); 93 | } 94 | 95 | .reveal h2 { 96 | font-size: var(--r-heading2-size); 97 | } 98 | 99 | .reveal h3 { 100 | font-size: var(--r-heading3-size); 101 | } 102 | 103 | .reveal h4 { 104 | font-size: var(--r-heading4-size); 105 | } 106 | 107 | .reveal h1 { 108 | text-shadow: var(--r-heading1-text-shadow); 109 | } 110 | 111 | /********************************************* 112 | * OTHER 113 | *********************************************/ 114 | .reveal p { 115 | margin: var(--r-block-margin) 0; 116 | line-height: 1.3; 117 | } 118 | 119 | /* Remove trailing margins after titles */ 120 | .reveal h1:last-child, 121 | .reveal h2:last-child, 122 | .reveal h3:last-child, 123 | .reveal h4:last-child, 124 | .reveal h5:last-child, 125 | .reveal h6:last-child { 126 | margin-bottom: 0; 127 | } 128 | 129 | /* Ensure certain elements are never larger than the slide itself */ 130 | .reveal img, 131 | .reveal video, 132 | .reveal iframe { 133 | max-width: 95%; 134 | max-height: 95%; 135 | } 136 | 137 | .reveal strong, 138 | .reveal b { 139 | font-weight: bold; 140 | } 141 | 142 | .reveal em { 143 | font-style: italic; 144 | } 145 | 146 | .reveal ol, 147 | .reveal dl, 148 | .reveal ul { 149 | display: inline-block; 150 | text-align: left; 151 | margin: 0 0 0 1em; 152 | } 153 | 154 | .reveal ol { 155 | list-style-type: decimal; 156 | } 157 | 158 | .reveal ul { 159 | list-style-type: disc; 160 | } 161 | 162 | .reveal ul ul { 163 | list-style-type: square; 164 | } 165 | 166 | .reveal ul ul ul { 167 | list-style-type: circle; 168 | } 169 | 170 | .reveal ul ul, 171 | .reveal ul ol, 172 | .reveal ol ol, 173 | .reveal ol ul { 174 | display: block; 175 | margin-left: 40px; 176 | } 177 | 178 | .reveal dt { 179 | font-weight: bold; 180 | } 181 | 182 | .reveal dd { 183 | margin-left: 40px; 184 | } 185 | 186 | .reveal blockquote { 187 | display: block; 188 | position: relative; 189 | width: 70%; 190 | margin: var(--r-block-margin) auto; 191 | padding: 5px; 192 | font-style: italic; 193 | background: rgba(255, 255, 255, 0.05); 194 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); 195 | } 196 | 197 | .reveal blockquote p:first-child, 198 | .reveal blockquote p:last-child { 199 | display: inline-block; 200 | } 201 | 202 | .reveal q { 203 | font-style: italic; 204 | } 205 | 206 | .reveal pre { 207 | display: block; 208 | position: relative; 209 | width: 90%; 210 | margin: var(--r-block-margin) auto; 211 | text-align: left; 212 | font-size: 0.55em; 213 | font-family: var(--r-code-font); 214 | line-height: 1.2em; 215 | word-wrap: break-word; 216 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); 217 | } 218 | 219 | .reveal code { 220 | font-family: var(--r-code-font); 221 | text-transform: none; 222 | tab-size: 2; 223 | } 224 | 225 | .reveal pre code { 226 | display: block; 227 | padding: 5px; 228 | overflow: auto; 229 | max-height: 400px; 230 | word-wrap: normal; 231 | } 232 | 233 | .reveal .code-wrapper { 234 | white-space: normal; 235 | } 236 | 237 | .reveal .code-wrapper code { 238 | white-space: pre; 239 | } 240 | 241 | .reveal table { 242 | margin: auto; 243 | border-collapse: collapse; 244 | border-spacing: 0; 245 | } 246 | 247 | .reveal table th { 248 | font-weight: bold; 249 | } 250 | 251 | .reveal table th, 252 | .reveal table td { 253 | text-align: left; 254 | padding: 0.2em 0.5em 0.2em 0.5em; 255 | border-bottom: 1px solid; 256 | } 257 | 258 | .reveal table th[align=center], 259 | .reveal table td[align=center] { 260 | text-align: center; 261 | } 262 | 263 | .reveal table th[align=right], 264 | .reveal table td[align=right] { 265 | text-align: right; 266 | } 267 | 268 | .reveal table tbody tr:last-child th, 269 | .reveal table tbody tr:last-child td { 270 | border-bottom: none; 271 | } 272 | 273 | .reveal sup { 274 | vertical-align: super; 275 | font-size: smaller; 276 | } 277 | 278 | .reveal sub { 279 | vertical-align: sub; 280 | font-size: smaller; 281 | } 282 | 283 | .reveal small { 284 | display: inline-block; 285 | font-size: 0.6em; 286 | line-height: 1.2em; 287 | vertical-align: top; 288 | } 289 | 290 | .reveal small * { 291 | vertical-align: top; 292 | } 293 | 294 | .reveal img { 295 | margin: var(--r-block-margin) 0; 296 | } 297 | 298 | /********************************************* 299 | * LINKS 300 | *********************************************/ 301 | .reveal a { 302 | color: var(--r-link-color); 303 | text-decoration: none; 304 | transition: color 0.15s ease; 305 | } 306 | 307 | .reveal a:hover { 308 | color: var(--r-link-color-hover); 309 | text-shadow: none; 310 | border: none; 311 | } 312 | 313 | .reveal .roll span:after { 314 | color: #fff; 315 | background: var(--r-link-color-dark); 316 | } 317 | 318 | /********************************************* 319 | * Frame helper 320 | *********************************************/ 321 | .reveal .r-frame { 322 | border: 4px solid var(--r-main-color); 323 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); 324 | } 325 | 326 | .reveal a .r-frame { 327 | transition: all 0.15s linear; 328 | } 329 | 330 | .reveal a:hover .r-frame { 331 | border-color: var(--r-link-color); 332 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); 333 | } 334 | 335 | /********************************************* 336 | * NAVIGATION CONTROLS 337 | *********************************************/ 338 | .reveal .controls { 339 | color: var(--r-link-color); 340 | } 341 | 342 | /********************************************* 343 | * PROGRESS BAR 344 | *********************************************/ 345 | .reveal .progress { 346 | background: rgba(0, 0, 0, 0.2); 347 | color: var(--r-link-color); 348 | } 349 | 350 | /********************************************* 351 | * PRINT BACKGROUND 352 | *********************************************/ 353 | @media print { 354 | .backgrounds { 355 | background-color: var(--r-background-color); 356 | } 357 | } -------------------------------------------------------------------------------- /css/reveal/theme/white_contrast_compact_verbatim_headers.css: -------------------------------------------------------------------------------- 1 | /** 2 | * White compact & high contrast reveal.js theme, with headers not in capitals. 3 | * 4 | * By Peter Kehl. Based on white.(s)css by Hakim El Hattab, http://hakim.se 5 | * 6 | * - Keep the source similar to black.css - for easy comparison. 7 | * - $mainFontSize controls code blocks, too (although under some ratio). 8 | */ 9 | @import url(./fonts/source-sans-pro/source-sans-pro.css); 10 | section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 { 11 | color: #fff; 12 | } 13 | 14 | /********************************************* 15 | * GLOBAL STYLES 16 | *********************************************/ 17 | :root { 18 | --r-background-color: #fff; 19 | --r-main-font: Source Sans Pro, Helvetica, sans-serif; 20 | --r-main-font-size: 25px; 21 | --r-main-color: #000; 22 | --r-block-margin: 20px; 23 | --r-heading-margin: 0 0 20px 0; 24 | --r-heading-font: Source Sans Pro, Helvetica, sans-serif; 25 | --r-heading-color: #000; 26 | --r-heading-line-height: 1.2; 27 | --r-heading-letter-spacing: normal; 28 | --r-heading-text-transform: none; 29 | --r-heading-text-shadow: none; 30 | --r-heading-font-weight: 450; 31 | --r-heading1-text-shadow: none; 32 | --r-heading1-size: 2.5em; 33 | --r-heading2-size: 1.6em; 34 | --r-heading3-size: 1.3em; 35 | --r-heading4-size: 1em; 36 | --r-code-font: monospace; 37 | --r-link-color: #2a76dd; 38 | --r-link-color-dark: #1a53a1; 39 | --r-link-color-hover: #6ca0e8; 40 | --r-selection-background-color: #98bdef; 41 | --r-selection-color: #fff; 42 | } 43 | 44 | .reveal-viewport { 45 | background: #fff; 46 | background-color: var(--r-background-color); 47 | } 48 | 49 | .reveal { 50 | font-family: var(--r-main-font); 51 | font-size: var(--r-main-font-size); 52 | font-weight: normal; 53 | color: var(--r-main-color); 54 | } 55 | 56 | .reveal ::selection { 57 | color: var(--r-selection-color); 58 | background: var(--r-selection-background-color); 59 | text-shadow: none; 60 | } 61 | 62 | .reveal ::-moz-selection { 63 | color: var(--r-selection-color); 64 | background: var(--r-selection-background-color); 65 | text-shadow: none; 66 | } 67 | 68 | .reveal .slides section, 69 | .reveal .slides section > section { 70 | line-height: 1.3; 71 | font-weight: inherit; 72 | } 73 | 74 | /********************************************* 75 | * HEADERS 76 | *********************************************/ 77 | .reveal h1, 78 | .reveal h2, 79 | .reveal h3, 80 | .reveal h4, 81 | .reveal h5, 82 | .reveal h6 { 83 | margin: var(--r-heading-margin); 84 | color: var(--r-heading-color); 85 | font-family: var(--r-heading-font); 86 | font-weight: var(--r-heading-font-weight); 87 | line-height: var(--r-heading-line-height); 88 | letter-spacing: var(--r-heading-letter-spacing); 89 | text-transform: var(--r-heading-text-transform); 90 | text-shadow: var(--r-heading-text-shadow); 91 | word-wrap: break-word; 92 | } 93 | 94 | .reveal h1 { 95 | font-size: var(--r-heading1-size); 96 | } 97 | 98 | .reveal h2 { 99 | font-size: var(--r-heading2-size); 100 | } 101 | 102 | .reveal h3 { 103 | font-size: var(--r-heading3-size); 104 | } 105 | 106 | .reveal h4 { 107 | font-size: var(--r-heading4-size); 108 | } 109 | 110 | .reveal h1 { 111 | text-shadow: var(--r-heading1-text-shadow); 112 | } 113 | 114 | /********************************************* 115 | * OTHER 116 | *********************************************/ 117 | .reveal p { 118 | margin: var(--r-block-margin) 0; 119 | line-height: 1.3; 120 | } 121 | 122 | /* Remove trailing margins after titles */ 123 | .reveal h1:last-child, 124 | .reveal h2:last-child, 125 | .reveal h3:last-child, 126 | .reveal h4:last-child, 127 | .reveal h5:last-child, 128 | .reveal h6:last-child { 129 | margin-bottom: 0; 130 | } 131 | 132 | /* Ensure certain elements are never larger than the slide itself */ 133 | .reveal img, 134 | .reveal video, 135 | .reveal iframe { 136 | max-width: 95%; 137 | max-height: 95%; 138 | } 139 | 140 | .reveal strong, 141 | .reveal b { 142 | font-weight: bold; 143 | } 144 | 145 | .reveal em { 146 | font-style: italic; 147 | } 148 | 149 | .reveal ol, 150 | .reveal dl, 151 | .reveal ul { 152 | display: inline-block; 153 | text-align: left; 154 | margin: 0 0 0 1em; 155 | } 156 | 157 | .reveal ol { 158 | list-style-type: decimal; 159 | } 160 | 161 | .reveal ul { 162 | list-style-type: disc; 163 | } 164 | 165 | .reveal ul ul { 166 | list-style-type: square; 167 | } 168 | 169 | .reveal ul ul ul { 170 | list-style-type: circle; 171 | } 172 | 173 | .reveal ul ul, 174 | .reveal ul ol, 175 | .reveal ol ol, 176 | .reveal ol ul { 177 | display: block; 178 | margin-left: 40px; 179 | } 180 | 181 | .reveal dt { 182 | font-weight: bold; 183 | } 184 | 185 | .reveal dd { 186 | margin-left: 40px; 187 | } 188 | 189 | .reveal blockquote { 190 | display: block; 191 | position: relative; 192 | width: 70%; 193 | margin: var(--r-block-margin) auto; 194 | padding: 5px; 195 | font-style: italic; 196 | background: rgba(255, 255, 255, 0.05); 197 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); 198 | } 199 | 200 | .reveal blockquote p:first-child, 201 | .reveal blockquote p:last-child { 202 | display: inline-block; 203 | } 204 | 205 | .reveal q { 206 | font-style: italic; 207 | } 208 | 209 | .reveal pre { 210 | display: block; 211 | position: relative; 212 | width: 90%; 213 | margin: var(--r-block-margin) auto; 214 | text-align: left; 215 | font-size: 0.55em; 216 | font-family: var(--r-code-font); 217 | line-height: 1.2em; 218 | word-wrap: break-word; 219 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); 220 | } 221 | 222 | .reveal code { 223 | font-family: var(--r-code-font); 224 | text-transform: none; 225 | tab-size: 2; 226 | } 227 | 228 | .reveal pre code { 229 | display: block; 230 | padding: 5px; 231 | overflow: auto; 232 | max-height: 400px; 233 | word-wrap: normal; 234 | } 235 | 236 | .reveal .code-wrapper { 237 | white-space: normal; 238 | } 239 | 240 | .reveal .code-wrapper code { 241 | white-space: pre; 242 | } 243 | 244 | .reveal table { 245 | margin: auto; 246 | border-collapse: collapse; 247 | border-spacing: 0; 248 | } 249 | 250 | .reveal table th { 251 | font-weight: bold; 252 | } 253 | 254 | .reveal table th, 255 | .reveal table td { 256 | text-align: left; 257 | padding: 0.2em 0.5em 0.2em 0.5em; 258 | border-bottom: 1px solid; 259 | } 260 | 261 | .reveal table th[align=center], 262 | .reveal table td[align=center] { 263 | text-align: center; 264 | } 265 | 266 | .reveal table th[align=right], 267 | .reveal table td[align=right] { 268 | text-align: right; 269 | } 270 | 271 | .reveal table tbody tr:last-child th, 272 | .reveal table tbody tr:last-child td { 273 | border-bottom: none; 274 | } 275 | 276 | .reveal sup { 277 | vertical-align: super; 278 | font-size: smaller; 279 | } 280 | 281 | .reveal sub { 282 | vertical-align: sub; 283 | font-size: smaller; 284 | } 285 | 286 | .reveal small { 287 | display: inline-block; 288 | font-size: 0.6em; 289 | line-height: 1.2em; 290 | vertical-align: top; 291 | } 292 | 293 | .reveal small * { 294 | vertical-align: top; 295 | } 296 | 297 | .reveal img { 298 | margin: var(--r-block-margin) 0; 299 | } 300 | 301 | /********************************************* 302 | * LINKS 303 | *********************************************/ 304 | .reveal a { 305 | color: var(--r-link-color); 306 | text-decoration: none; 307 | transition: color 0.15s ease; 308 | } 309 | 310 | .reveal a:hover { 311 | color: var(--r-link-color-hover); 312 | text-shadow: none; 313 | border: none; 314 | } 315 | 316 | .reveal .roll span:after { 317 | color: #fff; 318 | background: var(--r-link-color-dark); 319 | } 320 | 321 | /********************************************* 322 | * Frame helper 323 | *********************************************/ 324 | .reveal .r-frame { 325 | border: 4px solid var(--r-main-color); 326 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); 327 | } 328 | 329 | .reveal a .r-frame { 330 | transition: all 0.15s linear; 331 | } 332 | 333 | .reveal a:hover .r-frame { 334 | border-color: var(--r-link-color); 335 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); 336 | } 337 | 338 | /********************************************* 339 | * NAVIGATION CONTROLS 340 | *********************************************/ 341 | .reveal .controls { 342 | color: var(--r-link-color); 343 | } 344 | 345 | /********************************************* 346 | * PROGRESS BAR 347 | *********************************************/ 348 | .reveal .progress { 349 | background: rgba(0, 0, 0, 0.2); 350 | color: var(--r-link-color); 351 | } 352 | 353 | /********************************************* 354 | * PRINT BACKGROUND 355 | *********************************************/ 356 | @media print { 357 | .backgrounds { 358 | background-color: var(--r-background-color); 359 | } 360 | } -------------------------------------------------------------------------------- /css/vlearn.css: -------------------------------------------------------------------------------- 1 | /* CSS styles */ 2 | html { 3 | font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; 4 | } 5 | 6 | label { 7 | font-variant: all-small-caps; 8 | } 9 | 10 | body { 11 | background: #191919; 12 | display: flex; 13 | flex-direction: column; 14 | align-items: center; 15 | justify-content: center; 16 | height: 100vh; 17 | margin: 0; 18 | } 19 | 20 | #api-key-link { 21 | color: #03836c; 22 | } 23 | 24 | .top-header-line { 25 | display: flex; 26 | justify-content: space-between; 27 | width: 100%; 28 | align-items: flex-start; 29 | } 30 | 31 | .api-key-container { 32 | display: flex; 33 | flex-direction: column; 34 | gap: 4px; 35 | color: white; 36 | } 37 | 38 | .download-container { 39 | display: flex; 40 | flex-direction: column; 41 | gap: 4px; 42 | color: white; 43 | text-align: center; 44 | } 45 | 46 | #download[downloading] { 47 | background: #c91a25; 48 | } 49 | 50 | .input-container { 51 | width: calc(100% - 40px); 52 | padding: 20px 20px 0; 53 | text-align: center; 54 | } 55 | 56 | .input-container button { 57 | font-size: 0; 58 | padding: 10px 14px; 59 | height: 48px; 60 | } 61 | 62 | .input-container button { 63 | color: white; 64 | border: none; 65 | border-radius: 8px; 66 | cursor: pointer; 67 | background-color: #03836c; 68 | border: 1px solid transparent; 69 | } 70 | 71 | .input-container button:hover { 72 | background-color: #04a286; 73 | border: 1px solid #262626; 74 | } 75 | 76 | .input-container button[disabled] { 77 | background-color: #494b4a; 78 | opacity: 0.5; 79 | } 80 | 81 | .input-container button[disabled]:hover { 82 | cursor: not-allowed; 83 | border: 1px solid transparent; 84 | } 85 | 86 | .prompt { 87 | resize: none; 88 | padding-bottom: 12px; 89 | background: #252327; 90 | border: 1px solid #2E2C32; 91 | border-radius: 12px; 92 | } 93 | 94 | .prompt-container { 95 | position: relative; 96 | padding: 20px; 97 | width: 80%; 98 | margin: 0; 99 | display: flex; 100 | justify-content: center; 101 | gap: 12px; 102 | } 103 | 104 | .prompt-container button[disabled] { 105 | opacity: 0.5; 106 | pointer-events: none; 107 | border: 1px solid transparent; 108 | } 109 | 110 | .prompt-container textarea { 111 | width: 100%; 112 | } 113 | 114 | #prompt-button { 115 | background-color: #3d3f99; 116 | color: white; 117 | border-radius: 8px; 118 | cursor: pointer; 119 | font-size: 0; 120 | border: 1px solid transparent; 121 | padding: 20px 20px; 122 | } 123 | 124 | #prompt-button:hover { 125 | background-color: #494baa; 126 | border: 1px solid #262626; 127 | } 128 | 129 | #prompt-button[generating] { 130 | background: #c91a25; 131 | } 132 | 133 | #pause-button { 134 | background-color: #3d3f99; 135 | padding: 20px 20px; 136 | border-radius: 8px; 137 | cursor: pointer; 138 | font-size: 0; 139 | color: white; 140 | border: 1px solid transparent; 141 | } 142 | 143 | #pause-button[disabled] { 144 | background-color: #494b4a; 145 | } 146 | 147 | #pause-button:hover { 148 | background-color: #494baa; 149 | border: 1px solid #262626; 150 | } 151 | 152 | textarea { 153 | padding: 10px; 154 | font-size: 16px; 155 | max-width: 1000px; 156 | 157 | background: #252327; 158 | border: 1px solid #2E2C32; 159 | border-radius: 12px; 160 | color: #F8F8F2; 161 | } 162 | 163 | textarea[loading] { 164 | animation: fadeInOut 2s infinite cubic-bezier(0.4, 0, 0.2, 1); 165 | } 166 | 167 | textarea[disabled] { 168 | color: #67636F; 169 | } 170 | 171 | /* Keyframes for fading in and out */ 172 | @keyframes fadeInOut { 173 | 0%, 100% { background: #252327; } 174 | 50% { background: #333136; } 175 | } 176 | 177 | input { 178 | padding: 10px; 179 | font-size: 16px; 180 | max-width: 1000px; 181 | 182 | background: #252327; 183 | border: 1px solid #2E2C32; 184 | border-radius: 6px; 185 | color: #F8F8F2; 186 | } 187 | 188 | ::placeholder { 189 | color: #67636F; 190 | } 191 | 192 | #audioPlayers { 193 | position: relative; 194 | display: none; 195 | } 196 | 197 | .reveal { 198 | width: 80%; 199 | height: 600px; 200 | border-radius: 10px; 201 | background: #191919 !important; 202 | } 203 | 204 | .github { 205 | position: absolute; 206 | left: 50%; 207 | top: 40px; 208 | } 209 | 210 | .github a { 211 | color: white; 212 | font-size: 14px; 213 | opacity: 0.8; 214 | text-decoration: none; 215 | display: flex; 216 | align-items: center; 217 | gap: 8px; 218 | } 219 | 220 | .github:hover { 221 | text-decoration: underline; 222 | } 223 | 224 | .download-progress-container { 225 | display: flex; 226 | justify-content: space-between; 227 | opacity: 0; 228 | } 229 | 230 | -------------------------------------------------------------------------------- /img/download.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /img/github.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /img/movie.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /img/new-video.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /img/pause.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /img/play.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /img/stop.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | vlearn: On-Demand Education 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
20 |
21 | 22 | 23 |
24 | 30 |
31 | 32 | 35 |
0%
36 |
37 |
38 |
39 | 40 |
41 |
42 | 43 | 44 |
45 |
46 |

47 | Getting started 48 |

49 |

🔒 No data is saved. This is a static web page.

50 |

💰 Cost: ~$0.10/video

51 |

⚠️ Don't use if free tier, text-to-speech limit is too low. ⚠️

52 |
    53 |
  1. 🧠 Add OpenAI API Key 54 |
      55 |
    • Only sent to OpenAI
    • 56 |
    57 |
  2. 58 |
  3. 🔉 Turn on sound
  4. 59 |
  5. ✍️ Enter what you want to learn
  6. 60 |
  7. 🎥 Hit "New Video" button
  8. 61 |
  9. 🎓 Start learning
  10. 62 |
  11. 📠 Save as a video and share
  12. 63 |
64 |
65 |
66 | 67 |
68 | 69 | 72 | 75 |
76 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /js/dist/ffmpeg/814.ffmpeg.js: -------------------------------------------------------------------------------- 1 | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FFmpegWASM=t():e.FFmpegWASM=t()}(self,()=>(()=>{"use strict";const F="https://unpkg.com/@ffmpeg/core@0.12.6/dist/umd/ffmpeg-core.js";var L,e;(e=L=L||{}).LOAD="LOAD",e.EXEC="EXEC",e.WRITE_FILE="WRITE_FILE",e.READ_FILE="READ_FILE",e.DELETE_FILE="DELETE_FILE",e.RENAME="RENAME",e.CREATE_DIR="CREATE_DIR",e.LIST_DIR="LIST_DIR",e.DELETE_DIR="DELETE_DIR",e.ERROR="ERROR",e.DOWNLOAD="DOWNLOAD",e.PROGRESS="PROGRESS",e.LOG="LOG",e.MOUNT="MOUNT",e.UNMOUNT="UNMOUNT";const l=new Error("unknown message type"),g=new Error("ffmpeg is not loaded, call `await ffmpeg.load()` first"),u=(new Error("called FFmpeg.terminate()"),new Error("failed to import ffmpeg-core.js"));let D;return self.onmessage=async({data:{id:t,type:e,data:r}})=>{const a=[];let s;try{if(e!==L.LOAD&&!D)throw g;switch(e){case L.LOAD:s=await(async({coreURL:e,wasmURL:t,workerURL:r})=>{var a=!D;try{e=e||F,importScripts(e)}catch{if(e=e||F.replace("/umd/","/esm/"),self.createFFmpegCore=(await import(e)).default,!self.createFFmpegCore)throw u}var s=e,t=t||e.replace(/.js$/g,".wasm"),r=r||e.replace(/.js$/g,".worker.js");return(D=await self.createFFmpegCore({mainScriptUrlOrBlob:s+"#"+btoa(JSON.stringify({wasmURL:t,workerURL:r}))})).setLogger(e=>self.postMessage({type:L.LOG,data:e})),D.setProgress(e=>self.postMessage({type:L.PROGRESS,data:e})),a})(r);break;case L.EXEC:s=(({args:e,timeout:t=-1})=>{D.setTimeout(t),D.exec(...e);t=D.ret;return D.reset(),t})(r);break;case L.WRITE_FILE:s=({path:m,data:d}=[r][0],D.FS.writeFile(m,d),!0);break;case L.READ_FILE:s=({path:f,encoding:R}=[r][0],D.FS.readFile(f,{encoding:R}));break;case L.DELETE_FILE:s=(p=[r["path"]][0],D.FS.unlink(p),!0);break;case L.RENAME:s=({oldPath:i,newPath:c}=[r][0],D.FS.rename(i,c),!0);break;case L.CREATE_DIR:s=(n=[r["path"]][0],D.FS.mkdir(n),!0);break;case L.LIST_DIR:s=(({path:e})=>{const t=D.FS.readdir(e),r=[];for(const a of t){const t=D.FS.stat(e+"/"+a),s=D.FS.isDir(t.mode);r.push({name:a,isDir:s})}return r})(r);break;case L.DELETE_DIR:s=(E=[r["path"]][0],D.FS.rmdir(E),!0);break;case L.MOUNT:s=(({fsType:e,options:t,mountPoint:r})=>{e=D.FS.filesystems[e];return!!e&&(D.FS.mount(e,t,r),!0)})(r);break;case L.UNMOUNT:s=(o=[r["mountPoint"]][0],D.FS.unmount(o),!0);break;default:throw l}}catch(e){return void self.postMessage({id:t,type:L.ERROR,data:e.toString()})}var o,E,n,i,c,p,f,R,m,d;s instanceof Uint8Array&&a.push(s.buffer),self.postMessage({id:t,type:e,data:s},a)},{}})()); -------------------------------------------------------------------------------- /js/dist/ffmpeg/ffmpeg-core.min.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonjmcghee/vlearn/bf9b70fad34f17afed0e6445daa47d5fefb900cb/js/dist/ffmpeg/ffmpeg-core.min.wasm -------------------------------------------------------------------------------- /js/dist/ffmpeg/ffmpeg.min.js: -------------------------------------------------------------------------------- 1 | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FFmpegWASM=t():e.FFmpegWASM=t()}(self,()=>(()=>{"use strict";var s={m:{},d:(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},u:e=>e+".ffmpeg.js"};s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.g.importScripts&&(e=s.g.location+"");var e,t=s.g.document;if(!e&&t&&!(e=t.currentScript?t.currentScript.src:e)){var i=t.getElementsByTagName("script");if(i.length)for(var a=i.length-1;-1d}),(o=r=r||{}).LOAD="LOAD",o.EXEC="EXEC",o.WRITE_FILE="WRITE_FILE",o.READ_FILE="READ_FILE",o.DELETE_FILE="DELETE_FILE",o.RENAME="RENAME",o.CREATE_DIR="CREATE_DIR",o.LIST_DIR="LIST_DIR",o.DELETE_DIR="DELETE_DIR",o.ERROR="ERROR",o.DOWNLOAD="DOWNLOAD",o.PROGRESS="PROGRESS",o.LOG="LOG",o.MOUNT="MOUNT",o.UNMOUNT="UNMOUNT";const n=(()=>{let e=0;return()=>e++})(),E=(new Error("unknown message type"),new Error("ffmpeg is not loaded, call `await ffmpeg.load()` first")),p=new Error("called FFmpeg.terminate()");new Error("failed to import ffmpeg-core.js");class d{#e=null;#t={};#s={};#r=[];#a=[];loaded=!1;#o=()=>{this.#e&&(this.#e.onmessage=({data:{id:e,type:t,data:i}})=>{switch(t){case r.LOAD:this.loaded=!0,this.#t[e](i);break;case r.MOUNT:case r.UNMOUNT:case r.EXEC:case r.WRITE_FILE:case r.READ_FILE:case r.DELETE_FILE:case r.RENAME:case r.CREATE_DIR:case r.LIST_DIR:case r.DELETE_DIR:this.#t[e](i);break;case r.LOG:this.#r.forEach(e=>e(i));break;case r.PROGRESS:this.#a.forEach(e=>e(i));break;case r.ERROR:this.#s[e](i)}delete this.#t[e],delete this.#s[e]})};#i=({type:s,data:a},r=[],o)=>this.#e?new Promise((e,t)=>{const i=n();this.#e&&this.#e.postMessage({id:i,type:s,data:a},r),this.#t[i]=e,this.#s[i]=t,o?.addEventListener("abort",()=>{t(new DOMException(`Message # ${i} was aborted`,"AbortError"))},{once:!0})}):Promise.reject(E);on(e,t){"log"===e?this.#r.push(t):"progress"===e&&this.#a.push(t)}off(e,t){"log"===e?this.#r=this.#r.filter(e=>e!==t):"progress"===e&&(this.#a=this.#a.filter(e=>e!==t))}load=({classWorkerURL:e,...t}={},{signal:i}={})=>(this.#e||(this.#e=e?new Worker(new URL(e,"file:///home/jeromewu/ffmpeg.wasm/packages/ffmpeg/dist/esm/classes.js"),{type:"module"}):new Worker(new URL(s.p+s.u(814),s.b),{type:void 0}),this.#o()),this.#i({type:r.LOAD,data:t},void 0,i));exec=(e,t=-1,{signal:i}={})=>this.#i({type:r.EXEC,data:{args:e,timeout:t}},void 0,i);terminate=()=>{for(const e of Object.keys(this.#s))this.#s[e](p),delete this.#s[e],delete this.#t[e];this.#e&&(this.#e.terminate(),this.#e=null,this.loaded=!1)};writeFile=(e,t,{signal:i}={})=>{const s=[];return t instanceof Uint8Array&&s.push(t.buffer),this.#i({type:r.WRITE_FILE,data:{path:e,data:t}},s,i)};mount=(e,t,i)=>this.#i({type:r.MOUNT,data:{fsType:e,options:t,mountPoint:i}},[]);unmount=e=>this.#i({type:r.UNMOUNT,data:{mountPoint:e}},[]);readFile=(e,t="binary",{signal:i}={})=>this.#i({type:r.READ_FILE,data:{path:e,encoding:t}},void 0,i);deleteFile=(e,{signal:t}={})=>this.#i({type:r.DELETE_FILE,data:{path:e}},void 0,t);rename=(e,t,{signal:i}={})=>this.#i({type:r.RENAME,data:{oldPath:e,newPath:t}},void 0,i);createDir=(e,{signal:t}={})=>this.#i({type:r.CREATE_DIR,data:{path:e}},void 0,t);listDir=(e,{signal:t}={})=>this.#i({type:r.LIST_DIR,data:{path:e}},void 0,t);deleteDir=(e,{signal:t}={})=>this.#i({type:r.DELETE_DIR,data:{path:e}},void 0,t)}return t})()); -------------------------------------------------------------------------------- /js/dist/ffmpeg/util.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Skipped minification because the original files appears to be already minified. 3 | * Original file: /npm/@ffmpeg/util@0.12.1/dist/umd/index.js 4 | * 5 | * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files 6 | */ 7 | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FFmpegUtil=t():e.FFmpegUtil=t()}(self,(()=>(()=>{"use strict";var e={591:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HeaderContentLength=void 0,t.HeaderContentLength="Content-Length"},431:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_INCOMPLETED_DOWNLOAD=t.ERROR_RESPONSE_BODY_READER=void 0,t.ERROR_RESPONSE_BODY_READER=new Error("failed to get response body reader"),t.ERROR_INCOMPLETED_DOWNLOAD=new Error("failed to complete download")},915:function(e,t,o){var r=this&&this.__awaiter||function(e,t,o,r){return new(o||(o=Promise))((function(n,i){function d(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(d,a)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.toBlobURL=t.downloadWithProgress=t.importScript=t.fetchFile=void 0;const n=o(431),i=o(591);t.fetchFile=e=>r(void 0,void 0,void 0,(function*(){let t;if("string"==typeof e)t=/data:_data\/([a-zA-Z]*);base64,([^"]*)/.test(e)?atob(e.split(",")[1]).split("").map((e=>e.charCodeAt(0))):yield(yield fetch(e)).arrayBuffer();else if(e instanceof URL)t=yield(yield fetch(e)).arrayBuffer();else{if(!(e instanceof File||e instanceof Blob))return new Uint8Array;t=yield(o=e,new Promise(((e,t)=>{const r=new FileReader;r.onload=()=>{const{result:t}=r;t instanceof ArrayBuffer?e(new Uint8Array(t)):e(new Uint8Array)},r.onerror=e=>{var o,r;t(Error(`File could not be read! Code=${(null===(r=null===(o=null==e?void 0:e.target)||void 0===o?void 0:o.error)||void 0===r?void 0:r.code)||-1}`))},r.readAsArrayBuffer(o)})))}var o;return new Uint8Array(t)})),t.importScript=e=>r(void 0,void 0,void 0,(function*(){return new Promise((t=>{const o=document.createElement("script"),r=()=>{o.removeEventListener("load",r),t()};o.src=e,o.type="text/javascript",o.addEventListener("load",r),document.getElementsByTagName("head")[0].appendChild(o)}))})),t.downloadWithProgress=(e,t)=>r(void 0,void 0,void 0,(function*(){var o;const r=yield fetch(e);let d;try{const a=parseInt(r.headers.get(i.HeaderContentLength)||"-1"),l=null===(o=r.body)||void 0===o?void 0:o.getReader();if(!l)throw n.ERROR_RESPONSE_BODY_READER;const c=[];let s=0;for(;;){const{done:o,value:r}=yield l.read(),i=r?r.length:0;if(o){if(-1!=a&&a!==s)throw n.ERROR_INCOMPLETED_DOWNLOAD;t&&t({url:e,total:a,received:s,delta:i,done:o});break}c.push(r),s+=i,t&&t({url:e,total:a,received:s,delta:i,done:o})}const f=new Uint8Array(s);let u=0;for(const e of c)f.set(e,u),u+=e.length;d=f.buffer}catch(o){console.log("failed to send download progress event: ",o),d=yield r.arrayBuffer(),t&&t({url:e,total:d.byteLength,received:d.byteLength,delta:0,done:!0})}return d})),t.toBlobURL=(e,o,n=!1,i)=>r(void 0,void 0,void 0,(function*(){const r=n?yield(0,t.downloadWithProgress)(e,i):yield(yield fetch(e)).arrayBuffer(),d=new Blob([r],{type:o});return URL.createObjectURL(d)}))}},t={};return function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,o),i.exports}(915)})())); -------------------------------------------------------------------------------- /js/plugin/highlight/monokai.css: -------------------------------------------------------------------------------- 1 | /* 2 | Monokai style - ported by Luigi Maselli - http://grigio.org 3 | */ 4 | 5 | .hljs { 6 | display: block; 7 | overflow-x: auto; 8 | padding: 0.5em; 9 | background: #272822; 10 | color: #ddd; 11 | } 12 | 13 | .hljs-tag, 14 | .hljs-keyword, 15 | .hljs-selector-tag, 16 | .hljs-literal, 17 | .hljs-strong, 18 | .hljs-name { 19 | color: #f92672; 20 | } 21 | 22 | .hljs-code { 23 | color: #66d9ef; 24 | } 25 | 26 | .hljs-class .hljs-title { 27 | color: white; 28 | } 29 | 30 | .hljs-attribute, 31 | .hljs-symbol, 32 | .hljs-regexp, 33 | .hljs-link { 34 | color: #bf79db; 35 | } 36 | 37 | .hljs-string, 38 | .hljs-bullet, 39 | .hljs-subst, 40 | .hljs-title, 41 | .hljs-section, 42 | .hljs-emphasis, 43 | .hljs-type, 44 | .hljs-built_in, 45 | .hljs-builtin-name, 46 | .hljs-selector-attr, 47 | .hljs-selector-pseudo, 48 | .hljs-addition, 49 | .hljs-variable, 50 | .hljs-template-tag, 51 | .hljs-template-variable { 52 | color: #a6e22e; 53 | } 54 | 55 | .hljs-comment, 56 | .hljs-quote, 57 | .hljs-deletion, 58 | .hljs-meta { 59 | color: #75715e; 60 | } 61 | 62 | .hljs-keyword, 63 | .hljs-selector-tag, 64 | .hljs-literal, 65 | .hljs-doctag, 66 | .hljs-title, 67 | .hljs-section, 68 | .hljs-type, 69 | .hljs-selector-id { 70 | font-weight: bold; 71 | } 72 | -------------------------------------------------------------------------------- /js/plugin/highlight/zenburn.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov 4 | based on dark.css by Ivan Sagalaev 5 | 6 | */ 7 | 8 | .hljs { 9 | display: block; 10 | overflow-x: auto; 11 | padding: 0.5em; 12 | background: #3f3f3f; 13 | color: #dcdcdc; 14 | } 15 | 16 | .hljs-keyword, 17 | .hljs-selector-tag, 18 | .hljs-tag { 19 | color: #e3ceab; 20 | } 21 | 22 | .hljs-template-tag { 23 | color: #dcdcdc; 24 | } 25 | 26 | .hljs-number { 27 | color: #8cd0d3; 28 | } 29 | 30 | .hljs-variable, 31 | .hljs-template-variable, 32 | .hljs-attribute { 33 | color: #efdcbc; 34 | } 35 | 36 | .hljs-literal { 37 | color: #efefaf; 38 | } 39 | 40 | .hljs-subst { 41 | color: #8f8f8f; 42 | } 43 | 44 | .hljs-title, 45 | .hljs-name, 46 | .hljs-selector-id, 47 | .hljs-selector-class, 48 | .hljs-section, 49 | .hljs-type { 50 | color: #efef8f; 51 | } 52 | 53 | .hljs-symbol, 54 | .hljs-bullet, 55 | .hljs-link { 56 | color: #dca3a3; 57 | } 58 | 59 | .hljs-deletion, 60 | .hljs-string, 61 | .hljs-built_in, 62 | .hljs-builtin-name { 63 | color: #cc9393; 64 | } 65 | 66 | .hljs-addition, 67 | .hljs-comment, 68 | .hljs-quote, 69 | .hljs-meta { 70 | color: #7f9f7f; 71 | } 72 | 73 | 74 | .hljs-emphasis { 75 | font-style: italic; 76 | } 77 | 78 | .hljs-strong { 79 | font-weight: bold; 80 | } 81 | -------------------------------------------------------------------------------- /js/plugin/math/katex.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A plugin which enables rendering of math equations inside 3 | * of reveal.js slides. Essentially a thin wrapper for KaTeX. 4 | * 5 | * @author Hakim El Hattab 6 | * @author Gerhard Burger 7 | */ 8 | export const KaTeX = () => { 9 | let deck; 10 | 11 | let defaultOptions = { 12 | version: 'latest', 13 | delimiters: [ 14 | {left: '$$', right: '$$', display: true}, // Note: $$ has to come before $ 15 | {left: '$', right: '$', display: false}, 16 | {left: '\\(', right: '\\)', display: false}, 17 | {left: '\\[', right: '\\]', display: true} 18 | ], 19 | ignoredTags: ['script', 'noscript', 'style', 'textarea', 'pre'] 20 | } 21 | 22 | const loadCss = src => { 23 | let link = document.createElement('link'); 24 | link.rel = 'stylesheet'; 25 | link.href = src; 26 | document.head.appendChild(link); 27 | }; 28 | 29 | /** 30 | * Loads a JavaScript file and returns a Promise for when it is loaded 31 | * Credits: https://aaronsmith.online/easily-load-an-external-script-using-javascript/ 32 | */ 33 | const loadScript = src => { 34 | return new Promise((resolve, reject) => { 35 | const script = document.createElement('script') 36 | script.type = 'text/javascript' 37 | script.onload = resolve 38 | script.onerror = reject 39 | script.src = src 40 | document.head.append(script) 41 | }) 42 | }; 43 | 44 | async function loadScripts(urls) { 45 | for(const url of urls) { 46 | await loadScript(url); 47 | } 48 | } 49 | 50 | return { 51 | id: 'katex', 52 | 53 | init: function (reveal) { 54 | 55 | deck = reveal; 56 | 57 | let revealOptions = deck.getConfig().katex || {}; 58 | 59 | let options = {...defaultOptions, ...revealOptions}; 60 | const {local, version, extensions, ...katexOptions} = options; 61 | 62 | let baseUrl = options.local || 'https://cdn.jsdelivr.net/npm/katex'; 63 | let versionString = options.local ? '' : '@' + options.version; 64 | 65 | let cssUrl = baseUrl + versionString + '/dist/katex.min.css'; 66 | let katexUrl = baseUrl + versionString + '/dist/katex.min.js'; 67 | let mhchemUrl = baseUrl + versionString + '/dist/contrib/mhchem.min.js' 68 | let karUrl = baseUrl + versionString + '/dist/contrib/auto-render.min.js'; 69 | 70 | let katexScripts = [katexUrl]; 71 | if(options.extensions && options.extensions.includes("mhchem")) { 72 | katexScripts.push(mhchemUrl); 73 | } 74 | katexScripts.push(karUrl); 75 | 76 | const renderMath = () => { 77 | renderMathInElement(reveal.getSlidesElement(), katexOptions); 78 | deck.layout(); 79 | } 80 | 81 | loadCss(cssUrl); 82 | 83 | // For some reason dynamically loading with defer attribute doesn't result in the expected behavior, the below code does 84 | loadScripts(katexScripts).then(() => { 85 | if( deck.isReady() ) { 86 | renderMath(); 87 | } 88 | else { 89 | deck.on( 'ready', renderMath.bind( this ) ); 90 | } 91 | }); 92 | 93 | } 94 | } 95 | 96 | }; 97 | -------------------------------------------------------------------------------- /js/plugin/math/math.esm.js: -------------------------------------------------------------------------------- 1 | const t=()=>{let t,e={messageStyle:"none",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]],skipTags:["script","noscript","style","textarea","pre"]},skipStartupTypeset:!0};return{id:"mathjax2",init:function(a){t=a;let n=t.getConfig().mathjax2||t.getConfig().math||{},i={...e,...n},s=(i.mathjax||"https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js")+"?config="+(i.config||"TeX-AMS_HTML-full");i.tex2jax={...e.tex2jax,...n.tex2jax},i.mathjax=i.config=null,function(t,e){let a=document.querySelector("head"),n=document.createElement("script");n.type="text/javascript",n.src=t;let i=()=>{"function"==typeof e&&(e.call(),e=null)};n.onload=i,n.onreadystatechange=()=>{"loaded"===this.readyState&&i()},a.appendChild(n)}(s,(function(){MathJax.Hub.Config(i),MathJax.Hub.Queue(["Typeset",MathJax.Hub,t.getRevealElement()]),MathJax.Hub.Queue(t.layout),t.on("slidechanged",(function(t){MathJax.Hub.Queue(["Typeset",MathJax.Hub,t.currentSlide])}))}))}}},e=t; 2 | /*! 3 | * This plugin is a wrapper for the MathJax2, 4 | * MathJax3 and KaTeX typesetter plugins. 5 | */ 6 | var a=Plugin=Object.assign(e(),{KaTeX:()=>{let t,e={version:"latest",delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\[",right:"\\]",display:!0}],ignoredTags:["script","noscript","style","textarea","pre"]};const a=t=>new Promise(((e,a)=>{const n=document.createElement("script");n.type="text/javascript",n.onload=e,n.onerror=a,n.src=t,document.head.append(n)}));return{id:"katex",init:function(n){t=n;let i=t.getConfig().katex||{},s={...e,...i};const{local:l,version:o,extensions:r,...c}=s;let d=s.local||"https://cdn.jsdelivr.net/npm/katex",p=s.local?"":"@"+s.version,u=d+p+"/dist/katex.min.css",h=d+p+"/dist/contrib/mhchem.min.js",x=d+p+"/dist/contrib/auto-render.min.js",m=[d+p+"/dist/katex.min.js"];s.extensions&&s.extensions.includes("mhchem")&&m.push(h),m.push(x);const f=()=>{renderMathInElement(n.getSlidesElement(),c),t.layout()};(t=>{let e=document.createElement("link");e.rel="stylesheet",e.href=t,document.head.appendChild(e)})(u),async function(t){for(const e of t)await a(e)}(m).then((()=>{t.isReady()?f():t.on("ready",f.bind(this))}))}}},MathJax2:t,MathJax3:()=>{let t,e={tex:{inlineMath:[["$","$"],["\\(","\\)"]]},options:{skipHtmlTags:["script","noscript","style","textarea","pre"]},startup:{ready:()=>{MathJax.startup.defaultReady(),MathJax.startup.promise.then((()=>{Reveal.layout()}))}}};return{id:"mathjax3",init:function(a){t=a;let n=t.getConfig().mathjax3||{},i={...e,...n};i.tex={...e.tex,...n.tex},i.options={...e.options,...n.options},i.startup={...e.startup,...n.startup};let s=i.mathjax||"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js";i.mathjax=null,window.MathJax=i,function(t,e){let a=document.createElement("script");a.type="text/javascript",a.id="MathJax-script",a.src=t,a.async=!0,a.onload=()=>{"function"==typeof e&&(e.call(),e=null)},document.head.appendChild(a)}(s,(function(){Reveal.addEventListener("slidechanged",(function(t){MathJax.typeset()}))}))}}}});export default a; 7 | -------------------------------------------------------------------------------- /js/plugin/math/math.js: -------------------------------------------------------------------------------- 1 | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).RevealMath=e()}(this,(function(){"use strict";const t=()=>{let t,e={messageStyle:"none",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]],skipTags:["script","noscript","style","textarea","pre"]},skipStartupTypeset:!0};return{id:"mathjax2",init:function(n){t=n;let a=t.getConfig().mathjax2||t.getConfig().math||{},i={...e,...a},s=(i.mathjax||"https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js")+"?config="+(i.config||"TeX-AMS_HTML-full");i.tex2jax={...e.tex2jax,...a.tex2jax},i.mathjax=i.config=null,function(t,e){let n=document.querySelector("head"),a=document.createElement("script");a.type="text/javascript",a.src=t;let i=()=>{"function"==typeof e&&(e.call(),e=null)};a.onload=i,a.onreadystatechange=()=>{"loaded"===this.readyState&&i()},n.appendChild(a)}(s,(function(){MathJax.Hub.Config(i),MathJax.Hub.Queue(["Typeset",MathJax.Hub,t.getRevealElement()]),MathJax.Hub.Queue(t.layout),t.on("slidechanged",(function(t){MathJax.Hub.Queue(["Typeset",MathJax.Hub,t.currentSlide])}))}))}}},e=t;return Plugin=Object.assign(e(),{KaTeX:()=>{let t,e={version:"latest",delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\[",right:"\\]",display:!0}],ignoredTags:["script","noscript","style","textarea","pre"]};const n=t=>new Promise(((e,n)=>{const a=document.createElement("script");a.type="text/javascript",a.onload=e,a.onerror=n,a.src=t,document.head.append(a)}));return{id:"katex",init:function(a){t=a;let i=t.getConfig().katex||{},s={...e,...i};const{local:o,version:l,extensions:r,...c}=s;let d=s.local||"https://cdn.jsdelivr.net/npm/katex",u=s.local?"":"@"+s.version,p=d+u+"/dist/katex.min.css",h=d+u+"/dist/contrib/mhchem.min.js",x=d+u+"/dist/contrib/auto-render.min.js",m=[d+u+"/dist/katex.min.js"];s.extensions&&s.extensions.includes("mhchem")&&m.push(h),m.push(x);const f=()=>{renderMathInElement(a.getSlidesElement(),c),t.layout()};(t=>{let e=document.createElement("link");e.rel="stylesheet",e.href=t,document.head.appendChild(e)})(p),async function(t){for(const e of t)await n(e)}(m).then((()=>{t.isReady()?f():t.on("ready",f.bind(this))}))}}},MathJax2:t,MathJax3:()=>{let t,e={tex:{inlineMath:[["$","$"],["\\(","\\)"]]},options:{skipHtmlTags:["script","noscript","style","textarea","pre"]},startup:{ready:()=>{MathJax.startup.defaultReady(),MathJax.startup.promise.then((()=>{Reveal.layout()}))}}};return{id:"mathjax3",init:function(n){t=n;let a=t.getConfig().mathjax3||{},i={...e,...a};i.tex={...e.tex,...a.tex},i.options={...e.options,...a.options},i.startup={...e.startup,...a.startup};let s=i.mathjax||"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js";i.mathjax=null,window.MathJax=i,function(t,e){let n=document.createElement("script");n.type="text/javascript",n.id="MathJax-script",n.src=t,n.async=!0,n.onload=()=>{"function"==typeof e&&(e.call(),e=null)},document.head.appendChild(n)}(s,(function(){Reveal.addEventListener("slidechanged",(function(t){MathJax.typeset()}))}))}}}})})); 2 | -------------------------------------------------------------------------------- /js/plugin/math/mathjax2.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A plugin which enables rendering of math equations inside 3 | * of reveal.js slides. Essentially a thin wrapper for MathJax. 4 | * 5 | * @author Hakim El Hattab 6 | */ 7 | export const MathJax2 = () => { 8 | 9 | // The reveal.js instance this plugin is attached to 10 | let deck; 11 | 12 | let defaultOptions = { 13 | messageStyle: 'none', 14 | tex2jax: { 15 | inlineMath: [ [ '$', '$' ], [ '\\(', '\\)' ] ], 16 | skipTags: [ 'script', 'noscript', 'style', 'textarea', 'pre' ] 17 | }, 18 | skipStartupTypeset: true 19 | }; 20 | 21 | function loadScript( url, callback ) { 22 | 23 | let head = document.querySelector( 'head' ); 24 | let script = document.createElement( 'script' ); 25 | script.type = 'text/javascript'; 26 | script.src = url; 27 | 28 | // Wrapper for callback to make sure it only fires once 29 | let finish = () => { 30 | if( typeof callback === 'function' ) { 31 | callback.call(); 32 | callback = null; 33 | } 34 | } 35 | 36 | script.onload = finish; 37 | 38 | // IE 39 | script.onreadystatechange = () => { 40 | if ( this.readyState === 'loaded' ) { 41 | finish(); 42 | } 43 | } 44 | 45 | // Normal browsers 46 | head.appendChild( script ); 47 | 48 | } 49 | 50 | return { 51 | id: 'mathjax2', 52 | 53 | init: function( reveal ) { 54 | 55 | deck = reveal; 56 | 57 | let revealOptions = deck.getConfig().mathjax2 || deck.getConfig().math || {}; 58 | 59 | let options = { ...defaultOptions, ...revealOptions }; 60 | let mathjax = options.mathjax || 'https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js'; 61 | let config = options.config || 'TeX-AMS_HTML-full'; 62 | let url = mathjax + '?config=' + config; 63 | 64 | options.tex2jax = { ...defaultOptions.tex2jax, ...revealOptions.tex2jax }; 65 | 66 | options.mathjax = options.config = null; 67 | 68 | loadScript( url, function() { 69 | 70 | MathJax.Hub.Config( options ); 71 | 72 | // Typeset followed by an immediate reveal.js layout since 73 | // the typesetting process could affect slide height 74 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub, deck.getRevealElement() ] ); 75 | MathJax.Hub.Queue( deck.layout ); 76 | 77 | // Reprocess equations in slides when they turn visible 78 | deck.on( 'slidechanged', function( event ) { 79 | 80 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub, event.currentSlide ] ); 81 | 82 | } ); 83 | 84 | } ); 85 | 86 | } 87 | } 88 | 89 | }; 90 | -------------------------------------------------------------------------------- /js/plugin/math/mathjax3.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A plugin which enables rendering of math equations inside 3 | * of reveal.js slides. Essentially a thin wrapper for MathJax 3 4 | * 5 | * @author Hakim El Hattab 6 | * @author Gerhard Burger 7 | */ 8 | export const MathJax3 = () => { 9 | 10 | // The reveal.js instance this plugin is attached to 11 | let deck; 12 | 13 | let defaultOptions = { 14 | tex: { 15 | inlineMath: [ [ '$', '$' ], [ '\\(', '\\)' ] ] 16 | }, 17 | options: { 18 | skipHtmlTags: [ 'script', 'noscript', 'style', 'textarea', 'pre' ] 19 | }, 20 | startup: { 21 | ready: () => { 22 | MathJax.startup.defaultReady(); 23 | MathJax.startup.promise.then(() => { 24 | Reveal.layout(); 25 | }); 26 | } 27 | } 28 | }; 29 | 30 | function loadScript( url, callback ) { 31 | 32 | let script = document.createElement( 'script' ); 33 | script.type = "text/javascript" 34 | script.id = "MathJax-script" 35 | script.src = url; 36 | script.async = true 37 | 38 | // Wrapper for callback to make sure it only fires once 39 | script.onload = () => { 40 | if (typeof callback === 'function') { 41 | callback.call(); 42 | callback = null; 43 | } 44 | }; 45 | 46 | document.head.appendChild( script ); 47 | 48 | } 49 | 50 | return { 51 | id: 'mathjax3', 52 | init: function(reveal) { 53 | 54 | deck = reveal; 55 | 56 | let revealOptions = deck.getConfig().mathjax3 || {}; 57 | let options = {...defaultOptions, ...revealOptions}; 58 | options.tex = {...defaultOptions.tex, ...revealOptions.tex} 59 | options.options = {...defaultOptions.options, ...revealOptions.options} 60 | options.startup = {...defaultOptions.startup, ...revealOptions.startup} 61 | 62 | let url = options.mathjax || 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js'; 63 | options.mathjax = null; 64 | 65 | window.MathJax = options; 66 | 67 | loadScript( url, function() { 68 | // Reprocess equations in slides when they turn visible 69 | Reveal.addEventListener( 'slidechanged', function( event ) { 70 | MathJax.typeset(); 71 | } ); 72 | } ); 73 | 74 | } 75 | } 76 | 77 | }; 78 | -------------------------------------------------------------------------------- /js/plugin/math/plugin.js: -------------------------------------------------------------------------------- 1 | import {KaTeX} from "./katex"; 2 | import {MathJax2} from "./mathjax2"; 3 | import {MathJax3} from "./mathjax3"; 4 | 5 | const defaultTypesetter = MathJax2; 6 | 7 | /*! 8 | * This plugin is a wrapper for the MathJax2, 9 | * MathJax3 and KaTeX typesetter plugins. 10 | */ 11 | export default Plugin = Object.assign( defaultTypesetter(), { 12 | KaTeX, 13 | MathJax2, 14 | MathJax3 15 | } ); -------------------------------------------------------------------------------- /js/plugin/notes/plugin.js: -------------------------------------------------------------------------------- 1 | import speakerViewHTML from './speaker-view.html' 2 | 3 | import { marked } from 'marked'; 4 | 5 | /** 6 | * Handles opening of and synchronization with the reveal.js 7 | * notes window. 8 | * 9 | * Handshake process: 10 | * 1. This window posts 'connect' to notes window 11 | * - Includes URL of presentation to show 12 | * 2. Notes window responds with 'connected' when it is available 13 | * 3. This window proceeds to send the current presentation state 14 | * to the notes window 15 | */ 16 | const Plugin = () => { 17 | 18 | let connectInterval; 19 | let speakerWindow = null; 20 | let deck; 21 | 22 | /** 23 | * Opens a new speaker view window. 24 | */ 25 | function openSpeakerWindow() { 26 | 27 | // If a window is already open, focus it 28 | if( speakerWindow && !speakerWindow.closed ) { 29 | speakerWindow.focus(); 30 | } 31 | else { 32 | speakerWindow = window.open( 'about:blank', 'reveal.js - Notes', 'width=1100,height=700' ); 33 | speakerWindow.marked = marked; 34 | speakerWindow.document.write( speakerViewHTML ); 35 | 36 | if( !speakerWindow ) { 37 | alert( 'Speaker view popup failed to open. Please make sure popups are allowed and reopen the speaker view.' ); 38 | return; 39 | } 40 | 41 | connect(); 42 | } 43 | 44 | } 45 | 46 | /** 47 | * Reconnect with an existing speaker view window. 48 | */ 49 | function reconnectSpeakerWindow( reconnectWindow ) { 50 | 51 | if( speakerWindow && !speakerWindow.closed ) { 52 | speakerWindow.focus(); 53 | } 54 | else { 55 | speakerWindow = reconnectWindow; 56 | window.addEventListener( 'message', onPostMessage ); 57 | onConnected(); 58 | } 59 | 60 | } 61 | 62 | /** 63 | * Connect to the notes window through a postmessage handshake. 64 | * Using postmessage enables us to work in situations where the 65 | * origins differ, such as a presentation being opened from the 66 | * file system. 67 | */ 68 | function connect() { 69 | 70 | const presentationURL = deck.getConfig().url; 71 | 72 | const url = typeof presentationURL === 'string' ? presentationURL : 73 | window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search; 74 | 75 | // Keep trying to connect until we get a 'connected' message back 76 | connectInterval = setInterval( function() { 77 | speakerWindow.postMessage( JSON.stringify( { 78 | namespace: 'reveal-notes', 79 | type: 'connect', 80 | state: deck.getState(), 81 | url 82 | } ), '*' ); 83 | }, 500 ); 84 | 85 | window.addEventListener( 'message', onPostMessage ); 86 | 87 | } 88 | 89 | /** 90 | * Calls the specified Reveal.js method with the provided argument 91 | * and then pushes the result to the notes frame. 92 | */ 93 | function callRevealApi( methodName, methodArguments, callId ) { 94 | 95 | let result = deck[methodName].apply( deck, methodArguments ); 96 | speakerWindow.postMessage( JSON.stringify( { 97 | namespace: 'reveal-notes', 98 | type: 'return', 99 | result, 100 | callId 101 | } ), '*' ); 102 | 103 | } 104 | 105 | /** 106 | * Posts the current slide data to the notes window. 107 | */ 108 | function post( event ) { 109 | 110 | let slideElement = deck.getCurrentSlide(), 111 | notesElements = slideElement.querySelectorAll( 'aside.notes' ), 112 | fragmentElement = slideElement.querySelector( '.current-fragment' ); 113 | 114 | let messageData = { 115 | namespace: 'reveal-notes', 116 | type: 'state', 117 | notes: '', 118 | markdown: false, 119 | whitespace: 'normal', 120 | state: deck.getState() 121 | }; 122 | 123 | // Look for notes defined in a slide attribute 124 | if( slideElement.hasAttribute( 'data-notes' ) ) { 125 | messageData.notes = slideElement.getAttribute( 'data-notes' ); 126 | messageData.whitespace = 'pre-wrap'; 127 | } 128 | 129 | // Look for notes defined in a fragment 130 | if( fragmentElement ) { 131 | let fragmentNotes = fragmentElement.querySelector( 'aside.notes' ); 132 | if( fragmentNotes ) { 133 | messageData.notes = fragmentNotes.innerHTML; 134 | messageData.markdown = typeof fragmentNotes.getAttribute( 'data-markdown' ) === 'string'; 135 | 136 | // Ignore other slide notes 137 | notesElements = null; 138 | } 139 | else if( fragmentElement.hasAttribute( 'data-notes' ) ) { 140 | messageData.notes = fragmentElement.getAttribute( 'data-notes' ); 141 | messageData.whitespace = 'pre-wrap'; 142 | 143 | // In case there are slide notes 144 | notesElements = null; 145 | } 146 | } 147 | 148 | // Look for notes defined in an aside element 149 | if( notesElements ) { 150 | messageData.notes = Array.from(notesElements).map( notesElement => notesElement.innerHTML ).join( '\n' ); 151 | messageData.markdown = notesElements[0] && typeof notesElements[0].getAttribute( 'data-markdown' ) === 'string'; 152 | } 153 | 154 | speakerWindow.postMessage( JSON.stringify( messageData ), '*' ); 155 | 156 | } 157 | 158 | /** 159 | * Check if the given event is from the same origin as the 160 | * current window. 161 | */ 162 | function isSameOriginEvent( event ) { 163 | 164 | try { 165 | return window.location.origin === event.source.location.origin; 166 | } 167 | catch ( error ) { 168 | return false; 169 | } 170 | 171 | } 172 | 173 | function onPostMessage( event ) { 174 | 175 | // Only allow same-origin messages 176 | // (added 12/5/22 as a XSS safeguard) 177 | if( isSameOriginEvent( event ) ) { 178 | 179 | let data = JSON.parse( event.data ); 180 | if( data && data.namespace === 'reveal-notes' && data.type === 'connected' ) { 181 | clearInterval( connectInterval ); 182 | onConnected(); 183 | } 184 | else if( data && data.namespace === 'reveal-notes' && data.type === 'call' ) { 185 | callRevealApi( data.methodName, data.arguments, data.callId ); 186 | } 187 | 188 | } 189 | 190 | } 191 | 192 | /** 193 | * Called once we have established a connection to the notes 194 | * window. 195 | */ 196 | function onConnected() { 197 | 198 | // Monitor events that trigger a change in state 199 | deck.on( 'slidechanged', post ); 200 | deck.on( 'fragmentshown', post ); 201 | deck.on( 'fragmenthidden', post ); 202 | deck.on( 'overviewhidden', post ); 203 | deck.on( 'overviewshown', post ); 204 | deck.on( 'paused', post ); 205 | deck.on( 'resumed', post ); 206 | 207 | // Post the initial state 208 | post(); 209 | 210 | } 211 | 212 | return { 213 | id: 'notes', 214 | 215 | init: function( reveal ) { 216 | 217 | deck = reveal; 218 | 219 | if( !/receiver/i.test( window.location.search ) ) { 220 | 221 | // If the there's a 'notes' query set, open directly 222 | if( window.location.search.match( /(\?|\&)notes/gi ) !== null ) { 223 | openSpeakerWindow(); 224 | } 225 | else { 226 | // Keep listening for speaker view hearbeats. If we receive a 227 | // heartbeat from an orphaned window, reconnect it. This ensures 228 | // that we remain connected to the notes even if the presentation 229 | // is reloaded. 230 | window.addEventListener( 'message', event => { 231 | 232 | if( !speakerWindow && typeof event.data === 'string' ) { 233 | let data; 234 | 235 | try { 236 | data = JSON.parse( event.data ); 237 | } 238 | catch( error ) {} 239 | 240 | if( data && data.namespace === 'reveal-notes' && data.type === 'heartbeat' ) { 241 | reconnectSpeakerWindow( event.source ); 242 | } 243 | } 244 | }); 245 | } 246 | 247 | // Open the notes when the 's' key is hit 248 | deck.addKeyBinding({keyCode: 83, key: 'S', description: 'Speaker notes view'}, function() { 249 | openSpeakerWindow(); 250 | } ); 251 | 252 | } 253 | 254 | }, 255 | 256 | open: openSpeakerWindow 257 | }; 258 | 259 | }; 260 | 261 | export default Plugin; 262 | -------------------------------------------------------------------------------- /js/plugin/search/plugin.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Handles finding a text string anywhere in the slides and showing the next occurrence to the user 3 | * by navigatating to that slide and highlighting it. 4 | * 5 | * @author Jon Snyder , February 2013 6 | */ 7 | 8 | const Plugin = () => { 9 | 10 | // The reveal.js instance this plugin is attached to 11 | let deck; 12 | 13 | let searchElement; 14 | let searchButton; 15 | let searchInput; 16 | 17 | let matchedSlides; 18 | let currentMatchedIndex; 19 | let searchboxDirty; 20 | let hilitor; 21 | 22 | function render() { 23 | 24 | searchElement = document.createElement( 'div' ); 25 | searchElement.classList.add( 'searchbox' ); 26 | searchElement.style.position = 'absolute'; 27 | searchElement.style.top = '10px'; 28 | searchElement.style.right = '10px'; 29 | searchElement.style.zIndex = 10; 30 | 31 | //embedded base64 search icon Designed by Sketchdock - http://www.sketchdock.com/: 32 | searchElement.innerHTML = ` 33 | `; 34 | 35 | searchInput = searchElement.querySelector( '.searchinput' ); 36 | searchInput.style.width = '240px'; 37 | searchInput.style.fontSize = '14px'; 38 | searchInput.style.padding = '4px 6px'; 39 | searchInput.style.color = '#000'; 40 | searchInput.style.background = '#fff'; 41 | searchInput.style.borderRadius = '2px'; 42 | searchInput.style.border = '0'; 43 | searchInput.style.outline = '0'; 44 | searchInput.style.boxShadow = '0 2px 18px rgba(0, 0, 0, 0.2)'; 45 | searchInput.style['-webkit-appearance'] = 'none'; 46 | 47 | deck.getRevealElement().appendChild( searchElement ); 48 | 49 | // searchButton.addEventListener( 'click', function(event) { 50 | // doSearch(); 51 | // }, false ); 52 | 53 | searchInput.addEventListener( 'keyup', function( event ) { 54 | switch (event.keyCode) { 55 | case 13: 56 | event.preventDefault(); 57 | doSearch(); 58 | searchboxDirty = false; 59 | break; 60 | default: 61 | searchboxDirty = true; 62 | } 63 | }, false ); 64 | 65 | closeSearch(); 66 | 67 | } 68 | 69 | function openSearch() { 70 | if( !searchElement ) render(); 71 | 72 | searchElement.style.display = 'inline'; 73 | searchInput.focus(); 74 | searchInput.select(); 75 | } 76 | 77 | function closeSearch() { 78 | if( !searchElement ) render(); 79 | 80 | searchElement.style.display = 'none'; 81 | if(hilitor) hilitor.remove(); 82 | } 83 | 84 | function toggleSearch() { 85 | if( !searchElement ) render(); 86 | 87 | if (searchElement.style.display !== 'inline') { 88 | openSearch(); 89 | } 90 | else { 91 | closeSearch(); 92 | } 93 | } 94 | 95 | function doSearch() { 96 | //if there's been a change in the search term, perform a new search: 97 | if (searchboxDirty) { 98 | var searchstring = searchInput.value; 99 | 100 | if (searchstring === '') { 101 | if(hilitor) hilitor.remove(); 102 | matchedSlides = null; 103 | } 104 | else { 105 | //find the keyword amongst the slides 106 | hilitor = new Hilitor("slidecontent"); 107 | matchedSlides = hilitor.apply(searchstring); 108 | currentMatchedIndex = 0; 109 | } 110 | } 111 | 112 | if (matchedSlides) { 113 | //navigate to the next slide that has the keyword, wrapping to the first if necessary 114 | if (matchedSlides.length && (matchedSlides.length <= currentMatchedIndex)) { 115 | currentMatchedIndex = 0; 116 | } 117 | if (matchedSlides.length > currentMatchedIndex) { 118 | deck.slide(matchedSlides[currentMatchedIndex].h, matchedSlides[currentMatchedIndex].v); 119 | currentMatchedIndex++; 120 | } 121 | } 122 | } 123 | 124 | // Original JavaScript code by Chirp Internet: www.chirp.com.au 125 | // Please acknowledge use of this code by including this header. 126 | // 2/2013 jon: modified regex to display any match, not restricted to word boundaries. 127 | function Hilitor(id, tag) { 128 | 129 | var targetNode = document.getElementById(id) || document.body; 130 | var hiliteTag = tag || "EM"; 131 | var skipTags = new RegExp("^(?:" + hiliteTag + "|SCRIPT|FORM)$"); 132 | var colors = ["#ff6", "#a0ffff", "#9f9", "#f99", "#f6f"]; 133 | var wordColor = []; 134 | var colorIdx = 0; 135 | var matchRegex = ""; 136 | var matchingSlides = []; 137 | 138 | this.setRegex = function(input) 139 | { 140 | input = input.replace(/^[^\w]+|[^\w]+$/g, "").replace(/[^\w'-]+/g, "|"); 141 | matchRegex = new RegExp("(" + input + ")","i"); 142 | } 143 | 144 | this.getRegex = function() 145 | { 146 | return matchRegex.toString().replace(/^\/\\b\(|\)\\b\/i$/g, "").replace(/\|/g, " "); 147 | } 148 | 149 | // recursively apply word highlighting 150 | this.hiliteWords = function(node) 151 | { 152 | if(node == undefined || !node) return; 153 | if(!matchRegex) return; 154 | if(skipTags.test(node.nodeName)) return; 155 | 156 | if(node.hasChildNodes()) { 157 | for(var i=0; i < node.childNodes.length; i++) 158 | this.hiliteWords(node.childNodes[i]); 159 | } 160 | if(node.nodeType == 3) { // NODE_TEXT 161 | var nv, regs; 162 | if((nv = node.nodeValue) && (regs = matchRegex.exec(nv))) { 163 | //find the slide's section element and save it in our list of matching slides 164 | var secnode = node; 165 | while (secnode != null && secnode.nodeName != 'SECTION') { 166 | secnode = secnode.parentNode; 167 | } 168 | 169 | var slideIndex = deck.getIndices(secnode); 170 | var slidelen = matchingSlides.length; 171 | var alreadyAdded = false; 172 | for (var i=0; i < slidelen; i++) { 173 | if ( (matchingSlides[i].h === slideIndex.h) && (matchingSlides[i].v === slideIndex.v) ) { 174 | alreadyAdded = true; 175 | } 176 | } 177 | if (! alreadyAdded) { 178 | matchingSlides.push(slideIndex); 179 | } 180 | 181 | if(!wordColor[regs[0].toLowerCase()]) { 182 | wordColor[regs[0].toLowerCase()] = colors[colorIdx++ % colors.length]; 183 | } 184 | 185 | var match = document.createElement(hiliteTag); 186 | match.appendChild(document.createTextNode(regs[0])); 187 | match.style.backgroundColor = wordColor[regs[0].toLowerCase()]; 188 | match.style.fontStyle = "inherit"; 189 | match.style.color = "#000"; 190 | 191 | var after = node.splitText(regs.index); 192 | after.nodeValue = after.nodeValue.substring(regs[0].length); 193 | node.parentNode.insertBefore(match, after); 194 | } 195 | } 196 | }; 197 | 198 | // remove highlighting 199 | this.remove = function() 200 | { 201 | var arr = document.getElementsByTagName(hiliteTag); 202 | var el; 203 | while(arr.length && (el = arr[0])) { 204 | el.parentNode.replaceChild(el.firstChild, el); 205 | } 206 | }; 207 | 208 | // start highlighting at target node 209 | this.apply = function(input) 210 | { 211 | if(input == undefined || !input) return; 212 | this.remove(); 213 | this.setRegex(input); 214 | this.hiliteWords(targetNode); 215 | return matchingSlides; 216 | }; 217 | 218 | } 219 | 220 | return { 221 | 222 | id: 'search', 223 | 224 | init: reveal => { 225 | 226 | deck = reveal; 227 | deck.registerKeyboardShortcut( 'CTRL + Shift + F', 'Search' ); 228 | 229 | document.addEventListener( 'keydown', function( event ) { 230 | if( event.key == "F" && (event.ctrlKey || event.metaKey) ) { //Control+Shift+f 231 | event.preventDefault(); 232 | toggleSearch(); 233 | } 234 | }, false ); 235 | 236 | }, 237 | 238 | open: openSearch 239 | 240 | } 241 | }; 242 | 243 | export default Plugin; -------------------------------------------------------------------------------- /js/plugin/search/search.esm.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Handles finding a text string anywhere in the slides and showing the next occurrence to the user 3 | * by navigatating to that slide and highlighting it. 4 | * 5 | * @author Jon Snyder , February 2013 6 | */ 7 | export default()=>{let e,t,n,l,i,o,r;function s(){t=document.createElement("div"),t.classList.add("searchbox"),t.style.position="absolute",t.style.top="10px",t.style.right="10px",t.style.zIndex=10,t.innerHTML='\n\t\t',n=t.querySelector(".searchinput"),n.style.width="240px",n.style.fontSize="14px",n.style.padding="4px 6px",n.style.color="#000",n.style.background="#fff",n.style.borderRadius="2px",n.style.border="0",n.style.outline="0",n.style.boxShadow="0 2px 18px rgba(0, 0, 0, 0.2)",n.style["-webkit-appearance"]="none",e.getRevealElement().appendChild(t),n.addEventListener("keyup",(function(t){if(13===t.keyCode)t.preventDefault(),function(){if(o){var t=n.value;""===t?(r&&r.remove(),l=null):(r=new c("slidecontent"),l=r.apply(t),i=0)}l&&(l.length&&l.length<=i&&(i=0),l.length>i&&(e.slide(l[i].h,l[i].v),i++))}(),o=!1;else o=!0}),!1),d()}function a(){t||s(),t.style.display="inline",n.focus(),n.select()}function d(){t||s(),t.style.display="none",r&&r.remove()}function c(t,n){var l=document.getElementById(t)||document.body,i=n||"EM",o=new RegExp("^(?:"+i+"|SCRIPT|FORM)$"),r=["#ff6","#a0ffff","#9f9","#f99","#f6f"],s=[],a=0,d="",c=[];this.setRegex=function(e){e=e.replace(/^[^\w]+|[^\w]+$/g,"").replace(/[^\w'-]+/g,"|"),d=new RegExp("("+e+")","i")},this.getRegex=function(){return d.toString().replace(/^\/\\b\(|\)\\b\/i$/g,"").replace(/\|/g," ")},this.hiliteWords=function(t){if(null!=t&&t&&d&&!o.test(t.nodeName)){if(t.hasChildNodes())for(var n=0;n{e=n,e.registerKeyboardShortcut("CTRL + Shift + F","Search"),document.addEventListener("keydown",(function(e){"F"==e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),t||s(),"inline"!==t.style.display?a():d())}),!1)},open:a}}; 8 | -------------------------------------------------------------------------------- /js/plugin/search/search.js: -------------------------------------------------------------------------------- 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).RevealSearch=t()}(this,(function(){"use strict"; 2 | /*! 3 | * Handles finding a text string anywhere in the slides and showing the next occurrence to the user 4 | * by navigatating to that slide and highlighting it. 5 | * 6 | * @author Jon Snyder , February 2013 7 | */return()=>{let e,t,n,l,o,i,r;function s(){t=document.createElement("div"),t.classList.add("searchbox"),t.style.position="absolute",t.style.top="10px",t.style.right="10px",t.style.zIndex=10,t.innerHTML='\n\t\t',n=t.querySelector(".searchinput"),n.style.width="240px",n.style.fontSize="14px",n.style.padding="4px 6px",n.style.color="#000",n.style.background="#fff",n.style.borderRadius="2px",n.style.border="0",n.style.outline="0",n.style.boxShadow="0 2px 18px rgba(0, 0, 0, 0.2)",n.style["-webkit-appearance"]="none",e.getRevealElement().appendChild(t),n.addEventListener("keyup",(function(t){if(13===t.keyCode)t.preventDefault(),function(){if(i){var t=n.value;""===t?(r&&r.remove(),l=null):(r=new c("slidecontent"),l=r.apply(t),o=0)}l&&(l.length&&l.length<=o&&(o=0),l.length>o&&(e.slide(l[o].h,l[o].v),o++))}(),i=!1;else i=!0}),!1),d()}function a(){t||s(),t.style.display="inline",n.focus(),n.select()}function d(){t||s(),t.style.display="none",r&&r.remove()}function c(t,n){var l=document.getElementById(t)||document.body,o=n||"EM",i=new RegExp("^(?:"+o+"|SCRIPT|FORM)$"),r=["#ff6","#a0ffff","#9f9","#f99","#f6f"],s=[],a=0,d="",c=[];this.setRegex=function(e){e=e.replace(/^[^\w]+|[^\w]+$/g,"").replace(/[^\w'-]+/g,"|"),d=new RegExp("("+e+")","i")},this.getRegex=function(){return d.toString().replace(/^\/\\b\(|\)\\b\/i$/g,"").replace(/\|/g," ")},this.hiliteWords=function(t){if(null!=t&&t&&d&&!i.test(t.nodeName)){if(t.hasChildNodes())for(var n=0;n{e=n,e.registerKeyboardShortcut("CTRL + Shift + F","Search"),document.addEventListener("keydown",(function(e){"F"==e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),t||s(),"inline"!==t.style.display?a():d())}),!1)},open:a}}})); 8 | -------------------------------------------------------------------------------- /js/plugin/zoom/plugin.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * reveal.js Zoom plugin 3 | */ 4 | const Plugin = { 5 | 6 | id: 'zoom', 7 | 8 | init: function( reveal ) { 9 | 10 | reveal.getRevealElement().addEventListener( 'mousedown', function( event ) { 11 | var defaultModifier = /Linux/.test( window.navigator.platform ) ? 'ctrl' : 'alt'; 12 | 13 | var modifier = ( reveal.getConfig().zoomKey ? reveal.getConfig().zoomKey : defaultModifier ) + 'Key'; 14 | var zoomLevel = ( reveal.getConfig().zoomLevel ? reveal.getConfig().zoomLevel : 2 ); 15 | 16 | if( event[ modifier ] && !reveal.isOverview() ) { 17 | event.preventDefault(); 18 | 19 | zoom.to({ 20 | x: event.clientX, 21 | y: event.clientY, 22 | scale: zoomLevel, 23 | pan: false 24 | }); 25 | } 26 | } ); 27 | 28 | }, 29 | 30 | destroy: () => { 31 | 32 | zoom.reset(); 33 | 34 | } 35 | 36 | }; 37 | 38 | export default () => Plugin; 39 | 40 | /*! 41 | * zoom.js 0.3 (modified for use with reveal.js) 42 | * http://lab.hakim.se/zoom-js 43 | * MIT licensed 44 | * 45 | * Copyright (C) 2011-2014 Hakim El Hattab, http://hakim.se 46 | */ 47 | var zoom = (function(){ 48 | 49 | // The current zoom level (scale) 50 | var level = 1; 51 | 52 | // The current mouse position, used for panning 53 | var mouseX = 0, 54 | mouseY = 0; 55 | 56 | // Timeout before pan is activated 57 | var panEngageTimeout = -1, 58 | panUpdateInterval = -1; 59 | 60 | // Check for transform support so that we can fallback otherwise 61 | var supportsTransforms = 'transform' in document.body.style; 62 | 63 | if( supportsTransforms ) { 64 | // The easing that will be applied when we zoom in/out 65 | document.body.style.transition = 'transform 0.8s ease'; 66 | } 67 | 68 | // Zoom out if the user hits escape 69 | document.addEventListener( 'keyup', function( event ) { 70 | if( level !== 1 && event.keyCode === 27 ) { 71 | zoom.out(); 72 | } 73 | } ); 74 | 75 | // Monitor mouse movement for panning 76 | document.addEventListener( 'mousemove', function( event ) { 77 | if( level !== 1 ) { 78 | mouseX = event.clientX; 79 | mouseY = event.clientY; 80 | } 81 | } ); 82 | 83 | /** 84 | * Applies the CSS required to zoom in, prefers the use of CSS3 85 | * transforms but falls back on zoom for IE. 86 | * 87 | * @param {Object} rect 88 | * @param {Number} scale 89 | */ 90 | function magnify( rect, scale ) { 91 | 92 | var scrollOffset = getScrollOffset(); 93 | 94 | // Ensure a width/height is set 95 | rect.width = rect.width || 1; 96 | rect.height = rect.height || 1; 97 | 98 | // Center the rect within the zoomed viewport 99 | rect.x -= ( window.innerWidth - ( rect.width * scale ) ) / 2; 100 | rect.y -= ( window.innerHeight - ( rect.height * scale ) ) / 2; 101 | 102 | if( supportsTransforms ) { 103 | // Reset 104 | if( scale === 1 ) { 105 | document.body.style.transform = ''; 106 | } 107 | // Scale 108 | else { 109 | var origin = scrollOffset.x +'px '+ scrollOffset.y +'px', 110 | transform = 'translate('+ -rect.x +'px,'+ -rect.y +'px) scale('+ scale +')'; 111 | 112 | document.body.style.transformOrigin = origin; 113 | document.body.style.transform = transform; 114 | } 115 | } 116 | else { 117 | // Reset 118 | if( scale === 1 ) { 119 | document.body.style.position = ''; 120 | document.body.style.left = ''; 121 | document.body.style.top = ''; 122 | document.body.style.width = ''; 123 | document.body.style.height = ''; 124 | document.body.style.zoom = ''; 125 | } 126 | // Scale 127 | else { 128 | document.body.style.position = 'relative'; 129 | document.body.style.left = ( - ( scrollOffset.x + rect.x ) / scale ) + 'px'; 130 | document.body.style.top = ( - ( scrollOffset.y + rect.y ) / scale ) + 'px'; 131 | document.body.style.width = ( scale * 100 ) + '%'; 132 | document.body.style.height = ( scale * 100 ) + '%'; 133 | document.body.style.zoom = scale; 134 | } 135 | } 136 | 137 | level = scale; 138 | 139 | if( document.documentElement.classList ) { 140 | if( level !== 1 ) { 141 | document.documentElement.classList.add( 'zoomed' ); 142 | } 143 | else { 144 | document.documentElement.classList.remove( 'zoomed' ); 145 | } 146 | } 147 | } 148 | 149 | /** 150 | * Pan the document when the mosue cursor approaches the edges 151 | * of the window. 152 | */ 153 | function pan() { 154 | var range = 0.12, 155 | rangeX = window.innerWidth * range, 156 | rangeY = window.innerHeight * range, 157 | scrollOffset = getScrollOffset(); 158 | 159 | // Up 160 | if( mouseY < rangeY ) { 161 | window.scroll( scrollOffset.x, scrollOffset.y - ( 1 - ( mouseY / rangeY ) ) * ( 14 / level ) ); 162 | } 163 | // Down 164 | else if( mouseY > window.innerHeight - rangeY ) { 165 | window.scroll( scrollOffset.x, scrollOffset.y + ( 1 - ( window.innerHeight - mouseY ) / rangeY ) * ( 14 / level ) ); 166 | } 167 | 168 | // Left 169 | if( mouseX < rangeX ) { 170 | window.scroll( scrollOffset.x - ( 1 - ( mouseX / rangeX ) ) * ( 14 / level ), scrollOffset.y ); 171 | } 172 | // Right 173 | else if( mouseX > window.innerWidth - rangeX ) { 174 | window.scroll( scrollOffset.x + ( 1 - ( window.innerWidth - mouseX ) / rangeX ) * ( 14 / level ), scrollOffset.y ); 175 | } 176 | } 177 | 178 | function getScrollOffset() { 179 | return { 180 | x: window.scrollX !== undefined ? window.scrollX : window.pageXOffset, 181 | y: window.scrollY !== undefined ? window.scrollY : window.pageYOffset 182 | } 183 | } 184 | 185 | return { 186 | /** 187 | * Zooms in on either a rectangle or HTML element. 188 | * 189 | * @param {Object} options 190 | * - element: HTML element to zoom in on 191 | * OR 192 | * - x/y: coordinates in non-transformed space to zoom in on 193 | * - width/height: the portion of the screen to zoom in on 194 | * - scale: can be used instead of width/height to explicitly set scale 195 | */ 196 | to: function( options ) { 197 | 198 | // Due to an implementation limitation we can't zoom in 199 | // to another element without zooming out first 200 | if( level !== 1 ) { 201 | zoom.out(); 202 | } 203 | else { 204 | options.x = options.x || 0; 205 | options.y = options.y || 0; 206 | 207 | // If an element is set, that takes precedence 208 | if( !!options.element ) { 209 | // Space around the zoomed in element to leave on screen 210 | var padding = 20; 211 | var bounds = options.element.getBoundingClientRect(); 212 | 213 | options.x = bounds.left - padding; 214 | options.y = bounds.top - padding; 215 | options.width = bounds.width + ( padding * 2 ); 216 | options.height = bounds.height + ( padding * 2 ); 217 | } 218 | 219 | // If width/height values are set, calculate scale from those values 220 | if( options.width !== undefined && options.height !== undefined ) { 221 | options.scale = Math.max( Math.min( window.innerWidth / options.width, window.innerHeight / options.height ), 1 ); 222 | } 223 | 224 | if( options.scale > 1 ) { 225 | options.x *= options.scale; 226 | options.y *= options.scale; 227 | 228 | magnify( options, options.scale ); 229 | 230 | if( options.pan !== false ) { 231 | 232 | // Wait with engaging panning as it may conflict with the 233 | // zoom transition 234 | panEngageTimeout = setTimeout( function() { 235 | panUpdateInterval = setInterval( pan, 1000 / 60 ); 236 | }, 800 ); 237 | 238 | } 239 | } 240 | } 241 | }, 242 | 243 | /** 244 | * Resets the document zoom state to its default. 245 | */ 246 | out: function() { 247 | clearTimeout( panEngageTimeout ); 248 | clearInterval( panUpdateInterval ); 249 | 250 | magnify( { x: 0, y: 0 }, 1 ); 251 | 252 | level = 1; 253 | }, 254 | 255 | // Alias 256 | magnify: function( options ) { this.to( options ) }, 257 | reset: function() { this.out() }, 258 | 259 | zoomLevel: function() { 260 | return level; 261 | } 262 | } 263 | 264 | })(); 265 | -------------------------------------------------------------------------------- /js/plugin/zoom/zoom.esm.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * reveal.js Zoom plugin 3 | */ 4 | const e={id:"zoom",init:function(e){e.getRevealElement().addEventListener("mousedown",(function(o){var n=/Linux/.test(window.navigator.platform)?"ctrl":"alt",i=(e.getConfig().zoomKey?e.getConfig().zoomKey:n)+"Key",d=e.getConfig().zoomLevel?e.getConfig().zoomLevel:2;o[i]&&!e.isOverview()&&(o.preventDefault(),t.to({x:o.clientX,y:o.clientY,scale:d,pan:!1}))}))},destroy:()=>{t.reset()}};var t=function(){var e=1,o=0,n=0,i=-1,d=-1,l="transform"in document.body.style;function s(t,o){var n=r();if(t.width=t.width||1,t.height=t.height||1,t.x-=(window.innerWidth-t.width*o)/2,t.y-=(window.innerHeight-t.height*o)/2,l)if(1===o)document.body.style.transform="";else{var i=n.x+"px "+n.y+"px",d="translate("+-t.x+"px,"+-t.y+"px) scale("+o+")";document.body.style.transformOrigin=i,document.body.style.transform=d}else 1===o?(document.body.style.position="",document.body.style.left="",document.body.style.top="",document.body.style.width="",document.body.style.height="",document.body.style.zoom=""):(document.body.style.position="relative",document.body.style.left=-(n.x+t.x)/o+"px",document.body.style.top=-(n.y+t.y)/o+"px",document.body.style.width=100*o+"%",document.body.style.height=100*o+"%",document.body.style.zoom=o);e=o,document.documentElement.classList&&(1!==e?document.documentElement.classList.add("zoomed"):document.documentElement.classList.remove("zoomed"))}function c(){var t=.12*window.innerWidth,i=.12*window.innerHeight,d=r();nwindow.innerHeight-i&&window.scroll(d.x,d.y+(1-(window.innerHeight-n)/i)*(14/e)),owindow.innerWidth-t&&window.scroll(d.x+(1-(window.innerWidth-o)/t)*(14/e),d.y)}function r(){return{x:void 0!==window.scrollX?window.scrollX:window.pageXOffset,y:void 0!==window.scrollY?window.scrollY:window.pageYOffset}}return l&&(document.body.style.transition="transform 0.8s ease"),document.addEventListener("keyup",(function(o){1!==e&&27===o.keyCode&&t.out()})),document.addEventListener("mousemove",(function(t){1!==e&&(o=t.clientX,n=t.clientY)})),{to:function(o){if(1!==e)t.out();else{if(o.x=o.x||0,o.y=o.y||0,o.element){var n=o.element.getBoundingClientRect();o.x=n.left-20,o.y=n.top-20,o.width=n.width+40,o.height=n.height+40}void 0!==o.width&&void 0!==o.height&&(o.scale=Math.max(Math.min(window.innerWidth/o.width,window.innerHeight/o.height),1)),o.scale>1&&(o.x*=o.scale,o.y*=o.scale,s(o,o.scale),!1!==o.pan&&(i=setTimeout((function(){d=setInterval(c,1e3/60)}),800)))}},out:function(){clearTimeout(i),clearInterval(d),s({x:0,y:0},1),e=1},magnify:function(e){this.to(e)},reset:function(){this.out()},zoomLevel:function(){return e}}}(); 5 | /*! 6 | * zoom.js 0.3 (modified for use with reveal.js) 7 | * http://lab.hakim.se/zoom-js 8 | * MIT licensed 9 | * 10 | * Copyright (C) 2011-2014 Hakim El Hattab, http://hakim.se 11 | */export default()=>e; 12 | -------------------------------------------------------------------------------- /js/plugin/zoom/zoom.js: -------------------------------------------------------------------------------- 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).RevealZoom=t()}(this,(function(){"use strict"; 2 | /*! 3 | * reveal.js Zoom plugin 4 | */const e={id:"zoom",init:function(e){e.getRevealElement().addEventListener("mousedown",(function(o){var n=/Linux/.test(window.navigator.platform)?"ctrl":"alt",i=(e.getConfig().zoomKey?e.getConfig().zoomKey:n)+"Key",d=e.getConfig().zoomLevel?e.getConfig().zoomLevel:2;o[i]&&!e.isOverview()&&(o.preventDefault(),t.to({x:o.clientX,y:o.clientY,scale:d,pan:!1}))}))},destroy:()=>{t.reset()}};var t=function(){var e=1,o=0,n=0,i=-1,d=-1,l="transform"in document.body.style;function s(t,o){var n=r();if(t.width=t.width||1,t.height=t.height||1,t.x-=(window.innerWidth-t.width*o)/2,t.y-=(window.innerHeight-t.height*o)/2,l)if(1===o)document.body.style.transform="";else{var i=n.x+"px "+n.y+"px",d="translate("+-t.x+"px,"+-t.y+"px) scale("+o+")";document.body.style.transformOrigin=i,document.body.style.transform=d}else 1===o?(document.body.style.position="",document.body.style.left="",document.body.style.top="",document.body.style.width="",document.body.style.height="",document.body.style.zoom=""):(document.body.style.position="relative",document.body.style.left=-(n.x+t.x)/o+"px",document.body.style.top=-(n.y+t.y)/o+"px",document.body.style.width=100*o+"%",document.body.style.height=100*o+"%",document.body.style.zoom=o);e=o,document.documentElement.classList&&(1!==e?document.documentElement.classList.add("zoomed"):document.documentElement.classList.remove("zoomed"))}function c(){var t=.12*window.innerWidth,i=.12*window.innerHeight,d=r();nwindow.innerHeight-i&&window.scroll(d.x,d.y+(1-(window.innerHeight-n)/i)*(14/e)),owindow.innerWidth-t&&window.scroll(d.x+(1-(window.innerWidth-o)/t)*(14/e),d.y)}function r(){return{x:void 0!==window.scrollX?window.scrollX:window.pageXOffset,y:void 0!==window.scrollY?window.scrollY:window.pageYOffset}}return l&&(document.body.style.transition="transform 0.8s ease"),document.addEventListener("keyup",(function(o){1!==e&&27===o.keyCode&&t.out()})),document.addEventListener("mousemove",(function(t){1!==e&&(o=t.clientX,n=t.clientY)})),{to:function(o){if(1!==e)t.out();else{if(o.x=o.x||0,o.y=o.y||0,o.element){var n=o.element.getBoundingClientRect();o.x=n.left-20,o.y=n.top-20,o.width=n.width+40,o.height=n.height+40}void 0!==o.width&&void 0!==o.height&&(o.scale=Math.max(Math.min(window.innerWidth/o.width,window.innerHeight/o.height),1)),o.scale>1&&(o.x*=o.scale,o.y*=o.scale,s(o,o.scale),!1!==o.pan&&(i=setTimeout((function(){d=setInterval(c,1e3/60)}),800)))}},out:function(){clearTimeout(i),clearInterval(d),s({x:0,y:0},1),e=1},magnify:function(e){this.to(e)},reset:function(){this.out()},zoomLevel:function(){return e}}}(); 5 | /*! 6 | * zoom.js 0.3 (modified for use with reveal.js) 7 | * http://lab.hakim.se/zoom-js 8 | * MIT licensed 9 | * 10 | * Copyright (C) 2011-2014 Hakim El Hattab, http://hakim.se 11 | */return()=>e})); 12 | -------------------------------------------------------------------------------- /robots.txt: -------------------------------------------------------------------------------- 1 | # www.robotstxt.org/ 2 | 3 | # Allow crawling of all content 4 | User-agent: * 5 | Disallow: 6 | --------------------------------------------------------------------------------