├── LICENSE
├── README.md
├── facilitator-resources
├── emails.md
├── facilitator-guide.md
├── participant-emails.md
├── survey-examples.md
└── volunteer
├── resources
├── description.md
├── expectations.md
└── fonts
│ ├── Cookie-Regular.ttf
│ ├── OFL.txt
│ ├── Open_Sans
│ ├── LICENSE.txt
│ ├── OpenSans-Bold.ttf
│ ├── OpenSans-BoldItalic.ttf
│ ├── OpenSans-ExtraBold.ttf
│ ├── OpenSans-ExtraBoldItalic.ttf
│ ├── OpenSans-Italic.ttf
│ ├── OpenSans-Light.ttf
│ ├── OpenSans-LightItalic.ttf
│ ├── OpenSans-Regular.ttf
│ ├── OpenSans-SemiBold.ttf
│ └── OpenSans-SemiBoldItalic.ttf
│ └── marvin.md
├── slides
├── EmberConf 2018 - Contributor's Workshop.key
├── EmberConf 2018 - Contributor's Workshop.pdf
├── EmberConf 2019 - Contributor's Workshop.key
├── EmberConf 2019 - Contributor's Workshop.pdf
├── EmberConf2021
│ ├── .gitignore
│ ├── .npmignore
│ ├── CONTRIBUTING.md
│ ├── LICENSE
│ ├── README.md
│ ├── assets
│ │ ├── contributions-code.png
│ │ ├── emberblog.png
│ │ ├── emberconf2021.png
│ │ ├── helpwanted.png
│ │ ├── host-ava.jpg
│ │ ├── host-ricardo.png
│ │ ├── pridemascots.png
│ │ └── simplabs.png
│ ├── css
│ │ ├── layout.scss
│ │ ├── print
│ │ │ ├── paper.scss
│ │ │ └── pdf.scss
│ │ ├── reveal.scss
│ │ └── theme
│ │ │ ├── README.md
│ │ │ ├── source
│ │ │ ├── beige.scss
│ │ │ ├── black.scss
│ │ │ ├── blood.scss
│ │ │ ├── league.scss
│ │ │ ├── moon.scss
│ │ │ ├── night.scss
│ │ │ ├── serif.scss
│ │ │ ├── simple.scss
│ │ │ ├── sky.scss
│ │ │ ├── solarized.scss
│ │ │ └── white.scss
│ │ │ └── template
│ │ │ ├── exposer.scss
│ │ │ ├── mixins.scss
│ │ │ ├── settings.scss
│ │ │ └── theme.scss
│ ├── demo.html
│ ├── gulpfile.js
│ ├── index.html
│ ├── js
│ │ ├── components
│ │ │ └── playback.js
│ │ ├── config.js
│ │ ├── controllers
│ │ │ ├── autoanimate.js
│ │ │ ├── backgrounds.js
│ │ │ ├── controls.js
│ │ │ ├── focus.js
│ │ │ ├── fragments.js
│ │ │ ├── keyboard.js
│ │ │ ├── location.js
│ │ │ ├── notes.js
│ │ │ ├── overview.js
│ │ │ ├── plugins.js
│ │ │ ├── pointer.js
│ │ │ ├── print.js
│ │ │ ├── progress.js
│ │ │ ├── slidecontent.js
│ │ │ ├── slidenumber.js
│ │ │ └── touch.js
│ │ ├── index.js
│ │ ├── reveal.js
│ │ └── utils
│ │ │ ├── color.js
│ │ │ ├── constants.js
│ │ │ ├── device.js
│ │ │ ├── loader.js
│ │ │ └── util.js
│ ├── package-lock.json
│ ├── package.json
│ └── plugin
│ │ ├── highlight
│ │ ├── highlight.esm.js
│ │ ├── highlight.js
│ │ ├── monokai.css
│ │ ├── plugin.js
│ │ └── zenburn.css
│ │ ├── markdown
│ │ ├── markdown.esm.js
│ │ ├── markdown.js
│ │ └── plugin.js
│ │ ├── math
│ │ ├── math.esm.js
│ │ ├── math.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
├── EmberFest 2020 - Contributor's Workshop.key
└── EmberFest 2020 - Contributor's Workshop.pdf
├── virtual-machine
└── env-setup.md
└── volunteer-resources
└── volunteer-guide.md
/LICENSE:
--------------------------------------------------------------------------------
1 | The code in this repository is released under MIT license. Written content
2 | is released under [CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/).
3 | Uses of Ember branding (Tomsters, logo, etc) must abide by the terms
4 | [set by Tilde](https://www.emberjs.com/logos/). These resources are
5 | unaffiliated with the Ember project. Ember is a trademark of Tilde Inc.
6 |
7 | MIT License
8 |
9 | Copyright (c) 2018 Jen Weber
10 |
11 | Permission is hereby granted, free of charge, to any person obtaining a copy
12 | of this software and associated documentation files (the "Software"), to deal
13 | in the Software without restriction, including without limitation the rights
14 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 | copies of the Software, and to permit persons to whom the Software is
16 | furnished to do so, subject to the following conditions:
17 |
18 | The above copyright notice and this permission notice shall be included in all
19 | copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27 | SOFTWARE.
28 |
29 |
30 | # CC0 1.0 Universal
31 |
32 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
33 |
34 | ### Statement of Purpose
35 |
36 | The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
37 |
38 | Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
39 |
40 | For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
41 |
42 | 1. __Copyright and Related Rights.__ A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
43 |
44 | i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
45 |
46 | ii. moral rights retained by the original author(s) and/or performer(s);
47 |
48 | iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
49 |
50 | iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
51 |
52 | v. rights protecting the extraction, dissemination, use and reuse of data in a Work;
53 |
54 | vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
55 |
56 | vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
57 |
58 | 2. __Waiver.__ To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose.
59 |
60 | 3. __Public License Fallback.__ Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose.
61 |
62 | 4. __Limitations and Disclaimers.__
63 |
64 | a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
65 |
66 | b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
67 |
68 | c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
69 |
70 | d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
71 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # emberjs-contributors-workshop
2 | Do you want to become an open source contributor, or help others reach that goal?
3 | This repository contains resources for you to participate in or run your own Ember.js
4 | Contributor's Workshop. There are slides, participant instructions,
5 | and survey templates. Please reach out to the authors for advice,
6 | assistance, etc. We're here to help.
7 |
8 | Made with :heart: by Jen Weber and Ricardo Mendes. Initially created for
9 | EmberConf 2018.
10 |
11 | Need some quick inspiration? Check out
12 | [Sean Massa's 2018 EmberConf talk](https://www.youtube.com/watch?v=CcSKlsc_AhQ&list=PL4eq2DPpyBbnjD5iLp55as9OvIdEDI_Kt&index=22)
13 | about the many forms that OSS contributions take.
14 |
15 | # Participant instructions
16 |
17 | Follow these instructions so that you are prepared for the Contributors Workshop.
18 |
19 | Learn how to get started in Open Source with a quick tutorial in [this video](https://www.youtube.com/watch?v=FgqXdsK6ohE):
20 |
21 | [](https://www.youtube.com/watch?v=FgqXdsK6ohE)
22 |
23 | ## Quick links
24 | - [Ember.js Chat on Discord](https://emberjs.com/community) to get help from [#dev-ember-learning](https://discordapp.com/channels/480462759797063690/480777444203429888)
25 | - [The Ember.js Times](https://blog.emberjs.com/tags/newsletter.html) to see recent calls to action
26 | - [Help Wanted dashboard](https://help-wanted.emberjs.com/) - An easy way to browse issues that need a volunteer
27 |
28 | ## Pre-Work for EmberConf Contributor's Workshop
29 |
30 | Hi! Thanks for participating in an Open Source Contributor’s Workshop!
31 |
32 | First of all, contributions come in many forms - writing articles,
33 | asking questions, opening PRs or Issues, helping other people out - so thank you for whatever you do!
34 |
35 | We only have limited time, so help make the most of your it, there are some things you need to do ahead of time. New contributors should budget an hour to get their developer environment set up,
36 | and experienced contributors should take some time to look through issues and pick a couple that they might want to work on.
37 |
38 | You're welcome to work on projects for any programming languages, frameworks, and libraries! If you are working on an Ember project, you can get help or ask questions on the `#dev-ember-learning` channel on the [Ember.js Chat on Discord](https://emberjs.com/community).
39 | One of the things that team does is help contributors get started
40 | on any part of the Ember ecosystem.
41 |
42 | - Have [git](https://git-scm.com/), [node and npm](https://nodejs.org/en/) installed, and have a [GitHub](https://github.com/) account connected in git. If you need help with these steps, contact the Learning Team or your workshop facilitators.
43 | - Install the latest [stable ember-cli](https://github.com/ember-cli/ember-cli/releases) `npm install -g ember-cli@latest`
44 | - Fork, clone, npm install, and test run projects you are interested in. When this workshop is run in person, it is essential to do ahead of time. While we hope and pray for the quality internet, most wifi can’t handle 50 devs cloning and npm installing all at the same time.
45 | - Browse open issues to form some goals for yourself. See list of repositories and some helpful links below. You can work on anything during the workshop. The list just contains suggestions. Look for
46 | issues like "help wanted" or "good first issue" to guide your search.
47 | - If you are not familiar with Open Source workflows (forking, cloning, opening PRs), try it out in [this practice repository](https://github.com/jenweber/our-open-source-contributions), while following [this article of step-by-step instructions](https://medium.com/@jenweber/your-first-open-source-contribution-a-step-by-step-technical-guide-d3aca55cc5a6).
48 |
49 | ## Core libraries to browse for issues
50 |
51 | You are invited to work on issues in any open source projects! However, here are some "official" Ember repositories to get you started:
52 |
53 | - [ember.js](https://github.com/emberjs/ember.js) - our favorite framework. Includes both technical and documentation issues
54 | - [data](https://github.com/emberjs/data) - home of ember-data
55 | - [ember.js website](https://github.com/ember-learn/ember-website) - public website at [https://www.emberjs.com](https://www.emberjs.com).
56 | - [The Ember.js Guides](https://github.com/ember-learn/guides-source) - the written content for https://guides.emberjs.com/
57 | - [ember-api-docs](https://github.com/ember-learn/ember-api-docs) - the app that displays the documentation found in ember.js core code
58 | - [deprecation-app](https://github.com/ember-learn/deprecation-app) - an app that gives Ember's users
59 | information about how to overcome deprecations.
60 | - [ember-cli](https://github.com/ember-cli/ember-cli) - home of the best command line tool for a front end framework
61 | - [ember-cli guides](https://github.com/ember-learn/cli-guides) - help other people use the best cli
62 | - [statusboard](https://github.com/ember-learn/statusboard) - shows the status of ongoing Ember ecosystem projects at https://emberjs.com/statusboard/
63 | - [ember-styleguide](https://github.com/ember-learn/ember-styleguide) - the component library
64 | used in Ember's family of websites. It handles typography, reusable components like callouts, how the navbar looks, and overall styles.
65 | - [ember-inspector](https://github.com/emberjs/ember-inspector) - the browser extension dev tools for Ember
66 | - [ember-a11y org addons](https://github.com/ember-a11y) - a collection of accessibility specific addons and more for Ember.
67 |
68 | ## Addons and community projects to browse for issues
69 |
70 | Maintainers of these addons have specially asked for help and offered mentorship in the past:
71 |
72 | - `@Gaiety#0001` (Ava) with [ember-select-light](https://github.com/ember-a11y/ember-select-light) has some good first issues and she's mentored in the past
73 | - Have a suggestion? Submit a PR here to add to this list!
74 |
75 | ## Help Wanted and Good First Contribution Issues
76 | We’ve asked the maintainers of many ember projects to use the “good first issue” label to show which issues they’d like help on during the workshop. Again, you are welcome to choose any issue/project, but if you need ideas, click here to browse all of them! You might also want to search for “help wanted” issues.
77 |
78 | Check out the [Help Wanted dashboard](https://help-wanted.emberjs.com/) to browse for issues!
79 |
80 | If you want to choose one ahead of the workshop, you can add a comment that says you’d like to work on it.
81 |
82 | Here are a few issues that we think you might want to check out!
83 |
84 | - [Improve docs to the Router Service](https://github.com/emberjs/ember.js/issues/16518) in Ember.js
85 | - [ember-string](https://github.com/emberjs/ember-string/issues/49) needs some Node work
86 | - [ember-a11y](https://github.com/ember-a11y) needs help upgrading their addon versions! Open an issue on a repo if you are helping out. Look for issues opened by other people before you get started, so that you don't duplicate efforts.
87 | - `ember-cli`
88 | - https://github.com/ember-cli/ember-cli/issues/8457
89 |
90 | ## After the workshop
91 | If you need a little help getting something to the finish line,
92 | or it's been a week and your PR hasn't been reviewed yet,
93 | just drop by the #dev-ember-resources channel on Discord and let them know.
94 | The team is all volunteers, so getting help can take a little time,
95 | but it's part of the mission! Thanks for your patience!
96 |
--------------------------------------------------------------------------------
/facilitator-resources/emails.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/facilitator-resources/emails.md
--------------------------------------------------------------------------------
/facilitator-resources/facilitator-guide.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/facilitator-resources/facilitator-guide.md
--------------------------------------------------------------------------------
/facilitator-resources/participant-emails.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/facilitator-resources/participant-emails.md
--------------------------------------------------------------------------------
/facilitator-resources/survey-examples.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/facilitator-resources/survey-examples.md
--------------------------------------------------------------------------------
/facilitator-resources/volunteer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/facilitator-resources/volunteer
--------------------------------------------------------------------------------
/resources/description.md:
--------------------------------------------------------------------------------
1 | # Contributor's Workshop
2 |
3 | At the heart of open source are developers like you: people of all backgrounds, interests, and experience levels. In this 3-hour workshop, you'll learn how to contribute to Ember, meet the other developers who shape our favorite framework, and if you're up for the challenge, make a pull request!
4 |
5 | The workshop will begin with some formal instruction. Where do you start? What goes into a good PR? Who will help? What knowledge or skills do you need before you jump in? (Spoiler alert—not a whole lot! Learning new things is part of the fun.)
6 |
7 | The rest will be guided coding time. You'll have the opportunity to pair program or fly solo as you tackle an issue in Ember's learning resources or core code. Available issues will cover a wide range, appropriate for beginners and experts alike. A group of experienced contributors will be there to help debug, advise, and answer questions.
8 |
9 | The workshop will include some formal instruction, guidance from a team of experienced contributors, and hands-on coding time. Attendees should bring a laptop, budget an hour of setup time in the week before the workshop, and watch for emailed instructions about setup.
10 |
--------------------------------------------------------------------------------
/resources/expectations.md:
--------------------------------------------------------------------------------
1 | # Expectations
2 |
3 | This document outlines what is expected from the different roles involved in running the workshop, in terms of time and tasks.
4 |
5 | ## Hosts
6 |
7 | 1. Arranging mentors (5h)
8 |
9 | You are responsible for arranging enough mentors to help contributors during the workshop.
10 | While a ratio of 1 mentor to 1 contributor is unrealistic, we recommend to strive for at least 1 mentor to 5 every contributors.
11 |
12 | 1. Preparing the introduction material (1h)
13 |
14 | Once you have hosts and mentors defined you should update the introductory slides to include that information.
15 |
16 | 1. Running the workshop (5h)
17 |
18 | On the day of the actual workshop you should outline the workshop format and introduce the different mentors.
19 | Then try to keep an eye on people having a hard time participating or finding work to do and try to help out.
20 | We recommend a 3h format as well as leaving yourself some prep and wind down time.
21 |
22 | 1. Workshop follow-up (1h)
23 |
24 | Send follow up email, including post-workshop survey.
25 | The goal here is to make sure any contributor that wants to continue contributing and invest more into the community knows how to do so.
26 |
27 | ## Mentors
28 |
29 | 1. Prepare issues for the workshop (3h) [BONUS]
30 |
31 | If you can prepare a handful of issues for the contributors to pick up, that is very helpful for everyone.
32 | Make sure the instructions in the issues are clear and actionable, and that it can reasonably be finished during the workshop.
33 |
34 | 1. Workshop (5h)
35 |
36 | Come early. Help contributors pick issues and guide them through the process of contributing.
37 |
38 |
39 | ## Contributors
40 |
41 | 1. Workshop preparation (2h)
42 |
43 | Requirements:
44 | - Recent versions of `node`, `npm`, `yarn`, and `git` installed.
45 | - GitHub account
46 | - Discord installed
47 | - A code editor installed (VS Code, vim, emacs, etc)
48 | - Stable internet connection
49 | - Microphone
50 | - Video camera [BONUS]
51 |
52 | 1. Workshop (5h)
53 |
54 | 1. Post-workshop (infinite) [BONUS]
55 |
56 | Keep in touch with the community and the maintainers to continue contributing.
57 |
--------------------------------------------------------------------------------
/resources/fonts/Cookie-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/resources/fonts/Cookie-Regular.ttf
--------------------------------------------------------------------------------
/resources/fonts/OFL.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011 by Ania Kruk (hello@aniakruk.com),
2 | with Reserved Font Name "Cookie".
3 | This Font Software is licensed under the SIL Open Font License, Version 1.1.
4 | This license is copied below, and is also available with a FAQ at:
5 | http://scripts.sil.org/OFL
6 |
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
14 | development of collaborative font projects, to support the font creation
15 | efforts of academic and linguistic communities, and to provide a free and
16 | open framework in which fonts may be shared and improved in partnership
17 | with others.
18 |
19 | The OFL allows the licensed fonts to be used, studied, modified and
20 | redistributed freely as long as they are not sold by themselves. The
21 | fonts, including any derivative works, can be bundled, embedded,
22 | redistributed and/or sold with any software provided that any reserved
23 | names are not used by derivative works. The fonts and derivatives,
24 | however, cannot be released under any other type of license. The
25 | requirement for fonts to remain under this license does not apply
26 | to any document created using the fonts or their derivatives.
27 |
28 | DEFINITIONS
29 | "Font Software" refers to the set of files released by the Copyright
30 | Holder(s) under this license and clearly marked as such. This may
31 | include source files, build scripts and documentation.
32 |
33 | "Reserved Font Name" refers to any names specified as such after the
34 | copyright statement(s).
35 |
36 | "Original Version" refers to the collection of Font Software components as
37 | distributed by the Copyright Holder(s).
38 |
39 | "Modified Version" refers to any derivative made by adding to, deleting,
40 | or substituting -- in part or in whole -- any of the components of the
41 | Original Version, by changing formats or by porting the Font Software to a
42 | new environment.
43 |
44 | "Author" refers to any designer, engineer, programmer, technical
45 | writer or other person who contributed to the Font Software.
46 |
47 | PERMISSION & CONDITIONS
48 | Permission is hereby granted, free of charge, to any person obtaining
49 | a copy of the Font Software, to use, study, copy, merge, embed, modify,
50 | redistribute, and sell modified and unmodified copies of the Font
51 | Software, subject to the following conditions:
52 |
53 | 1) Neither the Font Software nor any of its individual components,
54 | in Original or Modified Versions, may be sold by itself.
55 |
56 | 2) Original or Modified Versions of the Font Software may be bundled,
57 | redistributed and/or sold with any software, provided that each copy
58 | contains the above copyright notice and this license. These can be
59 | included either as stand-alone text files, human-readable headers or
60 | in the appropriate machine-readable metadata fields within text or
61 | binary files as long as those fields can be easily viewed by the user.
62 |
63 | 3) No Modified Version of the Font Software may use the Reserved Font
64 | Name(s) unless explicit written permission is granted by the corresponding
65 | Copyright Holder. This restriction only applies to the primary font name as
66 | presented to the users.
67 |
68 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69 | Software shall not be used to promote, endorse or advertise any
70 | Modified Version, except to acknowledge the contribution(s) of the
71 | Copyright Holder(s) and the Author(s) or with their explicit written
72 | permission.
73 |
74 | 5) The Font Software, modified or unmodified, in part or in whole,
75 | must be distributed entirely under this license, and must not be
76 | distributed under any other license. The requirement for fonts to
77 | remain under this license does not apply to any document created
78 | using the Font Software.
79 |
80 | TERMINATION
81 | This license becomes null and void if any of the above conditions are
82 | not met.
83 |
84 | DISCLAIMER
85 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93 | OTHER DEALINGS IN THE FONT SOFTWARE.
94 |
--------------------------------------------------------------------------------
/resources/fonts/Open_Sans/OpenSans-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/resources/fonts/Open_Sans/OpenSans-Bold.ttf
--------------------------------------------------------------------------------
/resources/fonts/Open_Sans/OpenSans-BoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/resources/fonts/Open_Sans/OpenSans-BoldItalic.ttf
--------------------------------------------------------------------------------
/resources/fonts/Open_Sans/OpenSans-ExtraBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/resources/fonts/Open_Sans/OpenSans-ExtraBold.ttf
--------------------------------------------------------------------------------
/resources/fonts/Open_Sans/OpenSans-ExtraBoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/resources/fonts/Open_Sans/OpenSans-ExtraBoldItalic.ttf
--------------------------------------------------------------------------------
/resources/fonts/Open_Sans/OpenSans-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/resources/fonts/Open_Sans/OpenSans-Italic.ttf
--------------------------------------------------------------------------------
/resources/fonts/Open_Sans/OpenSans-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/resources/fonts/Open_Sans/OpenSans-Light.ttf
--------------------------------------------------------------------------------
/resources/fonts/Open_Sans/OpenSans-LightItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/resources/fonts/Open_Sans/OpenSans-LightItalic.ttf
--------------------------------------------------------------------------------
/resources/fonts/Open_Sans/OpenSans-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/resources/fonts/Open_Sans/OpenSans-Regular.ttf
--------------------------------------------------------------------------------
/resources/fonts/Open_Sans/OpenSans-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/resources/fonts/Open_Sans/OpenSans-SemiBold.ttf
--------------------------------------------------------------------------------
/resources/fonts/Open_Sans/OpenSans-SemiBoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/resources/fonts/Open_Sans/OpenSans-SemiBoldItalic.ttf
--------------------------------------------------------------------------------
/resources/fonts/marvin.md:
--------------------------------------------------------------------------------
1 | [Marvin font](https://www.readvisions.com/marvin#get-the-font)
2 |
--------------------------------------------------------------------------------
/slides/EmberConf 2018 - Contributor's Workshop.key:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/slides/EmberConf 2018 - Contributor's Workshop.key
--------------------------------------------------------------------------------
/slides/EmberConf 2018 - Contributor's Workshop.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/slides/EmberConf 2018 - Contributor's Workshop.pdf
--------------------------------------------------------------------------------
/slides/EmberConf 2019 - Contributor's Workshop.key:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/slides/EmberConf 2019 - Contributor's Workshop.key
--------------------------------------------------------------------------------
/slides/EmberConf 2019 - Contributor's Workshop.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/slides/EmberConf 2019 - Contributor's Workshop.pdf
--------------------------------------------------------------------------------
/slides/EmberConf2021/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | *.iml
3 | *.iws
4 | *.eml
5 | out/
6 | .DS_Store
7 | .svn
8 | log/*.log
9 | tmp/**
10 | node_modules/
11 | .sass-cache
12 | dist/
13 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/.npmignore:
--------------------------------------------------------------------------------
1 | /test
2 | /examples
3 | .github
4 | .gulpfile
5 | .sass-cache
6 | gulpfile.js
7 | CONTRIBUTING.md
--------------------------------------------------------------------------------
/slides/EmberConf2021/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | ## Contributing
2 |
3 | Please keep the [issue tracker](http://github.com/hakimel/reveal.js/issues) limited to **bug reports**, **feature requests** and **pull requests**.
4 |
5 |
6 | ### Personal Support
7 | If you have personal support or setup questions the best place to ask those are [StackOverflow](http://stackoverflow.com/questions/tagged/reveal.js).
8 |
9 |
10 | ### Bug Reports
11 | When reporting a bug make sure to include information about which browser and operating system you are on as well as the necessary steps to reproduce the issue. If possible please include a link to a sample presentation where the bug can be tested.
12 |
13 |
14 | ### Pull Requests
15 | - Should follow the coding style of the file you work in, most importantly:
16 | - Tabs to indent
17 | - Single-quoted strings
18 | - Should be made towards the **dev branch**
19 | - Should be submitted from a feature/topic branch (not from the `main` branch)
20 |
21 |
22 | ### Plugins
23 | Please do not submit plugins as pull requests. They should be maintained in their own separate repository. More information here: https://github.com/hakimel/reveal.js/wiki/Plugin-Guidelines
24 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (C) 2020 Hakim El Hattab, http://hakim.se, and reveal.js contributors
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
--------------------------------------------------------------------------------
/slides/EmberConf2021/README.md:
--------------------------------------------------------------------------------
1 | Getting started...
2 |
3 | 1. `cd` into this directory
4 | 2. `npm install`
5 | 2. `npm build`
6 | 3. `npm start`
7 | 4. [Visit the locally served presentation](http://0.0.0.0:8000)
8 |
9 | ---
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | reveal.js is an open source HTML presentation framework. It enables anyone with a web browser to create fully featured and beautiful presentations for free. [Check out the live demo](https://revealjs.com/).
21 |
22 | The framework comes with a broad range of features including [nested slides](https://revealjs.com/vertical-slides/), [Markdown support](https://revealjs.com/markdown/), [Auto-Animate](https://revealjs.com/auto-animate/), [PDF export](https://revealjs.com/pdf-export/), [speaker notes](https://revealjs.com/speaker-view/), [LaTeX support](https://revealjs.com/math/), [syntax highlighted code](https://revealjs.com/code/) and much more.
23 |
24 |
27 |
28 | ## Documentation
29 | The full reveal.js documentation is available at [revealjs.com](https://revealjs.com).
30 |
31 | ## Online Editor
32 | Want to create your presentation using a visual editor? Try the official reveal.js presentation platform for free at [Slides.com](https://slides.com). It's made by the same people behind reveal.js.
33 |
34 | ## License
35 |
36 | MIT licensed
37 |
38 | Copyright (C) 2011-2020 Hakim El Hattab, https://hakim.se
39 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/assets/contributions-code.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/slides/EmberConf2021/assets/contributions-code.png
--------------------------------------------------------------------------------
/slides/EmberConf2021/assets/emberblog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/slides/EmberConf2021/assets/emberblog.png
--------------------------------------------------------------------------------
/slides/EmberConf2021/assets/emberconf2021.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/slides/EmberConf2021/assets/emberconf2021.png
--------------------------------------------------------------------------------
/slides/EmberConf2021/assets/helpwanted.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/slides/EmberConf2021/assets/helpwanted.png
--------------------------------------------------------------------------------
/slides/EmberConf2021/assets/host-ava.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/slides/EmberConf2021/assets/host-ava.jpg
--------------------------------------------------------------------------------
/slides/EmberConf2021/assets/host-ricardo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/slides/EmberConf2021/assets/host-ricardo.png
--------------------------------------------------------------------------------
/slides/EmberConf2021/assets/pridemascots.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/slides/EmberConf2021/assets/pridemascots.png
--------------------------------------------------------------------------------
/slides/EmberConf2021/assets/simplabs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/slides/EmberConf2021/assets/simplabs.png
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/layout.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Layout helpers.
3 | */
4 |
5 | // Stretch an element vertically based on available space
6 | .reveal .stretch,
7 | .reveal .r-stretch {
8 | max-width: none;
9 | max-height: none;
10 | }
11 |
12 | .reveal pre.stretch code,
13 | .reveal pre.r-stretch code {
14 | height: 100%;
15 | max-height: 100%;
16 | box-sizing: border-box;
17 | }
18 |
19 | // Text that auto-fits it's container
20 | .reveal .r-fit-text {
21 | display: inline-block; // https://github.com/rikschennink/fitty#performance
22 | white-space: nowrap;
23 | }
24 |
25 | // Stack multiple elements on top of each other
26 | .reveal .r-stack {
27 | display: grid;
28 | }
29 |
30 | .reveal .r-stack > * {
31 | grid-area: 1/1;
32 | margin: auto;
33 | }
34 |
35 | // Horizontal and vertical stacks
36 | .reveal .r-vstack,
37 | .reveal .r-hstack {
38 | display: flex;
39 |
40 | img, video {
41 | min-width: 0;
42 | min-height: 0;
43 | object-fit: contain;
44 | }
45 | }
46 |
47 | .reveal .r-vstack {
48 | flex-direction: column;
49 | align-items: center;
50 | justify-content: center;
51 | }
52 |
53 | .reveal .r-hstack {
54 | flex-direction: row;
55 | align-items: center;
56 | justify-content: center;
57 | }
58 |
59 | // Naming based on tailwindcss
60 | .reveal .items-stretch { align-items: stretch; }
61 | .reveal .items-start { align-items: flex-start; }
62 | .reveal .items-center { align-items: center; }
63 | .reveal .items-end { align-items: flex-end; }
64 |
65 | .reveal .justify-between { justify-content: space-between; }
66 | .reveal .justify-around { justify-content: space-around; }
67 | .reveal .justify-start { justify-content: flex-start; }
68 | .reveal .justify-center { justify-content: center; }
69 | .reveal .justify-end { justify-content: flex-end; }
70 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/print/paper.scss:
--------------------------------------------------------------------------------
1 | /* Default Print Stylesheet Template
2 | by Rob Glazebrook of CSSnewbie.com
3 | Last Updated: June 4, 2008
4 |
5 | Feel free (nay, compelled) to edit, append, and
6 | manipulate this file as you see fit. */
7 |
8 | @media print {
9 | html:not(.print-pdf) {
10 |
11 | background: #fff;
12 | width: auto;
13 | height: auto;
14 | overflow: visible;
15 |
16 | body {
17 | background: #fff;
18 | font-size: 20pt;
19 | width: auto;
20 | height: auto;
21 | border: 0;
22 | margin: 0 5%;
23 | padding: 0;
24 | overflow: visible;
25 | float: none !important;
26 | }
27 |
28 | .nestedarrow,
29 | .controls,
30 | .fork-reveal,
31 | .share-reveal,
32 | .state-background,
33 | .reveal .progress,
34 | .reveal .backgrounds,
35 | .reveal .slide-number {
36 | display: none !important;
37 | }
38 |
39 | body, p, td, li {
40 | font-size: 20pt!important;
41 | color: #000;
42 | }
43 |
44 | h1,h2,h3,h4,h5,h6 {
45 | color: #000!important;
46 | height: auto;
47 | line-height: normal;
48 | text-align: left;
49 | letter-spacing: normal;
50 | }
51 |
52 | /* Need to reduce the size of the fonts for printing */
53 | h1 { font-size: 28pt !important; }
54 | h2 { font-size: 24pt !important; }
55 | h3 { font-size: 22pt !important; }
56 | h4 { font-size: 22pt !important; font-variant: small-caps; }
57 | h5 { font-size: 21pt !important; }
58 | h6 { font-size: 20pt !important; font-style: italic; }
59 |
60 | a:link,
61 | a:visited {
62 | color: #000 !important;
63 | font-weight: bold;
64 | text-decoration: underline;
65 | }
66 |
67 | ul, ol, div, p {
68 | visibility: visible;
69 | position: static;
70 | width: auto;
71 | height: auto;
72 | display: block;
73 | overflow: visible;
74 | margin: 0;
75 | text-align: left !important;
76 | }
77 | .reveal pre,
78 | .reveal table {
79 | margin-left: 0;
80 | margin-right: 0;
81 | }
82 | .reveal pre code {
83 | padding: 20px;
84 | }
85 | .reveal blockquote {
86 | margin: 20px 0;
87 | }
88 | .reveal .slides {
89 | position: static !important;
90 | width: auto !important;
91 | height: auto !important;
92 |
93 | left: 0 !important;
94 | top: 0 !important;
95 | margin-left: 0 !important;
96 | margin-top: 0 !important;
97 | padding: 0 !important;
98 | zoom: 1 !important;
99 | transform: none !important;
100 |
101 | overflow: visible !important;
102 | display: block !important;
103 |
104 | text-align: left !important;
105 | perspective: none;
106 |
107 | perspective-origin: 50% 50%;
108 | }
109 | .reveal .slides section {
110 | visibility: visible !important;
111 | position: static !important;
112 | width: auto !important;
113 | height: auto !important;
114 | display: block !important;
115 | overflow: visible !important;
116 |
117 | left: 0 !important;
118 | top: 0 !important;
119 | margin-left: 0 !important;
120 | margin-top: 0 !important;
121 | padding: 60px 20px !important;
122 | z-index: auto !important;
123 |
124 | opacity: 1 !important;
125 |
126 | page-break-after: always !important;
127 |
128 | transform-style: flat !important;
129 | transform: none !important;
130 | transition: none !important;
131 | }
132 | .reveal .slides section.stack {
133 | padding: 0 !important;
134 | }
135 | .reveal section:last-of-type {
136 | page-break-after: avoid !important;
137 | }
138 | .reveal section .fragment {
139 | opacity: 1 !important;
140 | visibility: visible !important;
141 |
142 | transform: none !important;
143 | }
144 | .reveal section img {
145 | display: block;
146 | margin: 15px 0px;
147 | background: rgba(255,255,255,1);
148 | border: 1px solid #666;
149 | box-shadow: none;
150 | }
151 |
152 | .reveal section small {
153 | font-size: 0.8em;
154 | }
155 |
156 | .reveal .hljs {
157 | max-height: 100%;
158 | white-space: pre-wrap;
159 | word-wrap: break-word;
160 | word-break: break-word;
161 | font-size: 15pt;
162 | }
163 |
164 | .reveal .hljs .hljs-ln-numbers {
165 | white-space: nowrap;
166 | }
167 |
168 | .reveal .hljs td {
169 | font-size: inherit !important;
170 | color: inherit !important;
171 | }
172 | }
173 | }
174 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/print/pdf.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * This stylesheet is used to print reveal.js
3 | * presentations to PDF.
4 | *
5 | * https://revealjs.com/pdf-export/
6 | */
7 |
8 | html.print-pdf {
9 | * {
10 | -webkit-print-color-adjust: exact;
11 | }
12 |
13 | & {
14 | width: 100%;
15 | height: 100%;
16 | overflow: visible;
17 | }
18 |
19 | body {
20 | margin: 0 auto !important;
21 | border: 0;
22 | padding: 0;
23 | float: none !important;
24 | overflow: visible;
25 | }
26 |
27 | /* Remove any elements not needed in print. */
28 | .nestedarrow,
29 | .reveal .controls,
30 | .reveal .progress,
31 | .reveal .playback,
32 | .reveal.overview,
33 | .state-background {
34 | display: none !important;
35 | }
36 |
37 | .reveal pre code {
38 | overflow: hidden !important;
39 | font-family: Courier, 'Courier New', monospace !important;
40 | }
41 |
42 | .reveal {
43 | width: auto !important;
44 | height: auto !important;
45 | overflow: hidden !important;
46 | }
47 | .reveal .slides {
48 | position: static;
49 | width: 100% !important;
50 | height: auto !important;
51 | zoom: 1 !important;
52 | pointer-events: initial;
53 |
54 | left: auto;
55 | top: auto;
56 | margin: 0 !important;
57 | padding: 0 !important;
58 |
59 | overflow: visible;
60 | display: block;
61 |
62 | perspective: none;
63 | perspective-origin: 50% 50%;
64 | }
65 |
66 | .reveal .slides .pdf-page {
67 | position: relative;
68 | overflow: hidden;
69 | z-index: 1;
70 |
71 | page-break-after: always;
72 | }
73 |
74 | .reveal .slides section {
75 | visibility: visible !important;
76 | display: block !important;
77 | position: absolute !important;
78 |
79 | margin: 0 !important;
80 | padding: 0 !important;
81 | box-sizing: border-box !important;
82 | min-height: 1px;
83 |
84 | opacity: 1 !important;
85 |
86 | transform-style: flat !important;
87 | transform: none !important;
88 | }
89 |
90 | .reveal section.stack {
91 | position: relative !important;
92 | margin: 0 !important;
93 | padding: 0 !important;
94 | page-break-after: avoid !important;
95 | height: auto !important;
96 | min-height: auto !important;
97 | }
98 |
99 | .reveal img {
100 | box-shadow: none;
101 | }
102 |
103 |
104 | /* Slide backgrounds are placed inside of their slide when exporting to PDF */
105 | .reveal .backgrounds {
106 | display: none;
107 | }
108 | .reveal .slide-background {
109 | display: block !important;
110 | position: absolute;
111 | top: 0;
112 | left: 0;
113 | width: 100%;
114 | height: 100%;
115 | z-index: auto !important;
116 | }
117 |
118 | /* Display slide speaker notes when 'showNotes' is enabled */
119 | .reveal.show-notes {
120 | max-width: none;
121 | max-height: none;
122 | }
123 | .reveal .speaker-notes-pdf {
124 | display: block;
125 | width: 100%;
126 | height: auto;
127 | max-height: none;
128 | top: auto;
129 | right: auto;
130 | bottom: auto;
131 | left: auto;
132 | z-index: 100;
133 | }
134 |
135 | /* Layout option which makes notes appear on a separate page */
136 | .reveal .speaker-notes-pdf[data-layout="separate-page"] {
137 | position: relative;
138 | color: inherit;
139 | background-color: transparent;
140 | padding: 20px;
141 | page-break-after: always;
142 | border: 0;
143 | }
144 |
145 | /* Display slide numbers when 'slideNumber' is enabled */
146 | .reveal .slide-number-pdf {
147 | display: block;
148 | position: absolute;
149 | font-size: 14px;
150 | }
151 |
152 | /* This accessibility tool is not useful in PDF and breaks it visually */
153 | .aria-status {
154 | display: none;
155 | }
156 | }
157 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/README.md:
--------------------------------------------------------------------------------
1 | ## Dependencies
2 |
3 | Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment installed before proceeding: https://revealjs.com/installation/#full-setup
4 |
5 | ## Creating a Theme
6 |
7 | To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled from Sass to CSS (see the [gulpfile](https://github.com/hakimel/reveal.js/blob/master/gulpfile.js)) when you run `npm run build -- css-themes`.
8 |
9 | Each theme file does four things in the following order:
10 |
11 | 1. **Include [/css/theme/template/mixins.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/mixins.scss)**
12 | Shared utility functions.
13 |
14 | 2. **Include [/css/theme/template/settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss)**
15 | Declares a set of custom variables that the template file (step 4) expects. Can be overridden in step 3.
16 |
17 | 3. **Override**
18 | This is where you override the default theme. Either by specifying variables (see [settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss) for reference) or by adding any selectors and styles you please.
19 |
20 | 4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)**
21 | The template theme file which will generate final CSS output based on the currently defined variables.
22 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/source/beige.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Beige theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 |
15 | // Include theme-specific fonts
16 | @import url(./fonts/league-gothic/league-gothic.css);
17 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
18 |
19 |
20 | // Override theme settings (see ../template/settings.scss)
21 | $mainColor: #333;
22 | $headingColor: #333;
23 | $headingTextShadow: none;
24 | $backgroundColor: #f7f3de;
25 | $linkColor: #8b743d;
26 | $linkColorHover: lighten( $linkColor, 20% );
27 | $selectionBackgroundColor: rgba(79, 64, 28, 0.99);
28 | $heading1TextShadow: 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,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
29 |
30 | // Background generator
31 | @mixin bodyBackground() {
32 | @include radial-gradient( rgba(247,242,211,1), rgba(255,255,255,1) );
33 | }
34 |
35 | // Change text colors against dark slide backgrounds
36 | @include dark-bg-text-color(#fff);
37 |
38 |
39 | // Theme template ------------------------------
40 | @import "../template/theme";
41 | // ---------------------------------------------
42 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/source/black.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Black theme for reveal.js. This is the opposite of the 'white' theme.
3 | *
4 | * By Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(./fonts/source-sans-pro/source-sans-pro.css);
16 |
17 |
18 | // Override theme settings (see ../template/settings.scss)
19 | $backgroundColor: #191919;
20 |
21 | $mainColor: #fff;
22 | $headingColor: #fff;
23 |
24 | $mainFontSize: 42px;
25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif;
26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif;
27 | $headingTextShadow: none;
28 | $headingLetterSpacing: normal;
29 | $headingTextTransform: uppercase;
30 | $headingFontWeight: 600;
31 | $linkColor: #42affa;
32 | $linkColorHover: lighten( $linkColor, 15% );
33 | $selectionBackgroundColor: lighten( $linkColor, 25% );
34 |
35 | $heading1Size: 2.5em;
36 | $heading2Size: 1.6em;
37 | $heading3Size: 1.3em;
38 | $heading4Size: 1.0em;
39 |
40 | // Change text colors against light slide backgrounds
41 | @include light-bg-text-color(#222);
42 |
43 |
44 | // Theme template ------------------------------
45 | @import "../template/theme";
46 | // ---------------------------------------------
47 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/source/blood.scss:
--------------------------------------------------------------------------------
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 |
13 | // Default mixins and settings -----------------
14 | @import "../template/mixins";
15 | @import "../template/settings";
16 | // ---------------------------------------------
17 |
18 | // Include theme-specific fonts
19 |
20 | @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
21 |
22 | // Colors used in the theme
23 | $blood: #a23;
24 | $coal: #222;
25 | $codeBackground: #23241f;
26 |
27 | $backgroundColor: $coal;
28 |
29 | // Main text
30 | $mainFont: Ubuntu, 'sans-serif';
31 | $mainColor: #eee;
32 |
33 | // Headings
34 | $headingFont: Ubuntu, 'sans-serif';
35 | $headingTextShadow: 2px 2px 2px $coal;
36 |
37 | // h1 shadow, borrowed humbly from
38 | // (c) Default theme by Hakim El Hattab
39 | $heading1TextShadow: 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,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
40 |
41 | // Links
42 | $linkColor: $blood;
43 | $linkColorHover: lighten( $linkColor, 20% );
44 |
45 | // Text selection
46 | $selectionBackgroundColor: $blood;
47 | $selectionColor: #fff;
48 |
49 | // Change text colors against dark slide backgrounds
50 | @include light-bg-text-color(#222);
51 |
52 |
53 | // Theme template ------------------------------
54 | @import "../template/theme";
55 | // ---------------------------------------------
56 |
57 | // some overrides after theme template import
58 |
59 | .reveal p {
60 | font-weight: 300;
61 | text-shadow: 1px 1px $coal;
62 | }
63 |
64 | section.has-light-background {
65 | p, h1, h2, h3, h4 {
66 | text-shadow: none;
67 | }
68 | }
69 |
70 | .reveal h1,
71 | .reveal h2,
72 | .reveal h3,
73 | .reveal h4,
74 | .reveal h5,
75 | .reveal h6 {
76 | font-weight: 700;
77 | }
78 |
79 | .reveal p code {
80 | background-color: $codeBackground;
81 | display: inline-block;
82 | border-radius: 7px;
83 | }
84 |
85 | .reveal small code {
86 | vertical-align: baseline;
87 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/source/league.scss:
--------------------------------------------------------------------------------
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 |
9 |
10 | // Default mixins and settings -----------------
11 | @import "../template/mixins";
12 | @import "../template/settings";
13 | // ---------------------------------------------
14 |
15 |
16 |
17 | // Include theme-specific fonts
18 | @import url(./fonts/league-gothic/league-gothic.css);
19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
20 |
21 | // Override theme settings (see ../template/settings.scss)
22 | $headingTextShadow: 0px 0px 6px rgba(0,0,0,0.2);
23 | $heading1TextShadow: 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,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
24 |
25 | // Background generator
26 | @mixin bodyBackground() {
27 | @include radial-gradient( rgba(28,30,32,1), rgba(85,90,95,1) );
28 | }
29 |
30 | // Change text colors against light slide backgrounds
31 | @include light-bg-text-color(#222);
32 |
33 |
34 | // Theme template ------------------------------
35 | @import "../template/theme";
36 | // ---------------------------------------------
37 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/source/moon.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Solarized Dark theme for reveal.js.
3 | * Author: Achim Staebler
4 | */
5 |
6 |
7 | // Default mixins and settings -----------------
8 | @import "../template/mixins";
9 | @import "../template/settings";
10 | // ---------------------------------------------
11 |
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(./fonts/league-gothic/league-gothic.css);
16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
17 |
18 | /**
19 | * Solarized colors by Ethan Schoonover
20 | */
21 | html * {
22 | color-profile: sRGB;
23 | rendering-intent: auto;
24 | }
25 |
26 | // Solarized colors
27 | $base03: #002b36;
28 | $base02: #073642;
29 | $base01: #586e75;
30 | $base00: #657b83;
31 | $base0: #839496;
32 | $base1: #93a1a1;
33 | $base2: #eee8d5;
34 | $base3: #fdf6e3;
35 | $yellow: #b58900;
36 | $orange: #cb4b16;
37 | $red: #dc322f;
38 | $magenta: #d33682;
39 | $violet: #6c71c4;
40 | $blue: #268bd2;
41 | $cyan: #2aa198;
42 | $green: #859900;
43 |
44 | // Override theme settings (see ../template/settings.scss)
45 | $mainColor: $base1;
46 | $headingColor: $base2;
47 | $headingTextShadow: none;
48 | $backgroundColor: $base03;
49 | $linkColor: $blue;
50 | $linkColorHover: lighten( $linkColor, 20% );
51 | $selectionBackgroundColor: $magenta;
52 |
53 | // Change text colors against light slide backgrounds
54 | @include light-bg-text-color(#222);
55 |
56 | // Theme template ------------------------------
57 | @import "../template/theme";
58 | // ---------------------------------------------
59 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/source/night.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Black theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(https://fonts.googleapis.com/css?family=Montserrat:700);
16 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
17 |
18 |
19 | // Override theme settings (see ../template/settings.scss)
20 | $backgroundColor: #111;
21 |
22 | $mainFont: 'Open Sans', sans-serif;
23 | $linkColor: #e7ad52;
24 | $linkColorHover: lighten( $linkColor, 20% );
25 | $headingFont: 'Montserrat', Impact, sans-serif;
26 | $headingTextShadow: none;
27 | $headingLetterSpacing: -0.03em;
28 | $headingTextTransform: none;
29 | $selectionBackgroundColor: #e7ad52;
30 |
31 | // Change text colors against light slide backgrounds
32 | @include light-bg-text-color(#222);
33 |
34 |
35 | // Theme template ------------------------------
36 | @import "../template/theme";
37 | // ---------------------------------------------
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/source/serif.scss:
--------------------------------------------------------------------------------
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 |
8 |
9 | // Default mixins and settings -----------------
10 | @import "../template/mixins";
11 | @import "../template/settings";
12 | // ---------------------------------------------
13 |
14 |
15 |
16 | // Override theme settings (see ../template/settings.scss)
17 | $mainFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
18 | $mainColor: #000;
19 | $headingFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
20 | $headingColor: #383D3D;
21 | $headingTextShadow: none;
22 | $headingTextTransform: none;
23 | $backgroundColor: #F0F1EB;
24 | $linkColor: #51483D;
25 | $linkColorHover: lighten( $linkColor, 20% );
26 | $selectionBackgroundColor: #26351C;
27 |
28 | .reveal a {
29 | line-height: 1.3em;
30 | }
31 |
32 | // Change text colors against dark slide backgrounds
33 | @include dark-bg-text-color(#fff);
34 |
35 |
36 | // Theme template ------------------------------
37 | @import "../template/theme";
38 | // ---------------------------------------------
39 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/source/simple.scss:
--------------------------------------------------------------------------------
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 |
9 |
10 | // Default mixins and settings -----------------
11 | @import "../template/mixins";
12 | @import "../template/settings";
13 | // ---------------------------------------------
14 |
15 |
16 |
17 | // Include theme-specific fonts
18 | @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
20 |
21 |
22 | // Override theme settings (see ../template/settings.scss)
23 | $mainFont: 'Lato', sans-serif;
24 | $mainColor: #000;
25 | $headingFont: 'News Cycle', Impact, sans-serif;
26 | $headingColor: #000;
27 | $headingTextShadow: none;
28 | $headingTextTransform: none;
29 | $backgroundColor: #fff;
30 | $linkColor: #00008B;
31 | $linkColorHover: lighten( $linkColor, 20% );
32 | $selectionBackgroundColor: rgba(0, 0, 0, 0.99);
33 |
34 | // Change text colors against dark slide backgrounds
35 | @include dark-bg-text-color(#fff);
36 |
37 |
38 | // Theme template ------------------------------
39 | @import "../template/theme";
40 | // ---------------------------------------------
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/source/sky.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Sky theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 |
15 | // Include theme-specific fonts
16 | @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
17 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
18 |
19 |
20 | // Override theme settings (see ../template/settings.scss)
21 | $mainFont: 'Open Sans', sans-serif;
22 | $mainColor: #333;
23 | $headingFont: 'Quicksand', sans-serif;
24 | $headingColor: #333;
25 | $headingLetterSpacing: -0.08em;
26 | $headingTextShadow: none;
27 | $backgroundColor: #f7fbfc;
28 | $linkColor: #3b759e;
29 | $linkColorHover: lighten( $linkColor, 20% );
30 | $selectionBackgroundColor: #134674;
31 |
32 | // Fix links so they are not cut off
33 | .reveal a {
34 | line-height: 1.3em;
35 | }
36 |
37 | // Background generator
38 | @mixin bodyBackground() {
39 | @include radial-gradient( #add9e4, #f7fbfc );
40 | }
41 |
42 | // Change text colors against dark slide backgrounds
43 | @include dark-bg-text-color(#fff);
44 |
45 |
46 |
47 | // Theme template ------------------------------
48 | @import "../template/theme";
49 | // ---------------------------------------------
50 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/source/solarized.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Solarized Light theme for reveal.js.
3 | * Author: Achim Staebler
4 | */
5 |
6 |
7 | // Default mixins and settings -----------------
8 | @import "../template/mixins";
9 | @import "../template/settings";
10 | // ---------------------------------------------
11 |
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(./fonts/league-gothic/league-gothic.css);
16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
17 |
18 |
19 | /**
20 | * Solarized colors by Ethan Schoonover
21 | */
22 | html * {
23 | color-profile: sRGB;
24 | rendering-intent: auto;
25 | }
26 |
27 | // Solarized colors
28 | $base03: #002b36;
29 | $base02: #073642;
30 | $base01: #586e75;
31 | $base00: #657b83;
32 | $base0: #839496;
33 | $base1: #93a1a1;
34 | $base2: #eee8d5;
35 | $base3: #fdf6e3;
36 | $yellow: #b58900;
37 | $orange: #cb4b16;
38 | $red: #dc322f;
39 | $magenta: #d33682;
40 | $violet: #6c71c4;
41 | $blue: #268bd2;
42 | $cyan: #2aa198;
43 | $green: #859900;
44 |
45 | // Override theme settings (see ../template/settings.scss)
46 | $mainColor: $base00;
47 | $headingColor: $base01;
48 | $headingTextShadow: none;
49 | $backgroundColor: $base3;
50 | $linkColor: $blue;
51 | $linkColorHover: lighten( $linkColor, 20% );
52 | $selectionBackgroundColor: $magenta;
53 |
54 | // Background generator
55 | // @mixin bodyBackground() {
56 | // @include radial-gradient( rgba($base3,1), rgba(lighten($base3, 20%),1) );
57 | // }
58 |
59 |
60 |
61 | // Theme template ------------------------------
62 | @import "../template/theme";
63 | // ---------------------------------------------
64 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/source/white.scss:
--------------------------------------------------------------------------------
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 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(./fonts/source-sans-pro/source-sans-pro.css);
16 |
17 |
18 | // Override theme settings (see ../template/settings.scss)
19 | $backgroundColor: #fff;
20 |
21 | $mainColor: #222;
22 | $headingColor: #222;
23 |
24 | $mainFontSize: 42px;
25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif;
26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif;
27 | $headingTextShadow: none;
28 | $headingLetterSpacing: normal;
29 | $headingTextTransform: uppercase;
30 | $headingFontWeight: 600;
31 | $linkColor: #2a76dd;
32 | $linkColorHover: lighten( $linkColor, 15% );
33 | $selectionBackgroundColor: lighten( $linkColor, 25% );
34 |
35 | $heading1Size: 2.5em;
36 | $heading2Size: 1.6em;
37 | $heading3Size: 1.3em;
38 | $heading4Size: 1.0em;
39 |
40 | // Change text colors against dark slide backgrounds
41 | @include dark-bg-text-color(#fff);
42 |
43 |
44 | // Theme template ------------------------------
45 | @import "../template/theme";
46 | // ---------------------------------------------
47 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/template/exposer.scss:
--------------------------------------------------------------------------------
1 | // Exposes theme's variables for easy re-use in CSS for plugin authors
2 |
3 | :root {
4 | --background-color: #{$backgroundColor};
5 | --main-font: #{$mainFont};
6 | --main-font-size: #{$mainFontSize};
7 | --main-color: #{$mainColor};
8 | --block-margin: #{$blockMargin};
9 | --heading-margin: #{$headingMargin};
10 | --heading-font: #{$headingFont};
11 | --heading-color: #{$headingColor};
12 | --heading-line-height: #{$headingLineHeight};
13 | --heading-letter-spacing: #{$headingLetterSpacing};
14 | --heading-text-transform: #{$headingTextTransform};
15 | --heading-text-shadow: #{$headingTextShadow};
16 | --heading-font-weight: #{$headingFontWeight};
17 | --heading1-text-shadow: #{$heading1TextShadow};
18 | --heading1-size: #{$heading1Size};
19 | --heading2-size: #{$heading2Size};
20 | --heading3-size: #{$heading3Size};
21 | --heading4-size: #{$heading4Size};
22 | --code-font: #{$codeFont};
23 | --link-color: #{$linkColor};
24 | --link-color-hover: #{$linkColorHover};
25 | --selection-background-color: #{$selectionBackgroundColor};
26 | --selection-color: #{$selectionColor};
27 | }
28 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/template/mixins.scss:
--------------------------------------------------------------------------------
1 | @mixin vertical-gradient( $top, $bottom ) {
2 | background: $top;
3 | background: -moz-linear-gradient( top, $top 0%, $bottom 100% );
4 | background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) );
5 | background: -webkit-linear-gradient( top, $top 0%, $bottom 100% );
6 | background: -o-linear-gradient( top, $top 0%, $bottom 100% );
7 | background: -ms-linear-gradient( top, $top 0%, $bottom 100% );
8 | background: linear-gradient( top, $top 0%, $bottom 100% );
9 | }
10 |
11 | @mixin horizontal-gradient( $top, $bottom ) {
12 | background: $top;
13 | background: -moz-linear-gradient( left, $top 0%, $bottom 100% );
14 | background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) );
15 | background: -webkit-linear-gradient( left, $top 0%, $bottom 100% );
16 | background: -o-linear-gradient( left, $top 0%, $bottom 100% );
17 | background: -ms-linear-gradient( left, $top 0%, $bottom 100% );
18 | background: linear-gradient( left, $top 0%, $bottom 100% );
19 | }
20 |
21 | @mixin radial-gradient( $outer, $inner, $type: circle ) {
22 | background: $outer;
23 | background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
24 | background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) );
25 | background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
26 | background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
27 | background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
28 | background: radial-gradient( center, $type cover, $inner 0%, $outer 100% );
29 | }
30 |
31 | @mixin light-bg-text-color( $color ) {
32 | section.has-light-background {
33 | &, h1, h2, h3, h4, h5, h6 {
34 | color: $color;
35 | }
36 | }
37 | }
38 |
39 | @mixin dark-bg-text-color( $color ) {
40 | section.has-dark-background {
41 | &, h1, h2, h3, h4, h5, h6 {
42 | color: $color;
43 | }
44 | }
45 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/template/settings.scss:
--------------------------------------------------------------------------------
1 | // Base settings for all themes that can optionally be
2 | // overridden by the super-theme
3 |
4 | // Background of the presentation
5 | $backgroundColor: #2b2b2b;
6 |
7 | // Primary/body text
8 | $mainFont: 'Lato', sans-serif;
9 | $mainFontSize: 40px;
10 | $mainColor: #eee;
11 |
12 | // Vertical spacing between blocks of text
13 | $blockMargin: 20px;
14 |
15 | // Headings
16 | $headingMargin: 0 0 $blockMargin 0;
17 | $headingFont: 'League Gothic', Impact, sans-serif;
18 | $headingColor: #eee;
19 | $headingLineHeight: 1.2;
20 | $headingLetterSpacing: normal;
21 | $headingTextTransform: uppercase;
22 | $headingTextShadow: none;
23 | $headingFontWeight: normal;
24 | $heading1TextShadow: $headingTextShadow;
25 |
26 | $heading1Size: 3.77em;
27 | $heading2Size: 2.11em;
28 | $heading3Size: 1.55em;
29 | $heading4Size: 1.00em;
30 |
31 | $codeFont: monospace;
32 |
33 | // Links and actions
34 | $linkColor: #13DAEC;
35 | $linkColorHover: lighten( $linkColor, 20% );
36 |
37 | // Text selection
38 | $selectionBackgroundColor: #FF5E99;
39 | $selectionColor: #fff;
40 |
41 | // Generates the presentation background, can be overridden
42 | // to return a background image or gradient
43 | @mixin bodyBackground() {
44 | background: $backgroundColor;
45 | }
46 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/css/theme/template/theme.scss:
--------------------------------------------------------------------------------
1 | // Base theme template for reveal.js
2 |
3 | /*********************************************
4 | * GLOBAL STYLES
5 | *********************************************/
6 |
7 | @import "./exposer";
8 |
9 | .reveal-viewport {
10 | @include bodyBackground();
11 | background-color: $backgroundColor;
12 | }
13 |
14 | .reveal {
15 | font-family: $mainFont;
16 | font-size: $mainFontSize;
17 | font-weight: normal;
18 | color: $mainColor;
19 | }
20 |
21 | .reveal ::selection {
22 | color: $selectionColor;
23 | background: $selectionBackgroundColor;
24 | text-shadow: none;
25 | }
26 |
27 | .reveal ::-moz-selection {
28 | color: $selectionColor;
29 | background: $selectionBackgroundColor;
30 | text-shadow: none;
31 | }
32 |
33 | .reveal .slides section,
34 | .reveal .slides section>section {
35 | line-height: 1.3;
36 | font-weight: inherit;
37 | }
38 |
39 | /*********************************************
40 | * HEADERS
41 | *********************************************/
42 |
43 | .reveal h1,
44 | .reveal h2,
45 | .reveal h3,
46 | .reveal h4,
47 | .reveal h5,
48 | .reveal h6 {
49 | margin: $headingMargin;
50 | color: $headingColor;
51 |
52 | font-family: $headingFont;
53 | font-weight: $headingFontWeight;
54 | line-height: $headingLineHeight;
55 | letter-spacing: $headingLetterSpacing;
56 |
57 | text-transform: $headingTextTransform;
58 | text-shadow: $headingTextShadow;
59 |
60 | word-wrap: break-word;
61 | }
62 |
63 | .reveal h1 {font-size: $heading1Size; }
64 | .reveal h2 {font-size: $heading2Size; }
65 | .reveal h3 {font-size: $heading3Size; }
66 | .reveal h4 {font-size: $heading4Size; }
67 |
68 | .reveal h1 {
69 | text-shadow: $heading1TextShadow;
70 | }
71 |
72 |
73 | /*********************************************
74 | * OTHER
75 | *********************************************/
76 |
77 | .reveal p {
78 | margin: $blockMargin 0;
79 | line-height: 1.3;
80 | }
81 |
82 | /* Remove trailing margins after titles */
83 | .reveal h1:last-child,
84 | .reveal h2:last-child,
85 | .reveal h3:last-child,
86 | .reveal h4:last-child,
87 | .reveal h5:last-child,
88 | .reveal h6:last-child {
89 | margin-bottom: 0;
90 | }
91 |
92 | /* Ensure certain elements are never larger than the slide itself */
93 | .reveal img,
94 | .reveal video,
95 | .reveal iframe {
96 | max-width: 95%;
97 | max-height: 95%;
98 | }
99 | .reveal strong,
100 | .reveal b {
101 | font-weight: bold;
102 | }
103 |
104 | .reveal em {
105 | font-style: italic;
106 | }
107 |
108 | .reveal ol,
109 | .reveal dl,
110 | .reveal ul {
111 | display: inline-block;
112 |
113 | text-align: left;
114 | margin: 0 0 0 1em;
115 | }
116 |
117 | .reveal ol {
118 | list-style-type: decimal;
119 | }
120 |
121 | .reveal ul {
122 | list-style-type: disc;
123 | }
124 |
125 | .reveal ul ul {
126 | list-style-type: square;
127 | }
128 |
129 | .reveal ul ul ul {
130 | list-style-type: circle;
131 | }
132 |
133 | .reveal ul ul,
134 | .reveal ul ol,
135 | .reveal ol ol,
136 | .reveal ol ul {
137 | display: block;
138 | margin-left: 40px;
139 | }
140 |
141 | .reveal dt {
142 | font-weight: bold;
143 | }
144 |
145 | .reveal dd {
146 | margin-left: 40px;
147 | }
148 |
149 | .reveal blockquote {
150 | display: block;
151 | position: relative;
152 | width: 70%;
153 | margin: $blockMargin auto;
154 | padding: 5px;
155 |
156 | font-style: italic;
157 | background: rgba(255, 255, 255, 0.05);
158 | box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
159 | }
160 | .reveal blockquote p:first-child,
161 | .reveal blockquote p:last-child {
162 | display: inline-block;
163 | }
164 |
165 | .reveal q {
166 | font-style: italic;
167 | }
168 |
169 | .reveal pre {
170 | display: block;
171 | position: relative;
172 | width: 90%;
173 | margin: $blockMargin auto;
174 |
175 | text-align: left;
176 | font-size: 0.55em;
177 | font-family: $codeFont;
178 | line-height: 1.2em;
179 |
180 | word-wrap: break-word;
181 |
182 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
183 | }
184 |
185 | .reveal code {
186 | font-family: $codeFont;
187 | text-transform: none;
188 | }
189 |
190 | .reveal pre code {
191 | display: block;
192 | padding: 5px;
193 | overflow: auto;
194 | max-height: 400px;
195 | word-wrap: normal;
196 | }
197 |
198 | .reveal table {
199 | margin: auto;
200 | border-collapse: collapse;
201 | border-spacing: 0;
202 | }
203 |
204 | .reveal table th {
205 | font-weight: bold;
206 | }
207 |
208 | .reveal table th,
209 | .reveal table td {
210 | text-align: left;
211 | padding: 0.2em 0.5em 0.2em 0.5em;
212 | border-bottom: 1px solid;
213 | }
214 |
215 | .reveal table th[align="center"],
216 | .reveal table td[align="center"] {
217 | text-align: center;
218 | }
219 |
220 | .reveal table th[align="right"],
221 | .reveal table td[align="right"] {
222 | text-align: right;
223 | }
224 |
225 | .reveal table tbody tr:last-child th,
226 | .reveal table tbody tr:last-child td {
227 | border-bottom: none;
228 | }
229 |
230 | .reveal sup {
231 | vertical-align: super;
232 | font-size: smaller;
233 | }
234 | .reveal sub {
235 | vertical-align: sub;
236 | font-size: smaller;
237 | }
238 |
239 | .reveal small {
240 | display: inline-block;
241 | font-size: 0.6em;
242 | line-height: 1.2em;
243 | vertical-align: top;
244 | }
245 |
246 | .reveal small * {
247 | vertical-align: top;
248 | }
249 |
250 | .reveal img {
251 | margin: $blockMargin 0;
252 | }
253 |
254 |
255 | /*********************************************
256 | * LINKS
257 | *********************************************/
258 |
259 | .reveal a {
260 | color: $linkColor;
261 | text-decoration: none;
262 | transition: color .15s ease;
263 | }
264 | .reveal a:hover {
265 | color: $linkColorHover;
266 | text-shadow: none;
267 | border: none;
268 | }
269 |
270 | .reveal .roll span:after {
271 | color: #fff;
272 | background: darken( $linkColor, 15% );
273 | }
274 |
275 |
276 | /*********************************************
277 | * Frame helper
278 | *********************************************/
279 |
280 | .reveal .r-frame {
281 | border: 4px solid $mainColor;
282 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
283 | }
284 |
285 | .reveal a .r-frame {
286 | transition: all .15s linear;
287 | }
288 |
289 | .reveal a:hover .r-frame {
290 | border-color: $linkColor;
291 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
292 | }
293 |
294 |
295 | /*********************************************
296 | * NAVIGATION CONTROLS
297 | *********************************************/
298 |
299 | .reveal .controls {
300 | color: $linkColor;
301 | }
302 |
303 |
304 | /*********************************************
305 | * PROGRESS BAR
306 | *********************************************/
307 |
308 | .reveal .progress {
309 | background: rgba(0,0,0,0.2);
310 | color: $linkColor;
311 | }
312 |
313 | /*********************************************
314 | * PRINT BACKGROUND
315 | *********************************************/
316 | @media print {
317 | .backgrounds {
318 | background-color: $backgroundColor;
319 | }
320 | }
321 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/gulpfile.js:
--------------------------------------------------------------------------------
1 | const pkg = require('./package.json')
2 | const path = require('path')
3 | const glob = require('glob')
4 | const yargs = require('yargs')
5 | const colors = require('colors')
6 | const qunit = require('node-qunit-puppeteer')
7 |
8 | const {rollup} = require('rollup')
9 | const {terser} = require('rollup-plugin-terser')
10 | const babel = require('@rollup/plugin-babel').default
11 | const commonjs = require('@rollup/plugin-commonjs')
12 | const resolve = require('@rollup/plugin-node-resolve').default
13 |
14 | const gulp = require('gulp')
15 | const tap = require('gulp-tap')
16 | const zip = require('gulp-zip')
17 | const sass = require('gulp-sass')
18 | const header = require('gulp-header')
19 | const eslint = require('gulp-eslint')
20 | const minify = require('gulp-clean-css')
21 | const connect = require('gulp-connect')
22 | const autoprefixer = require('gulp-autoprefixer')
23 |
24 | const root = yargs.argv.root || '.'
25 | const port = yargs.argv.port || 8000
26 |
27 | const banner = `/*!
28 | * reveal.js ${pkg.version}
29 | * ${pkg.homepage}
30 | * MIT licensed
31 | *
32 | * Copyright (C) 2020 Hakim El Hattab, https://hakim.se
33 | */\n`
34 |
35 | // Prevents warnings from opening too many test pages
36 | process.setMaxListeners(20);
37 |
38 | const babelConfig = {
39 | babelHelpers: 'bundled',
40 | ignore: ['node_modules'],
41 | compact: false,
42 | extensions: ['.js', '.html'],
43 | plugins: [
44 | 'transform-html-import-to-string'
45 | ],
46 | presets: [[
47 | '@babel/preset-env',
48 | {
49 | corejs: 3,
50 | useBuiltIns: 'usage',
51 | modules: false
52 | }
53 | ]]
54 | };
55 |
56 | // Our ES module bundle only targets newer browsers with
57 | // module support. Browsers are targeted explicitly instead
58 | // of using the "esmodule: true" target since that leads to
59 | // polyfilling older browsers and a larger bundle.
60 | const babelConfigESM = JSON.parse( JSON.stringify( babelConfig ) );
61 | babelConfigESM.presets[0][1].targets = { browsers: [
62 | 'last 2 Chrome versions', 'not Chrome < 60',
63 | 'last 2 Safari versions', 'not Safari < 10.1',
64 | 'last 2 iOS versions', 'not iOS < 10.3',
65 | 'last 2 Firefox versions', 'not Firefox < 60',
66 | 'last 2 Edge versions', 'not Edge < 16',
67 | ] };
68 |
69 | let cache = {};
70 |
71 | // Creates a bundle with broad browser support, exposed
72 | // as UMD
73 | gulp.task('js-es5', () => {
74 | return rollup({
75 | cache: cache.umd,
76 | input: 'js/index.js',
77 | plugins: [
78 | resolve(),
79 | commonjs(),
80 | babel( babelConfig ),
81 | terser()
82 | ]
83 | }).then( bundle => {
84 | cache.umd = bundle.cache;
85 | return bundle.write({
86 | name: 'Reveal',
87 | file: './dist/reveal.js',
88 | format: 'umd',
89 | banner: banner,
90 | sourcemap: true
91 | });
92 | });
93 | })
94 |
95 | // Creates an ES module bundle
96 | gulp.task('js-es6', () => {
97 | return rollup({
98 | cache: cache.esm,
99 | input: 'js/index.js',
100 | plugins: [
101 | resolve(),
102 | commonjs(),
103 | babel( babelConfigESM ),
104 | terser()
105 | ]
106 | }).then( bundle => {
107 | cache.esm = bundle.cache;
108 | return bundle.write({
109 | file: './dist/reveal.esm.js',
110 | format: 'es',
111 | banner: banner,
112 | sourcemap: true
113 | });
114 | });
115 | })
116 | gulp.task('js', gulp.parallel('js-es5', 'js-es6'));
117 |
118 | // Creates a UMD and ES module bundle for each of our
119 | // built-in plugins
120 | gulp.task('plugins', () => {
121 | return Promise.all([
122 | { name: 'RevealHighlight', input: './plugin/highlight/plugin.js', output: './plugin/highlight/highlight' },
123 | { name: 'RevealMarkdown', input: './plugin/markdown/plugin.js', output: './plugin/markdown/markdown' },
124 | { name: 'RevealSearch', input: './plugin/search/plugin.js', output: './plugin/search/search' },
125 | { name: 'RevealNotes', input: './plugin/notes/plugin.js', output: './plugin/notes/notes' },
126 | { name: 'RevealZoom', input: './plugin/zoom/plugin.js', output: './plugin/zoom/zoom' },
127 | { name: 'RevealMath', input: './plugin/math/plugin.js', output: './plugin/math/math' },
128 | ].map( plugin => {
129 | return rollup({
130 | cache: cache[plugin.input],
131 | input: plugin.input,
132 | plugins: [
133 | resolve(),
134 | commonjs(),
135 | babel({
136 | ...babelConfig,
137 | ignore: [/node_modules\/(?!(highlight\.js|marked)\/).*/],
138 | }),
139 | terser()
140 | ]
141 | }).then( bundle => {
142 | cache[plugin.input] = bundle.cache;
143 | bundle.write({
144 | file: plugin.output + '.esm.js',
145 | name: plugin.name,
146 | format: 'es'
147 | })
148 |
149 | bundle.write({
150 | file: plugin.output + '.js',
151 | name: plugin.name,
152 | format: 'umd'
153 | })
154 | });
155 | } ));
156 | })
157 |
158 | gulp.task('css-themes', () => gulp.src(['./css/theme/source/*.{sass,scss}'])
159 | .pipe(sass())
160 | .pipe(gulp.dest('./dist/theme')))
161 |
162 | gulp.task('css-core', () => gulp.src(['css/reveal.scss'])
163 | .pipe(sass())
164 | .pipe(autoprefixer())
165 | .pipe(minify({compatibility: 'ie9'}))
166 | .pipe(header(banner))
167 | .pipe(gulp.dest('./dist')))
168 |
169 | gulp.task('css', gulp.parallel('css-themes', 'css-core'))
170 |
171 | gulp.task('qunit', () => {
172 |
173 | let serverConfig = {
174 | root,
175 | port: 8009,
176 | host: '0.0.0.0',
177 | name: 'test-server'
178 | }
179 |
180 | let server = connect.server( serverConfig )
181 |
182 | let testFiles = glob.sync('test/*.html' )
183 |
184 | let totalTests = 0;
185 | let failingTests = 0;
186 |
187 | let tests = Promise.all( testFiles.map( filename => {
188 | return new Promise( ( resolve, reject ) => {
189 | qunit.runQunitPuppeteer({
190 | targetUrl: `http://${serverConfig.host}:${serverConfig.port}/${filename}`,
191 | timeout: 20000,
192 | redirectConsole: false,
193 | puppeteerArgs: ['--allow-file-access-from-files']
194 | })
195 | .then(result => {
196 | if( result.stats.failed > 0 ) {
197 | console.log(`${'!'} ${filename} [${result.stats.passed}/${result.stats.total}] in ${result.stats.runtime}ms`.red);
198 | // qunit.printResultSummary(result, console);
199 | qunit.printFailedTests(result, console);
200 | }
201 | else {
202 | console.log(`${'✔'} ${filename} [${result.stats.passed}/${result.stats.total}] in ${result.stats.runtime}ms`.green);
203 | }
204 |
205 | totalTests += result.stats.total;
206 | failingTests += result.stats.failed;
207 |
208 | resolve();
209 | })
210 | .catch(error => {
211 | console.error(error);
212 | reject();
213 | });
214 | } )
215 | } ) );
216 |
217 | return new Promise( ( resolve, reject ) => {
218 |
219 | tests.then( () => {
220 | if( failingTests > 0 ) {
221 | reject( new Error(`${failingTests}/${totalTests} tests failed`.red) );
222 | }
223 | else {
224 | console.log(`${'✔'} Passed ${totalTests} tests`.green.bold);
225 | resolve();
226 | }
227 | } )
228 | .catch( () => {
229 | reject();
230 | } )
231 | .finally( () => {
232 | server.close();
233 | } );
234 |
235 | } );
236 | } )
237 |
238 | gulp.task('eslint', () => gulp.src(['./js/**', 'gulpfile.js'])
239 | .pipe(eslint())
240 | .pipe(eslint.format()))
241 |
242 | gulp.task('test', gulp.series( 'eslint', 'qunit' ))
243 |
244 | gulp.task('default', gulp.series(gulp.parallel('js', 'css', 'plugins'), 'test'))
245 |
246 | gulp.task('build', gulp.parallel('js', 'css', 'plugins'))
247 |
248 | gulp.task('package', gulp.series('default', () =>
249 |
250 | gulp.src([
251 | './index.html',
252 | './dist/**',
253 | './lib/**',
254 | './images/**',
255 | './plugin/**',
256 | './**.md'
257 | ]).pipe(zip('reveal-js-presentation.zip')).pipe(gulp.dest('./'))
258 |
259 | ))
260 |
261 | gulp.task('reload', () => gulp.src(['*.html', '*.md'])
262 | .pipe(connect.reload()));
263 |
264 | gulp.task('serve', () => {
265 |
266 | connect.server({
267 | root: root,
268 | port: port,
269 | host: '0.0.0.0',
270 | livereload: true
271 | })
272 |
273 | gulp.watch(['*.html', '*.md'], gulp.series('reload'))
274 |
275 | gulp.watch(['js/**'], gulp.series('js', 'reload', 'test'))
276 |
277 | gulp.watch(['plugin/**/plugin.js'], gulp.series('plugins', 'reload'))
278 |
279 | gulp.watch([
280 | 'css/theme/source/*.{sass,scss}',
281 | 'css/theme/template/*.{sass,scss}',
282 | ], gulp.series('css-themes', 'reload'))
283 |
284 | gulp.watch([
285 | 'css/*.scss',
286 | 'css/print/*.{sass,scss,css}'
287 | ], gulp.series('css-core', 'reload'))
288 |
289 | gulp.watch(['test/*.html'], gulp.series('test'))
290 |
291 | })
--------------------------------------------------------------------------------
/slides/EmberConf2021/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | reveal.js
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
33 |
34 |
35 |
36 |
37 |
43 |
44 |
45 |
46 |
47 |
Ricardo MendesThey/Them
48 |
49 |
50 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
Ava Gaiety WrotenShe/Her
67 |
68 |
69 |
75 |
76 |
77 |
78 |
94 |
99 |
107 |
112 |
118 |
136 |
151 |
156 |
165 |
174 |
188 |
204 |
211 |
216 |
228 |
238 |
243 |
248 |
253 |
262 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
286 |
287 |
288 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/components/playback.js:
--------------------------------------------------------------------------------
1 | /**
2 | * UI component that lets the use control auto-slide
3 | * playback via play/pause.
4 | */
5 | export default class Playback {
6 |
7 | /**
8 | * @param {HTMLElement} container The component will append
9 | * itself to this
10 | * @param {function} progressCheck A method which will be
11 | * called frequently to get the current playback progress on
12 | * a range of 0-1
13 | */
14 | constructor( container, progressCheck ) {
15 |
16 | // Cosmetics
17 | this.diameter = 100;
18 | this.diameter2 = this.diameter/2;
19 | this.thickness = 6;
20 |
21 | // Flags if we are currently playing
22 | this.playing = false;
23 |
24 | // Current progress on a 0-1 range
25 | this.progress = 0;
26 |
27 | // Used to loop the animation smoothly
28 | this.progressOffset = 1;
29 |
30 | this.container = container;
31 | this.progressCheck = progressCheck;
32 |
33 | this.canvas = document.createElement( 'canvas' );
34 | this.canvas.className = 'playback';
35 | this.canvas.width = this.diameter;
36 | this.canvas.height = this.diameter;
37 | this.canvas.style.width = this.diameter2 + 'px';
38 | this.canvas.style.height = this.diameter2 + 'px';
39 | this.context = this.canvas.getContext( '2d' );
40 |
41 | this.container.appendChild( this.canvas );
42 |
43 | this.render();
44 |
45 | }
46 |
47 | setPlaying( value ) {
48 |
49 | const wasPlaying = this.playing;
50 |
51 | this.playing = value;
52 |
53 | // Start repainting if we weren't already
54 | if( !wasPlaying && this.playing ) {
55 | this.animate();
56 | }
57 | else {
58 | this.render();
59 | }
60 |
61 | }
62 |
63 | animate() {
64 |
65 | const progressBefore = this.progress;
66 |
67 | this.progress = this.progressCheck();
68 |
69 | // When we loop, offset the progress so that it eases
70 | // smoothly rather than immediately resetting
71 | if( progressBefore > 0.8 && this.progress < 0.2 ) {
72 | this.progressOffset = this.progress;
73 | }
74 |
75 | this.render();
76 |
77 | if( this.playing ) {
78 | requestAnimationFrame( this.animate.bind( this ) );
79 | }
80 |
81 | }
82 |
83 | /**
84 | * Renders the current progress and playback state.
85 | */
86 | render() {
87 |
88 | let progress = this.playing ? this.progress : 0,
89 | radius = ( this.diameter2 ) - this.thickness,
90 | x = this.diameter2,
91 | y = this.diameter2,
92 | iconSize = 28;
93 |
94 | // Ease towards 1
95 | this.progressOffset += ( 1 - this.progressOffset ) * 0.1;
96 |
97 | const endAngle = ( - Math.PI / 2 ) + ( progress * ( Math.PI * 2 ) );
98 | const startAngle = ( - Math.PI / 2 ) + ( this.progressOffset * ( Math.PI * 2 ) );
99 |
100 | this.context.save();
101 | this.context.clearRect( 0, 0, this.diameter, this.diameter );
102 |
103 | // Solid background color
104 | this.context.beginPath();
105 | this.context.arc( x, y, radius + 4, 0, Math.PI * 2, false );
106 | this.context.fillStyle = 'rgba( 0, 0, 0, 0.4 )';
107 | this.context.fill();
108 |
109 | // Draw progress track
110 | this.context.beginPath();
111 | this.context.arc( x, y, radius, 0, Math.PI * 2, false );
112 | this.context.lineWidth = this.thickness;
113 | this.context.strokeStyle = 'rgba( 255, 255, 255, 0.2 )';
114 | this.context.stroke();
115 |
116 | if( this.playing ) {
117 | // Draw progress on top of track
118 | this.context.beginPath();
119 | this.context.arc( x, y, radius, startAngle, endAngle, false );
120 | this.context.lineWidth = this.thickness;
121 | this.context.strokeStyle = '#fff';
122 | this.context.stroke();
123 | }
124 |
125 | this.context.translate( x - ( iconSize / 2 ), y - ( iconSize / 2 ) );
126 |
127 | // Draw play/pause icons
128 | if( this.playing ) {
129 | this.context.fillStyle = '#fff';
130 | this.context.fillRect( 0, 0, iconSize / 2 - 4, iconSize );
131 | this.context.fillRect( iconSize / 2 + 4, 0, iconSize / 2 - 4, iconSize );
132 | }
133 | else {
134 | this.context.beginPath();
135 | this.context.translate( 4, 0 );
136 | this.context.moveTo( 0, 0 );
137 | this.context.lineTo( iconSize - 4, iconSize / 2 );
138 | this.context.lineTo( 0, iconSize );
139 | this.context.fillStyle = '#fff';
140 | this.context.fill();
141 | }
142 |
143 | this.context.restore();
144 |
145 | }
146 |
147 | on( type, listener ) {
148 | this.canvas.addEventListener( type, listener, false );
149 | }
150 |
151 | off( type, listener ) {
152 | this.canvas.removeEventListener( type, listener, false );
153 | }
154 |
155 | destroy() {
156 |
157 | this.playing = false;
158 |
159 | if( this.canvas.parentNode ) {
160 | this.container.removeChild( this.canvas );
161 | }
162 |
163 | }
164 |
165 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/controllers/controls.js:
--------------------------------------------------------------------------------
1 | import { queryAll } from '../utils/util.js'
2 | import { isAndroid } from '../utils/device.js'
3 |
4 | /**
5 | * Manages our presentation controls. This includes both
6 | * the built-in control arrows as well as event monitoring
7 | * of any elements within the presentation with either of the
8 | * following helper classes:
9 | * - .navigate-up
10 | * - .navigate-right
11 | * - .navigate-down
12 | * - .navigate-left
13 | * - .navigate-next
14 | * - .navigate-prev
15 | */
16 | export default class Controls {
17 |
18 | constructor( Reveal ) {
19 |
20 | this.Reveal = Reveal;
21 |
22 | this.onNavigateLeftClicked = this.onNavigateLeftClicked.bind( this );
23 | this.onNavigateRightClicked = this.onNavigateRightClicked.bind( this );
24 | this.onNavigateUpClicked = this.onNavigateUpClicked.bind( this );
25 | this.onNavigateDownClicked = this.onNavigateDownClicked.bind( this );
26 | this.onNavigatePrevClicked = this.onNavigatePrevClicked.bind( this );
27 | this.onNavigateNextClicked = this.onNavigateNextClicked.bind( this );
28 |
29 | }
30 |
31 | render() {
32 |
33 | const rtl = this.Reveal.getConfig().rtl;
34 | const revealElement = this.Reveal.getRevealElement();
35 |
36 | this.element = document.createElement( 'aside' );
37 | this.element.className = 'controls';
38 | this.element.innerHTML =
39 | `
40 |
41 |
42 |
`;
43 |
44 | this.Reveal.getRevealElement().appendChild( this.element );
45 |
46 | // There can be multiple instances of controls throughout the page
47 | this.controlsLeft = queryAll( revealElement, '.navigate-left' );
48 | this.controlsRight = queryAll( revealElement, '.navigate-right' );
49 | this.controlsUp = queryAll( revealElement, '.navigate-up' );
50 | this.controlsDown = queryAll( revealElement, '.navigate-down' );
51 | this.controlsPrev = queryAll( revealElement, '.navigate-prev' );
52 | this.controlsNext = queryAll( revealElement, '.navigate-next' );
53 |
54 | // The left, right and down arrows in the standard reveal.js controls
55 | this.controlsRightArrow = this.element.querySelector( '.navigate-right' );
56 | this.controlsLeftArrow = this.element.querySelector( '.navigate-left' );
57 | this.controlsDownArrow = this.element.querySelector( '.navigate-down' );
58 |
59 | }
60 |
61 | /**
62 | * Called when the reveal.js config is updated.
63 | */
64 | configure( config, oldConfig ) {
65 |
66 | this.element.style.display = config.controls ? 'block' : 'none';
67 |
68 | this.element.setAttribute( 'data-controls-layout', config.controlsLayout );
69 | this.element.setAttribute( 'data-controls-back-arrows', config.controlsBackArrows );
70 |
71 | }
72 |
73 | bind() {
74 |
75 | // Listen to both touch and click events, in case the device
76 | // supports both
77 | let pointerEvents = [ 'touchstart', 'click' ];
78 |
79 | // Only support touch for Android, fixes double navigations in
80 | // stock browser
81 | if( isAndroid ) {
82 | pointerEvents = [ 'touchstart' ];
83 | }
84 |
85 | pointerEvents.forEach( eventName => {
86 | this.controlsLeft.forEach( el => el.addEventListener( eventName, this.onNavigateLeftClicked, false ) );
87 | this.controlsRight.forEach( el => el.addEventListener( eventName, this.onNavigateRightClicked, false ) );
88 | this.controlsUp.forEach( el => el.addEventListener( eventName, this.onNavigateUpClicked, false ) );
89 | this.controlsDown.forEach( el => el.addEventListener( eventName, this.onNavigateDownClicked, false ) );
90 | this.controlsPrev.forEach( el => el.addEventListener( eventName, this.onNavigatePrevClicked, false ) );
91 | this.controlsNext.forEach( el => el.addEventListener( eventName, this.onNavigateNextClicked, false ) );
92 | } );
93 |
94 | }
95 |
96 | unbind() {
97 |
98 | [ 'touchstart', 'click' ].forEach( eventName => {
99 | this.controlsLeft.forEach( el => el.removeEventListener( eventName, this.onNavigateLeftClicked, false ) );
100 | this.controlsRight.forEach( el => el.removeEventListener( eventName, this.onNavigateRightClicked, false ) );
101 | this.controlsUp.forEach( el => el.removeEventListener( eventName, this.onNavigateUpClicked, false ) );
102 | this.controlsDown.forEach( el => el.removeEventListener( eventName, this.onNavigateDownClicked, false ) );
103 | this.controlsPrev.forEach( el => el.removeEventListener( eventName, this.onNavigatePrevClicked, false ) );
104 | this.controlsNext.forEach( el => el.removeEventListener( eventName, this.onNavigateNextClicked, false ) );
105 | } );
106 |
107 | }
108 |
109 | /**
110 | * Updates the state of all control/navigation arrows.
111 | */
112 | update() {
113 |
114 | let routes = this.Reveal.availableRoutes();
115 |
116 | // Remove the 'enabled' class from all directions
117 | [...this.controlsLeft, ...this.controlsRight, ...this.controlsUp, ...this.controlsDown, ...this.controlsPrev, ...this.controlsNext].forEach( node => {
118 | node.classList.remove( 'enabled', 'fragmented' );
119 |
120 | // Set 'disabled' attribute on all directions
121 | node.setAttribute( 'disabled', 'disabled' );
122 | } );
123 |
124 | // Add the 'enabled' class to the available routes; remove 'disabled' attribute to enable buttons
125 | if( routes.left ) this.controlsLeft.forEach( el => { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );
126 | if( routes.right ) this.controlsRight.forEach( el => { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );
127 | if( routes.up ) this.controlsUp.forEach( el => { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );
128 | if( routes.down ) this.controlsDown.forEach( el => { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );
129 |
130 | // Prev/next buttons
131 | if( routes.left || routes.up ) this.controlsPrev.forEach( el => { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );
132 | if( routes.right || routes.down ) this.controlsNext.forEach( el => { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );
133 |
134 | // Highlight fragment directions
135 | let currentSlide = this.Reveal.getCurrentSlide();
136 | if( currentSlide ) {
137 |
138 | let fragmentsRoutes = this.Reveal.fragments.availableRoutes();
139 |
140 | // Always apply fragment decorator to prev/next buttons
141 | if( fragmentsRoutes.prev ) this.controlsPrev.forEach( el => { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );
142 | if( fragmentsRoutes.next ) this.controlsNext.forEach( el => { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );
143 |
144 | // Apply fragment decorators to directional buttons based on
145 | // what slide axis they are in
146 | if( this.Reveal.isVerticalSlide( currentSlide ) ) {
147 | if( fragmentsRoutes.prev ) this.controlsUp.forEach( el => { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );
148 | if( fragmentsRoutes.next ) this.controlsDown.forEach( el => { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );
149 | }
150 | else {
151 | if( fragmentsRoutes.prev ) this.controlsLeft.forEach( el => { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );
152 | if( fragmentsRoutes.next ) this.controlsRight.forEach( el => { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );
153 | }
154 |
155 | }
156 |
157 | if( this.Reveal.getConfig().controlsTutorial ) {
158 |
159 | let indices = this.Reveal.getIndices();
160 |
161 | // Highlight control arrows with an animation to ensure
162 | // that the viewer knows how to navigate
163 | if( !this.Reveal.hasNavigatedVertically() && routes.down ) {
164 | this.controlsDownArrow.classList.add( 'highlight' );
165 | }
166 | else {
167 | this.controlsDownArrow.classList.remove( 'highlight' );
168 |
169 | if( this.Reveal.getConfig().rtl ) {
170 |
171 | if( !this.Reveal.hasNavigatedHorizontally() && routes.left && indices.v === 0 ) {
172 | this.controlsLeftArrow.classList.add( 'highlight' );
173 | }
174 | else {
175 | this.controlsLeftArrow.classList.remove( 'highlight' );
176 | }
177 |
178 | } else {
179 |
180 | if( !this.Reveal.hasNavigatedHorizontally() && routes.right && indices.v === 0 ) {
181 | this.controlsRightArrow.classList.add( 'highlight' );
182 | }
183 | else {
184 | this.controlsRightArrow.classList.remove( 'highlight' );
185 | }
186 | }
187 | }
188 | }
189 | }
190 |
191 | /**
192 | * Event handlers for navigation control buttons.
193 | */
194 | onNavigateLeftClicked( event ) {
195 |
196 | event.preventDefault();
197 | this.Reveal.onUserInput();
198 |
199 | if( this.Reveal.getConfig().navigationMode === 'linear' ) {
200 | this.Reveal.prev();
201 | }
202 | else {
203 | this.Reveal.left();
204 | }
205 |
206 | }
207 |
208 | onNavigateRightClicked( event ) {
209 |
210 | event.preventDefault();
211 | this.Reveal.onUserInput();
212 |
213 | if( this.Reveal.getConfig().navigationMode === 'linear' ) {
214 | this.Reveal.next();
215 | }
216 | else {
217 | this.Reveal.right();
218 | }
219 |
220 | }
221 |
222 | onNavigateUpClicked( event ) {
223 |
224 | event.preventDefault();
225 | this.Reveal.onUserInput();
226 |
227 | this.Reveal.up();
228 |
229 | }
230 |
231 | onNavigateDownClicked( event ) {
232 |
233 | event.preventDefault();
234 | this.Reveal.onUserInput();
235 |
236 | this.Reveal.down();
237 |
238 | }
239 |
240 | onNavigatePrevClicked( event ) {
241 |
242 | event.preventDefault();
243 | this.Reveal.onUserInput();
244 |
245 | this.Reveal.prev();
246 |
247 | }
248 |
249 | onNavigateNextClicked( event ) {
250 |
251 | event.preventDefault();
252 | this.Reveal.onUserInput();
253 |
254 | this.Reveal.next();
255 |
256 | }
257 |
258 |
259 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/controllers/focus.js:
--------------------------------------------------------------------------------
1 | import { closest } from '../utils/util.js'
2 |
3 | /**
4 | * Manages focus when a presentation is embedded. This
5 | * helps us only capture keyboard from the presentation
6 | * a user is currently interacting with in a page where
7 | * multiple presentations are embedded.
8 | */
9 |
10 | const STATE_FOCUS = 'focus';
11 | const STATE_BLUR = 'blur';
12 |
13 | export default class Focus {
14 |
15 | constructor( Reveal ) {
16 |
17 | this.Reveal = Reveal;
18 |
19 | this.onRevealPointerDown = this.onRevealPointerDown.bind( this );
20 | this.onDocumentPointerDown = this.onDocumentPointerDown.bind( this );
21 |
22 | }
23 |
24 | /**
25 | * Called when the reveal.js config is updated.
26 | */
27 | configure( config, oldConfig ) {
28 |
29 | if( config.embedded ) {
30 | this.blur();
31 | }
32 | else {
33 | this.focus();
34 | this.unbind();
35 | }
36 |
37 | }
38 |
39 | bind() {
40 |
41 | if( this.Reveal.getConfig().embedded ) {
42 | this.Reveal.getRevealElement().addEventListener( 'pointerdown', this.onRevealPointerDown, false );
43 | }
44 |
45 | }
46 |
47 | unbind() {
48 |
49 | this.Reveal.getRevealElement().removeEventListener( 'pointerdown', this.onRevealPointerDown, false );
50 | document.removeEventListener( 'pointerdown', this.onDocumentPointerDown, false );
51 |
52 | }
53 |
54 | focus() {
55 |
56 | if( this.state !== STATE_FOCUS ) {
57 | this.Reveal.getRevealElement().classList.add( 'focused' );
58 | document.addEventListener( 'pointerdown', this.onDocumentPointerDown, false );
59 | }
60 |
61 | this.state = STATE_FOCUS;
62 |
63 | }
64 |
65 | blur() {
66 |
67 | if( this.state !== STATE_BLUR ) {
68 | this.Reveal.getRevealElement().classList.remove( 'focused' );
69 | document.removeEventListener( 'pointerdown', this.onDocumentPointerDown, false );
70 | }
71 |
72 | this.state = STATE_BLUR;
73 |
74 | }
75 |
76 | isFocused() {
77 |
78 | return this.state === STATE_FOCUS;
79 |
80 | }
81 |
82 | onRevealPointerDown( event ) {
83 |
84 | this.focus();
85 |
86 | }
87 |
88 | onDocumentPointerDown( event ) {
89 |
90 | let revealElement = closest( event.target, '.reveal' );
91 | if( !revealElement || revealElement !== this.Reveal.getRevealElement() ) {
92 | this.blur();
93 | }
94 |
95 | }
96 |
97 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/controllers/location.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Reads and writes the URL based on reveal.js' current state.
3 | */
4 | export default class Location {
5 |
6 | constructor( Reveal ) {
7 |
8 | this.Reveal = Reveal;
9 |
10 | // Delays updates to the URL due to a Chrome thumbnailer bug
11 | this.writeURLTimeout = 0;
12 |
13 | this.onWindowHashChange = this.onWindowHashChange.bind( this );
14 |
15 | }
16 |
17 | bind() {
18 |
19 | window.addEventListener( 'hashchange', this.onWindowHashChange, false );
20 |
21 | }
22 |
23 | unbind() {
24 |
25 | window.removeEventListener( 'hashchange', this.onWindowHashChange, false );
26 |
27 | }
28 |
29 | /**
30 | * Reads the current URL (hash) and navigates accordingly.
31 | */
32 | readURL() {
33 |
34 | let config = this.Reveal.getConfig();
35 | let indices = this.Reveal.getIndices();
36 | let currentSlide = this.Reveal.getCurrentSlide();
37 |
38 | let hash = window.location.hash;
39 |
40 | // Attempt to parse the hash as either an index or name
41 | let bits = hash.slice( 2 ).split( '/' ),
42 | name = hash.replace( /#\/?/gi, '' );
43 |
44 | // If the first bit is not fully numeric and there is a name we
45 | // can assume that this is a named link
46 | if( !/^[0-9]*$/.test( bits[0] ) && name.length ) {
47 | let element;
48 |
49 | let f;
50 |
51 | // Parse named links with fragments (#/named-link/2)
52 | if( /\/[-\d]+$/g.test( name ) ) {
53 | f = parseInt( name.split( '/' ).pop(), 10 );
54 | f = isNaN(f) ? undefined : f;
55 | name = name.split( '/' ).shift();
56 | }
57 |
58 | // Ensure the named link is a valid HTML ID attribute
59 | try {
60 | element = document.getElementById( decodeURIComponent( name ) );
61 | }
62 | catch ( error ) { }
63 |
64 | // Ensure that we're not already on a slide with the same name
65 | let isSameNameAsCurrentSlide = currentSlide ? currentSlide.getAttribute( 'id' ) === name : false;
66 |
67 | if( element ) {
68 | // If the slide exists and is not the current slide...
69 | if ( !isSameNameAsCurrentSlide || typeof f !== 'undefined' ) {
70 | // ...find the position of the named slide and navigate to it
71 | let slideIndices = this.Reveal.getIndices( element );
72 | this.Reveal.slide( slideIndices.h, slideIndices.v, f );
73 | }
74 | }
75 | // If the slide doesn't exist, navigate to the current slide
76 | else {
77 | this.Reveal.slide( indices.h || 0, indices.v || 0 );
78 | }
79 | }
80 | else {
81 | let hashIndexBase = config.hashOneBasedIndex ? 1 : 0;
82 |
83 | // Read the index components of the hash
84 | let h = ( parseInt( bits[0], 10 ) - hashIndexBase ) || 0,
85 | v = ( parseInt( bits[1], 10 ) - hashIndexBase ) || 0,
86 | f;
87 |
88 | if( config.fragmentInURL ) {
89 | f = parseInt( bits[2], 10 );
90 | if( isNaN( f ) ) {
91 | f = undefined;
92 | }
93 | }
94 |
95 | if( h !== indices.h || v !== indices.v || f !== undefined ) {
96 | this.Reveal.slide( h, v, f );
97 | }
98 | }
99 |
100 | }
101 |
102 | /**
103 | * Updates the page URL (hash) to reflect the current
104 | * state.
105 | *
106 | * @param {number} delay The time in ms to wait before
107 | * writing the hash
108 | */
109 | writeURL( delay ) {
110 |
111 | let config = this.Reveal.getConfig();
112 | let currentSlide = this.Reveal.getCurrentSlide();
113 |
114 | // Make sure there's never more than one timeout running
115 | clearTimeout( this.writeURLTimeout );
116 |
117 | // If a delay is specified, timeout this call
118 | if( typeof delay === 'number' ) {
119 | this.writeURLTimeout = setTimeout( this.writeURL, delay );
120 | }
121 | else if( currentSlide ) {
122 |
123 | let hash = this.getHash();
124 |
125 | // If we're configured to push to history OR the history
126 | // API is not avaialble.
127 | if( config.history ) {
128 | window.location.hash = hash;
129 | }
130 | // If we're configured to reflect the current slide in the
131 | // URL without pushing to history.
132 | else if( config.hash ) {
133 | // If the hash is empty, don't add it to the URL
134 | if( hash === '/' ) {
135 | window.history.replaceState( null, null, window.location.pathname + window.location.search );
136 | }
137 | else {
138 | window.history.replaceState( null, null, '#' + hash );
139 | }
140 | }
141 | // UPDATE: The below nuking of all hash changes breaks
142 | // anchors on pages where reveal.js is running. Removed
143 | // in 4.0. Why was it here in the first place? ¯\_(ツ)_/¯
144 | //
145 | // If history and hash are both disabled, a hash may still
146 | // be added to the URL by clicking on a href with a hash
147 | // target. Counter this by always removing the hash.
148 | // else {
149 | // window.history.replaceState( null, null, window.location.pathname + window.location.search );
150 | // }
151 |
152 | }
153 |
154 | }
155 |
156 | /**
157 | * Return a hash URL that will resolve to the given slide location.
158 | *
159 | * @param {HTMLElement} [slide=currentSlide] The slide to link to
160 | */
161 | getHash( slide ) {
162 |
163 | let url = '/';
164 |
165 | // Attempt to create a named link based on the slide's ID
166 | let s = slide || this.Reveal.getCurrentSlide();
167 | let id = s ? s.getAttribute( 'id' ) : null;
168 | if( id ) {
169 | id = encodeURIComponent( id );
170 | }
171 |
172 | let index = this.Reveal.getIndices( slide );
173 | if( !this.Reveal.getConfig().fragmentInURL ) {
174 | index.f = undefined;
175 | }
176 |
177 | // If the current slide has an ID, use that as a named link,
178 | // but we don't support named links with a fragment index
179 | if( typeof id === 'string' && id.length ) {
180 | url = '/' + id;
181 |
182 | // If there is also a fragment, append that at the end
183 | // of the named link, like: #/named-link/2
184 | if( index.f >= 0 ) url += '/' + index.f;
185 | }
186 | // Otherwise use the /h/v index
187 | else {
188 | let hashIndexBase = this.Reveal.getConfig().hashOneBasedIndex ? 1 : 0;
189 | if( index.h > 0 || index.v > 0 || index.f >= 0 ) url += index.h + hashIndexBase;
190 | if( index.v > 0 || index.f >= 0 ) url += '/' + (index.v + hashIndexBase );
191 | if( index.f >= 0 ) url += '/' + index.f;
192 | }
193 |
194 | return url;
195 |
196 | }
197 |
198 | /**
199 | * Handler for the window level 'hashchange' event.
200 | *
201 | * @param {object} [event]
202 | */
203 | onWindowHashChange( event ) {
204 |
205 | this.readURL();
206 |
207 | }
208 |
209 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/controllers/notes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Handles the showing and
3 | */
4 | export default class Notes {
5 |
6 | constructor( Reveal ) {
7 |
8 | this.Reveal = Reveal;
9 |
10 | }
11 |
12 | render() {
13 |
14 | this.element = document.createElement( 'div' );
15 | this.element.className = 'speaker-notes';
16 | this.element.setAttribute( 'data-prevent-swipe', '' );
17 | this.element.setAttribute( 'tabindex', '0' );
18 | this.Reveal.getRevealElement().appendChild( this.element );
19 |
20 | }
21 |
22 | /**
23 | * Called when the reveal.js config is updated.
24 | */
25 | configure( config, oldConfig ) {
26 |
27 | if( config.showNotes ) {
28 | this.element.setAttribute( 'data-layout', typeof config.showNotes === 'string' ? config.showNotes : 'inline' );
29 | }
30 |
31 | }
32 |
33 | /**
34 | * Pick up notes from the current slide and display them
35 | * to the viewer.
36 | *
37 | * @see {@link config.showNotes}
38 | */
39 | update() {
40 |
41 | if( this.Reveal.getConfig().showNotes && this.element && this.Reveal.getCurrentSlide() && !this.Reveal.print.isPrintingPDF() ) {
42 |
43 | this.element.innerHTML = this.getSlideNotes() || 'No notes on this slide. ';
44 |
45 | }
46 |
47 | }
48 |
49 | /**
50 | * Updates the visibility of the speaker notes sidebar that
51 | * is used to share annotated slides. The notes sidebar is
52 | * only visible if showNotes is true and there are notes on
53 | * one or more slides in the deck.
54 | */
55 | updateVisibility() {
56 |
57 | if( this.Reveal.getConfig().showNotes && this.hasNotes() && !this.Reveal.print.isPrintingPDF() ) {
58 | this.Reveal.getRevealElement().classList.add( 'show-notes' );
59 | }
60 | else {
61 | this.Reveal.getRevealElement().classList.remove( 'show-notes' );
62 | }
63 |
64 | }
65 |
66 | /**
67 | * Checks if there are speaker notes for ANY slide in the
68 | * presentation.
69 | */
70 | hasNotes() {
71 |
72 | return this.Reveal.getSlidesElement().querySelectorAll( '[data-notes], aside.notes' ).length > 0;
73 |
74 | }
75 |
76 | /**
77 | * Checks if this presentation is running inside of the
78 | * speaker notes window.
79 | *
80 | * @return {boolean}
81 | */
82 | isSpeakerNotesWindow() {
83 |
84 | return !!window.location.search.match( /receiver/gi );
85 |
86 | }
87 |
88 | /**
89 | * Retrieves the speaker notes from a slide. Notes can be
90 | * defined in two ways:
91 | * 1. As a data-notes attribute on the slide
92 | * 2. As an inside of the slide
93 | *
94 | * @param {HTMLElement} [slide=currentSlide]
95 | * @return {(string|null)}
96 | */
97 | getSlideNotes( slide = this.Reveal.getCurrentSlide() ) {
98 |
99 | // Notes can be specified via the data-notes attribute...
100 | if( slide.hasAttribute( 'data-notes' ) ) {
101 | return slide.getAttribute( 'data-notes' );
102 | }
103 |
104 | // ... or using an element
105 | let notesElement = slide.querySelector( 'aside.notes' );
106 | if( notesElement ) {
107 | return notesElement.innerHTML;
108 | }
109 |
110 | return null;
111 |
112 | }
113 |
114 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/controllers/overview.js:
--------------------------------------------------------------------------------
1 | import { SLIDES_SELECTOR } from '../utils/constants.js'
2 | import { extend, queryAll, transformElement } from '../utils/util.js'
3 |
4 | /**
5 | * Handles all logic related to the overview mode
6 | * (birds-eye view of all slides).
7 | */
8 | export default class Overview {
9 |
10 | constructor( Reveal ) {
11 |
12 | this.Reveal = Reveal;
13 |
14 | this.active = false;
15 |
16 | this.onSlideClicked = this.onSlideClicked.bind( this );
17 |
18 | }
19 |
20 | /**
21 | * Displays the overview of slides (quick nav) by scaling
22 | * down and arranging all slide elements.
23 | */
24 | activate() {
25 |
26 | // Only proceed if enabled in config
27 | if( this.Reveal.getConfig().overview && !this.isActive() ) {
28 |
29 | this.active = true;
30 |
31 | this.Reveal.getRevealElement().classList.add( 'overview' );
32 |
33 | // Don't auto-slide while in overview mode
34 | this.Reveal.cancelAutoSlide();
35 |
36 | // Move the backgrounds element into the slide container to
37 | // that the same scaling is applied
38 | this.Reveal.getSlidesElement().appendChild( this.Reveal.getBackgroundsElement() );
39 |
40 | // Clicking on an overview slide navigates to it
41 | queryAll( this.Reveal.getRevealElement(), SLIDES_SELECTOR ).forEach( slide => {
42 | if( !slide.classList.contains( 'stack' ) ) {
43 | slide.addEventListener( 'click', this.onSlideClicked, true );
44 | }
45 | } );
46 |
47 | // Calculate slide sizes
48 | const margin = 70;
49 | const slideSize = this.Reveal.getComputedSlideSize();
50 | this.overviewSlideWidth = slideSize.width + margin;
51 | this.overviewSlideHeight = slideSize.height + margin;
52 |
53 | // Reverse in RTL mode
54 | if( this.Reveal.getConfig().rtl ) {
55 | this.overviewSlideWidth = -this.overviewSlideWidth;
56 | }
57 |
58 | this.Reveal.updateSlidesVisibility();
59 |
60 | this.layout();
61 | this.update();
62 |
63 | this.Reveal.layout();
64 |
65 | const indices = this.Reveal.getIndices();
66 |
67 | // Notify observers of the overview showing
68 | this.Reveal.dispatchEvent({
69 | type: 'overviewshown',
70 | data: {
71 | 'indexh': indices.h,
72 | 'indexv': indices.v,
73 | 'currentSlide': this.Reveal.getCurrentSlide()
74 | }
75 | });
76 |
77 | }
78 |
79 | }
80 |
81 | /**
82 | * Uses CSS transforms to position all slides in a grid for
83 | * display inside of the overview mode.
84 | */
85 | layout() {
86 |
87 | // Layout slides
88 | this.Reveal.getHorizontalSlides().forEach( ( hslide, h ) => {
89 | hslide.setAttribute( 'data-index-h', h );
90 | transformElement( hslide, 'translate3d(' + ( h * this.overviewSlideWidth ) + 'px, 0, 0)' );
91 |
92 | if( hslide.classList.contains( 'stack' ) ) {
93 |
94 | queryAll( hslide, 'section' ).forEach( ( vslide, v ) => {
95 | vslide.setAttribute( 'data-index-h', h );
96 | vslide.setAttribute( 'data-index-v', v );
97 |
98 | transformElement( vslide, 'translate3d(0, ' + ( v * this.overviewSlideHeight ) + 'px, 0)' );
99 | } );
100 |
101 | }
102 | } );
103 |
104 | // Layout slide backgrounds
105 | Array.from( this.Reveal.getBackgroundsElement().childNodes ).forEach( ( hbackground, h ) => {
106 | transformElement( hbackground, 'translate3d(' + ( h * this.overviewSlideWidth ) + 'px, 0, 0)' );
107 |
108 | queryAll( hbackground, '.slide-background' ).forEach( ( vbackground, v ) => {
109 | transformElement( vbackground, 'translate3d(0, ' + ( v * this.overviewSlideHeight ) + 'px, 0)' );
110 | } );
111 | } );
112 |
113 | }
114 |
115 | /**
116 | * Moves the overview viewport to the current slides.
117 | * Called each time the current slide changes.
118 | */
119 | update() {
120 |
121 | const vmin = Math.min( window.innerWidth, window.innerHeight );
122 | const scale = Math.max( vmin / 5, 150 ) / vmin;
123 | const indices = this.Reveal.getIndices();
124 |
125 | this.Reveal.transformSlides( {
126 | overview: [
127 | 'scale('+ scale +')',
128 | 'translateX('+ ( -indices.h * this.overviewSlideWidth ) +'px)',
129 | 'translateY('+ ( -indices.v * this.overviewSlideHeight ) +'px)'
130 | ].join( ' ' )
131 | } );
132 |
133 | }
134 |
135 | /**
136 | * Exits the slide overview and enters the currently
137 | * active slide.
138 | */
139 | deactivate() {
140 |
141 | // Only proceed if enabled in config
142 | if( this.Reveal.getConfig().overview ) {
143 |
144 | this.active = false;
145 |
146 | this.Reveal.getRevealElement().classList.remove( 'overview' );
147 |
148 | // Temporarily add a class so that transitions can do different things
149 | // depending on whether they are exiting/entering overview, or just
150 | // moving from slide to slide
151 | this.Reveal.getRevealElement().classList.add( 'overview-deactivating' );
152 |
153 | setTimeout( () => {
154 | this.Reveal.getRevealElement().classList.remove( 'overview-deactivating' );
155 | }, 1 );
156 |
157 | // Move the background element back out
158 | this.Reveal.getRevealElement().appendChild( this.Reveal.getBackgroundsElement() );
159 |
160 | // Clean up changes made to slides
161 | queryAll( this.Reveal.getRevealElement(), SLIDES_SELECTOR ).forEach( slide => {
162 | transformElement( slide, '' );
163 |
164 | slide.removeEventListener( 'click', this.onSlideClicked, true );
165 | } );
166 |
167 | // Clean up changes made to backgrounds
168 | queryAll( this.Reveal.getBackgroundsElement(), '.slide-background' ).forEach( background => {
169 | transformElement( background, '' );
170 | } );
171 |
172 | this.Reveal.transformSlides( { overview: '' } );
173 |
174 | const indices = this.Reveal.getIndices();
175 |
176 | this.Reveal.slide( indices.h, indices.v );
177 | this.Reveal.layout();
178 | this.Reveal.cueAutoSlide();
179 |
180 | // Notify observers of the overview hiding
181 | this.Reveal.dispatchEvent({
182 | type: 'overviewhidden',
183 | data: {
184 | 'indexh': indices.h,
185 | 'indexv': indices.v,
186 | 'currentSlide': this.Reveal.getCurrentSlide()
187 | }
188 | });
189 |
190 | }
191 | }
192 |
193 | /**
194 | * Toggles the slide overview mode on and off.
195 | *
196 | * @param {Boolean} [override] Flag which overrides the
197 | * toggle logic and forcibly sets the desired state. True means
198 | * overview is open, false means it's closed.
199 | */
200 | toggle( override ) {
201 |
202 | if( typeof override === 'boolean' ) {
203 | override ? this.activate() : this.deactivate();
204 | }
205 | else {
206 | this.isActive() ? this.deactivate() : this.activate();
207 | }
208 |
209 | }
210 |
211 | /**
212 | * Checks if the overview is currently active.
213 | *
214 | * @return {Boolean} true if the overview is active,
215 | * false otherwise
216 | */
217 | isActive() {
218 |
219 | return this.active;
220 |
221 | }
222 |
223 | /**
224 | * Invoked when a slide is and we're in the overview.
225 | *
226 | * @param {object} event
227 | */
228 | onSlideClicked( event ) {
229 |
230 | if( this.isActive() ) {
231 | event.preventDefault();
232 |
233 | let element = event.target;
234 |
235 | while( element && !element.nodeName.match( /section/gi ) ) {
236 | element = element.parentNode;
237 | }
238 |
239 | if( element && !element.classList.contains( 'disabled' ) ) {
240 |
241 | this.deactivate();
242 |
243 | if( element.nodeName.match( /section/gi ) ) {
244 | let h = parseInt( element.getAttribute( 'data-index-h' ), 10 ),
245 | v = parseInt( element.getAttribute( 'data-index-v' ), 10 );
246 |
247 | this.Reveal.slide( h, v );
248 | }
249 |
250 | }
251 | }
252 |
253 | }
254 |
255 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/controllers/plugins.js:
--------------------------------------------------------------------------------
1 | import { loadScript } from '../utils/loader.js'
2 |
3 | /**
4 | * Manages loading and registering of reveal.js plugins.
5 | */
6 | export default class Plugins {
7 |
8 | constructor( reveal ) {
9 |
10 | this.Reveal = reveal;
11 |
12 | // Flags our current state (idle -> loading -> loaded)
13 | this.state = 'idle';
14 |
15 | // An id:instance map of currently registed plugins
16 | this.registeredPlugins = {};
17 |
18 | this.asyncDependencies = [];
19 |
20 | }
21 |
22 | /**
23 | * Loads reveal.js dependencies, registers and
24 | * initializes plugins.
25 | *
26 | * Plugins are direct references to a reveal.js plugin
27 | * object that we register and initialize after any
28 | * synchronous dependencies have loaded.
29 | *
30 | * Dependencies are defined via the 'dependencies' config
31 | * option and will be loaded prior to starting reveal.js.
32 | * Some dependencies may have an 'async' flag, if so they
33 | * will load after reveal.js has been started up.
34 | */
35 | load( plugins, dependencies ) {
36 |
37 | this.state = 'loading';
38 |
39 | plugins.forEach( this.registerPlugin.bind( this ) );
40 |
41 | return new Promise( resolve => {
42 |
43 | let scripts = [],
44 | scriptsToLoad = 0;
45 |
46 | dependencies.forEach( s => {
47 | // Load if there's no condition or the condition is truthy
48 | if( !s.condition || s.condition() ) {
49 | if( s.async ) {
50 | this.asyncDependencies.push( s );
51 | }
52 | else {
53 | scripts.push( s );
54 | }
55 | }
56 | } );
57 |
58 | if( scripts.length ) {
59 | scriptsToLoad = scripts.length;
60 |
61 | const scriptLoadedCallback = (s) => {
62 | if( s && typeof s.callback === 'function' ) s.callback();
63 |
64 | if( --scriptsToLoad === 0 ) {
65 | this.initPlugins().then( resolve );
66 | }
67 | };
68 |
69 | // Load synchronous scripts
70 | scripts.forEach( s => {
71 | if( typeof s.id === 'string' ) {
72 | this.registerPlugin( s );
73 | scriptLoadedCallback( s );
74 | }
75 | else if( typeof s.src === 'string' ) {
76 | loadScript( s.src, () => scriptLoadedCallback(s) );
77 | }
78 | else {
79 | console.warn( 'Unrecognized plugin format', s );
80 | scriptLoadedCallback();
81 | }
82 | } );
83 | }
84 | else {
85 | this.initPlugins().then( resolve );
86 | }
87 |
88 | } );
89 |
90 | }
91 |
92 | /**
93 | * Initializes our plugins and waits for them to be ready
94 | * before proceeding.
95 | */
96 | initPlugins() {
97 |
98 | return new Promise( resolve => {
99 |
100 | let pluginValues = Object.values( this.registeredPlugins );
101 | let pluginsToInitialize = pluginValues.length;
102 |
103 | // If there are no plugins, skip this step
104 | if( pluginsToInitialize === 0 ) {
105 | this.loadAsync().then( resolve );
106 | }
107 | // ... otherwise initialize plugins
108 | else {
109 |
110 | let initNextPlugin;
111 |
112 | let afterPlugInitialized = () => {
113 | if( --pluginsToInitialize === 0 ) {
114 | this.loadAsync().then( resolve );
115 | }
116 | else {
117 | initNextPlugin();
118 | }
119 | };
120 |
121 | let i = 0;
122 |
123 | // Initialize plugins serially
124 | initNextPlugin = () => {
125 |
126 | let plugin = pluginValues[i++];
127 |
128 | // If the plugin has an 'init' method, invoke it
129 | if( typeof plugin.init === 'function' ) {
130 | let promise = plugin.init( this.Reveal );
131 |
132 | // If the plugin returned a Promise, wait for it
133 | if( promise && typeof promise.then === 'function' ) {
134 | promise.then( afterPlugInitialized );
135 | }
136 | else {
137 | afterPlugInitialized();
138 | }
139 | }
140 | else {
141 | afterPlugInitialized();
142 | }
143 |
144 | }
145 |
146 | initNextPlugin();
147 |
148 | }
149 |
150 | } )
151 |
152 | }
153 |
154 | /**
155 | * Loads all async reveal.js dependencies.
156 | */
157 | loadAsync() {
158 |
159 | this.state = 'loaded';
160 |
161 | if( this.asyncDependencies.length ) {
162 | this.asyncDependencies.forEach( s => {
163 | loadScript( s.src, s.callback );
164 | } );
165 | }
166 |
167 | return Promise.resolve();
168 |
169 | }
170 |
171 | /**
172 | * Registers a new plugin with this reveal.js instance.
173 | *
174 | * reveal.js waits for all regisered plugins to initialize
175 | * before considering itself ready, as long as the plugin
176 | * is registered before calling `Reveal.initialize()`.
177 | */
178 | registerPlugin( plugin ) {
179 |
180 | // Backwards compatibility to make reveal.js ~3.9.0
181 | // plugins work with reveal.js 4.0.0
182 | if( arguments.length === 2 && typeof arguments[0] === 'string' ) {
183 | plugin = arguments[1];
184 | plugin.id = arguments[0];
185 | }
186 | // Plugin can optionally be a function which we call
187 | // to create an instance of the plugin
188 | else if( typeof plugin === 'function' ) {
189 | plugin = plugin();
190 | }
191 |
192 | let id = plugin.id;
193 |
194 | if( typeof id !== 'string' ) {
195 | console.warn( 'Unrecognized plugin format; can\'t find plugin.id', plugin );
196 | }
197 | else if( this.registeredPlugins[id] === undefined ) {
198 | this.registeredPlugins[id] = plugin;
199 |
200 | // If a plugin is registered after reveal.js is loaded,
201 | // initialize it right away
202 | if( this.state === 'loaded' && typeof plugin.init === 'function' ) {
203 | plugin.init( this.Reveal );
204 | }
205 | }
206 | else {
207 | console.warn( 'reveal.js: "'+ id +'" plugin has already been registered' );
208 | }
209 |
210 | }
211 |
212 | /**
213 | * Checks if a specific plugin has been registered.
214 | *
215 | * @param {String} id Unique plugin identifier
216 | */
217 | hasPlugin( id ) {
218 |
219 | return !!this.registeredPlugins[id];
220 |
221 | }
222 |
223 | /**
224 | * Returns the specific plugin instance, if a plugin
225 | * with the given ID has been registered.
226 | *
227 | * @param {String} id Unique plugin identifier
228 | */
229 | getPlugin( id ) {
230 |
231 | return this.registeredPlugins[id];
232 |
233 | }
234 |
235 | getRegisteredPlugins() {
236 |
237 | return this.registeredPlugins;
238 |
239 | }
240 |
241 | }
242 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/controllers/pointer.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Handles hiding of the pointer/cursor when inactive.
3 | */
4 | export default class Pointer {
5 |
6 | constructor( Reveal ) {
7 |
8 | this.Reveal = Reveal;
9 |
10 | // Throttles mouse wheel navigation
11 | this.lastMouseWheelStep = 0;
12 |
13 | // Is the mouse pointer currently hidden from view
14 | this.cursorHidden = false;
15 |
16 | // Timeout used to determine when the cursor is inactive
17 | this.cursorInactiveTimeout = 0;
18 |
19 | this.onDocumentCursorActive = this.onDocumentCursorActive.bind( this );
20 | this.onDocumentMouseScroll = this.onDocumentMouseScroll.bind( this );
21 |
22 | }
23 |
24 | /**
25 | * Called when the reveal.js config is updated.
26 | */
27 | configure( config, oldConfig ) {
28 |
29 | if( config.mouseWheel ) {
30 | document.addEventListener( 'DOMMouseScroll', this.onDocumentMouseScroll, false ); // FF
31 | document.addEventListener( 'mousewheel', this.onDocumentMouseScroll, false );
32 | }
33 | else {
34 | document.removeEventListener( 'DOMMouseScroll', this.onDocumentMouseScroll, false ); // FF
35 | document.removeEventListener( 'mousewheel', this.onDocumentMouseScroll, false );
36 | }
37 |
38 | // Auto-hide the mouse pointer when its inactive
39 | if( config.hideInactiveCursor ) {
40 | document.addEventListener( 'mousemove', this.onDocumentCursorActive, false );
41 | document.addEventListener( 'mousedown', this.onDocumentCursorActive, false );
42 | }
43 | else {
44 | this.showCursor();
45 |
46 | document.removeEventListener( 'mousemove', this.onDocumentCursorActive, false );
47 | document.removeEventListener( 'mousedown', this.onDocumentCursorActive, false );
48 | }
49 |
50 | }
51 |
52 | /**
53 | * Shows the mouse pointer after it has been hidden with
54 | * #hideCursor.
55 | */
56 | showCursor() {
57 |
58 | if( this.cursorHidden ) {
59 | this.cursorHidden = false;
60 | this.Reveal.getRevealElement().style.cursor = '';
61 | }
62 |
63 | }
64 |
65 | /**
66 | * Hides the mouse pointer when it's on top of the .reveal
67 | * container.
68 | */
69 | hideCursor() {
70 |
71 | if( this.cursorHidden === false ) {
72 | this.cursorHidden = true;
73 | this.Reveal.getRevealElement().style.cursor = 'none';
74 | }
75 |
76 | }
77 |
78 | /**
79 | * Called whenever there is mouse input at the document level
80 | * to determine if the cursor is active or not.
81 | *
82 | * @param {object} event
83 | */
84 | onDocumentCursorActive( event ) {
85 |
86 | this.showCursor();
87 |
88 | clearTimeout( this.cursorInactiveTimeout );
89 |
90 | this.cursorInactiveTimeout = setTimeout( this.hideCursor.bind( this ), this.Reveal.getConfig().hideCursorTime );
91 |
92 | }
93 |
94 | /**
95 | * Handles mouse wheel scrolling, throttled to avoid skipping
96 | * multiple slides.
97 | *
98 | * @param {object} event
99 | */
100 | onDocumentMouseScroll( event ) {
101 |
102 | if( Date.now() - this.lastMouseWheelStep > 1000 ) {
103 |
104 | this.lastMouseWheelStep = Date.now();
105 |
106 | let delta = event.detail || -event.wheelDelta;
107 | if( delta > 0 ) {
108 | this.Reveal.next();
109 | }
110 | else if( delta < 0 ) {
111 | this.Reveal.prev();
112 | }
113 |
114 | }
115 |
116 | }
117 |
118 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/controllers/print.js:
--------------------------------------------------------------------------------
1 | import { SLIDES_SELECTOR } from '../utils/constants.js'
2 | import { queryAll, createStyleSheet } from '../utils/util.js'
3 |
4 | /**
5 | * Setups up our presentation for printing/exporting to PDF.
6 | */
7 | export default class Print {
8 |
9 | constructor( Reveal ) {
10 |
11 | this.Reveal = Reveal;
12 |
13 | }
14 |
15 | /**
16 | * Configures the presentation for printing to a static
17 | * PDF.
18 | */
19 | setupPDF() {
20 |
21 | let config = this.Reveal.getConfig();
22 |
23 | let slideSize = this.Reveal.getComputedSlideSize( window.innerWidth, window.innerHeight );
24 |
25 | // Dimensions of the PDF pages
26 | let pageWidth = Math.floor( slideSize.width * ( 1 + config.margin ) ),
27 | pageHeight = Math.floor( slideSize.height * ( 1 + config.margin ) );
28 |
29 | // Dimensions of slides within the pages
30 | let slideWidth = slideSize.width,
31 | slideHeight = slideSize.height;
32 |
33 | // Let the browser know what page size we want to print
34 | createStyleSheet( '@page{size:'+ pageWidth +'px '+ pageHeight +'px; margin: 0px;}' );
35 |
36 | // Limit the size of certain elements to the dimensions of the slide
37 | createStyleSheet( '.reveal section>img, .reveal section>video, .reveal section>iframe{max-width: '+ slideWidth +'px; max-height:'+ slideHeight +'px}' );
38 |
39 | document.documentElement.classList.add( 'print-pdf' );
40 | document.body.style.width = pageWidth + 'px';
41 | document.body.style.height = pageHeight + 'px';
42 |
43 | // Make sure stretch elements fit on slide
44 | this.Reveal.layoutSlideContents( slideWidth, slideHeight );
45 |
46 | // Compute slide numbers now, before we start duplicating slides
47 | let doingSlideNumbers = config.slideNumber && /all|print/i.test( config.showSlideNumber );
48 | queryAll( this.Reveal.getRevealElement(), SLIDES_SELECTOR ).forEach( function( slide ) {
49 | slide.setAttribute( 'data-slide-number', this.Reveal.slideNumber.getSlideNumber( slide ) );
50 | }, this );
51 |
52 | // Slide and slide background layout
53 | queryAll( this.Reveal.getRevealElement(), SLIDES_SELECTOR ).forEach( function( slide ) {
54 |
55 | // Vertical stacks are not centred since their section
56 | // children will be
57 | if( slide.classList.contains( 'stack' ) === false ) {
58 | // Center the slide inside of the page, giving the slide some margin
59 | let left = ( pageWidth - slideWidth ) / 2,
60 | top = ( pageHeight - slideHeight ) / 2;
61 |
62 | let contentHeight = slide.scrollHeight;
63 | let numberOfPages = Math.max( Math.ceil( contentHeight / pageHeight ), 1 );
64 |
65 | // Adhere to configured pages per slide limit
66 | numberOfPages = Math.min( numberOfPages, config.pdfMaxPagesPerSlide );
67 |
68 | // Center slides vertically
69 | if( numberOfPages === 1 && config.center || slide.classList.contains( 'center' ) ) {
70 | top = Math.max( ( pageHeight - contentHeight ) / 2, 0 );
71 | }
72 |
73 | // Wrap the slide in a page element and hide its overflow
74 | // so that no page ever flows onto another
75 | let page = document.createElement( 'div' );
76 | page.className = 'pdf-page';
77 | page.style.height = ( ( pageHeight + config.pdfPageHeightOffset ) * numberOfPages ) + 'px';
78 | slide.parentNode.insertBefore( page, slide );
79 | page.appendChild( slide );
80 |
81 | // Position the slide inside of the page
82 | slide.style.left = left + 'px';
83 | slide.style.top = top + 'px';
84 | slide.style.width = slideWidth + 'px';
85 |
86 | if( slide.slideBackgroundElement ) {
87 | page.insertBefore( slide.slideBackgroundElement, slide );
88 | }
89 |
90 | // Inject notes if `showNotes` is enabled
91 | if( config.showNotes ) {
92 |
93 | // Are there notes for this slide?
94 | let notes = this.Reveal.getSlideNotes( slide );
95 | if( notes ) {
96 |
97 | let notesSpacing = 8;
98 | let notesLayout = typeof config.showNotes === 'string' ? config.showNotes : 'inline';
99 | let notesElement = document.createElement( 'div' );
100 | notesElement.classList.add( 'speaker-notes' );
101 | notesElement.classList.add( 'speaker-notes-pdf' );
102 | notesElement.setAttribute( 'data-layout', notesLayout );
103 | notesElement.innerHTML = notes;
104 |
105 | if( notesLayout === 'separate-page' ) {
106 | page.parentNode.insertBefore( notesElement, page.nextSibling );
107 | }
108 | else {
109 | notesElement.style.left = notesSpacing + 'px';
110 | notesElement.style.bottom = notesSpacing + 'px';
111 | notesElement.style.width = ( pageWidth - notesSpacing*2 ) + 'px';
112 | page.appendChild( notesElement );
113 | }
114 |
115 | }
116 |
117 | }
118 |
119 | // Inject slide numbers if `slideNumbers` are enabled
120 | if( doingSlideNumbers ) {
121 | let numberElement = document.createElement( 'div' );
122 | numberElement.classList.add( 'slide-number' );
123 | numberElement.classList.add( 'slide-number-pdf' );
124 | numberElement.innerHTML = slide.getAttribute( 'data-slide-number' );
125 | page.appendChild( numberElement );
126 | }
127 |
128 | // Copy page and show fragments one after another
129 | if( config.pdfSeparateFragments ) {
130 |
131 | // Each fragment 'group' is an array containing one or more
132 | // fragments. Multiple fragments that appear at the same time
133 | // are part of the same group.
134 | let fragmentGroups = this.Reveal.fragments.sort( page.querySelectorAll( '.fragment' ), true );
135 |
136 | let previousFragmentStep;
137 | let previousPage;
138 |
139 | fragmentGroups.forEach( function( fragments ) {
140 |
141 | // Remove 'current-fragment' from the previous group
142 | if( previousFragmentStep ) {
143 | previousFragmentStep.forEach( function( fragment ) {
144 | fragment.classList.remove( 'current-fragment' );
145 | } );
146 | }
147 |
148 | // Show the fragments for the current index
149 | fragments.forEach( function( fragment ) {
150 | fragment.classList.add( 'visible', 'current-fragment' );
151 | }, this );
152 |
153 | // Create a separate page for the current fragment state
154 | let clonedPage = page.cloneNode( true );
155 | page.parentNode.insertBefore( clonedPage, ( previousPage || page ).nextSibling );
156 |
157 | previousFragmentStep = fragments;
158 | previousPage = clonedPage;
159 |
160 | }, this );
161 |
162 | // Reset the first/original page so that all fragments are hidden
163 | fragmentGroups.forEach( function( fragments ) {
164 | fragments.forEach( function( fragment ) {
165 | fragment.classList.remove( 'visible', 'current-fragment' );
166 | } );
167 | } );
168 |
169 | }
170 | // Show all fragments
171 | else {
172 | queryAll( page, '.fragment:not(.fade-out)' ).forEach( function( fragment ) {
173 | fragment.classList.add( 'visible' );
174 | } );
175 | }
176 |
177 | }
178 |
179 | }, this );
180 |
181 | // Notify subscribers that the PDF layout is good to go
182 | this.Reveal.dispatchEvent({ type: 'pdf-ready' });
183 |
184 | }
185 |
186 | /**
187 | * Checks if this instance is being used to print a PDF.
188 | */
189 | isPrintingPDF() {
190 |
191 | return ( /print-pdf/gi ).test( window.location.search );
192 |
193 | }
194 |
195 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/controllers/progress.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Creates a visual progress bar for the presentation.
3 | */
4 | export default class Progress {
5 |
6 | constructor( Reveal ) {
7 |
8 | this.Reveal = Reveal;
9 |
10 | this.onProgressClicked = this.onProgressClicked.bind( this );
11 |
12 | }
13 |
14 | render() {
15 |
16 | this.element = document.createElement( 'div' );
17 | this.element.className = 'progress';
18 | this.Reveal.getRevealElement().appendChild( this.element );
19 |
20 | this.bar = document.createElement( 'span' );
21 | this.element.appendChild( this.bar );
22 |
23 | }
24 |
25 | /**
26 | * Called when the reveal.js config is updated.
27 | */
28 | configure( config, oldConfig ) {
29 |
30 | this.element.style.display = config.progress ? 'block' : 'none';
31 |
32 | }
33 |
34 | bind() {
35 |
36 | if( this.Reveal.getConfig().progress && this.element ) {
37 | this.element.addEventListener( 'click', this.onProgressClicked, false );
38 | }
39 |
40 | }
41 |
42 | unbind() {
43 |
44 | if ( this.Reveal.getConfig().progress && this.element ) {
45 | this.element.removeEventListener( 'click', this.onProgressClicked, false );
46 | }
47 |
48 | }
49 |
50 | /**
51 | * Updates the progress bar to reflect the current slide.
52 | */
53 | update() {
54 |
55 | // Update progress if enabled
56 | if( this.Reveal.getConfig().progress && this.bar ) {
57 |
58 | let scale = this.Reveal.getProgress();
59 |
60 | // Don't fill the progress bar if there's only one slide
61 | if( this.Reveal.getTotalSlides() < 2 ) {
62 | scale = 0;
63 | }
64 |
65 | this.bar.style.transform = 'scaleX('+ scale +')';
66 |
67 | }
68 |
69 | }
70 |
71 | getMaxWidth() {
72 |
73 | return this.Reveal.getRevealElement().offsetWidth;
74 |
75 | }
76 |
77 | /**
78 | * Clicking on the progress bar results in a navigation to the
79 | * closest approximate horizontal slide using this equation:
80 | *
81 | * ( clickX / presentationWidth ) * numberOfSlides
82 | *
83 | * @param {object} event
84 | */
85 | onProgressClicked( event ) {
86 |
87 | this.Reveal.onUserInput( event );
88 |
89 | event.preventDefault();
90 |
91 | let slidesTotal = this.Reveal.getHorizontalSlides().length;
92 | let slideIndex = Math.floor( ( event.clientX / this.getMaxWidth() ) * slidesTotal );
93 |
94 | if( this.Reveal.getConfig().rtl ) {
95 | slideIndex = slidesTotal - slideIndex;
96 | }
97 |
98 | this.Reveal.slide( slideIndex );
99 |
100 | }
101 |
102 |
103 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/controllers/slidenumber.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Handles the display of reveal.js' optional slide number.
3 | */
4 | export default class SlideNumber {
5 |
6 | constructor( Reveal ) {
7 |
8 | this.Reveal = Reveal;
9 |
10 | }
11 |
12 | render() {
13 |
14 | this.element = document.createElement( 'div' );
15 | this.element.className = 'slide-number';
16 | this.Reveal.getRevealElement().appendChild( this.element );
17 |
18 | }
19 |
20 | /**
21 | * Called when the reveal.js config is updated.
22 | */
23 | configure( config, oldConfig ) {
24 |
25 | let slideNumberDisplay = 'none';
26 | if( config.slideNumber && !this.Reveal.isPrintingPDF() ) {
27 | if( config.showSlideNumber === 'all' ) {
28 | slideNumberDisplay = 'block';
29 | }
30 | else if( config.showSlideNumber === 'speaker' && this.Reveal.isSpeakerNotes() ) {
31 | slideNumberDisplay = 'block';
32 | }
33 | }
34 |
35 | this.element.style.display = slideNumberDisplay;
36 |
37 | }
38 |
39 | /**
40 | * Updates the slide number to match the current slide.
41 | */
42 | update() {
43 |
44 | // Update slide number if enabled
45 | if( this.Reveal.getConfig().slideNumber && this.element ) {
46 | this.element.innerHTML = this.getSlideNumber();
47 | }
48 |
49 | }
50 |
51 | /**
52 | * Returns the HTML string corresponding to the current slide
53 | * number, including formatting.
54 | */
55 | getSlideNumber( slide = this.Reveal.getCurrentSlide() ) {
56 |
57 | let config = this.Reveal.getConfig();
58 | let value;
59 | let format = 'h.v';
60 |
61 | if ( typeof config.slideNumber === 'function' ) {
62 | value = config.slideNumber( slide );
63 | } else {
64 | // Check if a custom number format is available
65 | if( typeof config.slideNumber === 'string' ) {
66 | format = config.slideNumber;
67 | }
68 |
69 | // If there are ONLY vertical slides in this deck, always use
70 | // a flattened slide number
71 | if( !/c/.test( format ) && this.Reveal.getHorizontalSlides().length === 1 ) {
72 | format = 'c';
73 | }
74 |
75 | // Offset the current slide number by 1 to make it 1-indexed
76 | let horizontalOffset = slide && slide.dataset.visibility === 'uncounted' ? 0 : 1;
77 |
78 | value = [];
79 | switch( format ) {
80 | case 'c':
81 | value.push( this.Reveal.getSlidePastCount( slide ) + horizontalOffset );
82 | break;
83 | case 'c/t':
84 | value.push( this.Reveal.getSlidePastCount( slide ) + horizontalOffset, '/', this.Reveal.getTotalSlides() );
85 | break;
86 | default:
87 | let indices = this.Reveal.getIndices( slide );
88 | value.push( indices.h + horizontalOffset );
89 | let sep = format === 'h/v' ? '/' : '.';
90 | if( this.Reveal.isVerticalSlide( slide ) ) value.push( sep, indices.v + 1 );
91 | }
92 | }
93 |
94 | let url = '#' + this.Reveal.location.getHash( slide );
95 | return this.formatNumber( value[0], value[1], value[2], url );
96 |
97 | }
98 |
99 | /**
100 | * Applies HTML formatting to a slide number before it's
101 | * written to the DOM.
102 | *
103 | * @param {number} a Current slide
104 | * @param {string} delimiter Character to separate slide numbers
105 | * @param {(number|*)} b Total slides
106 | * @param {HTMLElement} [url='#'+locationHash()] The url to link to
107 | * @return {string} HTML string fragment
108 | */
109 | formatNumber( a, delimiter, b, url = '#' + this.Reveal.location.getHash() ) {
110 |
111 | if( typeof b === 'number' && !isNaN( b ) ) {
112 | return `
113 | ${a}
114 | ${delimiter}
115 | ${b}
116 | `;
117 | }
118 | else {
119 | return `
120 | ${a}
121 | `;
122 | }
123 |
124 | }
125 |
126 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/controllers/touch.js:
--------------------------------------------------------------------------------
1 | import { isAndroid } from '../utils/device.js'
2 |
3 | const SWIPE_THRESHOLD = 40;
4 |
5 | /**
6 | * Controls all touch interactions and navigations for
7 | * a presentation.
8 | */
9 | export default class Touch {
10 |
11 | constructor( Reveal ) {
12 |
13 | this.Reveal = Reveal;
14 |
15 | // Holds information about the currently ongoing touch interaction
16 | this.touchStartX = 0;
17 | this.touchStartY = 0;
18 | this.touchStartCount = 0;
19 | this.touchCaptured = false;
20 |
21 | this.onPointerDown = this.onPointerDown.bind( this );
22 | this.onPointerMove = this.onPointerMove.bind( this );
23 | this.onPointerUp = this.onPointerUp.bind( this );
24 | this.onTouchStart = this.onTouchStart.bind( this );
25 | this.onTouchMove = this.onTouchMove.bind( this );
26 | this.onTouchEnd = this.onTouchEnd.bind( this );
27 |
28 | }
29 |
30 | /**
31 | *
32 | */
33 | bind() {
34 |
35 | let revealElement = this.Reveal.getRevealElement();
36 |
37 | if( 'onpointerdown' in window ) {
38 | // Use W3C pointer events
39 | revealElement.addEventListener( 'pointerdown', this.onPointerDown, false );
40 | revealElement.addEventListener( 'pointermove', this.onPointerMove, false );
41 | revealElement.addEventListener( 'pointerup', this.onPointerUp, false );
42 | }
43 | else if( window.navigator.msPointerEnabled ) {
44 | // IE 10 uses prefixed version of pointer events
45 | revealElement.addEventListener( 'MSPointerDown', this.onPointerDown, false );
46 | revealElement.addEventListener( 'MSPointerMove', this.onPointerMove, false );
47 | revealElement.addEventListener( 'MSPointerUp', this.onPointerUp, false );
48 | }
49 | else {
50 | // Fall back to touch events
51 | revealElement.addEventListener( 'touchstart', this.onTouchStart, false );
52 | revealElement.addEventListener( 'touchmove', this.onTouchMove, false );
53 | revealElement.addEventListener( 'touchend', this.onTouchEnd, false );
54 | }
55 |
56 | }
57 |
58 | /**
59 | *
60 | */
61 | unbind() {
62 |
63 | let revealElement = this.Reveal.getRevealElement();
64 |
65 | revealElement.removeEventListener( 'pointerdown', this.onPointerDown, false );
66 | revealElement.removeEventListener( 'pointermove', this.onPointerMove, false );
67 | revealElement.removeEventListener( 'pointerup', this.onPointerUp, false );
68 |
69 | revealElement.removeEventListener( 'MSPointerDown', this.onPointerDown, false );
70 | revealElement.removeEventListener( 'MSPointerMove', this.onPointerMove, false );
71 | revealElement.removeEventListener( 'MSPointerUp', this.onPointerUp, false );
72 |
73 | revealElement.removeEventListener( 'touchstart', this.onTouchStart, false );
74 | revealElement.removeEventListener( 'touchmove', this.onTouchMove, false );
75 | revealElement.removeEventListener( 'touchend', this.onTouchEnd, false );
76 |
77 | }
78 |
79 | /**
80 | * Checks if the target element prevents the triggering of
81 | * swipe navigation.
82 | */
83 | isSwipePrevented( target ) {
84 |
85 | while( target && typeof target.hasAttribute === 'function' ) {
86 | if( target.hasAttribute( 'data-prevent-swipe' ) ) return true;
87 | target = target.parentNode;
88 | }
89 |
90 | return false;
91 |
92 | }
93 |
94 | /**
95 | * Handler for the 'touchstart' event, enables support for
96 | * swipe and pinch gestures.
97 | *
98 | * @param {object} event
99 | */
100 | onTouchStart( event ) {
101 |
102 | if( this.isSwipePrevented( event.target ) ) return true;
103 |
104 | this.touchStartX = event.touches[0].clientX;
105 | this.touchStartY = event.touches[0].clientY;
106 | this.touchStartCount = event.touches.length;
107 |
108 | }
109 |
110 | /**
111 | * Handler for the 'touchmove' event.
112 | *
113 | * @param {object} event
114 | */
115 | onTouchMove( event ) {
116 |
117 | if( this.isSwipePrevented( event.target ) ) return true;
118 |
119 | let config = this.Reveal.getConfig();
120 |
121 | // Each touch should only trigger one action
122 | if( !this.touchCaptured ) {
123 | this.Reveal.onUserInput( event );
124 |
125 | let currentX = event.touches[0].clientX;
126 | let currentY = event.touches[0].clientY;
127 |
128 | // There was only one touch point, look for a swipe
129 | if( event.touches.length === 1 && this.touchStartCount !== 2 ) {
130 |
131 | let availableRoutes = this.Reveal.availableRoutes({ includeFragments: true });
132 |
133 | let deltaX = currentX - this.touchStartX,
134 | deltaY = currentY - this.touchStartY;
135 |
136 | if( deltaX > SWIPE_THRESHOLD && Math.abs( deltaX ) > Math.abs( deltaY ) ) {
137 | this.touchCaptured = true;
138 | if( config.navigationMode === 'linear' ) {
139 | if( config.rtl ) {
140 | this.Reveal.next();
141 | }
142 | else {
143 | this.Reveal.prev();
144 | }
145 | }
146 | else {
147 | this.Reveal.left();
148 | }
149 | }
150 | else if( deltaX < -SWIPE_THRESHOLD && Math.abs( deltaX ) > Math.abs( deltaY ) ) {
151 | this.touchCaptured = true;
152 | if( config.navigationMode === 'linear' ) {
153 | if( config.rtl ) {
154 | this.Reveal.prev();
155 | }
156 | else {
157 | this.Reveal.next();
158 | }
159 | }
160 | else {
161 | this.Reveal.right();
162 | }
163 | }
164 | else if( deltaY > SWIPE_THRESHOLD && availableRoutes.up ) {
165 | this.touchCaptured = true;
166 | if( config.navigationMode === 'linear' ) {
167 | this.Reveal.prev();
168 | }
169 | else {
170 | this.Reveal.up();
171 | }
172 | }
173 | else if( deltaY < -SWIPE_THRESHOLD && availableRoutes.down ) {
174 | this.touchCaptured = true;
175 | if( config.navigationMode === 'linear' ) {
176 | this.Reveal.next();
177 | }
178 | else {
179 | this.Reveal.down();
180 | }
181 | }
182 |
183 | // If we're embedded, only block touch events if they have
184 | // triggered an action
185 | if( config.embedded ) {
186 | if( this.touchCaptured || this.Reveal.isVerticalSlide() ) {
187 | event.preventDefault();
188 | }
189 | }
190 | // Not embedded? Block them all to avoid needless tossing
191 | // around of the viewport in iOS
192 | else {
193 | event.preventDefault();
194 | }
195 |
196 | }
197 | }
198 | // There's a bug with swiping on some Android devices unless
199 | // the default action is always prevented
200 | else if( isAndroid ) {
201 | event.preventDefault();
202 | }
203 |
204 | }
205 |
206 | /**
207 | * Handler for the 'touchend' event.
208 | *
209 | * @param {object} event
210 | */
211 | onTouchEnd( event ) {
212 |
213 | this.touchCaptured = false;
214 |
215 | }
216 |
217 | /**
218 | * Convert pointer down to touch start.
219 | *
220 | * @param {object} event
221 | */
222 | onPointerDown( event ) {
223 |
224 | if( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === "touch" ) {
225 | event.touches = [{ clientX: event.clientX, clientY: event.clientY }];
226 | this.onTouchStart( event );
227 | }
228 |
229 | }
230 |
231 | /**
232 | * Convert pointer move to touch move.
233 | *
234 | * @param {object} event
235 | */
236 | onPointerMove( event ) {
237 |
238 | if( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === "touch" ) {
239 | event.touches = [{ clientX: event.clientX, clientY: event.clientY }];
240 | this.onTouchMove( event );
241 | }
242 |
243 | }
244 |
245 | /**
246 | * Convert pointer up to touch end.
247 | *
248 | * @param {object} event
249 | */
250 | onPointerUp( event ) {
251 |
252 | if( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === "touch" ) {
253 | event.touches = [{ clientX: event.clientX, clientY: event.clientY }];
254 | this.onTouchEnd( event );
255 | }
256 |
257 | }
258 |
259 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/index.js:
--------------------------------------------------------------------------------
1 | import Deck, { VERSION } from './reveal.js'
2 |
3 | /**
4 | * Expose the Reveal class to the window. To create a
5 | * new instance:
6 | * let deck = new Reveal( document.querySelector( '.reveal' ), {
7 | * controls: false
8 | * } );
9 | * deck.initialize().then(() => {
10 | * // reveal.js is ready
11 | * });
12 | */
13 | let Reveal = Deck;
14 |
15 |
16 | /**
17 | * The below is a thin shell that mimics the pre 4.0
18 | * reveal.js API and ensures backwards compatibility.
19 | * This API only allows for one Reveal instance per
20 | * page, whereas the new API above lets you run many
21 | * presentations on the same page.
22 | *
23 | * Reveal.initialize( { controls: false } ).then(() => {
24 | * // reveal.js is ready
25 | * });
26 | */
27 |
28 | let enqueuedAPICalls = [];
29 |
30 | Reveal.initialize = options => {
31 |
32 | // Create our singleton reveal.js instance
33 | Object.assign( Reveal, new Deck( document.querySelector( '.reveal' ), options ) );
34 |
35 | // Invoke any enqueued API calls
36 | enqueuedAPICalls.map( method => method( Reveal ) );
37 |
38 | return Reveal.initialize();
39 |
40 | }
41 |
42 | /**
43 | * The pre 4.0 API let you add event listener before
44 | * initializing. We maintain the same behavior by
45 | * queuing up premature API calls and invoking all
46 | * of them when Reveal.initialize is called.
47 | */
48 | [ 'configure', 'on', 'off', 'addEventListener', 'removeEventListener', 'registerPlugin' ].forEach( method => {
49 | Reveal[method] = ( ...args ) => {
50 | enqueuedAPICalls.push( deck => deck[method].call( null, ...args ) );
51 | }
52 | } );
53 |
54 | Reveal.isReady = () => false;
55 |
56 | Reveal.VERSION = VERSION;
57 |
58 | export default Reveal;
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/utils/color.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Converts various color input formats to an {r:0,g:0,b:0} object.
3 | *
4 | * @param {string} color The string representation of a color
5 | * @example
6 | * colorToRgb('#000');
7 | * @example
8 | * colorToRgb('#000000');
9 | * @example
10 | * colorToRgb('rgb(0,0,0)');
11 | * @example
12 | * colorToRgb('rgba(0,0,0)');
13 | *
14 | * @return {{r: number, g: number, b: number, [a]: number}|null}
15 | */
16 | export const colorToRgb = ( color ) => {
17 |
18 | let hex3 = color.match( /^#([0-9a-f]{3})$/i );
19 | if( hex3 && hex3[1] ) {
20 | hex3 = hex3[1];
21 | return {
22 | r: parseInt( hex3.charAt( 0 ), 16 ) * 0x11,
23 | g: parseInt( hex3.charAt( 1 ), 16 ) * 0x11,
24 | b: parseInt( hex3.charAt( 2 ), 16 ) * 0x11
25 | };
26 | }
27 |
28 | let hex6 = color.match( /^#([0-9a-f]{6})$/i );
29 | if( hex6 && hex6[1] ) {
30 | hex6 = hex6[1];
31 | return {
32 | r: parseInt( hex6.substr( 0, 2 ), 16 ),
33 | g: parseInt( hex6.substr( 2, 2 ), 16 ),
34 | b: parseInt( hex6.substr( 4, 2 ), 16 )
35 | };
36 | }
37 |
38 | let rgb = color.match( /^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i );
39 | if( rgb ) {
40 | return {
41 | r: parseInt( rgb[1], 10 ),
42 | g: parseInt( rgb[2], 10 ),
43 | b: parseInt( rgb[3], 10 )
44 | };
45 | }
46 |
47 | let rgba = color.match( /^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i );
48 | if( rgba ) {
49 | return {
50 | r: parseInt( rgba[1], 10 ),
51 | g: parseInt( rgba[2], 10 ),
52 | b: parseInt( rgba[3], 10 ),
53 | a: parseFloat( rgba[4] )
54 | };
55 | }
56 |
57 | return null;
58 |
59 | }
60 |
61 | /**
62 | * Calculates brightness on a scale of 0-255.
63 | *
64 | * @param {string} color See colorToRgb for supported formats.
65 | * @see {@link colorToRgb}
66 | */
67 | export const colorBrightness = ( color ) => {
68 |
69 | if( typeof color === 'string' ) color = colorToRgb( color );
70 |
71 | if( color ) {
72 | return ( color.r * 299 + color.g * 587 + color.b * 114 ) / 1000;
73 | }
74 |
75 | return null;
76 |
77 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/utils/constants.js:
--------------------------------------------------------------------------------
1 |
2 | export const SLIDES_SELECTOR = '.slides section';
3 | export const HORIZONTAL_SLIDES_SELECTOR = '.slides>section';
4 | export const VERTICAL_SLIDES_SELECTOR = '.slides>section.present>section';
5 |
6 | // Methods that may not be invoked via the postMessage API
7 | export const POST_MESSAGE_METHOD_BLACKLIST = /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener/;
8 |
9 | // Regex for retrieving the fragment style from a class attribute
10 | export const FRAGMENT_STYLE_REGEX = /fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|current-visible|shrink|grow/;
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/utils/device.js:
--------------------------------------------------------------------------------
1 | const UA = navigator.userAgent;
2 | const testElement = document.createElement( 'div' );
3 |
4 | export const isMobile = /(iphone|ipod|ipad|android)/gi.test( UA ) ||
5 | ( navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1 ); // iPadOS
6 |
7 | export const isChrome = /chrome/i.test( UA ) && !/edge/i.test( UA );
8 |
9 | export const isAndroid = /android/gi.test( UA );
10 |
11 | // Flags if we should use zoom instead of transform to scale
12 | // up slides. Zoom produces crisper results but has a lot of
13 | // xbrowser quirks so we only use it in whitelisted browsers.
14 | export const supportsZoom = 'zoom' in testElement.style && !isMobile &&
15 | ( isChrome || /Version\/[\d\.]+.*Safari/.test( UA ) );
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/utils/loader.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Loads a JavaScript file from the given URL and executes it.
3 | *
4 | * @param {string} url Address of the .js file to load
5 | * @param {function} callback Method to invoke when the script
6 | * has loaded and executed
7 | */
8 | export const loadScript = ( url, callback ) => {
9 |
10 | const script = document.createElement( 'script' );
11 | script.type = 'text/javascript';
12 | script.async = false;
13 | script.defer = false;
14 | script.src = url;
15 |
16 | if( typeof callback === 'function' ) {
17 |
18 | // Success callback
19 | script.onload = script.onreadystatechange = event => {
20 | if( event.type === 'load' || /loaded|complete/.test( script.readyState ) ) {
21 |
22 | // Kill event listeners
23 | script.onload = script.onreadystatechange = script.onerror = null;
24 |
25 | callback();
26 |
27 | }
28 | };
29 |
30 | // Error callback
31 | script.onerror = err => {
32 |
33 | // Kill event listeners
34 | script.onload = script.onreadystatechange = script.onerror = null;
35 |
36 | callback( new Error( 'Failed loading script: ' + script.src + '\n' + err ) );
37 |
38 | };
39 |
40 | }
41 |
42 | // Append the script at the end of
43 | const head = document.querySelector( 'head' );
44 | head.insertBefore( script, head.lastChild );
45 |
46 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/js/utils/util.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Extend object a with the properties of object b.
3 | * If there's a conflict, object b takes precedence.
4 | *
5 | * @param {object} a
6 | * @param {object} b
7 | */
8 | export const extend = ( a, b ) => {
9 |
10 | for( let i in b ) {
11 | a[ i ] = b[ i ];
12 | }
13 |
14 | return a;
15 |
16 | }
17 |
18 | /**
19 | * querySelectorAll but returns an Array.
20 | */
21 | export const queryAll = ( el, selector ) => {
22 |
23 | return Array.from( el.querySelectorAll( selector ) );
24 |
25 | }
26 |
27 | /**
28 | * classList.toggle() with cross browser support
29 | */
30 | export const toggleClass = ( el, className, value ) => {
31 | if( value ) {
32 | el.classList.add( className );
33 | }
34 | else {
35 | el.classList.remove( className );
36 | }
37 | }
38 |
39 | /**
40 | * Utility for deserializing a value.
41 | *
42 | * @param {*} value
43 | * @return {*}
44 | */
45 | export const deserialize = ( value ) => {
46 |
47 | if( typeof value === 'string' ) {
48 | if( value === 'null' ) return null;
49 | else if( value === 'true' ) return true;
50 | else if( value === 'false' ) return false;
51 | else if( value.match( /^-?[\d\.]+$/ ) ) return parseFloat( value );
52 | }
53 |
54 | return value;
55 |
56 | }
57 |
58 | /**
59 | * Measures the distance in pixels between point a
60 | * and point b.
61 | *
62 | * @param {object} a point with x/y properties
63 | * @param {object} b point with x/y properties
64 | *
65 | * @return {number}
66 | */
67 | export const distanceBetween = ( a, b ) => {
68 |
69 | let dx = a.x - b.x,
70 | dy = a.y - b.y;
71 |
72 | return Math.sqrt( dx*dx + dy*dy );
73 |
74 | }
75 |
76 | /**
77 | * Applies a CSS transform to the target element.
78 | *
79 | * @param {HTMLElement} element
80 | * @param {string} transform
81 | */
82 | export const transformElement = ( element, transform ) => {
83 |
84 | element.style.transform = transform;
85 |
86 | }
87 |
88 | /**
89 | * Element.matches with IE support.
90 | *
91 | * @param {HTMLElement} target The element to match
92 | * @param {String} selector The CSS selector to match
93 | * the element against
94 | *
95 | * @return {Boolean}
96 | */
97 | export const matches = ( target, selector ) => {
98 |
99 | let matchesMethod = target.matches || target.matchesSelector || target.msMatchesSelector;
100 |
101 | return !!( matchesMethod && matchesMethod.call( target, selector ) );
102 |
103 | }
104 |
105 | /**
106 | * Find the closest parent that matches the given
107 | * selector.
108 | *
109 | * @param {HTMLElement} target The child element
110 | * @param {String} selector The CSS selector to match
111 | * the parents against
112 | *
113 | * @return {HTMLElement} The matched parent or null
114 | * if no matching parent was found
115 | */
116 | export const closest = ( target, selector ) => {
117 |
118 | // Native Element.closest
119 | if( typeof target.closest === 'function' ) {
120 | return target.closest( selector );
121 | }
122 |
123 | // Polyfill
124 | while( target ) {
125 | if( matches( target, selector ) ) {
126 | return target;
127 | }
128 |
129 | // Keep searching
130 | target = target.parentNode;
131 | }
132 |
133 | return null;
134 |
135 | }
136 |
137 | /**
138 | * Handling the fullscreen functionality via the fullscreen API
139 | *
140 | * @see http://fullscreen.spec.whatwg.org/
141 | * @see https://developer.mozilla.org/en-US/docs/DOM/Using_fullscreen_mode
142 | */
143 | export const enterFullscreen = element => {
144 |
145 | element = element || document.documentElement;
146 |
147 | // Check which implementation is available
148 | let requestMethod = element.requestFullscreen ||
149 | element.webkitRequestFullscreen ||
150 | element.webkitRequestFullScreen ||
151 | element.mozRequestFullScreen ||
152 | element.msRequestFullscreen;
153 |
154 | if( requestMethod ) {
155 | requestMethod.apply( element );
156 | }
157 |
158 | }
159 |
160 | /**
161 | * Creates an HTML element and returns a reference to it.
162 | * If the element already exists the existing instance will
163 | * be returned.
164 | *
165 | * @param {HTMLElement} container
166 | * @param {string} tagname
167 | * @param {string} classname
168 | * @param {string} innerHTML
169 | *
170 | * @return {HTMLElement}
171 | */
172 | export const createSingletonNode = ( container, tagname, classname, innerHTML='' ) => {
173 |
174 | // Find all nodes matching the description
175 | let nodes = container.querySelectorAll( '.' + classname );
176 |
177 | // Check all matches to find one which is a direct child of
178 | // the specified container
179 | for( let i = 0; i < nodes.length; i++ ) {
180 | let testNode = nodes[i];
181 | if( testNode.parentNode === container ) {
182 | return testNode;
183 | }
184 | }
185 |
186 | // If no node was found, create it now
187 | let node = document.createElement( tagname );
188 | node.className = classname;
189 | node.innerHTML = innerHTML;
190 | container.appendChild( node );
191 |
192 | return node;
193 |
194 | }
195 |
196 | /**
197 | * Injects the given CSS styles into the DOM.
198 | *
199 | * @param {string} value
200 | */
201 | export const createStyleSheet = ( value ) => {
202 |
203 | let tag = document.createElement( 'style' );
204 | tag.type = 'text/css';
205 |
206 | if( value && value.length > 0 ) {
207 | if( tag.styleSheet ) {
208 | tag.styleSheet.cssText = value;
209 | }
210 | else {
211 | tag.appendChild( document.createTextNode( value ) );
212 | }
213 | }
214 |
215 | document.head.appendChild( tag );
216 |
217 | return tag;
218 |
219 | }
220 |
221 | /**
222 | * Returns a key:value hash of all query params.
223 | */
224 | export const getQueryHash = () => {
225 |
226 | let query = {};
227 |
228 | location.search.replace( /[A-Z0-9]+?=([\w\.%-]*)/gi, a => {
229 | query[ a.split( '=' ).shift() ] = a.split( '=' ).pop();
230 | } );
231 |
232 | // Basic deserialization
233 | for( let i in query ) {
234 | let value = query[ i ];
235 |
236 | query[ i ] = deserialize( unescape( value ) );
237 | }
238 |
239 | // Do not accept new dependencies via query config to avoid
240 | // the potential of malicious script injection
241 | if( typeof query['dependencies'] !== 'undefined' ) delete query['dependencies'];
242 |
243 | return query;
244 |
245 | }
246 |
247 | /**
248 | * Returns the remaining height within the parent of the
249 | * target element.
250 | *
251 | * remaining height = [ configured parent height ] - [ current parent height ]
252 | *
253 | * @param {HTMLElement} element
254 | * @param {number} [height]
255 | */
256 | export const getRemainingHeight = ( element, height = 0 ) => {
257 |
258 | if( element ) {
259 | let newHeight, oldHeight = element.style.height;
260 |
261 | // Change the .stretch element height to 0 in order find the height of all
262 | // the other elements
263 | element.style.height = '0px';
264 |
265 | // In Overview mode, the parent (.slide) height is set of 700px.
266 | // Restore it temporarily to its natural height.
267 | element.parentNode.style.height = 'auto';
268 |
269 | newHeight = height - element.parentNode.offsetHeight;
270 |
271 | // Restore the old height, just in case
272 | element.style.height = oldHeight + 'px';
273 |
274 | // Clear the parent (.slide) height. .removeProperty works in IE9+
275 | element.parentNode.style.removeProperty('height');
276 |
277 | return newHeight;
278 | }
279 |
280 | return height;
281 |
282 | }
--------------------------------------------------------------------------------
/slides/EmberConf2021/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "reveal.js",
3 | "version": "4.1.0",
4 | "description": "The HTML Presentation Framework",
5 | "homepage": "https://revealjs.com",
6 | "subdomain": "revealjs",
7 | "main": "dist/reveal.js",
8 | "module": "dist/reveal.esm.js",
9 | "license": "MIT",
10 | "scripts": {
11 | "test": "gulp test",
12 | "start": "gulp serve",
13 | "build": "gulp"
14 | },
15 | "author": {
16 | "name": "Hakim El Hattab",
17 | "email": "hakim.elhattab@gmail.com",
18 | "web": "https://hakim.se"
19 | },
20 | "repository": {
21 | "type": "git",
22 | "url": "git://github.com/hakimel/reveal.js.git"
23 | },
24 | "engines": {
25 | "node": ">=10.0.0"
26 | },
27 | "keywords": [
28 | "reveal",
29 | "slides",
30 | "presentation"
31 | ],
32 | "devDependencies": {
33 | "@babel/core": "^7.9.6",
34 | "@babel/preset-env": "^7.9.6",
35 | "@rollup/plugin-babel": "^5.2.0",
36 | "@rollup/plugin-commonjs": "^15.0.0",
37 | "@rollup/plugin-node-resolve": "^9.0.0",
38 | "babel-eslint": "^10.1.0",
39 | "babel-plugin-transform-html-import-to-string": "0.0.1",
40 | "colors": "^1.4.0",
41 | "core-js": "^3.6.5",
42 | "fitty": "^2.3.0",
43 | "glob": "^7.1.6",
44 | "gulp": "^4.0.2",
45 | "gulp-autoprefixer": "^7.0.1",
46 | "gulp-clean-css": "^4.2.0",
47 | "gulp-connect": "^5.7.0",
48 | "gulp-eslint": "^6.0.0",
49 | "gulp-header": "^2.0.9",
50 | "gulp-sass": "^4.0.2",
51 | "gulp-tap": "^2.0.0",
52 | "gulp-zip": "^5.0.1",
53 | "highlight.js": "^10.0.3",
54 | "marked": "^1.1.0",
55 | "node-qunit-puppeteer": "^2.0.1",
56 | "qunit": "^2.10.0",
57 | "rollup": "^2.26.4",
58 | "rollup-plugin-terser": "^7.0.0",
59 | "yargs": "^15.1.0"
60 | },
61 | "browserslist": "> 0.5%, IE 11, not dead",
62 | "eslintConfig": {
63 | "env": {
64 | "browser": true,
65 | "es6": true
66 | },
67 | "parser": "babel-eslint",
68 | "parserOptions": {
69 | "sourceType": "module",
70 | "allowImportExportEverywhere": true
71 | },
72 | "globals": {
73 | "module": false,
74 | "console": false,
75 | "unescape": false,
76 | "define": false,
77 | "exports": false
78 | },
79 | "rules": {
80 | "curly": 0,
81 | "eqeqeq": 2,
82 | "wrap-iife": [
83 | 2,
84 | "any"
85 | ],
86 | "no-use-before-define": [
87 | 2,
88 | {
89 | "functions": false
90 | }
91 | ],
92 | "new-cap": 2,
93 | "no-caller": 2,
94 | "dot-notation": 0,
95 | "no-eq-null": 2,
96 | "no-unused-expressions": 0
97 | }
98 | }
99 | }
100 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/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 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/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 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/plugin/math/math.esm.js:
--------------------------------------------------------------------------------
1 | function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r {
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: 'math',
52 |
53 | init: function( reveal ) {
54 |
55 | deck = reveal;
56 |
57 | let revealOptions = deck.getConfig().math || {};
58 |
59 | let options = { ...defaultOptions, ...revealOptions };
60 | let mathjax = options.mathjax || 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/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 |
91 | export default Plugin;
92 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/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 popup = null;
19 |
20 | let deck;
21 |
22 | function openNotes() {
23 |
24 | if (popup && !popup.closed) {
25 | popup.focus();
26 | return;
27 | }
28 |
29 | popup = window.open( 'about:blank', 'reveal.js - Notes', 'width=1100,height=700' );
30 | popup.marked = marked;
31 | popup.document.write( speakerViewHTML );
32 |
33 | if( !popup ) {
34 | alert( 'Speaker view popup failed to open. Please make sure popups are allowed and reopen the speaker view.' );
35 | return;
36 | }
37 |
38 | /**
39 | * Connect to the notes window through a postmessage handshake.
40 | * Using postmessage enables us to work in situations where the
41 | * origins differ, such as a presentation being opened from the
42 | * file system.
43 | */
44 | function connect() {
45 | // Keep trying to connect until we get a 'connected' message back
46 | let connectInterval = setInterval( function() {
47 | popup.postMessage( JSON.stringify( {
48 | namespace: 'reveal-notes',
49 | type: 'connect',
50 | url: window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search,
51 | state: deck.getState()
52 | } ), '*' );
53 | }, 500 );
54 |
55 | window.addEventListener( 'message', function( event ) {
56 | let data = JSON.parse( event.data );
57 | if( data && data.namespace === 'reveal-notes' && data.type === 'connected' ) {
58 | clearInterval( connectInterval );
59 | onConnected();
60 | }
61 | if( data && data.namespace === 'reveal-notes' && data.type === 'call' ) {
62 | callRevealApi( data.methodName, data.arguments, data.callId );
63 | }
64 | } );
65 | }
66 |
67 | /**
68 | * Calls the specified Reveal.js method with the provided argument
69 | * and then pushes the result to the notes frame.
70 | */
71 | function callRevealApi( methodName, methodArguments, callId ) {
72 |
73 | let result = deck[methodName].apply( deck, methodArguments );
74 | popup.postMessage( JSON.stringify( {
75 | namespace: 'reveal-notes',
76 | type: 'return',
77 | result: result,
78 | callId: callId
79 | } ), '*' );
80 |
81 | }
82 |
83 | /**
84 | * Posts the current slide data to the notes window
85 | */
86 | function post( event ) {
87 |
88 | let slideElement = deck.getCurrentSlide(),
89 | notesElement = slideElement.querySelector( 'aside.notes' ),
90 | fragmentElement = slideElement.querySelector( '.current-fragment' );
91 |
92 | let messageData = {
93 | namespace: 'reveal-notes',
94 | type: 'state',
95 | notes: '',
96 | markdown: false,
97 | whitespace: 'normal',
98 | state: deck.getState()
99 | };
100 |
101 | // Look for notes defined in a slide attribute
102 | if( slideElement.hasAttribute( 'data-notes' ) ) {
103 | messageData.notes = slideElement.getAttribute( 'data-notes' );
104 | messageData.whitespace = 'pre-wrap';
105 | }
106 |
107 | // Look for notes defined in a fragment
108 | if( fragmentElement ) {
109 | let fragmentNotes = fragmentElement.querySelector( 'aside.notes' );
110 | if( fragmentNotes ) {
111 | notesElement = fragmentNotes;
112 | }
113 | else if( fragmentElement.hasAttribute( 'data-notes' ) ) {
114 | messageData.notes = fragmentElement.getAttribute( 'data-notes' );
115 | messageData.whitespace = 'pre-wrap';
116 |
117 | // In case there are slide notes
118 | notesElement = null;
119 | }
120 | }
121 |
122 | // Look for notes defined in an aside element
123 | if( notesElement ) {
124 | messageData.notes = notesElement.innerHTML;
125 | messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string';
126 | }
127 |
128 | popup.postMessage( JSON.stringify( messageData ), '*' );
129 |
130 | }
131 |
132 | /**
133 | * Called once we have established a connection to the notes
134 | * window.
135 | */
136 | function onConnected() {
137 |
138 | // Monitor events that trigger a change in state
139 | deck.on( 'slidechanged', post );
140 | deck.on( 'fragmentshown', post );
141 | deck.on( 'fragmenthidden', post );
142 | deck.on( 'overviewhidden', post );
143 | deck.on( 'overviewshown', post );
144 | deck.on( 'paused', post );
145 | deck.on( 'resumed', post );
146 |
147 | // Post the initial state
148 | post();
149 |
150 | }
151 |
152 | connect();
153 |
154 | }
155 |
156 | return {
157 | id: 'notes',
158 |
159 | init: function( reveal ) {
160 |
161 | deck = reveal;
162 |
163 | if( !/receiver/i.test( window.location.search ) ) {
164 |
165 | // If the there's a 'notes' query set, open directly
166 | if( window.location.search.match( /(\?|\&)notes/gi ) !== null ) {
167 | openNotes();
168 | }
169 |
170 | // Open the notes when the 's' key is hit
171 | deck.addKeyBinding({keyCode: 83, key: 'S', description: 'Speaker notes view'}, function() {
172 | openNotes();
173 | } );
174 |
175 | }
176 |
177 | },
178 |
179 | open: openNotes
180 | };
181 |
182 | };
183 |
184 | export default Plugin;
185 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/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;
--------------------------------------------------------------------------------
/slides/EmberConf2021/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 | };
31 |
32 | export default () => Plugin;
33 |
34 | /*!
35 | * zoom.js 0.3 (modified for use with reveal.js)
36 | * http://lab.hakim.se/zoom-js
37 | * MIT licensed
38 | *
39 | * Copyright (C) 2011-2014 Hakim El Hattab, http://hakim.se
40 | */
41 | var zoom = (function(){
42 |
43 | // The current zoom level (scale)
44 | var level = 1;
45 |
46 | // The current mouse position, used for panning
47 | var mouseX = 0,
48 | mouseY = 0;
49 |
50 | // Timeout before pan is activated
51 | var panEngageTimeout = -1,
52 | panUpdateInterval = -1;
53 |
54 | // Check for transform support so that we can fallback otherwise
55 | var supportsTransforms = 'WebkitTransform' in document.body.style ||
56 | 'MozTransform' in document.body.style ||
57 | 'msTransform' in document.body.style ||
58 | 'OTransform' in document.body.style ||
59 | 'transform' in document.body.style;
60 |
61 | if( supportsTransforms ) {
62 | // The easing that will be applied when we zoom in/out
63 | document.body.style.transition = 'transform 0.8s ease';
64 | document.body.style.OTransition = '-o-transform 0.8s ease';
65 | document.body.style.msTransition = '-ms-transform 0.8s ease';
66 | document.body.style.MozTransition = '-moz-transform 0.8s ease';
67 | document.body.style.WebkitTransition = '-webkit-transform 0.8s ease';
68 | }
69 |
70 | // Zoom out if the user hits escape
71 | document.addEventListener( 'keyup', function( event ) {
72 | if( level !== 1 && event.keyCode === 27 ) {
73 | zoom.out();
74 | }
75 | } );
76 |
77 | // Monitor mouse movement for panning
78 | document.addEventListener( 'mousemove', function( event ) {
79 | if( level !== 1 ) {
80 | mouseX = event.clientX;
81 | mouseY = event.clientY;
82 | }
83 | } );
84 |
85 | /**
86 | * Applies the CSS required to zoom in, prefers the use of CSS3
87 | * transforms but falls back on zoom for IE.
88 | *
89 | * @param {Object} rect
90 | * @param {Number} scale
91 | */
92 | function magnify( rect, scale ) {
93 |
94 | var scrollOffset = getScrollOffset();
95 |
96 | // Ensure a width/height is set
97 | rect.width = rect.width || 1;
98 | rect.height = rect.height || 1;
99 |
100 | // Center the rect within the zoomed viewport
101 | rect.x -= ( window.innerWidth - ( rect.width * scale ) ) / 2;
102 | rect.y -= ( window.innerHeight - ( rect.height * scale ) ) / 2;
103 |
104 | if( supportsTransforms ) {
105 | // Reset
106 | if( scale === 1 ) {
107 | document.body.style.transform = '';
108 | document.body.style.OTransform = '';
109 | document.body.style.msTransform = '';
110 | document.body.style.MozTransform = '';
111 | document.body.style.WebkitTransform = '';
112 | }
113 | // Scale
114 | else {
115 | var origin = scrollOffset.x +'px '+ scrollOffset.y +'px',
116 | transform = 'translate('+ -rect.x +'px,'+ -rect.y +'px) scale('+ scale +')';
117 |
118 | document.body.style.transformOrigin = origin;
119 | document.body.style.OTransformOrigin = origin;
120 | document.body.style.msTransformOrigin = origin;
121 | document.body.style.MozTransformOrigin = origin;
122 | document.body.style.WebkitTransformOrigin = origin;
123 |
124 | document.body.style.transform = transform;
125 | document.body.style.OTransform = transform;
126 | document.body.style.msTransform = transform;
127 | document.body.style.MozTransform = transform;
128 | document.body.style.WebkitTransform = transform;
129 | }
130 | }
131 | else {
132 | // Reset
133 | if( scale === 1 ) {
134 | document.body.style.position = '';
135 | document.body.style.left = '';
136 | document.body.style.top = '';
137 | document.body.style.width = '';
138 | document.body.style.height = '';
139 | document.body.style.zoom = '';
140 | }
141 | // Scale
142 | else {
143 | document.body.style.position = 'relative';
144 | document.body.style.left = ( - ( scrollOffset.x + rect.x ) / scale ) + 'px';
145 | document.body.style.top = ( - ( scrollOffset.y + rect.y ) / scale ) + 'px';
146 | document.body.style.width = ( scale * 100 ) + '%';
147 | document.body.style.height = ( scale * 100 ) + '%';
148 | document.body.style.zoom = scale;
149 | }
150 | }
151 |
152 | level = scale;
153 |
154 | if( document.documentElement.classList ) {
155 | if( level !== 1 ) {
156 | document.documentElement.classList.add( 'zoomed' );
157 | }
158 | else {
159 | document.documentElement.classList.remove( 'zoomed' );
160 | }
161 | }
162 | }
163 |
164 | /**
165 | * Pan the document when the mosue cursor approaches the edges
166 | * of the window.
167 | */
168 | function pan() {
169 | var range = 0.12,
170 | rangeX = window.innerWidth * range,
171 | rangeY = window.innerHeight * range,
172 | scrollOffset = getScrollOffset();
173 |
174 | // Up
175 | if( mouseY < rangeY ) {
176 | window.scroll( scrollOffset.x, scrollOffset.y - ( 1 - ( mouseY / rangeY ) ) * ( 14 / level ) );
177 | }
178 | // Down
179 | else if( mouseY > window.innerHeight - rangeY ) {
180 | window.scroll( scrollOffset.x, scrollOffset.y + ( 1 - ( window.innerHeight - mouseY ) / rangeY ) * ( 14 / level ) );
181 | }
182 |
183 | // Left
184 | if( mouseX < rangeX ) {
185 | window.scroll( scrollOffset.x - ( 1 - ( mouseX / rangeX ) ) * ( 14 / level ), scrollOffset.y );
186 | }
187 | // Right
188 | else if( mouseX > window.innerWidth - rangeX ) {
189 | window.scroll( scrollOffset.x + ( 1 - ( window.innerWidth - mouseX ) / rangeX ) * ( 14 / level ), scrollOffset.y );
190 | }
191 | }
192 |
193 | function getScrollOffset() {
194 | return {
195 | x: window.scrollX !== undefined ? window.scrollX : window.pageXOffset,
196 | y: window.scrollY !== undefined ? window.scrollY : window.pageYOffset
197 | }
198 | }
199 |
200 | return {
201 | /**
202 | * Zooms in on either a rectangle or HTML element.
203 | *
204 | * @param {Object} options
205 | * - element: HTML element to zoom in on
206 | * OR
207 | * - x/y: coordinates in non-transformed space to zoom in on
208 | * - width/height: the portion of the screen to zoom in on
209 | * - scale: can be used instead of width/height to explicitly set scale
210 | */
211 | to: function( options ) {
212 |
213 | // Due to an implementation limitation we can't zoom in
214 | // to another element without zooming out first
215 | if( level !== 1 ) {
216 | zoom.out();
217 | }
218 | else {
219 | options.x = options.x || 0;
220 | options.y = options.y || 0;
221 |
222 | // If an element is set, that takes precedence
223 | if( !!options.element ) {
224 | // Space around the zoomed in element to leave on screen
225 | var padding = 20;
226 | var bounds = options.element.getBoundingClientRect();
227 |
228 | options.x = bounds.left - padding;
229 | options.y = bounds.top - padding;
230 | options.width = bounds.width + ( padding * 2 );
231 | options.height = bounds.height + ( padding * 2 );
232 | }
233 |
234 | // If width/height values are set, calculate scale from those values
235 | if( options.width !== undefined && options.height !== undefined ) {
236 | options.scale = Math.max( Math.min( window.innerWidth / options.width, window.innerHeight / options.height ), 1 );
237 | }
238 |
239 | if( options.scale > 1 ) {
240 | options.x *= options.scale;
241 | options.y *= options.scale;
242 |
243 | magnify( options, options.scale );
244 |
245 | if( options.pan !== false ) {
246 |
247 | // Wait with engaging panning as it may conflict with the
248 | // zoom transition
249 | panEngageTimeout = setTimeout( function() {
250 | panUpdateInterval = setInterval( pan, 1000 / 60 );
251 | }, 800 );
252 |
253 | }
254 | }
255 | }
256 | },
257 |
258 | /**
259 | * Resets the document zoom state to its default.
260 | */
261 | out: function() {
262 | clearTimeout( panEngageTimeout );
263 | clearInterval( panUpdateInterval );
264 |
265 | magnify( { x: 0, y: 0 }, 1 );
266 |
267 | level = 1;
268 | },
269 |
270 | // Alias
271 | magnify: function( options ) { this.to( options ) },
272 | reset: function() { this.out() },
273 |
274 | zoomLevel: function() {
275 | return level;
276 | }
277 | }
278 |
279 | })();
280 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/plugin/zoom/zoom.esm.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * reveal.js Zoom plugin
3 | */
4 | var 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}))}))}},t=function(){var e=1,o=0,n=0,i=-1,d=-1,s="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style;function r(t,o){var n=y();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,s)if(1===o)document.body.style.transform="",document.body.style.OTransform="",document.body.style.msTransform="",document.body.style.MozTransform="",document.body.style.WebkitTransform="";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.OTransformOrigin=i,document.body.style.msTransformOrigin=i,document.body.style.MozTransformOrigin=i,document.body.style.WebkitTransformOrigin=i,document.body.style.transform=d,document.body.style.OTransform=d,document.body.style.msTransform=d,document.body.style.MozTransform=d,document.body.style.WebkitTransform=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 m(){var t=.12*window.innerWidth,i=.12*window.innerHeight,d=y();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 y(){return{x:void 0!==window.scrollX?window.scrollX:window.pageXOffset,y:void 0!==window.scrollY?window.scrollY:window.pageYOffset}}return s&&(document.body.style.transition="transform 0.8s ease",document.body.style.OTransition="-o-transform 0.8s ease",document.body.style.msTransition="-ms-transform 0.8s ease",document.body.style.MozTransition="-moz-transform 0.8s ease",document.body.style.WebkitTransition="-webkit-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,r(o,o.scale),!1!==o.pan&&(i=setTimeout((function(){d=setInterval(m,1e3/60)}),800)))}},out:function(){clearTimeout(i),clearInterval(d),r({x:0,y:0},1),e=1},magnify:function(e){this.to(e)},reset:function(){this.out()},zoomLevel:function(){return e}}}();export default function(){return e}
5 |
--------------------------------------------------------------------------------
/slides/EmberConf2021/plugin/zoom/zoom.js:
--------------------------------------------------------------------------------
1 | !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).RevealZoom=o()}(this,(function(){"use strict";
2 | /*!
3 | * reveal.js Zoom plugin
4 | */var e={id:"zoom",init:function(e){e.getRevealElement().addEventListener("mousedown",(function(t){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;t[i]&&!e.isOverview()&&(t.preventDefault(),o.to({x:t.clientX,y:t.clientY,scale:d,pan:!1}))}))}},o=function(){var e=1,t=0,n=0,i=-1,d=-1,s="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style;function r(o,t){var n=l();if(o.width=o.width||1,o.height=o.height||1,o.x-=(window.innerWidth-o.width*t)/2,o.y-=(window.innerHeight-o.height*t)/2,s)if(1===t)document.body.style.transform="",document.body.style.OTransform="",document.body.style.msTransform="",document.body.style.MozTransform="",document.body.style.WebkitTransform="";else{var i=n.x+"px "+n.y+"px",d="translate("+-o.x+"px,"+-o.y+"px) scale("+t+")";document.body.style.transformOrigin=i,document.body.style.OTransformOrigin=i,document.body.style.msTransformOrigin=i,document.body.style.MozTransformOrigin=i,document.body.style.WebkitTransformOrigin=i,document.body.style.transform=d,document.body.style.OTransform=d,document.body.style.msTransform=d,document.body.style.MozTransform=d,document.body.style.WebkitTransform=d}else 1===t?(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+o.x)/t+"px",document.body.style.top=-(n.y+o.y)/t+"px",document.body.style.width=100*t+"%",document.body.style.height=100*t+"%",document.body.style.zoom=t);e=t,document.documentElement.classList&&(1!==e?document.documentElement.classList.add("zoomed"):document.documentElement.classList.remove("zoomed"))}function m(){var o=.12*window.innerWidth,i=.12*window.innerHeight,d=l();nwindow.innerHeight-i&&window.scroll(d.x,d.y+(1-(window.innerHeight-n)/i)*(14/e)),twindow.innerWidth-o&&window.scroll(d.x+(1-(window.innerWidth-t)/o)*(14/e),d.y)}function l(){return{x:void 0!==window.scrollX?window.scrollX:window.pageXOffset,y:void 0!==window.scrollY?window.scrollY:window.pageYOffset}}return s&&(document.body.style.transition="transform 0.8s ease",document.body.style.OTransition="-o-transform 0.8s ease",document.body.style.msTransition="-ms-transform 0.8s ease",document.body.style.MozTransition="-moz-transform 0.8s ease",document.body.style.WebkitTransition="-webkit-transform 0.8s ease"),document.addEventListener("keyup",(function(t){1!==e&&27===t.keyCode&&o.out()})),document.addEventListener("mousemove",(function(o){1!==e&&(t=o.clientX,n=o.clientY)})),{to:function(t){if(1!==e)o.out();else{if(t.x=t.x||0,t.y=t.y||0,t.element){var n=t.element.getBoundingClientRect();t.x=n.left-20,t.y=n.top-20,t.width=n.width+40,t.height=n.height+40}void 0!==t.width&&void 0!==t.height&&(t.scale=Math.max(Math.min(window.innerWidth/t.width,window.innerHeight/t.height),1)),t.scale>1&&(t.x*=t.scale,t.y*=t.scale,r(t,t.scale),!1!==t.pan&&(i=setTimeout((function(){d=setInterval(m,1e3/60)}),800)))}},out:function(){clearTimeout(i),clearInterval(d),r({x:0,y:0},1),e=1},magnify:function(e){this.to(e)},reset:function(){this.out()},zoomLevel:function(){return e}}}();return function(){return e}}));
5 |
--------------------------------------------------------------------------------
/slides/EmberFest 2020 - Contributor's Workshop.key:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/slides/EmberFest 2020 - Contributor's Workshop.key
--------------------------------------------------------------------------------
/slides/EmberFest 2020 - Contributor's Workshop.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ember-learn/emberjs-contributors-workshop/2494e7c7b06f520eed9673d2d01a5cf0fab66d62/slides/EmberFest 2020 - Contributor's Workshop.pdf
--------------------------------------------------------------------------------
/virtual-machine/env-setup.md:
--------------------------------------------------------------------------------
1 | # Alternatives to running a project locally
2 | If you are unable to get the guides or website running on your computer, you can use an online VM/IDE to test out your work.
3 | Note that since Cloud9 environments are accessible by admins, no secrets/passwords/etc should be saved in them.
4 | Commit and push often! Cloud9 does not guarantee that instance state will be saved, and instances will be destroyed
5 | 24h after the workshop unless you have made special requests.
6 |
7 | ## Using cloud9
8 | Visit [AWS Cloud9](https://console.aws.amazon.com/) and log in with the credentials provided by your
9 | workshop leaders.
10 |
11 | Once you are logged in, visit
12 | [https://us-east-2.console.aws.amazon.com/cloud9/home/shared](https://us-east-2.console.aws.amazon.com/cloud9/home/shared)
13 | and select the instance that matches your username.
14 |
15 | You will find the guides and website pre-installed. You should fork the
16 | repositories. For each fork of the repository, copy the cloning url:
17 |
18 | ```
19 | cd repository-name
20 | git remote set-url your-fork-url
21 | ```
22 |
23 | This will allow you to push to your fork to save your work.
24 | You should commit and push often, as cloud9 projects do
25 | not make any guarantees about persistance across time.
26 |
27 | ### Install dependencies and start the server
28 | ```
29 | gem install bundler
30 | bundle install
31 | bundle exec middleman -p 8080
32 | ```
33 |
34 | Click on the "Preview" button to see your app in action!
35 | In the right hand corner is a button to expand into a new window.
36 |
37 | ## Instructions for facilitators
38 | These scripts below can be used to create dev environments for the website and
39 | guides.
40 |
41 | To do Cloud9 the "right way", follow
42 | [these instructions](https://docs.aws.amazon.com/cloud9/latest/user-guide/get-started.html)
43 | to create a limited-access admin user, IAM policies, users, and workspace. Then
44 | create a project and open it in the IDE. Once you have set up a project, use the
45 | "share" button in the IDE to add a user to it.
46 |
47 | ### Set up a new dev env
48 |
49 | Copy and paste this entire block into the command line. Enter "yes" to any prompts.
50 |
51 | ```
52 | rvm implode
53 | ```
54 |
55 | Then copy and paste into the command line:
56 | ```
57 | curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
58 | export NVM_DIR="$HOME/.nvm"
59 | [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
60 | [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
61 | nvm install 8.9.4
62 | nvm alias default 8.9.4
63 | npm install -g ember-cli
64 | git clone https://github.com/rbenv/rbenv.git ~/.rbenv
65 | echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
66 | echo 'eval "$(rbenv init -)"' >> ~/.bashrc
67 | exec $SHELL
68 | git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
69 | echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
70 | exec $SHELL
71 | rbenv install 2.4.3 --verbose
72 | rbenv global 2.4.3
73 | gem install bundler
74 | git clone https://github.com/emberjs/guides
75 | cd guides
76 | bundle install
77 | cd ..
78 | git clone https://github.com/emberjs/website.git
79 | cd website
80 | bundle install
81 | cd ..
82 | ```
83 |
84 | Some Linux environments require this before installing rbenv. Errors about missing c compilers
85 | are a sign that you need this.
86 | ```
87 | sudo apt-get update
88 | sudo apt-get install build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
89 | ```
90 |
--------------------------------------------------------------------------------
/volunteer-resources/volunteer-guide.md:
--------------------------------------------------------------------------------
1 | ## EmberConf Contributors Workshop Volunteer Guide
2 |
3 | Thanks for volunteering! This workshop is only possible with community support. Here’s everything you need to know, including times, locations, and facilitator contact info. All volunteers are expected to follow [Ember’s Code of Conduct](https://www.emberjs.com/guidelines/).
4 |
5 | **Optional pre-workshop gathering**: If you can, please join us on Sunday, March 10th. Time and location are provided by email. We’ll talk through any final questions, curate some more issues, and then maybe go get real Portland food somewhere. If you're arriving later in the evening, updates will be posted in the #conf-workshop channel on Slack.
6 |
7 | **When to arrive**: Arrive at 8:30am. We’ll go over any final details and provide some breakfast food/coffee. The workshop starts at 9am, so we expect attendees will begin arriving around 8:30.
8 |
9 | **Who to contact if you have questions, get lost, etc**: @locks and @jenweber via Slack. Jen's cell is provided via email.
10 |
11 | **What to bring**: Your laptop and charger. If you have a spare laptop, bring that too. If someone can’t get their dev env set up, we’d love to have some loaner computers.
12 |
13 | ### How to prepare:
14 | Please set aside an hour or so to prepare. For each repository you’re familiar with, make sure you have an up to date copy that is able to be run locally. If you are willing to share your laptop as a loaner for attendees who can’t get their dev env set up, we recommend setting up a guest profile on your OS. Make sure that the guest can’t accidentally use your git credentials. Many of us have admin privileges and are one command away from pushing to the `main` branch.
15 |
16 | Additionally, the Emberjs.com website app runs in a ruby dev environment, so you can either set up ruby/middleman or follow the instructions to use Docker. Please try to set it up on your own computer so you can help others with it. The Docker method is strongly recommended. It will not work on Windows.
17 |
18 | ### Your role during the workshop:
19 | Most volunteers will be seated at a table that holds about 10 people. Your goals are to help contributors choose issues, answer questions, assist with dev env setup, and most of all, be supportive and encouraging! We are hoping that some of these attendees will be inspired to keep helping out with Ember. We are all where we are today because someone else helped us out, or they were kind and welcoming. Do your best to involve everyone at your table - ask people what they are working on, what they are interested in, why they want to get involved, etc. Keep in mind that many people may silently struggle, so be sure to ask each person what questions they have or if they need any help.
20 |
21 | ### Workshop Structure
22 | In the first hour, Ricardo and Jen will lead a short activity, a presentation on what makes Ember tick (RFCs, quest issues, general contributor how-to), and guide attendees through selecting an Issue to work on. Attendees will be encouraged to pair up and choose small issues. The next 2 hours will be open workshop time. In the final 15 mins, we will do a wrap up and ask attendees to share their contact info if they want to keep working on Ember issues.
23 |
24 | ### Thank you! We're excited you're joining us :)
25 |
--------------------------------------------------------------------------------