1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-09-07 13:10:53 +02:00

Compare commits

...

2208 Commits
1.4.0 ... 3.9.2

Author SHA1 Message Date
Hakim El Hattab
94d98ff7d8 3.9.2 security release 2020-01-31 11:11:23 +01:00
Hakim El Hattab
b6cc6b4916 blacklist some method from the postMessage API to prevent XSS 2020-01-31 10:59:41 +01:00
Hakim El Hattab
d213fac34c add note about supporting reveal.js via Slides 2020-01-30 10:15:39 +01:00
Hakim El Hattab
eaf3988311 3.9.1 because a local edit made it into npm 2020-01-29 15:11:49 +01:00
Hakim El Hattab
003a848790 update to highlight.js 9.18.0 #2562 2020-01-29 14:51:28 +01:00
Hakim El Hattab
33ed32c4f0 add step-by-step highlights to readme 2020-01-29 14:01:51 +01:00
Hakim El Hattab
8a54118f43 npm audit fix 😶 2020-01-27 14:50:54 +01:00
Hakim El Hattab
45f468ccc4 3.9.0 2020-01-27 14:47:17 +01:00
Hakim El Hattab
a59b1415f8 Merge branch 'pdf-slide-numbers' of https://github.com/dougalsutherland/reveal.js into dev 2020-01-27 14:10:15 +01:00
Hakim El Hattab
281b518620 Merge pull request #2499 from jocaml/patch-1
Fix which node version is required
2020-01-27 13:51:38 +01:00
Hakim El Hattab
9693816480 Merge branch 'dev' into patch-1 2020-01-27 13:51:24 +01:00
Hakim El Hattab
731f6819ac Merge pull request #2567 from trevorpower/patch-1
fixed link to gruntfile
2020-01-27 13:46:34 +01:00
Hakim El Hattab
d969ec5f25 2020 2020-01-15 11:39:19 +01:00
Hakim El Hattab
ac50753521 add data-fragment=<index> attribute to slide <sections> 2020-01-15 11:37:37 +01:00
Trevor Power
76a8193fc2 fixed link to gruntfile 2020-01-13 11:57:17 +00:00
Hakim El Hattab
76187bc666 Merge pull request #2474 from coliff/patch-1
HTTPS relevant links on README
2020-01-11 20:51:56 +01:00
Hakim El Hattab
dbf575f8db Merge pull request #2483 from Adri-May/bugfix/spelling
Bug fix: spelling errors
2020-01-11 20:51:01 +01:00
Hakim El Hattab
7a169732de upgrade to node-sass 4.13.0, fix security warnings #2473 2020-01-11 20:30:29 +01:00
Hakim El Hattab
6f9b10b269 switch to fixed unit for fragment animations to make them more consistent 2019-12-19 08:16:42 +01:00
Hakim El Hattab
201e8316a2 Merge pull request #2437 from TehDmitry/dev
Allowing autoplay in data-background-iframe for audio and video elements
2019-12-09 21:09:38 +01:00
Hakim El Hattab
bb8b4d8883 Merge pull request #2454 from ismailarilik/patch-1
Add forgotten element to Table of Contents
2019-12-09 21:06:53 +01:00
Hakim El Hattab
94de806f06 add mobileViewDistance to readme #2513 2019-12-09 21:05:41 +01:00
Hakim El Hattab
1515ddcf87 Merge pull request #2513 from TuurDutoit/feature/mobile-view-distance
Add mobileViewDistance config key
2019-12-09 21:00:58 +01:00
Dougal J. Sutherland
c189a21efd honor slide number config in pdf mode 2019-10-29 12:48:21 -05:00
Dougal J. Sutherland
1cf5ffe029 add a slide argument to locationHash(), getSlidePastCount() 2019-10-29 12:48:21 -05:00
Tuur Dutoit
6ab72eae51 Add mobileViewDistance config key 2019-10-18 13:37:16 +02:00
Hakim El Hattab
f9affb550a fix viewport overflow in iPadOS safari 2019-10-11 09:23:44 +02:00
Hrvoje Bandov
6979383e4b Fix which node version is required
In `package.json` engine is set to `>=9.0.0`.
2019-10-08 09:29:59 +02:00
Adri-May
02a42d1c9e Bug fix: spelling errors 2019-09-18 21:57:24 -04:00
Christian Oliff
a458676614 HTTPS relevant links on README 2019-09-03 10:59:33 +09:00
Hakim El Hattab
474731d829 highlight.js 9.11 -> 9.15 2019-08-22 13:21:12 +02:00
İsmail Arılık
52e57d3677 Add forgotten element to Table of Contents 2019-07-12 14:38:53 +03:00
Hakim El Hattab
073d0e3358 Merge pull request #2392 from DanielNoga/patch-1
update minimal nodejs version in readme
2019-07-08 10:07:53 +02:00
Hakim El Hattab
07c20ef9d9 Merge pull request #2442 from pius/patch-1
Tweak to MathJax example
2019-07-08 10:06:04 +02:00
Hakim El Hattab
d5662a203e Merge branch 'dev' into patch-1 2019-07-08 10:05:40 +02:00
Hakim El Hattab
a6f1511d1a Merge pull request #2453 from Incognitas/fix/node_12_support
Update package.json for node 12 support
2019-07-08 10:02:30 +02:00
Hakim El Hattab
cf027f21c6 Merge pull request #2451 from Jason-Cooke/patch-1
docs: fix typo
2019-07-08 10:01:55 +02:00
Aurelien Normand
585aafed95 Adding missing file to use it properly 2019-07-07 15:30:31 +02:00
Aurélien Normand
0935462706 Update package.json for node 12 support
simple node-sass update which fixes this issue
2019-07-07 11:41:30 +02:00
Jason Cooke
1bacb27072 docs: fix typo 2019-07-05 22:00:10 +12:00
Pius Uzamere
abac58cfc5 Tweak to MathJax example
Added a missing comma and used an actual macro so that the MathJax example runs right out of the box upon a copy/paste.
2019-06-22 15:17:01 -04:00
Hakim El Hattab
bd3758a4df readme tweak 2019-06-10 07:41:07 +02:00
Hakim El Hattab
5fb743e65e rephrased #2378 2019-06-10 07:38:57 +02:00
Hakim El Hattab
c92d08acdd Merge pull request #2378 from mbotsch/fix-plugin-documentation
Fix plugin documentation regarding init-Promises
2019-06-10 07:34:21 +02:00
Hakim El Hattab
ff2a927de8 Merge pull request #2433 from autopp/fix-typo-in-readme
add missing comma to MathJax example in README
2019-06-10 07:19:57 +02:00
Hakim El Hattab
bba760e549 remove available route changes #2416 2019-06-10 07:14:04 +02:00
Hakim El Hattab
51e8da5d9a Merge branch '2380-linear-navigation-mobile' of https://github.com/earboxer/reveal.js into dev 2019-06-10 07:04:49 +02:00
Hakim El Hattab
f6f7f28ad9 enable url hash for default index.html #2434 #2175 2019-06-10 06:57:07 +02:00
TehDmitry
bdda443335 Allowing autoplay in data-background-iframe for audio and video elements
It was restricted by «Autoplay Policy Changes»: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#iframe
2019-06-09 16:31:36 +03:00
autopp
f5759c3d52 add missing comma to MathJax example in README 2019-06-07 09:45:20 +09:00
Zach DeCook
969e7b3ef1 * Mobile Linear Navigation: Fix swipes to navigate linearly 2019-05-29 10:44:43 -04:00
Zach DeCook
c62f4c7cfb * Linear Navigation: Fix showing arrows when last slide has vertical children 2019-05-29 10:22:15 -04:00
Hakim El Hattab
99c3498253 first/last slide shortcut now uses shift modified, cmd conflicted with browser back/fwd 2019-05-27 08:45:00 +02:00
Hakim El Hattab
25e521a16c Merge branch 'alternate-timing' of https://github.com/fghaas/reveal.js into dev 2019-05-27 08:08:00 +02:00
Hakim El Hattab
a1dd1028a1 down arrow padding for edge aligned controls 2019-05-27 08:04:58 +02:00
Hakim El Hattab
9108519dc1 Merge pull request #2410 from NoriSte/feature/fix-touch-arrow-down
Fix arrow down navigation on touch devices
2019-05-27 07:56:15 +02:00
Hakim El Hattab
a2e9e525d5 avoid exception when highlighting empty code blocks 2019-05-27 07:30:08 +02:00
Florian Haas
23c12d7332 Notes: Weakly enforce a minimum allocated pacing time per slide
When using the totalTime-based pacing calculation, a presenter may
inadvertently set totalTime and per-slide data-timing attributes in
such a way that the pacing time for some slides is impossibly low or
even negative.

Add a check to ensure that the pacing on a slide never falls below a
configurable minimum, defaulting to 0. Display an alert if the
pacing for any slide(s) falls below the threshold.
2019-05-22 21:44:44 +02:00
Hakim El Hattab
9ac654d584 fix issue where syncSlide would not run/play newly added background content 2019-05-20 14:58:52 +02:00
Hakim El Hattab
bd1e82d19a new API methods for getting horizontal/vertical slides, force linear navigation for one-dimensional decks 2019-05-20 11:24:05 +02:00
NoriSte
6ac01281d2 fix the touch devices issues with the down arrow 2019-05-18 12:57:35 +02:00
Hakim El Hattab
1766e37a63 iframe background preload behavior now matches inline iframes + adheres to the new 'preloadIframes' config option 2019-05-13 10:55:29 +02:00
Florian Haas
078ba62050 Notes: Introduce alternate pacing timer, based on total presentation time
The current pacing timer operates on the assumption that there is
a default amount of time to be allocated to each slide, and that
individual slides can deviate from that default by specifying their
own data-timing attribute.

This patch introduces an alternate pacing method: by specifying
the totalTime configuration option, the presenter can set the total
time available to present. The pacing timer will then continue to
allocate the exact pacing time for slides that do have data-timing
set, as before. However, rather than applying the defaultTiming
constant to all others, it will

- Add up the time already allocated to slides via data-timing;
- subtract that from totalTime;
- divide the difference by the number of slides without data-timing set;
- apply the thus-calculated average to those slides.

totalTime has no default, and if both defaultTiming and totalTime are
set, totalTime wins. This preserves backward compatibility: if a
presenter has set defaultTiming and updates reveal.js, totalTime will
be null and defaultTiming is still applied to all slides without a
data-timing attribute. The presenter can then switch to the automatic
calculation, if desired, by setting a value for totalTime.
2019-05-12 20:10:06 +02:00
Daniel Noga
39ed39f3e2 update minimal nodejs version in readme 2019-05-05 13:34:43 +02:00
Mario Botsch
1f5fb971d4 Fix plugin documentation
Mention that reveal.js will wait for the Promise of a plugin's init()
function only when the plugin is loaded non-async. The init functions
of plugins that are loaded as async dependencies are called after
reveal.js has dispatched the 'ready' event.
2019-04-23 23:28:05 +02:00
Hakim El Hattab
a16b71a981 the postMessage API now works for getter methods 2019-04-23 10:52:45 +02:00
Hakim El Hattab
32197bd77d fix numeric presence condition 2019-04-10 10:09:41 +02:00
Richard Westenra
33bed47dac Remove calls to missing modules from gruntfile
When running the app, Grunt throws the following warnings:

>> Local Npm module "grunt-contrib-clean" not found. Is it installed?
>> Local Npm module "grunt-contrib-nodeunit" not found. Is it installed?

These modules don't appear to do anything except throw a warning so they can probably just be removed.
2019-04-08 10:36:33 +02:00
Hakim El Hattab
9aa514bc70 Merge pull request #2364 from richardwestenra/fix/missing-modules
Bugfix: Remove calls to missing modules from gruntfile
2019-04-08 10:14:02 +02:00
Richard Westenra
3ff070536e Remove calls to missing modules from gruntfile
When running the app, Grunt throws the following warnings:

>> Local Npm module "grunt-contrib-clean" not found. Is it installed?
>> Local Npm module "grunt-contrib-nodeunit" not found. Is it installed?

These modules don't appear to do anything except throw a warning so they can probably just be removed.
2019-04-06 11:07:05 +03:00
Hakim El Hattab
e9ba289e80 refinements for multi-step code highlights 2019-04-05 19:49:17 +02:00
Hakim El Hattab
7eb2cec6b6 first version of multi-step code highlights 2019-04-05 07:59:35 +02:00
Hakim El Hattab
c636b88b2d Merge branch 'master' of github.com:hakimel/reveal.js into dev 2019-04-03 10:49:22 +02:00
Hakim El Hattab
3643112b35 plugin doc tweaks 2019-04-03 10:49:14 +02:00
Hakim El Hattab
4c557a5959 prefer transform scaling over zoom on hdpi displays 2019-04-02 16:25:27 +02:00
Hakim El Hattab
15dec96e73 better example for line range highlighting 2019-04-01 15:48:46 +02:00
Hakim El Hattab
da4ec074f1 docs for code highlight line numbering 2019-04-01 15:45:07 +02:00
Hakim El Hattab
485870946f plugin docs 2019-04-01 15:25:40 +02:00
Hakim El Hattab
25c504c22f plugin api docs 2019-04-01 15:11:51 +02:00
Hakim El Hattab
3da09f1fef 3.8.0 2019-04-01 14:34:10 +02:00
Hakim El Hattab
eb5d79370b fix typos 2019-04-01 14:29:26 +02:00
Hakim El Hattab
2734aa3da0 fix grunt ci error 2019-04-01 13:46:08 +02:00
Hakim El Hattab
e6fa04d485 fix typos 2019-04-01 13:11:29 +02:00
Hakim El Hattab
94cbfcbdf6 Merge pull request #2326 from earboxer/2313-navigation-mode-shortcuts-table
Allow Navigation Mode setting to change the shortcuts table
2019-04-01 13:01:29 +02:00
Hakim El Hattab
29ea072ddf fix npm security warnings, auto run tests when changed 2019-04-01 11:14:22 +02:00
Hakim El Hattab
df25fbebba add hasPlugin and getPlugin API methods and tests 2019-04-01 11:07:11 +02:00
Hakim El Hattab
d6f0f41f77 tweaks and tests for #2354 2019-03-28 15:42:28 +01:00
Hakim El Hattab
6faab091bb Merge branch 'dev' of https://github.com/maxrothman/reveal.js into dev 2019-03-28 15:12:33 +01:00
Hakim El Hattab
922d791fd9 fix an error where reveal.js returned a 1> progress number when there were fragments on last slide 2019-03-25 12:00:46 +01:00
Max Rothman
93b1abc736 Add data-preload attribute for iframes
Allows lazy-loaded (i.e. data-src) iframes to be preloaded when they
come within the viewDistance, rather than once they're visible.
2019-03-22 10:45:08 -04:00
Hakim El Hattab
b8de5e02d2 make #2350 work using replaceState 2019-03-21 09:13:28 +01:00
Hakim El Hattab
ae556d0844 Merge pull request #2350 from rparree/hash-problem
Fixed not bing able to follow same inner links twice with history:false
2019-03-21 09:03:50 +01:00
Hakim El Hattab
b5fe0f8126 Merge branch 'dev' into hash-problem 2019-03-21 09:03:27 +01:00
Hakim El Hattab
01874c6e70 new demo slide to promote iframes/iframe backgrounds 2019-03-20 09:12:31 +01:00
Raphael Parree
b4c6c92033 Fixed not bing able to follow same inner links twice with history:false
Scenario:

- history set to false in Reveal’s config
- follow anchor to `/#someid`
- navigate to other sections
- follow anchor to same section `/#someid`

This does not work as the hash has not changed.

This fix removes the hash from the URL when navigating
2019-03-15 08:45:43 +01:00
Hakim El Hattab
c7db11d9cf tests for plugins 2019-03-14 16:03:55 +01:00
Hakim El Hattab
b180d94e02 fix error when reveal.js was initialized with no plugins 2019-03-14 15:39:19 +01:00
Hakim El Hattab
6410ed15aa support for plugins where the init method doesn't return a Promise 2019-03-14 14:52:59 +01:00
Hakim El Hattab
5301a9ea03 more forgiving code highlight line number format, add Promise polyfill 2019-03-14 13:05:10 +01:00
Hakim El Hattab
cfc2f9cf9c line number styling tweaks 2019-03-12 13:21:27 +01:00
Hakim El Hattab
553a174cc7 highlight.js plugin improvements 2019-03-12 13:17:50 +01:00
Hakim El Hattab
7b62a0f356 prevent same plugin from being registered twice 2019-03-12 13:17:08 +01:00
Hakim El Hattab
fbbae1dc55 switch to monokai as default syntax highlight theme 2019-03-12 11:26:10 +01:00
Hakim El Hattab
7b66abd49c Merge pull request #2346 from dougalsutherland/patch-3
notes plugin: callRevealApi wants apply, not call
2019-03-12 10:38:50 +01:00
Dougal J. Sutherland
00e30a11e2 notes plugin: callRevealApi wants apply, not call 2019-03-11 22:25:19 -04:00
Hakim El Hattab
da53b3a637 validate code line numbers to highlight 2019-03-11 16:12:33 +01:00
Hakim El Hattab
8690858b6f more succinct syntax for code block line highlights 2019-03-11 15:48:03 +01:00
Hakim El Hattab
5adc2032c0 use internal pointer for current slide 2019-03-11 15:03:13 +01:00
Hakim El Hattab
69ee643846 syncFragments now returns all affected fragments 2019-03-11 14:50:35 +01:00
Hakim El Hattab
cef864a7be highlight plugin updates; support for line numbers and highlighting specific lines 2019-03-08 15:07:59 +01:00
Hakim El Hattab
b6e136776a Merge pull request #2340 from sophware/fix_zoom_demo
demo.html - Added Linux instructions for zoom
2019-03-07 16:13:33 +01:00
Sophware
d0771922c9 demo.html - Added Linux instructions for zoom 2019-03-06 17:05:45 -05:00
Hakim El Hattab
fc30774ef2 Merge pull request #2339 from mikeshatch/patch-1
Fixed a couple of typos
2019-03-06 13:31:16 +01:00
Mike Hatch
dd6f8b402c Fixed a couple of typos 2019-03-04 12:24:04 -06:00
Hakim El Hattab
c40e9819a2 highlight, math, notes and zoom plugins now register via Reveal.registerPlugin 2019-03-04 14:32:38 +01:00
Hakim El Hattab
d780352b7f reveal.js plugin flow now uses promises, refactor markdown plugin to use promises 2019-03-04 14:11:21 +01:00
Hakim El Hattab
46f8f86fa1 few plugin registration tweaks 2019-03-01 21:34:11 +01:00
Hakim El Hattab
4862de26eb async loading of external markdown, add Reveal.registerPlugin() 2019-03-01 21:28:52 +01:00
Hakim El Hattab
213023760a build dependency updates 2019-02-28 13:47:49 +01:00
Hakim El Hattab
3b4fabc8a7 upgrade .travis nodejs version 2019-02-28 13:27:41 +01:00
Hakim El Hattab
4a8899e520 see if increased node version fixes build 2019-02-28 13:25:46 +01:00
Hakim El Hattab
5ae2d3eb1e update grunt dependencies 2019-02-28 11:22:32 +01:00
Hakim El Hattab
205ef8fdcc fix scss compilation task 2019-02-28 10:07:41 +01:00
Hakim El Hattab
d549204ef1 Merge pull request #2333 from dougalsutherland/patch-2
remove unused `isPrintingPDFFragments` function
2019-02-28 09:58:02 +01:00
Dougal J. Sutherland
a36f7cbf99 remove unused isPrintingPDFFragments function 2019-02-28 01:19:43 +00:00
Zach DeCook
bb4eeb6c3c * Keyboard Shortcuts table: Dynamically fill object at configuration 2019-02-19 17:29:07 -05:00
Hakim El Hattab
1efb8260af Merge pull request #2325 from hakimel/revert-2312-improve_random_number_generation
Revert "impove randomness"
2019-02-18 15:18:59 +01:00
Hakim El Hattab
d927cdf579 Revert "impove randomness" 2019-02-18 15:17:30 +01:00
Hakim El Hattab
27b70ed0ba Merge pull request #2312 from albert-ziegler/improve_random_number_generation
impove randomness
2019-02-18 15:14:39 +01:00
Albert
9e3a52f14a correct typo 2019-02-11 09:05:46 +00:00
Hakim El Hattab
2d57981261 zoom transition now uses zooming for vertical transitions, too 2019-02-01 11:09:03 +01:00
Hakim El Hattab
7867b77833 indentation fix 2019-02-01 10:16:32 +01:00
Hakim El Hattab
ce53e63b5b documentation for #2315 2019-02-01 10:15:10 +01:00
Hakim El Hattab
d0337246f2 Merge pull request #2315 from dougalsutherland/slide-formats
allow custom slide numbering functions
2019-02-01 09:49:39 +01:00
Hakim El Hattab
2a9edd23e6 define available values for showSlideNumber 2019-02-01 09:48:36 +01:00
Hakim El Hattab
812b802c1c resize event tweaks for #2300 2019-01-31 20:13:32 +01:00
Hakim El Hattab
9c1615fff1 Merge pull request #2300 from mw75/master
Resize Event
2019-01-31 20:09:45 +01:00
Dougal J. Sutherland
43d1c71107 allow custom slide numbering functions 2019-01-31 18:28:38 +00:00
Hakim El Hattab
aa8be6829c Merge pull request #2305 from reyerstudio/marked
Upgrade marked to 0.6.0
2019-01-31 10:10:28 +01:00
Albert
90473eeb05 impove randomness 2019-01-30 16:33:41 +00:00
Hakim El Hattab
6a2cb42e6b enable pinch-to-zoom for android 2019-01-30 16:31:31 +01:00
Hakim El Hattab
2219107c69 only force media controls to be visible when necessarry 2019-01-29 11:26:46 +01:00
Hakim El Hattab
23c2d2795c navigationMode documentation improvements 2019-01-23 10:43:05 +01:00
Hakim El Hattab
481208f43f hide vertical arrows when navigationMode is 'linear' #2307 2019-01-23 10:30:29 +01:00
Hakim El Hattab
2fa3ab6a6b documentation for navigationMode #2307 2019-01-23 10:14:40 +01:00
Hakim El Hattab
51b1658a60 'gridNavigation' and 'simpleNavigation' merged into 'navigationMode' setting #2307 2019-01-23 09:58:10 +01:00
Hakim El Hattab
4c3f778e6e refactor keyboard listener conditions 2019-01-22 15:43:42 +01:00
Hakim El Hattab
fef15ea9d1 Merge pull request #2307 from reyerstudio/feature/shortcuts@dev
Enable simpleNavigation
2019-01-22 15:21:31 +01:00
Hakim El Hattab
baac3413ed upgrade to socket.io 2.2.0 #2257 2019-01-22 15:05:13 +01:00
Hakim El Hattab
ddd9f818f3 hide body overflow 2019-01-22 12:05:57 +01:00
Hakim El Hattab
41858b91d5 adjust how global height is styled 2019-01-22 10:02:08 +01:00
Hakim El Hattab
5002304fb1 correct height of reveal.js on mobile devices, fixes vertical overflow 2019-01-22 09:45:33 +01:00
Stéphane Este-Gracias
65584ff3a9 Enable simpleNavigation 2019-01-21 21:57:20 +01:00
Stéphane Este-Gracias
cf4af0fbcd Fix test after upgrading marked to 0.6.0 2019-01-20 19:29:46 +01:00
Stéphane Este-Gracias
a86dab0363 Upgrade marked to 0.6.0 2019-01-20 19:28:27 +01:00
Mario Wolff
126365627b fixed documentation on resize event 2019-01-15 13:18:55 +01:00
Mario Wolff
abee356e42 emmit resize event if scale changed 2019-01-15 13:13:19 +01:00
Hakim El Hattab
c36caef5e7 2019 2019-01-10 14:58:38 +01:00
Hakim El Hattab
10e44aabfc remove pinch gesture for triggering overview mode on touch devices, enables regular mobile pinch-to-zoom 2019-01-10 14:43:33 +01:00
Hakim El Hattab
9712cc9ad6 whitespace 2019-01-07 14:43:46 +01:00
Hakim El Hattab
65938f388b Merge pull request #1188 from sanand0/master
Display .stretch images in overview mode. Fix #1187
2019-01-07 14:41:45 +01:00
Hakim El Hattab
b645828707 ensure history api is available, default to hash: true with no history in demo #2286 2018-12-19 11:04:29 +01:00
Hakim El Hattab
6ef565c9fb Merge pull request #2286 from asottile/hash_without_history_2211
Add new 'hash: true' option which uses replaceState for url
2018-12-19 10:52:15 +01:00
Hakim El Hattab
7eb74ac335 correct variable name in inline comment 2018-12-19 10:41:13 +01:00
Hakim El Hattab
dedad930e3 add section about vertical slides and gridNavigation to readme 2018-12-19 10:37:30 +01:00
Hakim El Hattab
665dfb9cd6 add gridNavigation config to configure navigation between adjacent vertical stacks 2018-12-19 09:38:15 +01:00
Hakim El Hattab
db9c346b41 optimization; avoid reading computed styles unless necessary 2018-12-18 14:21:11 +01:00
Hakim El Hattab
9f1856d55b fix notes layout when container isnt as wide as viewport 2018-12-18 10:14:18 +01:00
Hakim El Hattab
6fe0cbc0dd prefer vh for speaker notes layout 2018-12-17 12:58:55 +01:00
Hakim El Hattab
c2270cc0c5 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2018-12-12 10:00:56 +01:00
Hakim El Hattab
0b3e7839eb note about backticks to avoid LaTeX <> Markdown syntax conflicts #1359 2018-12-12 09:59:45 +01:00
Anthony Sottile
fd6245bb28 Add new 'hash: true' option which uses replaceState for url
Resolves #2211
2018-12-02 16:49:06 -08:00
Hakim El Hattab
87d6af2cb4 Merge pull request #2266 from f00ale/custom_code_font
Make code font customizable for themes.
2018-11-21 08:33:56 +01:00
Hakim El Hattab
82076c5a0b demo presentation now refers to correct zoom.js shortcut for linux #2280 2018-11-21 08:29:17 +01:00
Hakim El Hattab
8ac3383bee add getRevealElement API method 2018-11-16 10:39:43 +01:00
Hakim El Hattab
f042a8c394 add cmd/ctrl + arrow key shortcuts to first/last slides 2018-11-13 10:48:23 +01:00
Hakim El Hattab
b6ce0a9724 fix concave/convex transitions on vertical slides #1947 2018-11-08 14:05:53 +01:00
Hakim El Hattab
1c07fccc35 reset css in default index.html 2018-11-05 08:59:19 +01:00
Hakim El Hattab
bc2477bf10 fix no-transform mode 2018-10-31 09:20:12 +01:00
Hakim El Hattab
2b61dde83b add audio autoplay test 2018-10-31 08:59:47 +01:00
Arno Lepisk
8e5bdcc2bb Make code font customizable for themes. 2018-10-30 22:03:13 +01:00
Hakim El Hattab
42e796afb2 dispatch state events after current slide has updated #2264 2018-10-26 11:29:08 +02:00
Hakim El Hattab
6abc6e0058 move reset.css out of reveal.css to make it optional #1952 #2248 2018-10-25 13:34:03 +02:00
Hakim El Hattab
4ac153c46f Merge pull request #2263 from mbotsch/fix-readURL
Fix if-statement in readURL
2018-10-25 13:00:03 +02:00
Mario Botsch
8a35a1e1ed Fix nested if-statement in readURL that caused slide(h,v) to be
called even when the current slide is the target slide.
2018-10-24 23:22:11 +02:00
Hakim El Hattab
7d66999c7f syntax tweak 2018-10-11 11:32:23 +02:00
Hakim El Hattab
387455b755 replace while with forEach loop 2018-10-11 11:32:16 +02:00
Hakim El Hattab
a4dc1c6440 fix #1590 2018-10-11 11:24:54 +02:00
Hakim El Hattab
62cd74a890 add note about lazy loading iframes #1672 #1938 2018-10-09 11:08:09 +02:00
Hakim El Hattab
7b707696b4 automatically hide the mouse pointer after 5s of inactivity (#1837) 2018-10-08 09:58:06 +02:00
Hakim El Hattab
5890f602b3 Merge pull request #2090 from bnjmnt4n/math
Allow users to customise MathJax options.
2018-10-08 08:41:08 +02:00
Hakim El Hattab
e7a365255f Merge pull request #2251 from oyron/2229-speaker-notes-bug
Give focus to previously opened speaker notes (fixes #2229)
2018-10-08 08:32:39 +02:00
oyron
f32cd8586d Handle previously opened notes window, by giving focus. 2018-10-05 15:18:08 +02:00
Hakim El Hattab
fb089e7083 fix build error 2018-10-04 15:43:58 +02:00
Hakim El Hattab
196d2a3971 remove classlist polyfill, cross browser support is good enough now 2018-10-04 14:54:35 +02:00
Hakim El Hattab
01ceba3f73 remove mention of head.js in readme 2018-10-04 14:48:39 +02:00
Hakim El Hattab
29b0e86089 remove head.min.js in favor of simple built-in script loader 2018-10-04 14:48:01 +02:00
Hakim El Hattab
d5cf3fa13c formatting and tweaks for #2104 2018-10-04 13:26:22 +02:00
Hakim El Hattab
8582c9aac8 resolve notes merge conflict 2018-10-04 12:32:37 +02:00
Hakim El Hattab
90fc0bc466 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2018-10-03 12:53:07 +02:00
Hakim El Hattab
c35cce54a5 Merge pull request #2231 from esthor/patch-1
bring install instructions to top, as is tradition
2018-10-03 12:48:41 +02:00
Hakim El Hattab
c9ab489ba2 Merge pull request #2245 from rollandf/master
Fix typo
2018-10-03 12:44:53 +02:00
Hakim El Hattab
f089e1b228 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2018-10-03 12:44:26 +02:00
Hakim El Hattab
436b41a8fc dont refer to outdated speaker notes style in readme #2244 2018-10-03 12:43:00 +02:00
Fred Rolland
7b2769901e Fix typo 2018-10-02 17:52:51 +03:00
Erik
ed581add7f bring install instructions to top, as is tradition
The Install was waaaay at the bottom, which didn't make sense to scroll through all the detailed documentation, just to find how to get started with an install.
2018-09-18 16:33:16 -04:00
Hakim El Hattab
7dbf519104 fix css conflict 2018-08-21 09:27:55 +02:00
Hakim El Hattab
4b1866b040 Merge pull request #2218 from eldios/patch-1
Fixed broken link to markdown options doc
2018-08-17 09:57:54 +02:00
Lele
b0ebb7deed Fixed broken link to markdown options doc
Fixed broken link to markdown options doc
2018-08-16 14:34:46 +02:00
Hakim El Hattab
b003a54f91 Merge pull request #2215 from anderslemke/let-resume-follow-controls
Only show resume on pause if controls enabled
2018-08-16 11:46:46 +02:00
anderslemke
f52460a6fd Only show resume on pause if controls enabled 2018-08-15 19:58:18 +02:00
Hakim El Hattab
249f013959 fix detection of named links (closes #1655) 2018-08-01 10:55:59 +02:00
Hakim El Hattab
2c5396b7d3 3.7.0 2018-08-01 10:37:51 +02:00
Hakim El Hattab
72b05a3245 Merge pull request #2171 from tristansokol/tristans/add-all-transitions
add a full list of transitions to readme
2018-08-01 10:36:07 +02:00
Hakim El Hattab
b6aa0cac23 Merge branch 'dev' of github.com:hakimel/reveal.js 2018-08-01 10:34:55 +02:00
Hakim El Hattab
f6f7f58537 Merge branch 'master' of github.com:hakimel/reveal.js 2018-07-25 10:56:02 +02:00
Hakim El Hattab
b9bb353a11 add 'resume presentation' button to pause overlay 2018-07-02 11:08:45 +02:00
Hakim El Hattab
fd95c8c266 use absolute positioning for slide number 2018-06-21 10:07:38 +02:00
Hakim El Hattab
be87adcdf8 rename new fragment style 2018-06-13 14:12:28 +02:00
Hakim El Hattab
078a7520cd refactor fragment pdf exporting to support multiple fragments with same index #1955 2018-06-12 20:44:49 +02:00
Hakim El Hattab
3680f1ad10 merge #1955 with minor changes 2018-06-11 12:35:11 +02:00
Hakim El Hattab
a86146180f Merge branch 'master' of https://github.com/koehlma/reveal.js into dev 2018-06-11 12:16:41 +02:00
Hakim El Hattab
a9e95e7e6c merge conflicts 2018-06-11 11:02:21 +02:00
Hakim El Hattab
4bea8e17e8 add 'fade-in-then-half-out' fragment style, 'current-visible' was renamed to 'fade-in-then-out' 2018-06-11 10:59:31 +02:00
Hakim El Hattab
a82c4333ed Merge pull request #2141 from marcvangend/marcvangend-clarify-notes-regex
Clarify the meaning of the notes?: regex
2018-06-11 10:04:58 +02:00
Tristan Sokol
27553e2fcb add a full list of transitions to readme 2018-06-05 09:30:02 -07:00
Hakim El Hattab
4672801229 new syncFragments api method 2018-05-31 10:35:09 +02:00
Hakim El Hattab
30b670cf42 flatten slide number when there are only vertical slides 2018-05-24 09:21:42 +02:00
Hakim El Hattab
3c5c50f3fe Merge pull request #2158 from denehyg/issue-2157
Fix timer when speaker notes window opened via RevealNotes.open()
2018-05-07 11:06:16 +02:00
Greg Denehy
ee63b2ac60 Fixed notes timer when speaker notes window opened via RevealNotes.open() 2018-05-05 17:38:37 +09:30
Hakim El Hattab
667c83f1b7 refactor code to match new background dom structure 2018-05-03 15:45:31 +02:00
Hakim El Hattab
0bbcc6b594 add Reveal.syncSlide 2018-05-03 15:25:54 +02:00
Hakim El Hattab
042fbde61b data-background-content-opacity -> data-background-opacity 2018-05-03 11:02:36 +02:00
Hakim El Hattab
4ba0d73345 add , adds wrapper element around background images/videos/iframes 2018-04-27 15:53:02 +02:00
Hakim El Hattab
de41f6cf50 smaller font size for sub/sup 2018-04-24 14:56:03 +02:00
Hakim El Hattab
5771ae39f0 speaker view has visible connection status, times out with error after 5s 2018-04-24 14:23:28 +02:00
Hakim El Hattab
f1133f0e10 support interactive iframe backgrounds in vertical stacks 2018-04-17 09:46:55 +02:00
Hakim El Hattab
2a57223939 revise readURL to handle one-based indices 2018-04-16 09:58:03 +02:00
Hakim El Hattab
531d1e8791 prevent linked slide numbers from changing color 2018-04-16 09:48:37 +02:00
Hakim El Hattab
f713d9d67d Merge pull request #2133 from sean-parent/master
Adding support for hash linked slideNumber
2018-04-16 09:31:05 +02:00
Sean Parent
97c1a0ecc1 Merge branch 'dev' into master 2018-04-13 07:55:02 -07:00
marcvangend
ceb1738a0f Clarify the meaning of the notes?: regex 2018-04-01 20:03:25 +02:00
Hakim El Hattab
397feab8b4 gracefully handle duplicate slide id's 2018-03-27 14:21:41 +02:00
Sean Parent
64b2a27455 Made one based indexing optional 2018-03-23 10:07:42 -07:00
Quentin PROUST
93cacaa40c Print background in pdf (#2131)
* Print background in pdf

Pull request to integrate issue https://github.com/hakimel/reveal.js/issues/1686. Adding the workaround to the theme template to make it work for every theme.

* apply suggestion of @hakimel
2018-03-23 13:50:42 +01:00
Hakim El Hattab
1257ee7e27 code formatting 2018-03-22 11:58:15 +01:00
Hakim El Hattab
4cb0d52c73 Merge branch 'URI-encode-name-hash' of https://github.com/nnormand/reveal.js into dev 2018-03-22 11:56:50 +01:00
Hakim El Hattab
ba0e432542 formatting 2018-03-22 11:55:44 +01:00
Hakim El Hattab
a2e69a4b42 Merge pull request #2097 from bnjmnt4n/docs/readme
Cleanup readme to make it easier to read/edit.
2018-03-22 11:51:05 +01:00
Hakim El Hattab
3bbf969686 Merge pull request #2114 from ChumpChief/standardized-pointer
Prefer W3C pointer events and updates to match the standard definition
2018-03-22 11:47:19 +01:00
Hakim El Hattab
49251078f3 remove legacy vendor prefixes from pdf css 2018-03-22 11:43:07 +01:00
Hakim El Hattab
8bf1cc601a Merge pull request #2128 from craigsdennis/feature/update-copyright-date
Updates copyright to 2018
2018-03-22 11:16:41 +01:00
Hakim El Hattab
6dbc593280 disableLayout comment tweak 2018-03-22 11:10:27 +01:00
Steve Hartzog
9dbccd6978 add support for overriding the default layout (#2121)
* add support for overriding the default layout
New `overrideLayout` option (if true) will prevent h/w calcs.

* fix error if options are empty

* Implement requested changes
Rename overrideLayout to disableLayout and remove code to unset display
2018-03-22 11:06:19 +01:00
Sean Parent
443b4475bc Adding support for hash linked slideNumber 2018-03-21 18:08:16 -07:00
Hakim El Hattab
ea57e697a1 Revert "remove pdf height offset"
This reverts commit f76b4fda93.
2018-03-20 10:09:47 +01:00
craigsdennis
8ff5fe4986 Updates copyright to 2018 2018-03-16 22:41:16 -07:00
Hakim El Hattab
f76b4fda93 remove pdf height offset 2018-03-16 13:52:19 +01:00
Hakim El Hattab
511397c177 prevent missing 'present' class when navigating to same slide twice 2018-03-14 12:03:42 +01:00
Matt Rakow
389c3f52b5 Prefer W3C pointer events, remove pointerEnabled references (it is not part of the standard), unconditional event removal 2018-03-07 09:18:26 -08:00
Hakim El Hattab
0282413b69 fix autoplay of inline videos in ios 2018-03-05 14:59:32 +01:00
Hakim El Hattab
5848a432d9 Merge branch 'patch-1' of https://github.com/Jmuccigr/reveal.js into dev 2018-02-22 10:08:02 +01:00
Martin Jurča
250580fc4c added missing documentation 2018-02-20 16:08:29 +01:00
Martin Jurča
6a2c5b4de8 documentation 2018-02-20 10:30:56 +01:00
Martin Jurča
8468d82433 fixed showing speaker's view with timings/pacing while serving the presentation from the file system 2018-02-20 10:29:16 +01:00
Benjamin Tan
1427f7a1ae Cleanup readme to make it easier to read/edit.
- Use `single backticks` consistently for inline code snippets.
- Add double linefeeds before level 2 headings.
- Add a single linefeed after each heading.
- Minor docs edits.
2018-02-14 18:36:18 +08:00
Hakim El Hattab
325162692e navigateNext no longer gets stuck on first stack when looping is enabled 2018-02-12 13:49:33 +01:00
John Muccigrosso
5d273cfb29 Background repeat & position to parallax background 2018-02-10 12:32:16 -05:00
Benjamin Tan
d5f4edeeef Merge pull request #1836 from RobertBaron/background-whitespace-uri
Allow whitespace on background-images, w3 compliance
2018-02-09 20:05:26 +08:00
Benjamin Tan
b2d532ea28 Allow users to customise MathJax options.
Ref. #1856, #2006, #2045.

This is a more open approach to allow customisation of all MathJax options instead of select options only.
2018-02-08 20:54:21 +08:00
Benjamin Tan
7cd2c9138d head.js: Remove source map URL since it doesn't exist.
This prevents additional requests from devtools when debugging code.
2018-02-08 11:22:11 +08:00
Benjamin Tan
18e7dd2173 Cleanup code style. 2018-02-08 11:22:01 +08:00
Benjamin Tan
fb97d99bff Simplify Travis test script. 2018-02-08 11:20:41 +08:00
Hakim El Hattab
27aba10756 fix looping of presentations that only have vertical slides 2018-02-07 13:45:57 +01:00
Hakim El Hattab
5eba331935 Merge branch 'fragment-in-url' of https://github.com/dougalsutherland/reveal.js into dev 2018-02-07 10:33:19 +01:00
Benjamin Tan
496db06441 head.js: Remove source map URL since it doesn't exist.
This prevents additional requests from devtools when debugging code.
2018-02-07 13:04:15 +08:00
Benjamin Tan
7991693bde Docs: add note on how to enable/disable preview links individually.
Closes #2005.
2018-02-07 12:51:14 +08:00
Benjamin Tan
410f7767b9 Docs: mention that syntax highlighting requires CSS theme file.
Closes #2075.
2018-02-06 22:34:25 +08:00
Benjamin Tan
57a4c45cf6 Docs: avoid recommending global Grunt installation.
Closes #1951.
2018-02-06 22:12:35 +08:00
Benjamin Tan
80bc1971e0 Docs: Add note about Windows carriage returns.
Closes #1808.
2018-02-06 19:39:03 +08:00
Benjamin Tan
4dabd439d2 Fix testing on Windows machines.
Windows carriage return line endings were not being tested for.

Fixes #2087.
2018-02-01 20:28:20 +08:00
Hakim El Hattab
e704b3ffc8 fix bug where left/right arrows appeared when there were no horizontal slides 2018-01-25 09:59:04 +01:00
Hakim El Hattab
de746bb642 reorganize config options 2018-01-25 09:26:10 +01:00
Hakim El Hattab
4232f41abd Merge pull request #2080 from bnjmnt4n/update-deps
Update dependencies.
2018-01-24 15:52:40 +01:00
Benjamin Tan
f9d0766637 Update QUnit to 2.5.0 and grunt-contrib-qunit to 2.0.0. 2018-01-22 22:38:32 +08:00
Benjamin Tan
f0fa6fb226 Update grunt-contrib-uglify. 2018-01-22 22:38:30 +08:00
Benjamin Tan
e382d5cfab Update dependencies. 2018-01-22 22:38:29 +08:00
Hakim El Hattab
e3205a55be Merge pull request #2078 from bnjmnt4n/data-background
Allow `data-background` images to load even if there is whitespace at…
2018-01-22 10:53:44 +01:00
Benjamin Tan
6816a0205e Allow data-background images to load even if there is whitespace at the end.
Fixes #2032.
2018-01-22 17:17:08 +08:00
Hakim El Hattab
40e5544776 Merge pull request #2077 from bnjmnt4n/js-load
Allow JS files with query strings to be loaded.
2018-01-22 10:09:46 +01:00
Benjamin Tan
fd7894fa13 Allow JS files with query strings to be loaded.
Fixes #1944.
2018-01-22 16:33:10 +08:00
Dougal J. Sutherland
d68423f310 fix fragment handling when desired fragment is 0 2018-01-21 18:03:48 +00:00
Dougal J. Sutherland
260f287926 optionally put the fragment in the URL 2018-01-04 20:09:01 +00:00
Hakim El Hattab
0c946ae18b fix missing theme line-height when printing #1967 2017-12-04 14:03:16 +01:00
Hakim El Hattab
7a0b4a56f9 prevent cmd+r in notes window since reloading breaks the view #1958 2017-12-04 13:57:19 +01:00
Hakim El Hattab
edc9c0a8fd Merge pull request #1958 from ThomasWeinert/feature/block_f5_in_notes
Block F5 in speaker notes window, avoid disconnects
2017-12-04 13:46:04 +01:00
Hakim El Hattab
09471a0508 Merge branch 'patch-1' of https://github.com/keradus/reveal.js into dev 2017-12-04 13:44:06 +01:00
Dariusz Rumiński
aee62ff0af .gitignore - ignore package-lock.json file
Ignore lock file of newer node versions
2017-12-02 20:36:36 +01:00
Hakim El Hattab
137e383950 Merge pull request #2045 from jgm/issue2026
Allow tex2jax options to be passed into math plugin.
2017-12-01 14:37:47 +01:00
John MacFarlane
773569b4a2 Allow tex2jax options to be passed into math plugin.
Closes #2026.

This does not change the default behavior of the math plugin,
but it allows $ delimiters to be disabled (which is usually
what you want, since otherwise normal uses of $ for currency get
treated as math delimiters).

To use:

    Reveal.initialize({
      math: {
        tex2jax: { inlineMath: [['\\(','\\)']],
                   skipTags: ['script','noscript','style',
                              'textarea','pre'] }
            },
      etc.
      });
2017-11-29 21:57:29 -08:00
Hakim El Hattab
1f1f86ec73 Merge branch 'issue_2041' of https://github.com/denehyg/reveal.js into dev 2017-11-29 09:54:48 +01:00
Hakim El Hattab
c966c118fa minor formatting tweaks 2017-11-29 09:46:45 +01:00
Hakim El Hattab
6028844452 Merge branch 'plugin-key-bindings' of https://github.com/denehyg/reveal.js into dev 2017-11-29 09:38:05 +01:00
Greg Denehy
8579fc773d Fixed issue with getProgress() when called from slidechanged event on edge case 2017-11-25 11:07:09 +10:30
Hakim El Hattab
a0a9aa7821 optimize use of getSlideBackground by avoiding index lookup 2017-11-23 15:45:15 +01:00
Hakim El Hattab
a0c013606e add inline and external markdown images to example #2039 2017-11-23 11:12:54 +01:00
Hakim El Hattab
65bdccd580 lab.hakim.se/reveal-js -> revealjs.com 2017-11-22 14:46:55 +01:00
Hakim El Hattab
8a63686017 3.6.0 2017-11-22 14:10:33 +01:00
Hakim El Hattab
a03e803628 make it possible to load/unload slides via the api 2017-11-21 15:38:44 +01:00
Hakim El Hattab
4022cbfe84 simplify logic for finding slide backgrounds 2017-11-21 15:29:40 +01:00
Nicolas Normand
fa8a7334ce URI encode name hash 2017-11-17 11:59:21 +01:00
Hakim El Hattab
28d6a7775b Merge branch 'update-css' of https://github.com/sfairchild/reveal.js into dev 2017-11-09 11:52:11 +01:00
Hakim El Hattab
afce29d79a Merge branch 'master' of github.com:hakimel/reveal.js into dev 2017-11-09 11:51:59 +01:00
Hakim El Hattab
9d0a3d7d5e Merge pull request #1983 from ssfrr/patch-1
adds note about necessary markdown scripts to README
2017-11-09 11:48:51 +01:00
Hakim El Hattab
41e86a2a22 Merge pull request #2017 from hoeggi/patch-1
Update README.md
2017-11-09 11:47:38 +01:00
Hakim El Hattab
1c8edfc8e4 Merge pull request #1957 from crowchirp/patch-1
corrected minor typo in readme file
2017-11-09 11:46:57 +01:00
Hakim El Hattab
463770cc53 Merge pull request #2029 from lechten/export-isSpeakerNotes
Export isSpeakerNotes
2017-11-09 11:41:08 +01:00
Hakim El Hattab
3d1d7683b2 reconfiguring no longer unloads iframes on current slide 2017-11-09 11:40:25 +01:00
Hakim El Hattab
376d140b2a Merge pull request #2030 from lechten/registersearchkey
Register search key shortcut for help overlay
2017-11-09 11:30:38 +01:00
Hakim El Hattab
3beda63a7d allow to be called directly before or after (closes #2021) 2017-11-09 10:26:35 +01:00
Jens Lechtenbörger
1002d39e7c Register search key shortcut for help overlay 2017-11-05 17:45:18 +01:00
Jens Lechtenbörger
44a5673e6f Export isSpeakerNotes 2017-11-05 10:31:43 +01:00
hoeggi
8041759b8b Update README.md 2017-10-28 19:57:35 +02:00
Hakim El Hattab
4a4719b587 always show media controls on mobile devices 2017-10-04 11:13:09 +02:00
Spencer Russell
665d3a151d adds note about necessary markdown scripts to README 2017-09-11 15:13:37 -04:00
Hakim El Hattab
56504b50a9 support negative values in query config overrides 2017-09-07 10:33:44 +02:00
Sean Fairchild
f9a4a27087 Prevent text-transform inside code tags 2017-09-06 10:50:39 -04:00
Thomas Weinert
c0109d948f Block F5 in speaker notes window, avoid disconnects 2017-08-12 13:42:55 +02:00
Chandan Rai
04dcc48fa9 corrected minor typo in readme file 2017-08-10 00:17:08 +05:30
Maximilian Köhl
08e0f5e47b fix indent: replace spaces with tabs 2017-08-08 22:53:32 +02:00
Maximilian Köhl
a2cf23b30c PDF export: add option to export one page per fragment 2017-08-08 22:47:10 +02:00
Hakim El Hattab
bfd431a0c4 add option for disabling all forms of auto-sliding 2017-07-27 08:42:40 +02:00
Hakim El Hattab
8725593805 localstorage feature test in notes plugin, fixes speaker view error in safari 2017-07-13 20:19:16 +02:00
Hakim El Hattab
b04489b129 zoom.js works on main wrapper element 2017-06-19 11:06:58 +02:00
Hakim El Hattab
76eea30083 zoom.js uses ctrl+click for linux, alt+click for others #1909 2017-06-19 09:52:56 +02:00
Hakim El Hattab
af6754bfb7 simplify point zoom, switch back to alt + click shortcut for os x support #1909 2017-06-19 09:45:52 +02:00
Hakim El Hattab
a781b6a22b clear existing matches when searching for empty string #1909 2017-06-19 09:43:29 +02:00
Hakim El Hattab
7d0d3c24ca Merge branch 'master' of https://github.com/linux-man/reveal.js into dev 2017-06-19 09:36:25 +02:00
Hakim El Hattab
af7c33b902 unload lazy loaded videos that are moved out of view 2017-06-14 19:11:08 +02:00
Hakim El Hattab
dc17129082 themes use default quotation marks for <q> #1720 2017-06-14 10:42:51 +02:00
Hakim El Hattab
1233092223 prevent mobile safari header from covering presentation content 2017-06-13 09:43:05 +02:00
Hakim El Hattab
9342d19b5a fix centering of edge-aligned controls 2017-06-12 10:22:47 +02:00
Hakim El Hattab
6ae4ad69d2 change event listener syntax #1917 2017-06-12 09:17:46 +02:00
Hakim El Hattab
5e279efdf3 Merge branch 'issue1896' of https://github.com/OleMussmann/reveal.js into dev 2017-06-12 09:11:24 +02:00
Hakim El Hattab
2961f00946 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2017-06-12 09:05:37 +02:00
Hakim El Hattab
43eada7990 Merge pull request #1898 from bentsai/patch-1
Fix typo
2017-06-12 08:53:09 +02:00
Hakim El Hattab
9139bc32de alias 'notes:' alias for md speaker note separator #1913 2017-06-07 15:43:25 +02:00
Ole Mussmann
b279a47a76 patch to allow multiplexing on URL load 2017-06-06 10:36:40 +02:00
Hakim El Hattab
9ab14374e5 change condition for detecting when there are horizontal slides 2017-06-02 12:13:41 +02:00
Hakim El Hattab
0388c96e60 'showNotes' does nothing when there are no notes 2017-05-24 10:05:16 +02:00
Hakim El Hattab
53c56510ed larger speaker notes font on big screens 2017-05-23 13:14:25 +02:00
Hakim El Hattab
b64c35ed0b tweak control spacing 2017-05-22 11:50:18 +02:00
Hakim El Hattab
fab28362ce highlight.js 9.0.0 -> 9.11.0 2017-05-22 11:34:24 +02:00
linux-man
ce467b53bc Remove comment 2017-05-21 19:49:07 +01:00
linux-man
9c3a65744c Modified Zoom
Block dimension calculation is not accurate, so zoom is made on mouse coordinates
Change default modifier to ctrl - alt don't work on Linux
New parameter zoomLevel: default 2
2017-05-21 19:13:41 +01:00
linux-man
e3a3d3aa0a Better Search
Open/close with Control+Shift+f
Find words inside SPAN
Don't duplicate findings
2017-05-21 19:00:12 +01:00
Hakim El Hattab
64bcfc4f69 change default color of controls to match legacy 2017-05-19 16:14:37 +02:00
Hakim El Hattab
522db9513c remove border from notes contain when printing on separate page 2017-05-19 11:21:40 +02:00
Hakim El Hattab
955075bfc4 adjust autplay position when notes are bottom-aligned 2017-05-19 10:46:13 +02:00
Hakim El Hattab
b1a7b0799f low width speaker notes mode no longer uses vh 2017-05-19 10:20:06 +02:00
Hakim El Hattab
9a7d491ede adjust speaker notes layout on mobile devices 2017-05-19 09:51:01 +02:00
Hakim El Hattab
7ae18c6b1e 'no notes on this slide' placeholder 2017-05-18 16:03:20 +02:00
Hakim El Hattab
052a3f0c71 speaker notes tweak 2017-05-18 16:00:48 +02:00
Hakim El Hattab
b7b3fe3ed4 comment typo 2017-05-18 15:40:17 +02:00
Hakim El Hattab
453a888797 fix error with multiple decimal em in safari 2017-05-18 15:35:25 +02:00
Hakim El Hattab
6dde00fb2e improve controls on touch devices 2017-05-18 14:11:48 +02:00
Hakim El Hattab
fb1b8a2790 revise progress to make them easier to override 2017-05-18 09:58:25 +02:00
Hakim El Hattab
a5e175d59f fix up arrow position 2017-05-18 09:42:01 +02:00
Hakim El Hattab
d770f32bb9 control layout tweaks 2017-05-17 17:10:17 +02:00
Hakim El Hattab
c966672aa4 adjust control layouts when there are no vertical/horiozontal slides 2017-05-17 15:20:45 +02:00
Hakim El Hattab
b784bd56d1 more flexible control size using em 2017-05-17 14:45:01 +02:00
Hakim El Hattab
13733edaa8 control opacity tweak 2017-05-16 15:51:20 +02:00
Hakim El Hattab
67507ccb9d controlsHints -> controlsTutorial 2017-05-16 15:40:50 +02:00
Hakim El Hattab
9e013ccbb2 in/out transitions for controls 2017-05-16 15:31:05 +02:00
Hakim El Hattab
617c17be3c add controlsHint option, animates vertical arrow first time we encounter a vertical slide 2017-05-16 15:04:32 +02:00
Hakim El Hattab
58dc6b7c36 adjust controls layout when there are no vertical or horizontal slides in the deck 2017-05-16 09:45:37 +02:00
Hakim El Hattab
f8b5813e59 prevent flicker on hover 2017-05-16 09:45:37 +02:00
Hakim El Hattab
16c03a5b03 spacing adjustment 2017-05-16 09:45:37 +02:00
Hakim El Hattab
92049d8244 fix unclickable slides in overview when controls were edge-aligned 2017-05-16 09:45:37 +02:00
Hakim El Hattab
2a0a6cbabc reduce control spacing 2017-05-16 09:45:37 +02:00
Hakim El Hattab
54a2137c0d fix responsive issue with speaker notes 2017-05-16 09:45:37 +02:00
Hakim El Hattab
2cc5ae946b new, fixed, speaker notes layout 2017-05-16 09:45:37 +02:00
Hakim El Hattab
44a355b6e9 'controls-placement' -> 'controls-layout', cut back on controls spacing 2017-05-16 09:45:37 +02:00
Hakim El Hattab
10545d41cc simplify control styling using currentColor 2017-05-16 09:45:37 +02:00
Hakim El Hattab
2155415767 more flexible back arrow controls option 2017-05-16 09:45:37 +02:00
Hakim El Hattab
e45a425575 default to bottom right controls, rename soften arrows option 2017-05-16 09:45:37 +02:00
Hakim El Hattab
4fb8e78eb4 collapse control element size when corner aligned 2017-05-16 09:45:37 +02:00
Hakim El Hattab
a9fcaa6f9e new controls are used by default, add config options 2017-05-16 09:45:37 +02:00
Hakim El Hattab
8a09557699 control size tweaks 2017-05-16 09:45:37 +02:00
Hakim El Hattab
69c72b9e08 invert colors of controls based on current background 2017-05-16 09:45:37 +02:00
Hakim El Hattab
ce4537f883 new controls responsively move to bottom right for small displays 2017-05-16 09:45:37 +02:00
Hakim El Hattab
1319016957 new optional controls aligned to screen edges 2017-05-16 09:45:37 +02:00
Hakim El Hattab
963e5c8678 correct target for cssmin 2017-05-16 09:44:36 +02:00
Ben Tsai
0d1be9920f Fix typo
"proceding" → "proceeding"
2017-05-10 20:36:45 -04:00
Hakim El Hattab
ada8003183 Merge pull request #1887 from tristansokol/tristans/add-useavailableport
adds `useAvailablePort` option when serving page with connect.
2017-05-05 14:11:07 +02:00
Hakim El Hattab
00570ea5ce Merge pull request #1884 from demoneaux/upgrade-deps
Upgrade Grunt dependencies and standardise on a consistent file format.
2017-05-05 14:10:24 +02:00
Tristan Sokol
d948c2cd6b adds useAvailablePort option when serving page with connect. 2017-05-02 17:54:29 -07:00
Benjamin Tan
b294323854 Upgrade Grunt dependencies and standardise on a consistent file format.
Closes #1226, #1538.
2017-05-01 12:16:30 +08:00
Greg Denehy
b86b667d25 Changes to fix failed jshint test related to Key Binding API 2017-04-30 19:42:45 +09:30
Greg Denehy
e16508477a Fixed notes.js to account for upstream updates 2017-04-30 17:51:38 +09:30
Greg Denehy
f8bc679182 Merge branch 'dev' into plugin-key-bindings 2017-04-30 17:42:16 +09:30
Greg Denehy
40a46e1c0c Added description of custom key binding API to readme 2017-04-30 17:19:01 +09:30
Greg Denehy
e48e1e19b9 Changed custom key binding config properties to use 'keyCode' instead of 'code' 2017-04-30 16:35:35 +09:30
Greg Denehy
8bf9986fa2 Pass through key event when calling keyboardCondition() to allow conditional function to filter on key codes 2017-04-30 15:24:42 +09:30
Greg Denehy
7297474b2e Added programatic support for custom key bindings with optional descriptions to be added to the help screen 2017-04-30 15:23:04 +09:30
Hakim El Hattab
360bc94006 new fix for prematurely autoplaying background videos 2017-04-27 18:49:20 +02:00
Hakim El Hattab
9f4ed56bb3 larger headings for background sections 2017-04-27 16:42:24 +02:00
Hakim El Hattab
caccf67d3a add for iframe backgrounds 2017-04-27 16:39:49 +02:00
Hakim El Hattab
b19dc7fc80 don't autoplay background videos in overview mode 2017-04-27 16:36:25 +02:00
Hakim El Hattab
8e93a1ddf9 3.5.0 2017-04-26 14:21:54 +02:00
Hakim El Hattab
0c3d89bfce minor tweak for #1564 2017-04-21 09:35:51 +02:00
Adam Spiers
715cf0ba11 optionally display pacing advice based on slide timings
Add an option to display advice on whether the current pace of the
presentation is on track for the right timing (shown as green), and if
not, whether the presenter should speed up (shown as red) or has the
luxury of slowing down (blue).

The pacing timer can be enabled by configuring by the `defaultTiming`
parameter in the `Reveal` configuration block, which specifies the
number of seconds per slide.  120 can be a reasonable rule of thumb.
Timings can also be given per slide `<section>` by setting the
`data-timing` attribute.  Both values are in numbers of seconds.

When the option is enabled, clicking on the timers will reset the timer
to the beginning of the current slide, i.e. as if pacing was perfectly
on track, not to zero as if the presentation had just begun.
2017-04-20 16:11:10 +01:00
Adam Spiers
921a605567 document clock and timer in speaker notes window 2017-04-20 15:18:15 +01:00
Adam Spiers
9c7fda43e9 don't show negative signs inside minutes/seconds elements 2017-04-20 15:18:15 +01:00
Adam Spiers
933eba8789 round decreasing timers to mirror increasing timers 2017-04-20 15:18:15 +01:00
Adam Spiers
1eada3b360 avoid deleting existing classes when muting time elements
and make muting work for negative values
2017-04-20 15:18:15 +01:00
Adam Spiers
b1b4ee270b don't mute minutes when hours is unmuted 2017-04-20 15:18:15 +01:00
Adam Spiers
89b0c5a8d0 use opacity for muted clock elements
This allows us to use different colours for different timers,
which will be useful when we add a pacing timer.
2017-04-20 15:18:15 +01:00
Adam Spiers
a161acaba9 extract time display code into new _displayTime() function
This will allow us to reuse the display code for displaying
an additional pacing timer.
2017-04-20 15:18:15 +01:00
Adam Spiers
eb23e58114 Allow popup window access to Reveal API 2017-04-20 15:18:15 +01:00
Adam Spiers
ef9cbbbbb9 add new getSlides() API
This can be used by plugins which are concerned with helping the
presenter with their pace.
2017-04-20 15:18:15 +01:00
Adam Spiers
40912ace1f clarify getTotalSlides() returns the number of slides 2017-04-20 15:18:15 +01:00
Adam Spiers
d75afd6108 expose getPastSlideCount() via public API
This can be used by plugins which are concerned with helping the
presenter with their pace.
2017-04-20 15:18:15 +01:00
Adam Spiers
eac37990e1 clarify meaning of getProgress() value 2017-04-20 15:18:15 +01:00
Hakim El Hattab
9bbd5f2735 formatting 2017-04-07 10:10:11 +02:00
Hakim El Hattab
2289b92961 Merge pull request #1851 from astone123/master
Fix data-background-video autoplay on iOS Safari
2017-04-07 10:02:58 +02:00
Hakim El Hattab
d1d44cf6b7 formatting 2017-04-07 09:55:55 +02:00
Hakim El Hattab
30f2af0ac5 Merge pull request #1844 from riezebosch/pdf-print-stretch
print-pdf layout slide contents to fit stretch elements
2017-04-07 09:54:39 +02:00
Hakim El Hattab
8ec5e00062 Merge pull request #1843 from riezebosch/pdf-print-callback
print-pdf using callback iso timer
2017-04-07 09:42:24 +02:00
Hakim El Hattab
1babc8d31c Merge pull request #1866 from christianp/mathjax-cdn
replace cdn.mathjax.org with cdnjs
2017-04-07 09:33:05 +02:00
Christian Lawson-Perfect
9495b64d2c replace cdn.mathjax.org with cdnjs
cdn.mathjax.org is shutting down: https://www.mathjax.org/cdn-shutting-down/

This changes the default MathJax URL in the math plugin, as well as
references in README.md and test/examples/math.html
2017-04-05 12:48:56 +01:00
Hakim El Hattab
c3e96f1f0e make pdf page height offset configurable 2017-04-04 14:02:54 +02:00
Hakim El Hattab
2584a6d970 new cli and in-browser pdf printing compatible fix for #1804 2017-04-04 13:37:01 +02:00
Hakim El Hattab
3ea7e2ff59 allow fullscreen for background iframes 2017-03-30 16:26:49 +02:00
Hakim El Hattab
a0a3b4f80d add autoPlayMedia config option, overrides individual autoplay settings 2017-03-23 11:44:02 +01:00
ADAM STONE
d9dd9a92fb Fix video background autoplay on iOS 2017-03-17 22:47:25 -04:00
Manuel Riezebosch
34f3773bf0 print-pdf layout slide contents to fit stretch elements
layout() and thereby layoutSlideContents() is never invoked
when isPrintingPdf() is true so stretch elements are not
sized correctly.
This is ensured now by invoking the layoutSlideContents
from SetupPDF(). There seems no need to scale down
like in other PR's is suggested.
2017-03-14 19:16:08 +01:00
Manuel Riezebosch
9a7c7ce93a print-pdf using callback iso timer
Use window.callPhantom icw page. onCallback to wait for pdf-ready event.
From: http://stackoverflow.com/a/28925479/129269
2017-03-14 18:54:04 +01:00
Hakim El Hattab
7e6fb9ec87 avoid npe on iframe postMessage 2017-03-14 09:06:39 +01:00
RobertBaron
f070ba47ec Allow whitespace on background-images, w3 compliance 2017-02-23 19:03:15 -06:00
Hakim El Hattab
b143e5976b tweaks to showSlideNumber config #1833 2017-02-20 11:49:36 +01:00
Hakim El Hattab
8f7e4bfd41 Merge branch 'slidenum' of https://github.com/malcomio/reveal.js into dev 2017-02-20 11:41:31 +01:00
Hakim El Hattab
5565d08612 note about deploying multiplex server with now #1830 2017-02-20 11:37:18 +01:00
Malcolm Young
95bca847d6 correct config name in README 2017-02-17 15:19:15 +00:00
Malcolm Young
da23d682c6 allow configuration of which view slide number appears on - fixes #1791 2017-02-17 15:08:57 +00:00
Hakim El Hattab
1cee8998a0 fix overview rendering issues in latest chrome #1649 2017-02-17 10:50:52 +01:00
Hakim El Hattab
fa70a7a517 phantom export throws error if reveal.js isn't present 2017-02-15 11:43:57 +01:00
Hakim El Hattab
bef8109506 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2017-02-15 11:19:25 +01:00
Hakim El Hattab
a349ff43c5 new phantom pdf export script that works with 3.4.0 #1815 2017-02-15 11:19:02 +01:00
Hakim El Hattab
313a23ba2b merge autoplay conflict #1771 2017-02-14 14:51:43 +01:00
Hakim El Hattab
909efab7df fix readme conflict 2017-02-14 14:42:22 +01:00
Hakim El Hattab
bc1ca1a58a updated pdf docs 2017-02-14 14:40:12 +01:00
Hakim El Hattab
2f54af4614 update readme re: pdf exports #1823 2017-02-14 14:38:57 +01:00
Hakim El Hattab
8b97ff3126 Merge pull request #1823 from gilxa1226/master
Update to README.md for PDF printing
2017-02-14 14:25:55 +01:00
Hakim El Hattab
5ad66f3779 docs for #1816 and remove showHelp 2017-02-09 11:37:47 +01:00
Hakim El Hattab
1749f0d019 Merge pull request #1816 from Frazer/patch-1
added toggleHelp function
2017-02-09 11:31:00 +01:00
Hakim El Hattab
adc326139a update deserialize regex to work with decimals 2017-02-08 12:56:51 +01:00
Frazer Kirkman
2a1303f3c1 added override parameter to toggleHelp function 2017-02-07 19:53:58 +01:00
gilxa1226
d7b34b6e0f Update README.md to include block for pdf printing 2017-02-07 07:44:52 -05:00
gilxa1226
bcfb65658f Update README.md 2017-02-07 07:43:41 -05:00
Frazer Kirkman
bede9a22e8 added toggleHelp function
this way a key can be given ability to toggleHelp on and off.  Previously Reveal.showHelp could open the help screen, but no way to close it.
2017-02-05 18:42:59 +01:00
Hakim El Hattab
9f99ac8b84 adjust comment for display config value #1325 2017-02-02 10:47:39 +01:00
Hakim El Hattab
8a0dca2ba0 Merge branch 'issue-1324' of https://github.com/mojavelinux/reveal.js into dev 2017-02-02 10:42:21 +01:00
Hakim El Hattab
cc43ff21ef Merge branch 'master' of https://github.com/Bramas/reveal.js into dev 2017-02-01 11:13:40 +01:00
Hakim El Hattab
2c9e226fab warning about cube/page being deprecated #1774 2017-02-01 10:33:50 +01:00
Hakim El Hattab
f496613dd3 improved fragment notes support #1636 2017-01-31 17:08:08 +01:00
Hakim El Hattab
c49f76d271 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2017-01-31 16:48:55 +01:00
Hakim El Hattab
1413cbc1a9 Merge pull request #1636 from traff/master
For a fragment: allow to show a separate note defined in it
2017-01-31 16:47:29 +01:00
Hakim El Hattab
dc159f2825 Merge pull request #1644 from rajgoel/dev
Turn off preview links locally
2017-01-31 16:45:07 +01:00
Hakim El Hattab
7daa0e04de make background videos work on ipad #1778 2017-01-31 16:24:06 +01:00
Hakim El Hattab
981a8b98e4 Merge pull request #1728 from opdavies/sass-extension
support .sass themes
2017-01-31 15:49:51 +01:00
Hakim El Hattab
581da02def Merge pull request #1764 from demoneaux/package-json
Shift `dependencies` to `devDependencies`.
2017-01-31 15:11:38 +01:00
Hakim El Hattab
eada86c8fd recommend using textarea wrapper for inline markdown #1780 2017-01-31 15:07:03 +01:00
Hakim El Hattab
02a6b0515e fix markdown typo, update comment #1780 2017-01-31 15:02:59 +01:00
Hakim El Hattab
37f3da6095 Merge branch 'patch-2' of https://github.com/ccqgithub/reveal.js into dev 2017-01-31 15:02:26 +01:00
Hakim El Hattab
3617eaccb6 note about showNotes in PDF exports #1800 2017-01-30 14:50:17 +01:00
Hakim El Hattab
fa01fa366a typo 2017-01-30 14:38:14 +01:00
Hakim El Hattab
c018d04197 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2017-01-30 14:33:52 +01:00
Hakim El Hattab
3bcd167ce9 Merge pull request #1803 from bitjson/patch-1
correct grunt option usage
2017-01-30 14:20:41 +01:00
Hakim El Hattab
cd36c9274f Merge branch 'master' of github.com:hakimel/reveal.js into dev 2017-01-25 11:01:40 +01:00
Hakim El Hattab
9f8e4d5742 3.4.1 2017-01-25 10:51:25 +01:00
Hakim El Hattab
953d302f8b adjust pdf margins instead of heights to fix #1804 2017-01-25 10:46:03 +01:00
Hakim El Hattab
84202fa072 adjust pdf margins instead of heights to fix #1804 2017-01-25 10:43:26 +01:00
Hakim El Hattab
d9dcff1503 additional fix for empty pages in pdf exports #1804 2017-01-24 15:29:34 +01:00
Hakim El Hattab
286b69b61f fix empty pages in pdf exports (closes #1804) 2017-01-24 15:29:27 +01:00
Hakim El Hattab
934c2e9730 additional fix for empty pages in pdf exports #1804 2017-01-24 15:27:37 +01:00
Hakim El Hattab
d4133f0160 fix empty pages in pdf exports (closes #1804) 2017-01-24 14:48:36 +01:00
Jason Dreyzehner
e3ca5e84a3 correct grunt option usage 2017-01-23 21:26:33 -05:00
Hakim El Hattab
a6ecbfa732 merge info links in index 2017-01-23 11:23:45 +01:00
Hakim El Hattab
08e6cc5a3c Merge pull request #1794 from pkubowicz/index-history
Remove 'history: true' from index.html
2017-01-23 11:16:48 +01:00
Hakim El Hattab
cb16f27dd3 Merge pull request #1768 from demoneaux/background-images
Allow background images without protocols to have query hashes/parameters.
2017-01-23 11:11:28 +01:00
Hakim El Hattab
e8164c1392 2017 2017-01-20 10:35:01 +01:00
Hakim El Hattab
20238ee1d6 make backgrounds (iframes) interactive when the foreground is empty 2017-01-19 12:16:30 +01:00
Hakim El Hattab
98de9327a7 remove unused argument 2017-01-19 12:08:28 +01:00
Hakim El Hattab
941b86b6c3 works with video, defaults to (same as for images) 2017-01-18 10:43:29 +01:00
Hakim El Hattab
84090b882f fix race condition by updating backgrounds after slide visibility 2017-01-17 18:37:43 +01:00
Hakim El Hattab
f9e5467000 prevent autoplaying backgrounds from playing if slide is hidden 2017-01-17 13:19:10 +01:00
Hakim El Hattab
a38207f1d7 wait for in-slide video/audio to load before playing, reuse same autoplay logic for slide backgrounds 2017-01-16 16:11:20 +01:00
Piotr Kubowicz
4afd854037 Remove 'history: true' from index.html
Readme says the default is 'history: false', so it may be surprising
for users - it's easy to miss the contradicting setting in index.html
2017-01-15 16:35:31 +01:00
Hakim El Hattab
568c7516f7 fix unclosed code block 2017-01-10 14:43:47 +01:00
Hakim El Hattab
fb8414f4cb 3.4.0 2017-01-10 13:47:33 +01:00
Hakim El Hattab
a144134b42 Merge branch 'dev' of github.com:hakimel/reveal.js 2017-01-10 13:45:52 +01:00
Season Chen
5f76234566 support complex markdown
support <textarea data-template> `some code` </textarea>
2016-12-23 13:08:23 +08:00
Hakim El Hattab
97bb6e9b58 fragments inherit visibility to avoid conflicts with parent slide visibility 2016-12-15 14:06:17 +01:00
Hakim El Hattab
f2bd9d2970 don't show error message while iframe fades in #1577 2016-12-13 16:16:51 +01:00
Hakim El Hattab
001d4d94d3 Merge branch 'add-refused-to-display-tips-to-link-preview' of https://github.com/Huxpro/reveal.js into dev 2016-12-13 15:57:43 +01:00
Hakim El Hattab
40c4db1e04 always use lowercase reveal.js 2016-12-13 15:52:34 +01:00
Hakim El Hattab
63d3b59ab2 Merge pull request #1767 from demoneaux/readme
Add note about head.js to readme.
2016-12-13 15:50:30 +01:00
Markku Roponen
962c6c133b #1770, set 'data-paused-by-reveal' attribute only for the media elements, which are not already in paused state. 2016-12-13 16:02:26 +02:00
Markku Roponen
da40eafccd #1770, added second argument for setAttribute 2016-12-12 16:44:24 +02:00
Markku Roponen
54bfad62d7 #1770, fixed function name. 2016-12-12 16:41:52 +02:00
Markku Roponen
6831f6c174 #1770, resume playback for paused media. 2016-12-12 16:30:07 +02:00
Benjamin Tan
441a26cf90 Allow background images without protocols to have query hashes/parameters.
Closes #1603.
2016-12-11 18:14:02 +08:00
Benjamin Tan
4d0f1adc40 Add note about head.js to readme.
Closes #1569.
2016-12-11 16:29:07 +08:00
Benjamin Tan
90b301d0a0 Enable passing options for parsing Markdown.
Closes #1163, #1495.
2016-12-08 17:41:55 +08:00
Benjamin Tan
22de402888 Shift dependencies to devDependencies.
The `reveal.js` npm module is typically installed to access the CSS/JS
assets for Reveal.js. For those that want to run the plugins, they would
clone the whole repository. Hence, it doesn’t make sense to include
those as `dependencies`, which will increase download times.

Closes #1734.
2016-12-08 15:26:16 +08:00
Benjamin Tan
713702a0ab Reduce required Node.js version to 4.0.0.
The development workflow can be used with Node 4+, not just Node 6. We
should avoid showing warnings and errors when users are installing this
package via npm/yarn.

Ref. #1729, #1743.
Closes #1725.
2016-12-06 11:38:17 +01:00
Hakim El Hattab
2bd6b563be Merge pull request #1760 from demoneaux/package-json
Reduce required Node.js version to 4.0.0.
2016-12-06 11:37:31 +01:00
Benjamin Tan
03ac4a2e8e Reduce required Node.js version to 4.0.0.
The development workflow can be used with Node 4+, not just Node 6. We
should avoid showing warnings and errors when users are installing this
package via npm/yarn.

Ref. #1729, #1743.
Closes #1725.
2016-12-06 18:12:41 +08:00
Hakim El Hattab
e4e5cc1083 Merge pull request #1740 from christinakayastha/feature/printing-remove-slide-number
Hide slide number when in paper or pdf print view
2016-12-01 10:36:03 +01:00
Hakim El Hattab
f0dfb5b5e3 merge package version conflicts 2016-12-01 10:34:02 +01:00
Hakim El Hattab
b4d46d2b7c update dependencies to work with latest node #1743 2016-12-01 10:32:44 +01:00
Hakim El Hattab
3de1521a39 Merge pull request #1743 from haf/patch-1
Bump node engine in packages.json
2016-12-01 10:31:44 +01:00
Hakim El Hattab
e460b2bd4b Merge pull request #1747 from spencermathews/feature/readme-defaults-fix
Defaults in README are not current
2016-12-01 10:23:44 +01:00
Hakim El Hattab
67ac871397 Merge pull request #1757 from daanmichiels/correct-copyright
include contributors in (c)
2016-12-01 10:22:44 +01:00
Hakim El Hattab
775d510c2f Merge pull request #1756 from jmpp/better-data-trim
Implementing a better data-trim
2016-12-01 10:18:50 +01:00
Daan Michiels
785dbddd28 correct copyright message to include contributors 2016-11-25 12:36:57 -06:00
J.M. Cléry
35162c1f5e Better version of data-trim on code snippets 2016-11-22 23:42:21 +01:00
Spencer Mathews
21c1fafa52 Update README.md to reflect current defaults in js/reveal.js 2016-11-15 13:14:56 -08:00
Hakim El Hattab
19188205de add pdf-ready event; dispatched when the presentation is laid out and ready to print 2016-11-09 11:56:55 +01:00
Henrik Feldt
a8586b3ab3 Bump node engine in packages.json 2016-11-09 11:11:34 +01:00
Christi Kaes
80e28774dd Don't remove slide-number in pdf view 2016-10-30 14:11:10 -04:00
christikaes
659822a8b5 Hide slide number when in paper or pdf print view 2016-10-30 11:31:20 -04:00
Oliver Davies
b78cca5831 Support sass extension for custom themes 2016-10-16 09:53:19 +01:00
Hakim El Hattab
ca37d4e5b9 remove debug code 2016-10-12 13:21:22 +02:00
Hakim El Hattab
7547b893d4 fixes ff overview rendering bug #1649 2016-10-10 12:11:35 +02:00
Hakim El Hattab
e76855e257 remove unused dom lookup 2016-10-06 11:01:44 +02:00
Hakim El Hattab
0b9233cf4a attempt at fixing ff transition bug #1627 2016-10-05 14:00:40 +02:00
Hakim El Hattab
ce55d1a179 fix merge conflict for #1634 2016-10-05 12:21:21 +02:00
Hakim El Hattab
02f95f4de6 code format tweaks 2016-10-05 12:00:21 +02:00
Maarten Schroeven
7e99626b14 only use nodeType 1 and 3 (only relevant types) 2016-10-05 11:54:46 +02:00
Maarten Schroeven
ab33b31f0a limit text written to the status div 2016-10-05 11:54:46 +02:00
CH
2cf00254a1 renamed grunt 'base' option to 'root' (#1660)
* Allow slides to be served away from revealjs server location

The previous 'base' option conflicts with Grunt's 'base' option.
Changing it to 'root' avoids this. Further, updating to a newer Grunt
allows multiple parameters to be used. therefore `grunt serve --root="."
--root="pathtomyslides"` allows you to keep your slide content separate
from JS/CSS and such

* Live reload for relocated base

* Updated packages to match origin/dev

* Updated packages to match origin/dev

* Ensure root is an array
2016-10-05 11:45:37 +02:00
Hakim El Hattab
693a370f06 remove issue comment 2016-10-05 11:36:56 +02:00
Gerald
969885a7dc ignore delta=0 mousewheel event
fix #1607
2016-10-05 11:29:47 +02:00
Hakim El Hattab
0b6585bd44 prevent exception when initializing with no slides #1678 #1679 2016-10-05 11:23:41 +02:00
Jaiden Mispy
3c36ee6cff Add note to README about how to disable scaling 2016-10-05 11:16:41 +02:00
chadmorrow
ea8964ddbf autoSlide duration with playbackRate
The autoSlide duration of media elements with data-autoplay now takes the playbackRate of said media element into account when setting the duration so that autoSlide and the media element stay in sync.
2016-10-05 11:12:27 +02:00
Hakim El Hattab
255bde174c Merge branch 'r400-linux' of https://github.com/jroper/reveal.js into dev 2016-10-05 11:07:10 +02:00
James Roper
1301de9e39 Logitech R400 on Ubuntu blackout button support
On Ubuntu 16.04, the Logitech R400's blackout button gets mapped to 'v'
(keyCode 86). I don't know why this is, but since nothing else is
currently using 'v', this allows it to be supported out of the box.
2016-10-01 22:00:00 +10:00
Hakim El Hattab
ec76f4790c speaker layouts in server side notes plugin 2016-09-21 14:10:45 +02:00
Hakim El Hattab
da5709919b layout selector for speaker view; includes four options 2016-09-21 13:54:42 +02:00
Hakim El Hattab
79728e25cd autoplay support for content inside of fragments 2016-09-20 13:41:38 +02:00
Hakim El Hattab
bc4fc65da4 none/fade/slide transitions use flat transform style, prevents blurred content #1002 2016-08-01 09:15:34 +02:00
Asvin Goel
a652e0a8ea Allow switching off preview links
The data-preview-link=false tag can be used to switch off preview links
2016-07-21 12:15:07 +02:00
Asvin Goel
c1d94f1b60 Merge pull request #12 from hakimel/dev
Syncing to current version
2016-07-21 12:09:08 +02:00
Dmitry Trofimov
86a3f0276b For a fragment: allow to show a separate note defined in it
When a slide has several fragments it could be convenient to define a note for each of them. In this case we need to show only this specific note defined in a fragment and not others. General note of a slide shouldn't be also shown, as a more specific one should have greater relevance in this case.
2016-07-04 16:57:01 +02:00
Hakim El Hattab
304b0292be null computed style to avoid npe 2016-07-04 14:46:46 +02:00
Hakim El Hattab
ab2bb869a3 null check to avoid occasional npe 2016-07-04 13:32:03 +02:00
Hakim El Hattab
6447b59ac5 ready flag on .reveal container 2016-07-01 08:44:27 +02:00
Charles Grigg
59f3395c7f Update JSDocs and fix typos 2016-06-29 23:10:55 -04:00
Hakim El Hattab
541bcf2123 update dependencies based on retire.js info #1473 2016-06-28 15:48:09 +02:00
Hakim El Hattab
e7de1bd8b0 merge retire.js #1473 2016-06-28 15:43:11 +02:00
Hakim El Hattab
9639b53ff4 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-06-28 15:36:08 +02:00
Hakim El Hattab
8f47b17230 Merge pull request #1628 from davidjb/markdown-doc-fix
Detail markdown plugin attributes & defaults
2016-06-28 14:46:05 +02:00
Quentin Bramas
338a7b0ff9 add 'npm build' script that launch grunt 2016-06-28 14:31:37 +02:00
Hakim El Hattab
1da1ff0d6d use first fragment's data-autoslide value when there is no current fragment 2016-06-27 11:13:09 +02:00
Hakim El Hattab
65a90cc75d remove unused dom reference 2016-06-22 09:31:05 +02:00
Hakim El Hattab
e4634f20e8 revise simple.md so that slide 1.1 and 1.2 correctly break into separate slides 2016-06-22 09:24:09 +02:00
Hakim El Hattab
8d7ff10ce3 Merge branch 'bug/markdownSetOptions' of https://github.com/snowyu/reveal.js into dev 2016-06-22 09:20:24 +02:00
David Beitey
1fe20cb42a Detail markdown plugin attributes & defaults
Expands the details already given by highlighting the defaults for all attributes and clarifying what's required.
2016-06-22 15:10:31 +10:00
Hakim El Hattab
8d4cb810d6 move speaker notes into page container when printing pdf 2016-06-21 14:21:42 +02:00
Hakim El Hattab
bac187f3a0 request fullscreen on documentElement instead of body (#1621 #1624) 2016-06-21 11:33:07 +02:00
Hakim El Hattab
a12a17b2d7 request fullscreen on documentElement instead of body (#1621 #1624) 2016-06-21 11:30:12 +02:00
Hakim El Hattab
ce777e4c4b Revert "fix theme backgrounds in firefox fullscreen mode #1386"
This reverts commit b7e0d9b1c7.
2016-06-21 11:27:24 +02:00
Hakim El Hattab
b7e0d9b1c7 fix theme backgrounds in firefox fullscreen mode #1386 2016-06-20 10:27:04 +02:00
Hakim El Hattab
8162855d23 increase default font sizes, adjust config defaults for less margings and larger max scale #1605 2016-06-10 10:58:40 +02:00
Hakim El Hattab
6bfa48a667 prevent repeated initialization #1616 2016-06-10 10:41:16 +02:00
Hakim El Hattab
d78a8046dc Merge branch 'Timothep-master' into dev 2016-06-10 10:13:06 +02:00
Timothep
ad86772f20 Horizontal 2-1 View for the speaker notes instead of a vertical 1-2 2016-06-10 10:12:54 +02:00
Timothep
02123205a0 Added a description of the undocumented timer-reset feature 2016-06-10 10:12:54 +02:00
Hakim El Hattab
64aa3b2647 Merge branch 'master' of https://github.com/dhyegofernando/reveal.js into dev 2016-06-10 10:09:21 +02:00
Hakim El Hattab
ca92d22adc add showHelp to api #1611 2016-06-10 10:04:54 +02:00
Hakim El Hattab
7d6cc9f3ec Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-06-03 13:57:09 +02:00
Hakim El Hattab
c2997c605d text alignment 2016-06-03 13:56:52 +02:00
Hakim El Hattab
6b4bdd2c90 hdpi slides banner 2016-06-03 13:54:42 +02:00
Hakim El Hattab
f9ae4122f7 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-06-03 10:15:34 +02:00
Hakim El Hattab
904f9878d3 slides banner 2016-06-03 10:15:26 +02:00
Hakim El Hattab
4321266276 include layout for notes outside of pdf exports 2016-05-26 10:09:09 +02:00
Hakim El Hattab
3111d3b1ae support for 'separate-page' layout for notes in PDF exports #1518 2016-05-26 09:57:27 +02:00
Hakim El Hattab
e93afb7289 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-05-23 12:03:39 +02:00
Hakim El Hattab
a8c4109244 Update README.md
more in-depth documentation of slide backgrounds #1542
2016-05-23 11:59:29 +02:00
Hakim El Hattab
fd97d56894 Merge pull request #1537 from vincentbernat/fix/dark-background-simple-theme
make theme "simple" use white titles on dark backgrounds
2016-05-23 10:57:47 +02:00
Hakim El Hattab
9cd7f3f37b code format 2016-05-23 10:54:40 +02:00
Hakim El Hattab
884d3cd177 Merge pull request #1585 from jasonkiss/feature/disabled-buttons
set/remove @disabled on navigation buttons
2016-05-23 10:52:14 +02:00
Hakim El Hattab
e2fa1d966c ocd 2016-05-23 10:50:39 +02:00
Hakim El Hattab
2418a12cb9 Merge pull request #1586 from jasonkiss/feature/accessible-speaker-notes
make speaker notes keyboard accessible
2016-05-23 10:48:39 +02:00
Hakim El Hattab
6593ac3d5f moz selection color in theme template #1575 2016-05-23 10:38:46 +02:00
Hakim El Hattab
3483aacfa7 Merge pull request #1575 from aniqah/firefox-selection-colour
Add selection colour for Mozilla Firefox
2016-05-23 10:36:54 +02:00
Hakim El Hattab
2503b1a2e8 merge readme conflict #1595 2016-05-23 10:34:58 +02:00
Hakim El Hattab
c5c0290cca Merge branch 'patch-1' of https://github.com/tiagorg/reveal.js into dev 2016-05-23 10:28:32 +02:00
Tiago Garcia
187114f472 Removing duplicated "position" property at pdf.css
Found that by running css-lint on the code
2016-05-21 11:36:49 -07:00
Tristan Sokol
b79f1fac13 Add minor imporovements to the PDF export instructions 2016-05-19 16:47:25 -07:00
Jason Kiss
dec6d1745b make speaker notes keyboard accessible
Places div.speaker-notes in default kbd Tab order, and when focused,
prevent slide navigation with up/down arrows, allowing up/down arrow
keys to scroll div.speaker-notes.
2016-05-10 11:02:45 +12:00
Jason Kiss
fb8bbaac00 set/remove @disabled on navigation buttons
Keeps disabled buttons out of kbd tab order and indicates to assistive
tech like screen readers that button is disabled. Otherwise buttons
that aren’t enabled remain in kbd Tab order and screen readers announce
them as buttons, but they don’t work.
2016-05-10 10:03:05 +12:00
黄玄
e2a8634057 add refused-to-display tips in link-preview-overlay 2016-05-02 01:42:11 +08:00
Hakim El Hattab
2a79d054d4 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-04-29 09:26:41 +02:00
Hakim El Hattab
3d49b1dea3 Merge pull request #1571 from adius/patch-1
Simplify full setup
2016-04-29 09:26:28 +02:00
Hakim El Hattab
ce7d494ae9 tweak formatting to match rest of slide 2016-04-29 09:25:05 +02:00
Hakim El Hattab
2d54bc6823 Merge pull request #1572 from jesstelford/zoom-content-size
More natural zooming on block level elements
2016-04-29 09:24:25 +02:00
Hakim El Hattab
9b11915c3a fix pdf bg layering, simplify code 2016-04-28 17:07:26 +02:00
Hakim El Hattab
5558103522 make max pages per slide limit configurable 2016-04-28 11:31:11 +02:00
Hakim El Hattab
fcb6ea8385 prevent pages from overflowing when printing to pdf 2016-04-28 11:16:36 +02:00
Aniqah Mair
d1a3656108 Add selection colour for Mozilla Firefox
Defines the highlight colour when selecting slide content using Mozilla
Firefox to match other browsers, instead of being the default colour.
2016-04-27 14:50:03 -04:00
Hakim El Hattab
66c4e6a77f use scrollHeight instead of custom measurement 2016-04-27 11:12:16 +02:00
Jess Telford
a0e6da6a9c More natural zooming on block level elements
Switching a `display: block` element to `display: inline-block` allows calculating the bounds based on the contents of the div rather than the entire container (which is often `width: 100%`).

This provides a much more natural zoom, especially for paragraphs and code examples.
2016-04-26 07:27:59 +10:00
Adrian Sieber
87b082340f Simplify full setup 2016-04-24 09:39:23 +00:00
Hakim El Hattab
539e774d31 3.3.0 2016-04-18 15:29:51 +02:00
Hakim El Hattab
fc3e4d7f23 change introduction 2016-04-18 14:50:36 +02:00
Hakim El Hattab
1efa52486c readme tweak for #1535 2016-04-13 15:37:04 +02:00
Hakim El Hattab
f0ee41a22d Merge branch '1549' of https://github.com/RopoMen/reveal.js into dev 2016-04-13 15:26:06 +02:00
Hakim El Hattab
5dd9067150 overview now works with percentage based width/height #1247 2016-04-13 15:21:30 +02:00
Hakim El Hattab
cb092e60bf Merge branch 'dev' of github.com:hakimel/reveal.js into dev 2016-04-10 12:09:02 +02:00
Hakim El Hattab
a6507afcb4 widen watch for html files, required for updates to demo.html 2016-04-10 12:07:49 +02:00
Hakim El Hattab
87b24dd457 merge conflict 2016-04-10 12:07:10 +02:00
Hakim El Hattab
5a7ac78d4b lazy load iframe in demo 2016-04-10 11:57:38 +02:00
Hakim El Hattab
0fedfbe4c8 Merge branch 'update-headjs' of https://github.com/booi/reveal.js into dev 2016-04-10 11:56:32 +02:00
Ruben Oostinga
2dc546f5ba Fix watching for markdown files
`./*.md` didn't work `*.md` does work
2016-04-09 12:33:46 +02:00
Markku Roponen
a63c8cab92 Fixes #1549, now UA match is limiting out MS Edge and Chrome detection is improved. Also improved UserAgent access by storing it in to a local variable, it was accessed so many times in different places. 2016-04-08 15:47:27 +03:00
Hakim El Hattab
e83e275a4c Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-04-07 10:31:56 +02:00
Hakim El Hattab
d6406e433e new multiplex server courtesy of now.sh (closes #1377) 2016-04-07 10:31:41 +02:00
Hakim El Hattab
492e2e2e62 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-04-07 10:25:31 +02:00
Hakim El Hattab
f85a1e9f1a remove test content 2016-04-07 10:25:10 +02:00
Hakim El Hattab
07c2355604 support for standalone multiplexing 2016-04-07 10:24:44 +02:00
Hakim El Hattab
eca7113f59 Update README.md 2016-04-07 09:55:44 +02:00
Hakim El Hattab
f98b5ccdca Update README.md
readme tweaks
2016-04-07 09:55:04 +02:00
Hakim El Hattab
8789baae29 Merge pull request #1545 from ducin/master
Table of contents added in README.md
2016-04-07 09:51:51 +02:00
Hakim El Hattab
520fa4986e generalize scroll offset prevention 2016-04-07 09:07:19 +02:00
Tomasz Ducin
37ac67dba5 Table of contents added in README.md 2016-04-02 19:43:15 +02:00
Vincent Bernat
a9566dfbd4 make theme "simple" use white titles on dark backgrounds
This is similar to what is done in the "white" theme.
2016-03-24 16:25:01 +01:00
Hakim El Hattab
00b9c2b929 minor tweaks 2016-03-20 18:57:30 +01:00
Hakim El Hattab
4e416fdc58 remove unintentionally added file 2016-03-20 18:52:12 +01:00
Hakim El Hattab
3d0969166f new empty template at index.html, move old index to demo.html #1526 2016-03-20 18:50:23 +01:00
Hakim El Hattab
2625a9292e add 'shuffle' config value and API method #1506 #1089 2016-03-20 17:57:52 +01:00
Brandon Ooi
1a5f299599 update headjs to v1.0.3 2016-03-16 13:57:15 -07:00
Dhyego Fernando
587d16ceef fix(PDF Export): Mark as important width, height and add zoom properties to fix CSS rules which were overrided by inline styles 2016-03-10 13:50:35 -04:00
Hakim El Hattab
0dbdd8a366 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-03-10 16:03:09 +01:00
Hakim El Hattab
de2ab07334 slides link 2016-03-10 16:02:36 +01:00
Hakim El Hattab
0c5ce1e731 Merge pull request #1523 from demoneaux/readme-fix
Make PDF export section less OS X specific.
2016-03-09 10:05:11 +01:00
Hakim El Hattab
ef137fd01f server notes plugin no longer syncs overview mode #1446 2016-03-09 10:02:25 +01:00
Hakim El Hattab
8e3a7f03d1 notes plugin no longer syncs overview mode #1446 2016-03-09 09:57:58 +01:00
Hakim El Hattab
922677ac66 fix notes regex #1522 #1392 2016-03-09 09:37:19 +01:00
Benjamin Tan
ac2a3fff75 Make PDF export section less OS X specific.
Closes #1073.
2016-03-07 19:15:59 +08:00
Hakim El Hattab
7cee887815 Merge branch 'patch-1' of https://github.com/LaurentTreguier/reveal.js into dev 2016-03-07 08:58:58 +01:00
Hakim El Hattab
db46896613 Merge pull request #1522 from demoneaux/notes-fix
Fix query parameter issue in notes plugin.
2016-03-07 08:53:27 +01:00
Hakim El Hattab
e3d681e7c6 Merge pull request #1521 from demoneaux/unused-dependencies
Remove unused dependencies.
2016-03-07 08:52:25 +01:00
Benjamin Tan
6d0b52026a Fix query parameter issue in notes plugin.
Closes #1392.
2016-03-06 18:28:08 +08:00
Benjamin Tan
9eb56f8146 Remove unused dependencies. 2016-03-06 16:52:02 +08:00
Hakim El Hattab
0eb2d81f35 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-03-04 14:47:01 +01:00
Hakim El Hattab
c6b6ae4397 Merge pull request #1484 from omer727/patch-1
Fixing spelling typo and GitHub proper camelcase for brand name
2016-03-04 14:46:33 +01:00
Hakim El Hattab
acc40095d5 use css to scale slides up in safari 2016-02-29 11:31:00 +01:00
LaurentTreguier
219a60053a Change ".video" to ".reveal .video"
I don't know if this is supposed to be this way ?
2016-02-17 20:07:53 +01:00
Hakim El Hattab
191dbe68d5 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-01-22 11:09:39 +01:00
Hakim El Hattab
c93fbf1ddc readme tweak 2016-01-22 11:02:05 +01:00
Hakim El Hattab
fc1c239743 add barebones example to readme 2016-01-22 10:59:02 +01:00
omer727
6af739f81c Fixing spelling typo and GitHub proper camelcase for brand name 2016-01-17 14:42:56 +02:00
Hakim El Hattab
d0bb69d427 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-01-11 10:34:01 +01:00
Hakim El Hattab
8a40bb481e note about showNotes in PDF exports 2016-01-11 10:33:40 +01:00
Hakim El Hattab
fdb75176e7 merge #1220 2016-01-11 10:17:02 +01:00
Hakim El Hattab
12acf08ca5 Merge branch 'jetzhliu-patch-1' of https://github.com/jetzhliu/reveal.js into dev 2016-01-11 10:05:42 +01:00
Hakim El Hattab
fba12abd6a Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-01-11 10:05:25 +01:00
Hakim El Hattab
3c46733a54 Merge pull request #1476 from prtksxna/patch-1
Remove rebase conflict in README.md
2016-01-11 10:02:40 +01:00
Prateek Saxena
7eca84254e Remove rebase conflict in README.md 2016-01-11 05:19:28 +05:30
Hakim El Hattab
19a69b2c89 code format 2016-01-08 14:33:34 +01:00
Hakim El Hattab
3df2129bd6 Merge branch 'patch-1' of https://github.com/danieltdt/reveal.js into dev 2016-01-08 14:32:03 +01:00
Hakim El Hattab
993526ff67 fix broken iframe in backgrounds example 2016-01-08 14:18:53 +01:00
Hakim El Hattab
3d33d27b86 tweak implementation of #1376 2016-01-08 14:16:42 +01:00
Hakim El Hattab
c0ea2cd980 same code format 2016-01-08 14:02:16 +01:00
Hakim El Hattab
daa5f031bf Merge branch 'patch-2' of https://github.com/teawithfruit/reveal.js into dev 2016-01-08 14:00:50 +01:00
Hakim El Hattab
8ec529d767 rebuild css 2016-01-08 13:59:12 +01:00
Hakim El Hattab
a5750f03c0 merge conflict 2016-01-08 13:58:35 +01:00
Hakim El Hattab
06cdd9b7cd include speaker view keyboard shortcut when applicable #1466 2016-01-08 13:49:06 +01:00
Hakim El Hattab
4ee6769e0f tweaked fragment examples 2016-01-08 11:05:59 +01:00
Hakim El Hattab
52aec94800 center help overlay with flexbox 2016-01-08 10:58:13 +01:00
Bjoern Kimminich
7621e1085d added retire.js to build process
-allows security vulnerability check in used npm-dependencies and own scripts
-execute with ```grunt retire```
2016-01-08 10:51:35 +01:00
Hakim El Hattab
ddd0e85f41 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-01-08 10:49:40 +01:00
Hakim El Hattab
c3919756f1 resolve conflict 2016-01-08 10:48:10 +01:00
Hakim El Hattab
ee877845d8 add new fragment styles to readme #1445 2016-01-08 10:41:20 +01:00
Hakim El Hattab
76faeccd3e Merge branch 'fragments' of https://github.com/kewitz/reveal.js into dev 2016-01-08 10:39:02 +01:00
Hakim El Hattab
3bb7cf528c Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-01-08 10:37:51 +01:00
Hakim El Hattab
2a86465434 tweak to pdf print isntructions 2016-01-08 10:35:25 +01:00
Hakim El Hattab
1450d21595 Merge pull request #1450 from Quintasan/fix-printing-readme
Chromium users need to check Background graphics option when printing.
2016-01-08 10:29:45 +01:00
Hakim El Hattab
b7644a3bf7 expose version number through #1451 2016-01-08 10:26:53 +01:00
Hakim El Hattab
fb00a5d613 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-01-08 10:25:44 +01:00
Hakim El Hattab
1d6848a782 merge conflict 2016-01-08 10:21:35 +01:00
Hakim El Hattab
19a801799a Merge pull request #1472 from vicapow/master
Add the grunt-cli as a dependency instead of assuming global grunt.
2016-01-08 10:14:34 +01:00
Victor Powell
4881281ea1 Add the grunt-cli as a dependency instead of assuming global grunt. 2016-01-06 13:01:58 -08:00
Hakim El Hattab
fcb4b05de7 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2016-01-04 09:31:46 +01:00
Hakim El Hattab
e448cf8cd1 Merge pull request #1459 from appleboy/patch-1
remove redundant spaces.
2016-01-04 09:31:12 +01:00
Hakim El Hattab
c2298865cb Merge pull request #1467 from ismith/spelling_fix
Fix spelling error in print-pdf plugin
2016-01-04 09:30:36 +01:00
Hakim El Hattab
18b644cf8f ©️ ©️ ©️ ©️ ©️ closes #1469 2016-01-04 09:29:55 +01:00
Ian Smith
5da75aef01 Fix spelling error in print-pdf plugin 2015-12-27 12:35:13 -06:00
Bjoern Kimminich
de4efa5d19 updated to mustache 2.2.1
prevents XSS vulnerability (see https://github.com/janl/mustache.js/pull/388)
2015-12-21 23:17:53 +01:00
Bjoern Kimminich
5abf5001a8 ignoring IntelliJ IDEA files 2015-12-21 23:02:57 +01:00
Hakim El Hattab
91c6db71ca update to highlight.js 9.0.0 2015-12-14 09:49:05 +01:00
Bo-Yi Wu
07affa2750 remove redundant spaces. 2015-12-08 14:14:42 +08:00
Razvan Caliman
d06981c60c Merge branch 'muted-video' of github.com:oslego/reveal.js into muted-video 2015-12-03 09:47:23 +00:00
Razvan Caliman
b49664621f add option to mute background videos (updated) 2015-12-03 09:43:32 +00:00
Michał Zając
de4406f26c Chromium users need to check Background graphics option when printing. 2015-11-30 10:46:21 +01:00
Leonardo Kewitz
2909440fde Clean version of the new transitions. 2015-11-22 18:52:42 -02:00
Leonardo Kewitz
d457b9270a Added 4 fragment transitions effect. 2015-11-22 18:34:25 -02:00
Hakim El Hattab
6949ebc762 tweak 2015-11-19 15:44:50 +01:00
Hakim El Hattab
0e763c7171 2x playback controls for retina displays 2015-11-19 15:39:29 +01:00
Hakim El Hattab
c8319b9b1a add autoSlideMethod to default config 2015-11-19 15:35:12 +01:00
Hakim El Hattab
0cd4e2c84f Merge branch 'dev' of github.com:hakimel/reveal.js into dev 2015-11-19 15:30:43 +01:00
Hakim El Hattab
bbe38ad263 Merge pull request #1437 from der-michik/autoslide-direction
Add an option to auto-slide right only
2015-11-19 15:30:35 +01:00
MichiK
a398a02edb Fix build error 2015-11-19 13:51:22 +01:00
MichiK
4a45557b57 Add a more flexible autoSlideMethod option
Auto-sliding will now use the method specified in the config if it is
a function or default to navigateNext.
2015-11-19 13:00:01 +01:00
Hakim El Hattab
bef2722eed simplify condition #1434 2015-11-19 10:38:52 +01:00
Hakim El Hattab
31550d09e4 Merge pull request #1434 from mikemellor11/master
stops parallax failing if only the single horizontal slide and multiple vertical
2015-11-19 09:51:37 +01:00
MichiK
c0afa01e6a Add autoSlideRight option
When the autoSlideRight config option is active, the auto-sliding
will always navigate to the right and never down even if slides are
present there. This allows hidden "bonus slides" in presentations
which can be displayed as needed but won't show up automatically.
2015-11-18 22:00:35 +01:00
Hakim El Hattab
833622edcd update parallax background docs #1436 2015-11-18 10:36:48 +01:00
Mike Mellor
3e42929f90 check for 0 division, stops parallax failing if only the single horizontal slide and multiple vertical 2015-11-13 15:13:30 +00:00
Riceball LEE
16ebf2a783 * [bug] the markdown plugin can not render highlight codes for marked.setOptions(highlight) 2015-11-11 07:37:08 +00:00
Riceball LEE
6952931451 * update marked.js version to 0.3.5 2015-11-10 21:40:46 +00:00
Hakim El Hattab
822a9c937c 3.2.0 2015-11-09 17:07:06 +01:00
Hakim El Hattab
d022113eea Merge pull request #1362 from GuGuss/patch-1
Update the theme README.md
2015-11-09 16:54:32 +01:00
Hakim El Hattab
bb7ab5f94e Merge pull request #1381 from lordsutch/master
Fix text being cut off in Chrome when printing.
2015-11-09 16:51:05 +01:00
Hakim El Hattab
a5181e4372 Merge pull request #1391 from rohithpr/notes-key-binding
Fixed #1379 - config keyboard now disables 's' key
2015-11-09 16:47:21 +01:00
Hakim El Hattab
50f9896362 update highlight.js 8.6 -> 8.9.1 #1385 2015-11-09 16:46:08 +01:00
Hakim El Hattab
215617740d server notes sync slide changes both ways, fixes #1425 2015-11-09 16:24:09 +01:00
Hakim El Hattab
4be55f860e update highlight.js url 2015-11-07 14:39:26 +01:00
Hakim El Hattab
21d02eed32 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2015-11-07 14:20:38 +01:00
Hakim El Hattab
e74c3c6b76 Merge pull request #1422 from gre/patch-1
Fixes #1225
2015-11-07 14:19:35 +01:00
Gaëtan Renaudeau
d44bcdb3ff Fixes #1225
always enable highlight.js to fix markdown-only usage
2015-11-07 09:21:07 +01:00
teawithfruit
43f0d08155 fixed loading 2015-11-02 10:37:16 +01:00
Hakim El Hattab
fcfcf9e784 more slide number tweaking 2015-10-30 09:27:32 +01:00
Hakim El Hattab
edfa131c9c tweak how speaker notes look in pdf exports 2015-10-29 16:44:47 +01:00
Hakim El Hattab
f87f3e60f3 style tweak 2015-10-29 14:40:49 +01:00
Hakim El Hattab
9b5e16055a hide slide number element when disabled 2015-10-29 14:29:51 +01:00
Hakim El Hattab
d66cba6efa remove out of sync comments from pdf css 2015-10-29 13:24:47 +01:00
Hakim El Hattab
42babeb4ef one more slide number format 2015-10-29 12:39:51 +01:00
Hakim El Hattab
0e779edb20 slide numbers work in pdf exports, update slide number style 2015-10-29 11:59:26 +01:00
Hakim El Hattab
0198d74391 change slide number formats 2015-10-29 10:58:06 +01:00
Hakim El Hattab
35462a424c remove mention of deprecated transitions #1390 2015-10-26 16:34:43 +01:00
Hakim El Hattab
596f3d3c5a fix mixed indentation 2015-10-26 14:42:12 +01:00
Hakim El Hattab
2a757794fb Merge pull request #1399 from sloan-848/markdown-packaging
Add more support for external markdown.
2015-10-26 14:40:56 +01:00
Hakim El Hattab
5949e43524 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2015-10-26 14:40:41 +01:00
Hakim El Hattab
15414ce5bb Merge pull request #1400 from adunning/patch-1
Use en dash in title; <meta> is a void element.
2015-10-26 14:34:25 +01:00
Hakim El Hattab
103f01287b Merge pull request #1401 from adunning/patch-2
move up presentation size section
2015-10-26 14:32:49 +01:00
Hakim El Hattab
fc792e704c remove remotes.io plugin, service no longer exists #1411 2015-10-26 09:22:46 +01:00
Hakim El Hattab
1cb52120ff syntax error in postmessage example 2015-10-26 08:47:37 +01:00
Liu Zhanhong
625831b993 format note content when creating slide
In html content, marked allow `Inline-Level Grammar` but not `Block-Level Grammar`, so when I write following:
```
note:
* a
* b
* c
```
it become:
```html
<p><em> a
</em> b</p>
<ul>
<li>c</li>
</ul>
```
unbelievable!
2015-10-19 19:50:43 +08:00
Andrew Dunning
2b9d1871c9 Move up Presentation Size section.
This brings together all configuration options.
2015-10-14 18:14:33 -04:00
Andrew Dunning
015870ca8a Use en dash in title; <meta> is a void element. 2015-10-14 17:06:16 -04:00
Will Sloan
3d53766e51 Add more support for external markdown.
The 'grunt watch' command now also watches for changes to external
markdown.
The 'grunt package' command now packages all external markdown files for
rapid deployment in static enviroments.
2015-10-14 00:59:42 -04:00
rohithpr
dd8f95d9a9 Fixed #1379 - config keyboard now disables 's' key 2015-10-09 00:14:02 +05:30
Hakim El Hattab
34b82baa67 run autoprefixer 2015-10-06 20:17:22 +02:00
Hakim El Hattab
5e763bc67d fix black background in fullscreen mode #668 #1386 2015-10-06 20:16:46 +02:00
Hakim El Hattab
6d93ce5748 rebuild css 2015-10-06 19:40:06 +02:00
Chris Lawrence
e0d723be28 Fix slides being cut off in Chrome. 2015-10-02 20:48:13 -04:00
Chris Lawrence
69104e8e04 Merge remote-tracking branch 'upstream/master' 2015-10-02 20:47:19 -04:00
Hakim El Hattab
01c55d4cf6 fix bower dependency #1375 2015-10-02 12:27:51 +02:00
Alex Batista
ec119e79a7 UPDATED - Improvement on spaces and indentation 2015-09-29 21:09:41 -03:00
Alex Batista
c1cb328e19 UPDATED - Improvement on spaces and indentation 2015-09-29 21:07:02 -03:00
Alex Batista
e258db0994 UPDATED - Improvement of code. Now none flag is used, but the readyState property from video element 2015-09-29 21:01:50 -03:00
Alex Batista
28e01908c4 Merge branch 'master' of https://github.com/alexbatista/reveal.js
Conflicts:
	js/reveal.js
2015-09-29 20:56:04 -03:00
Alex Batista
92a6996754 Improvement of code. Now none flag is used, but the readyState property from video element 2015-09-29 20:49:25 -03:00
Alex Batista
b0d6e5578f improvement on spaces and indentation 2015-09-29 15:18:17 -03:00
Hakim El Hattab
329bfbe032 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2015-09-29 11:12:10 +02:00
Hakim El Hattab
ddc9e2b5e7 Merge pull request #1357 from davidbanham/master
Update location of multiplex demo server
2015-09-29 10:11:54 +01:00
Hakim El Hattab
9b70e65d32 update travis node.js version 2015-09-29 11:10:40 +02:00
Hakim El Hattab
771843ccde Merge branch 'master' of https://github.com/davidbanham/reveal.js into dev 2015-09-29 11:10:02 +02:00
Hakim El Hattab
8373d5ec68 Merge pull request #1281 from fghaas/dev
Update README to include socket.io 1.3.5 examples
2015-09-29 09:43:34 +01:00
Hakim El Hattab
c1a7e83d75 multiplexing work with socket.io 1.0+ #1281 #1276 2015-09-29 10:38:34 +02:00
Hakim El Hattab
b16bc6fc2e speaker notes work with socket.io 1.0 #1375 2015-09-29 10:07:21 +02:00
Hakim El Hattab
5117048a5b Merge branch 'deps-update' of https://github.com/verdurin/reveal.js into dev 2015-09-29 09:16:47 +02:00
Alex Batista
bcfd0aae3c bug fix - when the first section has a background-video, the vido do not execute. Now, it's work 2015-09-28 23:04:47 -03:00
Adam Huffman
ef1402e645 Update dependencies to fix installation 2015-09-28 16:39:09 +01:00
Hakim El Hattab
8a1603f4d9 Merge branch 'dev' of github.com:hakimel/reveal.js into dev 2015-09-25 09:41:14 +02:00
Hakim El Hattab
9bcd1484bc notes defined in data-notes attributes retain preformatted whitespace 2015-09-25 09:41:05 +02:00
Augustin Delaporte
55a69fc68d Update the theme README.md
The `grunt css-themes` command now loops through all Sass files. There is no need to add the newly created file to the task list.
2015-09-20 09:05:28 +02:00
Razvan Caliman
8bbc2971ac add option to mute background videos 2015-09-19 15:55:48 +01:00
David Banham
076aee5ae6 Update location of multiplex demo server 2015-09-17 15:39:21 +10:00
Wendy Smoak
d6d4c68013 Add the data-noescape attribute and example 2015-09-13 09:14:12 -04:00
Hakim El Hattab
a151df54be document data-prevent-swipe #951 2015-09-10 14:37:25 +02:00
Hakim El Hattab
1116d99e87 prevent swipes on speaker notes 2015-09-10 11:26:05 +02:00
Hakim El Hattab
0d37757f3f modifications to #951 2015-09-10 11:25:19 +02:00
Hakim El Hattab
be7545da1a Merge branch 'feature_prevent_swipe' of https://github.com/Calyhre/reveal.js into dev 2015-09-10 11:10:08 +02:00
Hakim El Hattab
bd6a592b8b notes style changes 2015-09-10 11:09:03 +02:00
Hakim El Hattab
ca4098145e bump up z-index of notes in pdf 2015-09-10 10:35:25 +02:00
Hakim El Hattab
1c6990d20f fix pdf print when showNotes is disabled 2015-09-10 09:30:57 +02:00
Hakim El Hattab
5d39e8b8ce reorder css 2015-09-10 09:16:58 +02:00
Hakim El Hattab
b0b2ce1fe3 print notes to pdf when is enabled #304 2015-09-10 08:51:04 +02:00
Hakim El Hattab
0338f280d3 add getSlideNotes API method and tests 2015-09-10 08:28:52 +02:00
Hakim El Hattab
5a40b4486f dont show notes container when printing pdf 2015-09-09 14:31:27 +02:00
Hakim El Hattab
a14a298d30 document showNotes config value #304 2015-09-09 14:28:42 +02:00
Hakim El Hattab
2ad4065500 ability to share presentation with speaker notes #304 2015-09-09 14:09:37 +02:00
Hakim El Hattab
0c971b06e4 Merge pull request #1309 from cben/patch-1
README example: load MathJax over https
2015-09-02 12:00:17 +01:00
Hakim El Hattab
5e3bbdeecf formatting 2015-09-02 12:58:08 +02:00
Hakim El Hattab
75d38379b7 Merge pull request #1310 from teawithfruit/patch-1
solves early access error with video element
2015-09-02 11:57:37 +01:00
Hakim El Hattab
de6def8cdc Merge branch 'master' of https://github.com/gruber76/reveal.js into dev 2015-09-02 12:53:53 +02:00
Hakim El Hattab
983bd51838 fix initial visibility of strike fragments #737 2015-09-02 12:46:32 +02:00
Hakim El Hattab
044e87017d fix issue where 'none' transition did not apply to vertical stacks 2015-08-31 10:55:02 +02:00
Hakim El Hattab
b3b8738238 avoid duplicate var 2015-08-14 23:34:19 +02:00
Hakim El Hattab
b9d9632531 simplify 2015-08-14 23:25:30 +02:00
Hakim El Hattab
1bf236a079 fix object.keys call on non-object 2015-08-14 23:16:59 +02:00
Dan Allen
ccbc7ed6bc resolves #1324 allow display property to be configured
- allow display property apply to current slide to be configured
2015-08-07 23:04:23 -06:00
gruber76
0c2898d29f Update reveal.js
Removed toLowerCase call
2015-08-03 15:03:10 -06:00
Hakim El Hattab
de3e1daab4 only use zoom to scale presentations up, fixes shifts in text layout 2015-08-03 12:24:38 +02:00
teawithfruit
b7470fa323 solves early access error with video element
This will maybe solve the "InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable" error in firefox.
2015-07-21 15:59:19 +02:00
Beni Cherniavsky-Paskin
b098b56c50 README example: load MathJax over https
tiny followup to #1103
2015-07-21 12:33:17 +03:00
Hakim El Hattab
25da01ce41 Merge pull request #1132 from kendaleiv/plain-images
Add plain class for plain images
2015-07-07 12:18:33 +02:00
Hakim El Hattab
d44125d789 tweaks for #1200 2015-07-07 12:15:43 +02:00
Hakim El Hattab
399d4f652d Merge branch 'master' of https://github.com/bfritscher/reveal.js into dev 2015-07-07 12:06:22 +02:00
Hakim El Hattab
852fea4133 Merge pull request #1205 from gothma/mathjax-md
Allow tex parsing in <code> tags
2015-07-07 11:50:08 +02:00
Hakim El Hattab
c96a5d6ae3 fix theme control arrow selectors #1257 2015-07-07 11:37:36 +02:00
Hakim El Hattab
d3b2ed9462 Merge branch 'controls-buttons-a11y' of https://github.com/marcysutton/reveal.js into dev 2015-07-07 11:33:56 +02:00
Hakim El Hattab
d88f59cbaf Merge branch 'master' of github.com:hakimel/reveal.js into dev 2015-07-02 16:00:56 +02:00
Hakim El Hattab
b390e66c27 add bower json #1067 2015-07-02 15:51:01 +02:00
Hakim El Hattab
96bef35535 Merge pull request #1287 from obilodeau/patch-1
README: suggest decktape as an alternative for PDF rendering
2015-07-02 15:21:02 +02:00
Hakim El Hattab
523f78eda7 remove harcoded syntax highlight colors #1290 2015-07-02 14:58:47 +02:00
jzgdev
cee64858dd Gruntfile.js: watch tasks restructured 2015-07-01 22:51:01 -07:00
Hakim El Hattab
2de01e3219 update highlight.js theme 2015-06-30 09:27:11 +02:00
Olivier Bilodeau
98bdeae7cb README: suggest decktape as an alternative for PDF rendering
It works around the current PDF rendering bugs like #1261
2015-06-28 20:40:24 -04:00
Hakim El Hattab
adf1a24f0a Merge branch 'master' of github.com:hakimel/reveal.js into dev 2015-06-25 10:02:21 +02:00
Hakim El Hattab
6ec6ac2cb4 Merge pull request #1250 from kfuglsang/highlightjs-86
Updated to Highlightjs 8.6 with all languages supported.
2015-06-25 09:57:03 +02:00
Hakim El Hattab
7225d84248 Merge pull request #1260 from pierreozoux/master
Allows to specify PORT from env on multiplex plugin
2015-06-25 09:53:51 +02:00
Hakim El Hattab
5020014bc2 Merge pull request #1270 from jasonkarns/patch-1
enabling launching presentation with npm-start
2015-06-25 09:51:13 +02:00
Hakim El Hattab
95296b9ea4 Merge pull request #1274 from jasonkarns/patch-3
broken <table> html in demo deck
2015-06-25 09:50:36 +02:00
Hakim El Hattab
e1a3cf4476 Merge pull request #1271 from jasonkarns/patch-2
`licenses` field is deprecated
2015-06-25 09:49:45 +02:00
Florian Haas
3aec26cdc9 Update README to include socket.io 1.3.5 examples
The socket.io server at reveal.jit.su has been updated with socket.io
1.x, which means the examples referring to 0.9.x client libraries
no longer work. Update them with URLs for 1.3.5.

Fixes #1276.
2015-06-24 14:09:36 +02:00
Jason Karns
be91cc6118 broken <table> html in demo deck 2015-06-20 10:04:39 -04:00
Jason Karns
071a523f42 licenses field is deprecated
the `licenses` field in package.json is deprecated. https://docs.npmjs.com/files/package.json#license

The `license` field is the recommended field and expects an SPDX expression.
2015-06-16 10:43:20 -04:00
Jason Karns
018ca77406 enabling launching presentation with npm-start 2015-06-16 10:39:58 -04:00
Hakim El Hattab
9ef5915974 Merge pull request #1268 from gneatgeek/migrate-leap-plugin
Removed leap motion plugin from main project
2015-06-16 08:29:21 +02:00
RC028552
50e1463a57 Removed leap motion plugin from main project 2015-06-15 19:42:24 -05:00
pierreozoux
5dd2dd9f0b Allows to specify PORT from env on multiplex plugin 2015-06-10 18:23:20 +01:00
marcysutton
242f2d6c96 accessibility: controls as buttons, not divs 2015-06-05 14:02:46 -04:00
Hakim El Hattab
562d3b0238 Merge branch 'davidbanham-master' into dev 2015-06-03 12:00:35 +02:00
Hakim El Hattab
db359519ae merge #959 with minor tweaks 2015-06-03 11:59:00 +02:00
Hakim El Hattab
f0cf1f54d0 add base option for grunt serve task #1102 2015-06-03 11:42:38 +02:00
Hakim El Hattab
434cd3b8ae Merge pull request #1202 from alexandreleroux/patch-1
PDF exporting also works with Chromium
2015-06-03 11:30:29 +02:00
Hakim El Hattab
c99f138fbb Merge pull request #1234 from lememora/master
Added missing comma on the configuration example
2015-06-03 11:29:59 +02:00
Hakim El Hattab
1ca92a4f29 Merge pull request #1201 from MA3STR0/master
Correct Readme.md -> Theming -> sky
2015-06-03 11:29:42 +02:00
Hakim El Hattab
0055b7b763 Merge pull request #1207 from danielePala/patch-1
Update index.html
2015-06-03 11:29:11 +02:00
Kenneth Fuglsang
0563835fc0 Updated to Highlightjs 8.6 with all languages supported. 2015-06-02 22:18:36 +02:00
Rafael Moraes
7c7776a942 added missing comma on the configuration example 2015-05-19 14:56:24 -04:00
Hakim El Hattab
eff2265bbd 3.1.0 2015-05-18 08:36:47 +02:00
Hakim El Hattab
5f90a449cf consider lazy loaded iframes when formatting src 2015-05-08 08:55:33 +02:00
Hakim El Hattab
e16a220a62 fix iframe unload in firefox 2015-05-07 16:36:57 +02:00
Hakim El Hattab
af270a909c iframe postmesssage api works with lazy loaded iframes 2015-05-07 10:09:50 +02:00
Hakim El Hattab
bf6a426cf2 sync starts playing new embedded content 2015-05-06 17:30:08 +02:00
Hakim El Hattab
d14727b407 type check to ensure we don't call media api before media has loaded 2015-05-06 11:28:21 +02:00
Hakim El Hattab
207b0c71ed fix lazy load selector error 2015-05-06 11:25:58 +02:00
Hakim El Hattab
e67dc9251a tweak to iframe lazy load test 2015-05-06 11:02:41 +02:00
Hakim El Hattab
3cd871eac0 typo 2015-05-04 21:08:41 -04:00
Hakim El Hattab
7dd33f188f lazy-load iframes only for current slide, unload when hidden 2015-05-04 20:58:58 -04:00
Hakim El Hattab
152271efb2 lazy loading fallback also considers iframes 2015-05-04 20:22:32 -04:00
Hakim El Hattab
80e52c08e9 add test presentation for per-slide transitions, compile css #1106 2015-05-03 19:53:37 -04:00
Hakim El Hattab
0f7b0dc22c Merge branch 'master' of https://github.com/jammon/reveal.js into dev 2015-05-03 19:16:27 -04:00
Philipp A.
a96cabaf70 Fixed last header having a border-bottom
`<tbody/>` is automatically inserted, so we can guarantee that this affects all ths and tds in the last row of the table *body* and the head is left untouched
2015-05-03 17:40:11 +02:00
Daniele Pala
76230e7485 Update index.html
Added https prefix to slideshare iframe link, without this I got a 'not found' error when opening the demo locally.
2015-04-20 22:21:38 +02:00
Martin Goth
0cb4d10504 Allow tex parsing in <code> tags
Just using $ as delimiter in markdown document fails since the markdown
parser unknown to the dollar syntax will try to interpret underscores.
Putting the $ delimented formula in backticks will cause the markdown
parser to put the tex-code with the $ delimiters into a code block.
The texcode will then be unchanged. This patch allows for mathJax to
interpret and automagically display the tex-formulas.
2015-04-16 13:24:23 +02:00
Alexandre Leroux
d659575ff3 PDF exporting also works with Chromium
For those who can't install Google Chrome (e.g. work network policies) but can use Chromium, Chromium does work for creating the pdf. I updated the readme accordingly. Thanks!
2015-04-14 17:54:45 +00:00
Hakim El Hattab
bae8d968a2 change iframe example 2015-04-13 21:38:03 +02:00
Anton
33923b3004 Correct Readme.md#theming
Theming/sky.css has dark gray text on light blue background; not white text
2015-04-13 17:54:38 +02:00
Hakim El Hattab
334cd3e52b Merge branch 'master' of github.com:hakimel/reveal.js into dev 2015-04-12 19:19:52 +02:00
Hakim El Hattab
07197b1eae Merge pull request #1162 from bobylito/master
Make npm dependency usable by Browserify through npm
2015-04-12 19:19:12 +02:00
Hakim El Hattab
7f55e07f85 fix markdown test 2015-04-12 18:22:39 +02:00
Hakim El Hattab
4e3b91ae03 remove 'roll-in' fragment style due to Chrome crash #1150 2015-04-12 18:12:48 +02:00
Hakim El Hattab
ce798c4bac update cssmin to 0.12.2 #1179 2015-04-12 17:20:14 +02:00
Hakim El Hattab
404dd4e477 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2015-04-12 17:18:52 +02:00
Hakim El Hattab
69bc0be226 Merge pull request #1180 from kayakr/patch-1
typo
2015-04-12 17:11:12 +02:00
Hakim El Hattab
a0cc104a0c Merge branch 'query-params' of https://github.com/FND/reveal.js into dev 2015-04-12 17:07:59 +02:00
Hakim El Hattab
f24cbf8ad2 Merge pull request #1193 from danielquinn/Firefox-friendly
Added support for standard transforms
2015-04-12 17:05:06 +02:00
Boris Fritscher
9645a763c3 handle the </script> end bug inside code markdown
by changing the tag before html is parsed and restoring it before markdown parsing
2015-04-12 15:15:57 +02:00
Daniel Quinn
ee1ecef0e4 Added support for standard transforms
-webkit- stuff only works on webkit browsers.  I'm pretty sure that using the standard `transform:` here works in most modern browsers.
2015-04-03 12:26:40 +02:00
S Anand
ee98f13dd9 display .stretch images in overview mode 2015-04-02 21:04:00 +05:30
FND
4052389c58 support query parameters within notes plugin 2015-04-02 07:06:03 +02:00
kayakr
3ec15e35b2 Fix typo /s/configure/configured 2015-03-26 16:56:45 +13:00
Hakim El Hattab
ecc6222e7e fix for #1150? 2015-03-25 19:18:16 +01:00
Hakim El Hattab
bbfdb3b66e reset fragment transforms using 'none' 2015-03-25 19:17:15 +01:00
Hakim El Hattab
e19931abab fix #1170 2015-03-25 15:48:14 +01:00
Hakim El Hattab
70ab0ae80b remove variable definitions #1158 2015-03-25 14:51:54 +01:00
Hakim El Hattab
2999b628cf Merge branch 'dev' of https://github.com/bchretien/reveal.js into dev 2015-03-25 14:39:24 +01:00
Hakim El Hattab
0428365041 Merge branch 'patch-1' of https://github.com/drzax/reveal.js into dev 2015-03-25 14:16:12 +01:00
Hakim El Hattab
e38b1d38f8 Merge pull request #1166 from callahad/update-marked
update marked to 0.3.3
2015-03-25 14:02:22 +01:00
Hakim El Hattab
868d3b1a9f Merge branch 'patch-1' of https://github.com/borrown/reveal.js into dev 2015-03-25 14:00:26 +01:00
Hakim El Hattab
60457d21b4 alt+zoom only works on slide content #1151 2015-03-25 13:57:00 +01:00
Alexander
41cf154a60 Update reveal.js 2015-03-19 11:49:19 +08:00
Simon Elvery
7a03e238f0 Attribute values should be quoted 2015-03-16 20:44:23 +10:00
Dan Callahan
dfb39b4c96 Bumped Marked to v0.3.3
Compressed with `uglifyjs lib/marked.js --comments="/Copyright/" --mangle --compress`

Used Marked v0.3.3 as of chjj/marked@2b5802f258
2015-03-16 03:13:50 -05:00
Hakim El Hattab
7baa8ec1fe updated md slide separator regex #929
see https://github.com/hakimel/reveal.js/issues/929#issuecomment-80738837
2015-03-16 08:54:58 +01:00
Alexandre Stanislawski
e02f0488bb Make npm dependency usable by Browserify through NPM
Right now the package is not recognized as usable library by Browserify.
Adding the main attribute in the package.json solves that, and now gives
others the possibility to use reveal as a library in more complex
systems.
2015-03-14 20:05:05 +01:00
Hakim El Hattab
381adb0d1d Merge branch 'master' of github.com:hakimel/reveal.js into dev 2015-03-13 10:06:06 +01:00
Hakim El Hattab
8858ee75a5 note about plugins 2015-03-13 10:05:41 +01:00
Hakim El Hattab
bcec81efbb Merge branch 'master' of github.com:hakimel/reveal.js into dev 2015-03-13 08:21:07 +01:00
Hakim El Hattab
23ec0d083b link to plugins 2015-03-13 08:19:15 +01:00
Benjamin Chrétien
25c46ccc37 Fix slide numbering for custom slide number formatting.
Numbering was off when dealing with fragments.
2015-03-08 18:15:16 +01:00
Daniel Teixeira
f79210c6c1 Add support for custom notes.html file
It would be nice if we could define a custom notes.html file.

Actually, I'm used to compile my js files before releasing my app and, using selectors like `script[src$="notes.js"]`, doesn't work :(

So, what do you think about it?
2015-03-05 18:54:34 -03:00
Hakim El Hattab
4677741568 remove selection color from core css 2015-03-05 10:49:27 +01:00
Hakim El Hattab
c200fbedd1 add blood theme to demo slides #928 2015-03-02 12:28:47 +01:00
Hakim El Hattab
ecc8c78584 tweaks to blood theme 2015-03-02 12:27:15 +01:00
Hakim El Hattab
364a3f9845 code format 2015-03-02 12:11:05 +01:00
Hakim El Hattab
fc568b5524 Merge branch 'patch-1' of https://github.com/jhofker/reveal.js into dev 2015-03-02 12:10:26 +01:00
Hakim El Hattab
b4574791e0 fix mixed spaces/tabs 2015-03-02 12:08:21 +01:00
Christian Fehmer
3ead7d4eb5 Markdown table column alignment #1050
The alignment information were already in the generated html.
The css was the only thing missing, so I added it.
2015-02-28 19:15:14 +01:00
Hakim El Hattab
04e38c8c07 Merge pull request #1113 from brndnb/patch-1
grammar
2015-02-25 15:53:39 +01:00
Hakim El Hattab
53b9dbc654 code format 2015-02-25 15:52:10 +01:00
Hakim El Hattab
a245a87e38 Merge pull request #1138 from denehyg/background-video-loop
background video loop
2015-02-25 15:48:48 +01:00
Hakim El Hattab
22a5ec5e3b merge conflict 2015-02-25 15:42:47 +01:00
Hakim El Hattab
bf8a6271d4 fix mixed indentation 2015-02-25 15:35:30 +01:00
Hakim El Hattab
f772c7eb50 fix progress bar clicks in rtl mode #1131 2015-02-25 13:31:41 +01:00
Hakim El Hattab
ea735f0a2f ensure postmessage data is a string #1143 2015-02-25 13:26:53 +01:00
Hakim El Hattab
4c0a033dfa merge options for parallax step size #733 2015-02-25 12:10:00 +01:00
Jordan Hofker
76c5726c04 Check before calling blur on activeElement.
It's possible for slides to be in a situation where the last clicked thing was an SVG before the tab/window loses focus. When returning, `.blur()` is called on the previously-active element, but can result in an exception.

This protects against that and will only call `.blur()` when `document.activeElement` supports it.
2015-02-19 16:09:08 -06:00
Greg Denehy
00fa1c818d Added option to loop background videos 2015-02-19 17:04:41 +10:30
Ken Dale
67140f2369 Add plain class for plain images 2015-02-13 19:43:47 -05:00
Hakim El Hattab
2ed1d6fb5d fix looped view distance calculation 2015-02-09 09:35:12 +01:00
Hakim El Hattab
a4852c7cb2 prevent iframes from offsetting presentation 2015-02-03 11:56:54 +01:00
Hakim El Hattab
1c8a6e47a6 only preload last slides if presentation is looped 2015-02-02 09:14:09 +01:00
Hakim El Hattab
49f462e6ce gifs now restart when their slide container is shown 2015-01-30 10:52:28 +01:00
Hakim El Hattab
621e8d7176 only transition slides container in overview mode 2015-01-29 17:08:28 +01:00
Hakim El Hattab
03400478bd Merge pull request #1119 from hakimel/feature/new-overview
Refactored overview mode
2015-01-29 14:53:06 +01:00
Hakim El Hattab
8e66876c4e fix error when exiting overview 2015-01-29 12:21:05 +01:00
Hakim El Hattab
c8d7451142 comments 2015-01-29 12:03:02 +01:00
Hakim El Hattab
18e29a898a cleaner approach to applying transforms to slides container 2015-01-29 11:59:47 +01:00
Hakim El Hattab
3b45b618b8 dynamic file mapping to avoid themes hardcoded in gruntfile 2015-01-28 08:52:15 +01:00
Hakim El Hattab
df38524874 theme readme update 2015-01-28 08:45:38 +01:00
Hakim El Hattab
64e72781b4 ensure overview indices are up to date if a slide moves 2015-01-28 08:33:50 +01:00
Hakim El Hattab
c8569e2d9f cross browser adjustments for overview mode 2015-01-27 19:27:55 +01:00
Hakim El Hattab
e29c706533 further overview refactoring 2015-01-27 09:21:49 +01:00
Hakim El Hattab
11293d7c94 refactoring and optimization of overview mode 2015-01-26 20:38:21 +01:00
Hakim El Hattab
ce8ea84393 Merge pull request #1115 from raboof/patch-1
themes grunt task was renamed
2015-01-26 19:22:44 +01:00
Arnout Engelen
e296b39657 Grunt target was renamed 2015-01-26 18:56:03 +01:00
Branden Byers
2dccc25031 Fix small typo 2015-01-22 08:05:20 -06:00
Hakim El Hattab
44548ba357 add global flag back in for whitespace removal, without it most of the content in example.html does not work #682 2015-01-22 08:46:14 +01:00
Hakim El Hattab
f032df8f13 default to https mathjax #1103 2015-01-20 09:11:09 +01:00
Hakim El Hattab
9e14b261ea fix for #1088 when presentation is not scaled 2015-01-19 08:41:26 +01:00
Johannes Ammon
420b6912d7 Adding one-sided transitions
Now the transition isn’t any more „per slide“ but „per movement of a
slide“. So the slide can disappear in another way than it appeared.
2015-01-18 18:12:36 +01:00
Johannes Ammon
95bba5179f Mixins for readability of transitions added
To honor the DRY principle repeating patterns have been factored out.
In addition there was an anchor missing in README.md.
2015-01-18 10:55:05 +01:00
Hakim El Hattab
e0aba9f5ae apply z position to slide container, rather than individual slides 2015-01-17 10:33:18 +01:00
Hakim El Hattab
66d7b6bfae firefox support for #1088 2015-01-16 16:46:34 +01:00
Hakim El Hattab
99d92362c8 no longer set o-transforms 2015-01-16 16:15:28 +01:00
Hakim El Hattab
b71705c76f background images now work in overview mode #1088 2015-01-16 16:12:54 +01:00
Hakim El Hattab
5fb81b1b3c support for custom slide number formatting #965 2015-01-16 13:48:13 +01:00
Hakim El Hattab
817bb3bf43 use getElementByID when looking up linked slides #1086 2015-01-15 11:25:20 +01:00
Hakim El Hattab
9a89e39367 only read textContent for aria callout #1100 2015-01-14 17:01:28 +01:00
Hakim El Hattab
5359da0b06 documentation for getState/setState 2015-01-12 17:50:12 +01:00
Hakim El Hattab
04b71f577c documentation for postMessage API 2015-01-12 12:33:39 +01:00
Hakim El Hattab
20d858deb8 Merge pull request #1093 from hakimel/dev
3.0.0
2015-01-09 18:22:30 +01:00
Hakim El Hattab
3a8fc9b274 content tweak 2015-01-09 18:14:03 +01:00
Hakim El Hattab
3b93c8be33 content tweaks 2015-01-08 09:58:06 +01:00
Hakim El Hattab
06ad3bf4c2 reorganize fonts, include source sans pro for offline use 2015-01-06 17:37:14 +01:00
Hakim El Hattab
40f12acf2d always play background video from the start #1049 2015-01-06 12:49:52 +01:00
Hakim El Hattab
4cee280e36 merge master into dev 2015-01-06 12:44:42 +01:00
Hakim El Hattab
028c84481a revise contribution guidelines, graduate 3.0 from dev 2015-01-06 12:35:13 +01:00
Hakim El Hattab
dbcb44c298 dont subset league glyphs #989 2015-01-06 12:22:05 +01:00
Hakim El Hattab
16d4ce6497 new slideshare pdf example 2015-01-06 12:03:56 +01:00
Hakim El Hattab
25a674a3c2 new font & type settings for default theme 2015-01-06 11:42:23 +01:00
Hakim El Hattab
21d034bffe reveal container size determines progress bar width 2015-01-06 09:32:21 +01:00
Hakim El Hattab
0e0a4ec6e6 avoid repetition 2015-01-05 09:51:36 +01:00
Hakim El Hattab
9c3a7b49d0 (c) 2015 2015-01-05 09:40:53 +01:00
Hakim El Hattab
5bdbc2dc7b remove deprecated data-state background colors 2014-12-27 21:27:53 +01:00
Hakim El Hattab
2cfe1174f1 kill unintended transition into overview mode 2014-12-27 21:22:17 +01:00
Hakim El Hattab
abf402d044 change transition defaults 2014-12-27 21:16:54 +01:00
Hakim El Hattab
9dbc9e7719 tweak comments 2014-12-27 21:16:44 +01:00
Hakim El Hattab
327ff7a75c readme tweaks 2014-12-18 18:33:26 +01:00
Hakim El Hattab
d4bdf29c81 new pdf export example 2014-12-18 18:27:48 +01:00
Hakim El Hattab
3b1e1a04b8 white theme inverts text color against dark bg 2014-12-18 18:17:31 +01:00
Hakim El Hattab
1bc1dd12e6 bad theme name 2014-12-18 17:53:08 +01:00
Hakim El Hattab
7c03d60186 remove theme config option #1061 2014-12-18 17:45:51 +01:00
Hakim El Hattab
c3f9aabe04 add white theme, reverse of default theme #1018 2014-12-18 17:29:51 +01:00
Hakim El Hattab
96b26514e6 default content update; remove image slide, add two new slides 2014-12-12 15:52:25 +01:00
Hakim El Hattab
b133468f3e include background video example in default presentation 2014-12-10 20:18:11 +01:00
Hakim El Hattab
8524af73f6 zoom plugin now works for scaled presentations 2014-12-10 20:09:03 +01:00
Hakim El Hattab
dc215a2441 rename previous default theme to league 2014-12-10 18:28:14 +01:00
Hakim El Hattab
05403bcf16 first revision of new default theme #1018 2014-12-10 18:19:04 +01:00
Hakim El Hattab
ad9e93eae5 dont force links to be underlined in pdf 2014-12-09 15:06:25 +01:00
Chris Lawrence
54082a8d76 Merge remote-tracking branch 'upstream/master' 2014-11-30 21:26:17 -05:00
Hakim El Hattab
8c76f85e34 reorder scale condition; if calculated scale is exactly 1 don't apply any scale styles 2014-11-08 09:06:17 +01:00
Hakim El Hattab
57977e2923 Merge pull request #1033 from PeterDaveHello/patch-1
ci status indicator is svg instead of png
2014-11-06 19:42:08 +01:00
Hakim El Hattab
54e44ef4e2 add missing condition for recalculating scale 2014-11-06 19:19:14 +01:00
Hakim El Hattab
96b1ee9c39 ignore calculating scale if only possible outcome is 1 2014-11-05 19:28:09 +01:00
Hakim El Hattab
3126db0a46 update order of default slides 2014-11-05 12:54:00 +01:00
Hakim El Hattab
d84233df98 default to slide transitions 2014-11-05 12:28:09 +01:00
Hakim El Hattab
1aaec85744 update background color/image example slides 2014-11-05 12:27:57 +01:00
Hakim El Hattab
1f0627eb3f typo 2014-11-05 11:54:49 +01:00
Hakim El Hattab
b09923551a theme updates, normalized spacing between block-level elements 2014-11-05 11:52:32 +01:00
Hakim El Hattab
a170ee8982 simplify default initialization options 2014-11-05 10:38:43 +01:00
Hakim El Hattab
a5e4fcb839 Merge pull request #1037 from Suva/dev
Do not add video backgrounds to speaker notes.
2014-11-05 10:00:43 +01:00
Jaan Pullerits
82a692c394 Do not add video backgrounds to speaker notes. 2014-10-24 12:35:49 +00:00
Peter Dave Hello
9e4d0a3260 Use svg instead of png to get better image quality 2014-10-21 13:04:02 +08:00
Hakim El Hattab
6c8becc51b add video and iframe backgrounds to readme 2014-10-17 09:02:07 +02:00
Hakim El Hattab
16f9e95d87 update slide bg example presentation to include iframes and videos #1029 2014-10-17 08:52:38 +02:00
Hakim El Hattab
fa88707382 Merge branch 'feature/background-iframe' of https://github.com/lutangar/reveal.js into dev 2014-10-17 08:43:11 +02:00
Hakim El Hattab
82342672ea fix navigatePrev in rtl mode #1030 2014-10-16 16:17:41 +02:00
Hakim El Hattab
6c7ba34edf remove styles from #1030, simplify navigatePrev 2014-10-16 15:43:29 +02:00
Hakim El Hattab
eec72c1491 update grunt connect for more hostname flexibility #981 2014-10-16 13:50:59 +02:00
Hakim El Hattab
1f5369a43e correct defaults for min-height, thanks @sebastianz #985 2014-10-16 13:35:47 +02:00
Hakim El Hattab
136d279361 continue auto-sliding through fragments on last slide #974 2014-10-16 13:27:58 +02:00
Hakim El Hattab
cef19486b8 better handling of overflowing speaker notes #1017 2014-10-16 13:09:54 +02:00
Hakim El Hattab
5123ba4372 update grunt-qunit 2014-10-16 12:21:16 +02:00
Hakim El Hattab
a61a372b52 use nesting for fragment styles 2014-10-16 12:19:20 +02:00
Ira Abramov
ccdb4ff248 Fix RTL Navigation with space bar 2014-10-11 18:59:36 +03:00
lutangar
490ae90de4 add support for iframe backgrounds 2014-10-09 12:34:10 +02:00
Hakim El Hattab
6565ba0168 use node.js 0.10 2014-10-06 10:00:52 +02:00
Hakim El Hattab
a3a2ad039e reduce grunt task overhead 2014-10-06 09:51:12 +02:00
Hakim El Hattab
cc02564b2f reveal.css is now scss, merge autoprexier #1007 2014-10-06 09:41:38 +02:00
Hakim El Hattab
6729b9ba76 Merge branch 'master' of github.com:hakimel/reveal.js 2014-10-04 09:04:35 +02:00
Hakim El Hattab
76c587b7e3 add contribution guidelines from dev 2014-10-04 09:04:22 +02:00
Hakim El Hattab
588472c520 compile themes 2014-10-04 09:00:57 +02:00
Hakim El Hattab
a34fa75995 merge #975 into dev 2014-10-04 09:00:45 +02:00
Hakim El Hattab
f28b380fac prevent auto-sliding in notes frames #1004 2014-09-28 17:13:49 +02:00
Hakim El Hattab
05e55b2f81 minor copy tweak 2014-09-28 17:13:26 +02:00
Hakim El Hattab
e7b9e95369 remove classList condition from unrelated dependencies 2014-09-28 13:05:53 +02:00
Hakim El Hattab
36cdaefdfd multiple updates to default presentation content 2014-09-28 12:48:37 +02:00
Hakim El Hattab
0345696ed6 remove css 3d warning 2014-09-28 12:27:48 +02:00
Hakim El Hattab
bd176411ef style tweaks for all themes; larger line heights, no default adjustmetn to letter-spacing 2014-09-28 12:14:48 +02:00
Hakim El Hattab
9ef0060024 add new black theme 2014-09-28 11:17:16 +02:00
Hakim El Hattab
0aad39f755 dont open notes when S is pressed inside of notes window #991 2014-09-27 16:19:39 +02:00
Yves Delley
9bc5b81292 merged dev branch 2014-09-12 22:49:13 +02:00
Yves Delley
2bc36f2dfe re-created unprefixed version of reveal.css automatically using autoprefixer, to facilitate merging of changes to it 2014-09-12 22:37:57 +02:00
Hakim El Hattab
80fc214af1 update highlight.js to 8.2 2014-09-11 11:37:36 +02:00
Hakim El Hattab
03c3031cb4 cleanup classes when backgrounds are synced 2014-09-10 11:28:29 +02:00
Hakim El Hattab
0d14d87f1a rgba color parsing support, ignore brightness of transparent colors 2014-09-10 10:53:24 +02:00
Hakim El Hattab
41f20301b6 has-dark-background 2014-09-10 10:12:25 +02:00
Hakim El Hattab
bc2974fef8 bubble has-light-background to .reveal container 2014-09-09 17:51:36 +02:00
Hakim El Hattab
2479883d3c is-light-background -> has-light-background, doesn't apply to background itself 2014-09-09 17:33:52 +02:00
Hakim El Hattab
5e585ddbf2 update slide backgrounds example 2014-09-09 17:21:29 +02:00
Hakim El Hattab
9fb0c5f3d3 use computed style when calculating bg birghtness 2014-09-09 17:18:15 +02:00
Hakim El Hattab
20e72df4bf add is-background-light class to slides/backgrounds that are > 128 brightness 2014-09-09 16:50:23 +02:00
Hakim El Hattab
8a50a46665 util methods for calculating color brightness 2014-09-09 16:14:24 +02:00
Hakim El Hattab
4823b267cc better test for fragment indices 2014-09-09 12:42:11 +02:00
Hakim El Hattab
cbef64b860 fix current fragment index check when multiple fragments have same index 2014-09-06 08:20:38 +02:00
Yves Delley
7fe762c2f3 - 2014-09-05 17:43:02 +02:00
Yves Delley
03d8a02f68 added newly generated reveal.min.css 2014-09-05 17:42:38 +02:00
Yves Delley
4c155128c7 removed all vendor-prefixes from reveal.css 2014-09-05 17:41:56 +02:00
Hakim El Hattab
2cd988a7a3 fix previewLinks target 2014-09-04 18:00:21 +02:00
Hakim El Hattab
80c375fae8 the paused mode can now be disabled via the 'pause' config option 2014-08-12 16:01:27 +02:00
Hakim El Hattab
841f9d0f9b only load highlight.js if there's a 'pre code' block on page 2014-07-22 10:30:26 +02:00
Hakim El Hattab
062918b5e2 update highlight.js to 8.1 2014-07-22 10:29:00 +02:00
miira
9ae36e9d0f Update package.json 2014-07-18 14:04:04 +02:00
Miroslav Mocek
ff5a3dc8c7 removed ruby dependency. 2014-07-17 17:11:22 +02:00
Hakim El Hattab
57844ad827 listen for touch + click on all devices except android 2014-07-06 14:31:10 +02:00
Hakim El Hattab
213c8d1354 fix double-navigation on touch for some android systems 2014-06-28 12:58:33 +02:00
David Banham
a078c87f10 Listen to custom mapped togglePause keys
This resolves issue #941
2014-06-25 23:22:13 +10:00
Hakim El Hattab
7e8fd09376 fix npe 2014-06-25 13:56:24 +02:00
Hakim El Hattab
ef333300a2 prevent additional inaccurate showSlide calls 2014-06-25 11:50:45 +02:00
Hakim El Hattab
8cb8229aac prevent incorrect showSlide calls at startup 2014-06-25 11:44:10 +02:00
Hakim El Hattab
0d9563b598 overview slide size matches defaults 2014-06-24 10:51:57 +02:00
Chris Lawrence
09de278be0 Merge remote-tracking branch 'upstream/master' 2014-06-22 22:35:53 -04:00
Hakim El Hattab
c6b9da7000 more specific targeting for pdf printing hack 2014-06-18 18:42:45 +02:00
Calyhre
ed8d90bc58 Fix tests 2014-06-18 14:23:42 +02:00
Calyhre
4e70cf8126 Add ability to prevent swipe for specific elements 2014-06-18 14:18:41 +02:00
Hakim El Hattab
e4761d3a37 only allow text in aria status div 2014-06-18 10:50:00 +02:00
Hakim El Hattab
8f24561878 documentation for help flag 2014-06-16 18:47:39 +02:00
Hakim El Hattab
ebfb496743 config option for disabling the help overlay 2014-06-16 18:46:38 +02:00
Hakim El Hattab
2e0fe815a6 fix append to existing embed query 2014-06-12 18:27:52 +02:00
Hakim El Hattab
a7a32f941c vimeo support for autoplay/pause 2014-06-12 18:20:15 +02:00
Hakim El Hattab
af61d9d10b rewrite youtube iframe embeds to force ?enablejsapi=1 (fixes #856) 2014-06-12 18:15:32 +02:00
Hakim El Hattab
06e76c1be3 shift a few additional styles from core to theme 2014-06-11 12:48:19 +02:00
Hakim El Hattab
38301d57c5 move large chunk of content styles from core css to theme css 2014-06-11 12:32:39 +02:00
Hakim El Hattab
f5ac0b35d1 toggle instead of always showing the help overlay when ? is pressed 2014-06-09 18:24:47 +02:00
Hakim El Hattab
3a6172e67d more flexible keyboard shortcut table styles 2014-06-09 18:21:32 +02:00
Hakim El Hattab
b6ebb98309 update link to Slides 2014-06-09 17:54:31 +02:00
Hakim El Hattab
645734832d adjust list of displayed key shortcuts #943 2014-06-09 17:53:14 +02:00
Hakim El Hattab
9ff00a72ae merge and tweak key shortcuts overlay #943 2014-06-09 17:35:46 +02:00
Hakim El Hattab
d539c645c3 Merge branch 'keyboard_shortcuts_overlay' of https://github.com/navateja/reveal.js into dev 2014-06-09 12:21:01 +02:00
Hakim El Hattab
65dcd94c86 update to node 0.10 2014-06-09 12:18:37 +02:00
Hakim El Hattab
b6c7cda908 ci fix attempt 2 2014-06-09 12:07:40 +02:00
Hakim El Hattab
f2db7e8da0 attempt to fix travis ci 2014-06-09 12:03:22 +02:00
Hakim El Hattab
0a58df8390 don't trim aria status 2014-06-09 11:36:28 +02:00
Hakim El Hattab
943b6ef37e merge and tweak screen reader support #854 2014-06-09 11:20:46 +02:00
navateja
594d9f6d85 Merge remote-tracking branch 'upstream/dev' into keyboard_shortcuts_overlay 2014-06-09 14:44:36 +05:30
navateja
ab7efe6bf2 creates a new branch for the feature 2014-06-09 14:35:59 +05:30
nava teja
75a53da9e5 Shows keyboard shorcuts overlay on pressing question mark 2014-06-08 00:59:29 +05:30
Hakim El Hattab
8973f0c3e1 typo #938 2014-06-05 10:59:30 +02:00
Hakim El Hattab
c5daba6a1f write current hash when history is toggled on #934 2014-06-05 10:43:25 +02:00
Hakim El Hattab
6d1a66c2bc fix search & replace error 2014-05-30 08:12:57 +02:00
Hakim El Hattab
9c96a56e33 adjust check for focused text inputs 2014-05-29 10:36:56 +02:00
Hakim El Hattab
f4ead96b1f move paragraph styles to theme 2014-05-26 11:25:47 +02:00
Hakim El Hattab
09bddce427 limit scope of all slide selectors, avoids multiple .reveal classes on one page causing errors 2014-05-24 15:23:03 +02:00
Hakim El Hattab
ff788bb31b additional monospace options for phantomjs 2014-05-23 14:06:52 +02:00
Hakim El Hattab
ba00afbc38 only use zoom to scale in chrome 2014-05-21 10:08:23 +02:00
Hakim El Hattab
dbc7c627cc dont specify hyphens auto, behavior/rendering varies between browsers 2014-05-21 09:55:27 +02:00
Hakim El Hattab
e7f4615585 hide slide numbers while printing to pdf #885 2014-05-20 12:09:55 +02:00
Hakim El Hattab
c1ea5282e1 fix data-autoplay on first slide 2014-05-20 08:53:25 +02:00
Hakim El Hattab
8c9c0ab0a6 validate named links according to html id spec #914 2014-05-20 08:14:55 +02:00
Hakim El Hattab
b558f74299 zoom viewport is centered on target element #900 2014-05-19 09:26:49 +02:00
Hakim El Hattab
c974756326 relax keyboard blocking condition #899 2014-05-17 16:00:40 +02:00
Hakim El Hattab
252200f9f3 add minimal-ui to viewport for ios fullscreen 2014-05-15 11:42:51 +02:00
Hakim El Hattab
b9d25057d6 Merge branch 'fix-isFirstSlide' of https://github.com/fabianorosas/reveal.js into dev 2014-05-14 08:50:28 +02:00
Hakim El Hattab
54c3c23e36 fix bug in retrieval or background images while in pdf mode 2014-05-10 11:18:13 +02:00
Hakim El Hattab
06ca536ae1 no need to override font sizes after updates to pdf printing 2014-05-10 10:10:59 +02:00
fabiano
ffecac6df3 == --> === 2014-05-09 16:11:04 -03:00
fabiano
cb4fe35bac fixed a problem in the function isFirstSlide
when visiting a vertical slide and then going back to the first slide, the function would return false.
made it more fail proof by checking the indices directly.
2014-05-09 15:58:56 -03:00
fabiano
d072be2f57 kill-yank mistake 2014-05-09 15:41:04 -03:00
fabiano
af1ade1418 Broaden the coverage of isFirstSlide test
If we:
- visit a vertical slide

and then:
- go to the first slide

the function will return **false**.

Added a test to isLastSlide too just to be sure.
2014-05-09 15:37:57 -03:00
fabiano
92fd4f78c8 Small typo 2014-05-09 11:51:55 -03:00
Hakim El Hattab
c4e202cd0f fix edge case in singleton node creation 2014-05-07 22:02:05 +02:00
Hakim El Hattab
f31f0ffa70 createSingletonNode now ensures found nodes are in the correct container 2014-05-07 21:47:47 +02:00
Hakim El Hattab
3eb7038a15 sync server-side speaker notes after notes window opens 2014-05-04 10:10:21 +02:00
Hakim El Hattab
5e85f02eb1 ensure default can be prevented 2014-05-04 09:32:10 +02:00
Hakim El Hattab
4c5b15d0b9 update server side notes to match client side plugin 2014-05-04 09:32:00 +02:00
Hakim El Hattab
54e256764c limit size of media elements when printing to pdf 2014-05-04 08:29:45 +02:00
Hakim El Hattab
da1f221b4f reduce max-height of images in pdfs 2014-05-04 08:24:26 +02:00
Hakim El Hattab
fa6187072e clicking on notes timer now resets it #779 2014-05-04 08:13:09 +02:00
Hakim El Hattab
1b236bdf21 wait for document to load before triggering pdf layout 2014-04-29 13:40:55 +02:00
Hakim El Hattab
2ac0a55ccf ensure pdf pages are never zero-height 2014-04-29 13:30:56 +02:00
Hakim El Hattab
eec14b9c92 pdf background size rounding error 2014-04-29 10:47:05 +02:00
Hakim El Hattab
ebb9a689a0 updates to phantom pdf print script, arguments for width/height 2014-04-29 10:24:13 +02:00
Hakim El Hattab
fbf999ec81 null check background 2014-04-28 12:31:34 +02:00
Hakim El Hattab
1391253cb8 test same conditions for both getSlide and getSlideBackground 2014-04-28 11:54:11 +02:00
Hakim El Hattab
635e51f8f5 addition background image and getSlideBackground tests 2014-04-28 11:51:35 +02:00
Hakim El Hattab
9873839a50 fix issue with background images on first vertical sldie 2014-04-28 11:51:21 +02:00
Hakim El Hattab
9f0224adf9 update visibility of slides as part of sync 2014-04-28 10:59:31 +02:00
Hakim El Hattab
02725cf728 prefer scaling over zooming on mobile devices 2014-04-28 10:41:31 +02:00
Hakim El Hattab
fcec8d058d fix lazy loading bug related to data-background-image attribute 2014-04-28 09:58:13 +02:00
Hakim El Hattab
fa2413ec73 fix slide transitions in iOS 2014-04-28 09:45:02 +02:00
Hakim El Hattab
b42fae96e5 load all images directly when in 'no-transform'-mode 2014-04-28 09:13:57 +02:00
Hakim El Hattab
6aaff6395a merge umd wrapping 2014-04-27 20:38:20 +02:00
Hakim El Hattab
860580d4d0 getSlideBackground now works in pdf mode, add pdf tests 2014-04-27 17:31:50 +02:00
Hakim El Hattab
41e1e013b8 better defered loading of background media 2014-04-27 15:55:57 +02:00
Hakim El Hattab
7158c12eff lazy load all slide backgrounds 2014-04-27 15:39:11 +02:00
Hakim El Hattab
0140a15bae fix getindices test 2014-04-27 15:33:41 +02:00
Hakim El Hattab
c58096ea99 disregard v index when there is no vertical slides/backgrounds in getSlide/getSlideBackground 2014-04-27 15:04:37 +02:00
Hakim El Hattab
902e36c022 break showing/hiding of slides into separate methods 2014-04-27 14:54:23 +02:00
Hakim El Hattab
eea437f4be new api method: getBackgroundSlide 2014-04-27 14:47:02 +02:00
Hakim El Hattab
1623b3782e fix #627 2014-04-27 08:30:57 +02:00
Hakim El Hattab
ddfb0aa86f abide by configured width/height when printing to pdf 2014-04-26 21:42:16 +02:00
Hakim El Hattab
a522312999 improvements to print stylesheet 2014-04-26 20:49:22 +02:00
Hakim El Hattab
e7d82f1316 fix transitions in firefox 2014-04-26 20:23:40 +02:00
Hakim El Hattab
ae962d729b fix non-pdf printing (closes #881) 2014-04-26 19:16:10 +02:00
Hakim El Hattab
b019604531 Merge branch 'feature/print' into dev 2014-04-26 18:21:39 +02:00
Hakim El Hattab
1e5ca748a4 enable reveal.js keyboard shortcuts anywhere in notes window 2014-04-26 11:36:03 +02:00
Hakim El Hattab
b797bbb61b readme update, kill event listeners when printing pdf 2014-04-26 11:02:54 +02:00
Hakim El Hattab
704022d948 simplify pdf layout 2014-04-26 10:22:18 +02:00
Hakim El Hattab
2f90e9198d some more flexibility for pdf export sizes 2014-04-26 09:34:58 +02:00
Hakim El Hattab
131c00689a Merge pull request #883 from seanfisk/fix-small-misspelling
fix small misspelling: Mardown -> Markdown
2014-04-26 09:07:56 +02:00
Hakim El Hattab
059cca6fa4 abide by configured slide width when exporting to pdf 2014-04-26 08:51:33 +02:00
Hakim El Hattab
3adaed2a1e allow tall slides to spread over pages in pdf export 2014-04-26 08:26:20 +02:00
Sean Fisk
ca7c33f07c Fix small misspelling: Mardown -> Markdown 2014-04-24 05:15:16 -04:00
Hakim El Hattab
a49a78c454 remove needless condition 2014-04-23 21:18:13 +02:00
Hakim El Hattab
646203f038 revert from flexbox for pdf centering, use js for PDF setup 2014-04-23 19:47:41 +02:00
Hakim El Hattab
54ca9edeed lazy load support for iframes #793 2014-04-23 15:36:22 +02:00
Hakim El Hattab
53238c47ce null and type check what comes through postmessage 2014-04-22 19:01:59 +02:00
Hakim El Hattab
167400ee8b documentation for #793 2014-04-22 16:53:52 +02:00
Hakim El Hattab
73f96f1d28 lazy-load support for audio #793 2014-04-22 16:10:08 +02:00
Hakim El Hattab
3ad0d6adc0 tests for lazy loading 2014-04-22 15:58:21 +02:00
Hakim El Hattab
bbd596e434 lazy loading support for video #793 2014-04-22 15:52:44 +02:00
Hakim El Hattab
343765b7ab images with data-src attribute are now lazy-loaded #793 2014-04-22 15:41:08 +02:00
Hakim El Hattab
5d39b5eabf carry slide classes over to generated background elements 2014-04-22 15:16:53 +02:00
Hakim El Hattab
37ebe0732c skip transitions in notes window for better main window performance 2014-04-22 15:05:06 +02:00
Hakim El Hattab
f396b9b871 limit how often the notes window updates presentation states 2014-04-22 14:50:50 +02:00
Hakim El Hattab
c02d185cfd notes code format tweaks 2014-04-22 14:14:21 +02:00
Hakim El Hattab
ce05138f9a dont toggle paused/overview modes needlessly when setting state 2014-04-22 14:06:58 +02:00
Hakim El Hattab
9b2851376d always indent html using tabs 2014-04-20 11:50:23 +02:00
Hakim El Hattab
fb7253187d correction to javascript code sample 2014-04-20 11:29:44 +02:00
Hakim El Hattab
4a39aecbab prevent repeated autoslidepaused/resumed events 2014-04-20 10:52:27 +02:00
Hakim El Hattab
3795ef1599 update style of notes plugin to match Slides 2014-04-20 10:26:00 +02:00
Hakim El Hattab
5b18c1f308 notes plugin now operates entirely through window.postMessage, adding support for file protocol 2014-04-19 10:54:26 +02:00
Hakim El Hattab
ce31184bf3 split postmessage config into two options 2014-04-19 10:53:33 +02:00
Hakim El Hattab
fea11d24bc add config option for postMessage features 2014-04-18 20:07:08 +02:00
Hakim El Hattab
a4b09aecda bubble all reveal.js events to parent window through postMessage 2014-04-18 20:03:50 +02:00
Hakim El Hattab
11ea0aa3e1 postmessage plugin is now part of reveal.js core 2014-04-18 13:56:51 +02:00
Chris Lawrence
ac76644456 Merge remote-tracking branch 'upstream/master' 2014-04-13 14:05:51 -04:00
Hakim El Hattab
38af788a65 fix css syntax error 2014-04-13 12:00:06 +02:00
Hakim El Hattab
3b111a1cd4 add support for custom keyboard availability condition 2014-04-13 11:55:06 +02:00
Hakim El Hattab
731598f7c8 make all slides 'present' while printing 2014-04-11 09:40:44 +02:00
Michael Williams
c67e6d2e49 build reveal.min.js 2014-04-08 17:08:43 -07:00
Michael Williams
613a05f154 add UMD support. fix #787 2014-04-08 17:08:21 -07:00
Nawaz
e70d07b45d Change innerHTML to textContent to avoid video replays inside status Div, for not text content is enough 2014-04-07 10:49:07 +05:30
Hakim El Hattab
a3d4afeeed better transition names, fix background images in vertical slides 2014-04-06 11:04:58 +02:00
Hakim El Hattab
c87d7db930 code format tweak 2014-04-06 10:18:38 +02:00
Hakim El Hattab
2eb3d082ce Merge branch 'xhr-local' of https://github.com/malyw/reveal.js into dev 2014-04-06 10:16:46 +02:00
Hakim El Hattab
3aaca471b1 stop tracking minified files #783 2014-04-06 10:09:25 +02:00
Hakim El Hattab
a200e93537 Merge branch 'patch-1' of https://github.com/jamestwebber/reveal.js into dev 2014-04-06 10:04:36 +02:00
Hakim El Hattab
d45892ff32 next release will be 3.0.0 2014-04-06 10:03:46 +02:00
Hakim El Hattab
2901abccde Merge pull request #682 from tentacode/patch-1
Indentation issue when using code in a markdown slide
2014-04-06 09:56:54 +02:00
Hakim El Hattab
1d13760f0e only use zoom to scale content in webkit 2014-04-04 11:35:54 +02:00
Hakim El Hattab
170aa31d6f video background playback 2014-04-04 09:22:15 +02:00
Hakim El Hattab
43bf882d08 revamped and greatly simplified the layout of .slides 2014-04-03 11:58:15 +02:00
Hakim El Hattab
f0f48bd9b0 use flexbox for vertically centered printing #862 2014-04-03 10:51:27 +02:00
Sergey Gospodarets
873f2dbc96 Mark xhr.status=0 as successful 2014-04-02 13:02:39 +03:00
Sergey Gospodarets
75247a8860 Mark xhr.status=0 as successful 2014-04-02 12:59:36 +03:00
Hakim El Hattab
9e78fe3ee2 Merge branch 'dev' of github.com:ht push origin akimel/reveal.js into dev 2014-04-01 09:14:43 +02:00
Hakim El Hattab
79f45c811e test for #858 2014-04-01 09:14:29 +02:00
Hakim El Hattab
9947b7a532 add getTotalSlides #858 2014-04-01 09:12:41 +02:00
Nawaz
20a725222b Make revealJS screen reader friendly by announcing the contents of each slide presented 2014-03-27 16:39:27 +05:30
Hakim El Hattab
1de159c4f4 start work on video backgrounds #751 2014-03-26 15:48:28 +01:00
Hakim El Hattab
ccbeaf4c32 optimization, only declare background creation method once 2014-03-26 15:20:27 +01:00
Hakim El Hattab
2a27967d4b Merge pull request #794 from Spy-Seth/dev
increase Logitech R400 remote compatibility
2014-03-25 21:41:40 +01:00
Hakim El Hattab
17d8f0b77c merge master into dev 2014-03-25 21:37:51 +01:00
Hakim El Hattab
9da952fea3 Merge pull request #832 from craigcitro/patch-1
tweak layout in readme installation markup
2014-03-25 21:36:09 +01:00
Hakim El Hattab
eef1636fd7 Merge branch 'dev' of https://github.com/xdhmoore/reveal.js into dev 2014-03-25 21:16:58 +01:00
Hakim El Hattab
a9c2d4d663 disable transition into and out of overview mode #829 2014-03-25 17:46:10 +01:00
Hakim El Hattab
baa6fa45de tweak table margins, dont reset 'i' element #803 2014-03-25 17:18:05 +01:00
Hakim El Hattab
243867f91e merge upgrade of highlight.js, add base styles to pre code, dont limit language detection in index.html #809 2014-03-25 16:56:33 +01:00
Hakim El Hattab
b8157a1e91 Merge branch 'master' of https://github.com/jdfitzgerald/reveal.js into dev 2014-03-25 16:42:55 +01:00
Hakim El Hattab
da82c8ce81 limit named links to [a-zA-Z0-9\-\_\:\.] #836 2014-03-25 15:12:10 +01:00
Hakim El Hattab
3d7c21256c fix 'fragments' config option (#849) 2014-03-25 14:28:22 +01:00
Hakim El Hattab
7529f7eeb8 prevent invisible fragments from capturing mouse events #845 2014-03-25 14:09:14 +01:00
Hakim El Hattab
6936c5029e correct ms fullscreen api method name #843 2014-03-25 14:00:01 +01:00
Hakim El Hattab
924c4aaa01 use socket.io 0.9.16 2014-03-18 15:22:34 +01:00
Hakim El Hattab
7285653b01 update version to 2.6.2 to fix broken tarball on npm #506 2014-03-18 15:07:42 +01:00
Craig Citro
da949c33e0 Tweak layout in README.md installation markup.
Some code blocks weren't indented, so they ended up messing up the numbering. Indenting them fixed it.
2014-03-14 23:21:23 -07:00
Daniel Moore
1a7732c235 More robost calculation of .stretch height 2014-03-13 18:22:30 -05:00
Hakim El Hattab
0140fd9ee6 include fragments in progress bar calculation 2014-03-13 10:32:57 +01:00
Hakim El Hattab
55dceaaa0a update (c) year 2014-03-13 09:23:45 +01:00
Hakim El Hattab
a91f4d601d test for getProgress 2014-03-12 22:29:01 +01:00
Hakim El Hattab
6e9a33cf1f add api method for retrieving progress 2014-03-12 22:26:31 +01:00
Hakim El Hattab
8c32e2e967 Merge branch 'dev' of github.com:hakimel/reveal.js into dev 2014-03-12 08:52:12 +01:00
Hakim El Hattab
1c2f4a2e92 deserialize state values 2014-03-12 08:51:51 +01:00
Hakim El Hattab
e8ab2641da typo fix 2014-03-12 08:51:40 +01:00
Hakim El Hattab
3976030733 Merge pull request #816 from Gijs-Koot/dev
small fix for issue #814
2014-03-08 12:25:37 +01:00
Gijs Koot
71f1780b50 fixed two minor bugs, a twohanded gesture may not have a direction, and if autoCenter is of, the tipPosition was in the wrong scope 2014-03-05 15:20:30 +01:00
Hakim El Hattab
714102c3f8 add get/setState methods for persisting and restoring presentation state 2014-03-02 12:30:55 +01:00
J.D. Fitz.Gerald
7d25ef8aaf updated presentation to specify used languages used for highlight.js 2014-02-28 16:23:05 +00:00
J.D. Fitz.Gerald
d939c4790e updated highlight.js to v8.0 2014-02-28 16:22:36 +00:00
Hakim El Hattab
4cd1dd1a1f Merge branch 'master' of github.com:hakimel/reveal.js into dev 2014-02-28 12:16:37 +01:00
Hakim El Hattab
08fb6cb2f9 fix pdf print bug in chrome 33 #808 2014-02-28 12:16:14 +01:00
Hakim El Hattab
11df3547f6 change version to 2.7.0 (dev) 2014-02-28 12:13:32 +01:00
Hakim El Hattab
1aadc53eac don't reduce line height for all headings in base theme (#753) 2014-02-25 12:32:31 +01:00
Armand Abric
0b3bae1cad Typo fix. 2014-02-18 15:24:59 +01:00
Hakim El Hattab
ecce48d1c0 Merge branch 'master' of https://github.com/ccortezia/reveal.js into dev 2014-02-18 08:10:07 +01:00
Hakim El Hattab
015468c3a2 renamed markdown attributes for clarity and consistency: data-vertical -> data-separator-vertical, data-notes -> data-separator-notes 2014-02-17 21:15:02 +01:00
Hakim El Hattab
a22d00ab25 server side notes plugin now supports input via data-notes attribute 2014-02-17 20:16:21 +01:00
Hakim El Hattab
9478d03cf6 drop -o-transition and -ms-transition 2014-02-17 17:52:26 +01:00
Hakim El Hattab
b25fa50657 remove all use of :not(.image) 2014-02-17 11:55:38 +01:00
Hakim El Hattab
26e9ce1ff7 avoid creating duplicate auto-slide controls #770 2014-02-16 17:37:59 +01:00
Hakim El Hattab
2aef97584a update (c) year 2014-02-16 17:12:05 +01:00
Armand Abric
44e6f7ace0 Increase Logitech R400 remote compatibity. 2014-02-07 19:04:46 +01:00
Hakim El Hattab
d698619705 define basic black/white colors in the default, non-themed, styles 2014-02-03 16:18:09 +05:30
jamestwebber
286acf371b Add generated css and js to gitignore
I found it nice to ignore these files, they are automatically generated anyway (i.e. reveal.min.js always has the date of minify-ing, which I don't want to commit all the time). Should just track the source unless there is a good reason to hand-curate these versions.
2014-01-25 17:10:41 -08:00
Cristiano Cortezia
d9513b34d5 Fixes bad NaN applied to style on updateParallax.
The previous criteria "verticalSlideCount > 0" would result
in verticalOffset being NaN when verticalSlideCount == 1.

This would cause dom.background.style.backgroundPosition to
be set to something like "123px NaNpx", ultimately preventing
the parallax effect to play (silently failing so far).
2014-01-16 14:44:32 -02:00
Chris Lawrence
d1d6cca272 Merge branch 'master' of github.com:lordsutch/reveal.js 2014-01-07 22:30:43 -05:00
Hakim El Hattab
49e0749bc6 readme tweaks for auto-sliding 2013-12-21 18:15:23 +01:00
Hakim El Hattab
6215b12f6e naming/comment tweak 2013-12-21 18:12:02 +01:00
Hakim El Hattab
9421541825 add tests for auto-slide events #766 2013-12-21 18:08:40 +01:00
Hakim El Hattab
a97d73167d simplify how data-autoslide is picked up from fragments #766 2013-12-21 17:54:21 +01:00
Hakim El Hattab
ed4cdaf9e7 test isAutoSliding, isAutoSliding returns false when no autoSlide value is set #766 2013-12-21 17:33:30 +01:00
Hakim El Hattab
137ddf5472 isSliding > isAutoSliding 2013-12-21 17:27:33 +01:00
Hakim El Hattab
5226321885 Merge branch 'autoslide-API-and-fragments' of https://github.com/rajgoel/reveal.js into dev 2013-12-21 17:16:51 +01:00
rajgoel
4498e6e609 Update README.md 2013-12-20 16:38:13 +01:00
rajgoel
5a8da0555c Add auto-slide API and data-autoslide for fragments 2013-12-20 16:22:32 +01:00
Hakim El Hattab
7bd01bdebd fix data-transition overrides #760 2013-12-20 15:16:03 +01:00
Hakim El Hattab
6428504d6d merge table styles #761, tweak table padding 2013-12-20 10:35:21 +01:00
Hakim El Hattab
d08b000ec9 update contribution guidelines 2013-12-20 10:03:07 +01:00
Hakim El Hattab
300d56c21c separate contribution rules from readme 2013-12-20 09:56:29 +01:00
Hakim El Hattab
2976921adf compile assets 2013-12-20 09:48:51 +01:00
Hakim El Hattab
1402e691d5 Merge branch 'patch-2' of https://github.com/RyDroid/reveal.js into dev 2013-12-20 09:48:12 +01:00
Hakim El Hattab
1e7b62bd44 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2013-12-20 09:47:05 +01:00
RyDroid
bde5907a19 Update reveal.css
Correction of a small error
2013-12-19 19:25:35 +01:00
Wachiwi
929ace25ee Table Style 2013-12-17 14:53:36 +01:00
Alex Juarez
8b8cc607d4 The index.html page had the simple theme listed twice. The duplicate was removed.
For the Moon and Solarized themes they had .css appended to them which was causing them to not come up.
2013-12-15 19:53:08 +01:00
Hakim El Hattab
b7fcd71c9f Merge branch 'live-reload' of https://github.com/danielwegener/reveal.js into dev 2013-12-10 11:37:50 +01:00
Hakim El Hattab
7055c54b79 rebuild styles 2013-12-10 11:32:11 +01:00
Diomidis Spinellis
1a0e7a2e60 Improve formatting of dl elements 2013-12-10 12:13:49 +02:00
Daniel Wegener
5c1497e8b2 grunt serve starts the browser and livereloads changes in the presentation
- upgrade grunt-contrib-connect to ~0.5.0
- configure connect and watch plugin
2013-12-05 16:11:35 +01:00
Hakim El Hattab
5d4b303b2f Merge pull request #742 from mralexjuarez/index-theme-fix
fix theme links in demo
2013-12-05 03:21:29 -08:00
Alex Juarez
616d83dfb6 The index.html page had the simple theme listed twice. The duplicate was removed.
For the Moon and Solarized themes they had .css appended to them which was causing them to not come up.
2013-12-04 15:41:06 -06:00
Hakim El Hattab
9f2a0207fc add strike fragment style #737 2013-12-03 15:39:03 +01:00
Hakim El Hattab
e8c7e8eddb same condition order when event listeners are added and removed 2013-12-02 23:28:43 +01:00
Hakim El Hattab
916bfb4c30 readme tweak 2013-12-02 23:24:37 +01:00
Hakim El Hattab
aef53061c5 code format tweaks 2013-12-02 23:23:51 +01:00
Hakim El Hattab
4a5b5c7c11 merge support for ie 11 touch 2013-12-02 23:20:26 +01:00
Hakim El Hattab
4068c5221d add instructions to features that require a local web server (closes #732, #673, #559) 2013-12-02 21:33:44 +01:00
Hakim El Hattab
e6069caa86 2.6.1 #734 2013-12-02 12:24:18 +01:00
Hakim El Hattab
552525c7a5 rename markdown attribute test files to same format 2013-12-02 12:23:18 +01:00
Hakim El Hattab
9a9ce672b7 add example of markdown slide and element attributes 2013-12-02 12:20:48 +01:00
Hakim El Hattab
bc62963c8f readme correction for #734 2013-12-02 12:20:29 +01:00
Hakim El Hattab
65bd155c34 Merge branch 'attributes' of https://github.com/VonC/reveal.js into dev 2013-12-02 12:12:27 +01:00
VonC
fdb03b4f10 README.md mentions the new default separators.
- new default separator for slide attributes
- new default separator for element attributes
Illustrate both, in html comments.
2013-11-30 23:12:42 +01:00
VonC
78dfbf5202 test-markdown-element-attributes: formats and test.
- Reformat
- Use new default separator format: '.element: x=y'
- Add new tests for testing that default format
2013-11-30 23:12:41 +01:00
VonC
d4e04b82dc test-markdown-attributes.*, new default separator
- Reformat.
- Change default separator test 'slide: x=y'
2013-11-30 23:12:41 +01:00
VonC
f2097417da Simpler default syntax for markdown attributes.
- on slides: .slide x=y
- on elements: .element x=y

Those are detected in html comment, in order to not be visible
if a markdown is edited in an html editor.
2013-11-30 23:12:40 +01:00
VonC
13da34cc6b Removes console.log calls. 2013-11-30 23:12:40 +01:00
VonC
d52eb599d1 Fix previous element selection. 2013-11-30 23:12:39 +01:00
VonC
8ad633e4f3 Fix element attributes, except for multi-line. 2013-11-30 23:12:39 +01:00
VonC
3330c2a764 Remove section attribute implementation. 2013-11-30 23:12:38 +01:00
VonC
dd9fa3e22b First refactoring 2013-11-30 23:12:38 +01:00
Luke Karrys
0605ab13df add parallax horizontal and vertical properties to enable non-calculated parallax offsets 2013-11-29 11:17:18 -07:00
Hakim El Hattab
31438c88ba Merge branch 'dev' of github.com:hakimel/reveal.js 2013-11-28 16:48:46 -05:00
Hakim El Hattab
3d2549d4f4 documentation for slide numbers 2013-11-28 16:48:36 -05:00
Hakim El Hattab
f1a416d07c tests for initial section classes 2013-11-28 11:31:16 -05:00
Hakim El Hattab
599bef5fdf Merge branch 'dev' of github.com:hakimel/reveal.js 2013-11-28 09:35:28 -05:00
Hakim El Hattab
f7b612b1e4 only run vertical slide setup during startup #726 2013-11-28 09:35:04 -05:00
Hakim El Hattab
0eba619c1a add example for parallax backgrounds 2013-11-27 14:49:39 -05:00
Hakim El Hattab
b314cf7b27 improvement to query string parsing 2013-11-27 13:16:03 -05:00
Hakim El Hattab
69bf9b51ec include slide number color in theme template 2013-11-27 11:00:21 -05:00
Hakim El Hattab
2be89c3772 remove dev flag from version 2013-11-27 10:46:49 -05:00
Hakim El Hattab
c7595b29a9 Merge branch 'patch-1' of https://github.com/luishgo/reveal.js into dev 2013-11-27 09:13:39 -05:00
Luis HGO
6ca071cd3a Fix for issue #715 2013-11-27 10:38:48 -02:00
Hakim El Hattab
740f472ce2 when there is data-autoplay:ing media, prolong autoSlide to match its duration #723 2013-11-26 18:22:07 -05:00
Hakim El Hattab
cb9e507cd4 remove debug code 2013-11-26 17:41:01 -05:00
Hakim El Hattab
3be84bcbe3 code format tweaks 2013-11-26 17:32:48 -05:00
Hakim El Hattab
75845a92c3 Merge branch 'dev' of https://github.com/theone1984/reveal.js into dev 2013-11-26 17:08:43 -05:00
Hakim El Hattab
544020bb96 use fragment name in example 2013-11-26 12:20:57 -05:00
Hakim El Hattab
c8b46050a0 Merge branch 'current-style' of https://github.com/gturri/reveal.js into dev 2013-11-26 12:16:21 -05:00
Hakim El Hattab
e947f0f216 add zoomKey option for #700 2013-11-26 09:00:04 -05:00
Guillaume Turri
b46fd8dd70 Added some styles using the current-fragment class
according to README, I don't include reveal.min.js.
Hence I believe it makes sense to not include reveal.min.css either.
Hence, examples added in index.html can give the feeling that they don't work yet.
2013-11-26 07:47:03 +01:00
Hakim El Hattab
adbf36ad47 readme format correction 2013-11-25 21:15:56 -05:00
Hakim El Hattab
7730f2bab5 Merge pull request #721 from hakimel/refactor/fragments
Refactor fragments
2013-11-25 16:56:58 -08:00
Hakim El Hattab
d41a5ca87f update future classes when syncing 2013-11-25 15:40:24 -05:00
Hakim El Hattab
0fcff33a61 additional fragment tests 2013-11-25 15:26:22 -05:00
Hakim El Hattab
0fb343f5bf rewrite all fragment indices on startup 2013-11-25 15:26:10 -05:00
Hakim El Hattab
3427561b64 rewrite fragment sorting to account for multiple fragments with the same index 2013-11-25 14:45:14 -05:00
Hakim El Hattab
ef82645589 remove current-fragment when leaving slide, add tests for current fragment 2013-11-23 17:13:14 -05:00
Hakim El Hattab
ead723bc1c rename markdown tests to use same naming format as other tests 2013-11-23 16:29:37 -05:00
Hakim El Hattab
c33aa66666 respect original dom order of fragments with no explicit index 2013-11-21 09:22:20 -05:00
Hakim El Hattab
2faae3d95b rewrite fragment index attributes to leave no gaps between fragments 2013-11-21 09:16:40 -05:00
Hakim El Hattab
60a74ebfa3 fragments are now zero-indexed 2013-11-21 09:01:18 -05:00
Thomas Endres
08808abf04 Issue #698: Fixed tests 2013-11-19 21:10:20 +01:00
Thomas Endres
ffd8ccbffa Issue #698: Non-async script callbacks are now also called before starting Reveal 2013-11-19 20:56:51 +01:00
Thomas Endres
0ffbe8d09c Issue #698: Non-async scripts were not executed before Reveal started 2013-11-19 20:56:40 +01:00
Hakim El Hattab
9d0ac52780 fragment comments, remove debug code 2013-11-18 09:14:01 -05:00
Hakim El Hattab
8550186afc use new fragment nav method from slide() 2013-11-18 09:13:39 -05:00
Hakim El Hattab
b4e2c97d0c initial fragment rewrite 2013-11-18 09:01:33 -05:00
Hakim El Hattab
e0dccd85be Merge branch 'feature/more-languages' of https://github.com/haf/reveal.js into dev 2013-11-17 17:20:49 -05:00
Hakim El Hattab
85c2a0a3c1 slide number changes; config value renamed, added to readme, moved to right side of screen 2013-11-17 17:13:26 -05:00
Hakim El Hattab
bdb46060b3 merge slide numbers, adjust code format 2013-11-17 17:05:23 -05:00
Hakim El Hattab
c4d7b1b93f make background transition default to exact same speed as normal transitions 2013-11-09 11:41:15 -05:00
Hakim El Hattab
f31644cca8 change transition easing for zooms 2013-11-08 09:29:49 -05:00
Hakim El Hattab
23bcd1eb1f rebuild css with change from #691 2013-11-08 08:15:48 -05:00
Hakim El Hattab
705d5a012c define normal font widths in all themes to make sure things look the same after #691 2013-11-08 08:11:35 -05:00
Hakim El Hattab
3a8bcb174a Merge pull request #691 from fghaas/section-fontweight
CSS: Don't override font-weight for section
2013-11-07 10:07:13 -08:00
Florian Haas
0069e3ad14 CSS: Don't override font-weight for section
.slides>section and .slides>section>section set the font-weight to
"normal". This overrides any font-weight setting a theme may set at
the body or .reveal level, and requires a theme author to also
specifically set the font-weight for .slides>section and
.slides>section>section. That's tedious and also counterintuitive.

Adopt a saner default by setting the font-weight to inherit.
2013-11-08 00:39:34 +08:00
Hakim El Hattab
5eff8902ff remove old inaccurate comment 2013-11-07 10:17:39 -05:00
Hakim El Hattab
3653ad5b19 comments 2013-11-07 09:15:56 -05:00
Hakim El Hattab
150cb81405 data-autoslide on vertical parent now applies to all child slides #685 2013-11-07 09:12:49 -05:00
Hakim El Hattab
a119c83f86 ensure that all fragments on past slides are visible #684 2013-11-07 08:39:19 -05:00
Hakim El Hattab
e7e941b663 add code slide to markdown example #682 2013-11-07 08:03:22 -05:00
Hakim El Hattab
6afec76bf0 readme adjustment 2013-11-06 08:52:21 -05:00
VonC
4b0fe47bb6 Add slide attributes for single slide section case. 2013-11-06 11:06:03 +01:00
VonC
efbb31cf29 Add mardown-based slide attribute examples. 2013-11-04 16:31:58 +01:00
VonC
1774de2113 Add unit test for default slide attributes separator pattern. 2013-11-04 16:31:54 +01:00
VonC
2cdd1afe85 Remove console.log debugs, and fix tabs 2013-11-04 16:31:51 +01:00
VonC
492a094955 Fix default separator pattern for attribute in slide. 2013-11-04 16:31:47 +01:00
VonC
198821f52b Restore default notation for attributes in element.
It should be `{. xxxx=yyy }`, not `{_ xxxx=yyy }`.
Only test/test-element-attributes-markdown.html were using `{_`,
simply in order to test the ability, for the user, to define a _different_ pattern.
2013-11-04 16:31:44 +01:00
VonC
d098385103 Restore proper pattern for attributes in elements.
It is important that test/test-element-attributes-markdown.html do test
the ability for the user to define its own pattern.
2013-11-04 16:31:40 +01:00
VonC
4def7f116c Add QUnit.js unit tests for attributes in Markdown slides. 2013-11-04 16:31:37 +01:00
VonC
83ee2eb00e Fix markdown.js slideAttributesSeparator selection. 2013-11-04 16:31:33 +01:00
VonC
d6b8e4a246 Rebased on dev, and following contribution guideline. 2013-11-04 16:31:29 +01:00
VonC
ec72e8cbc7 Fix markdown vertical wrapping section element generation. 2013-11-04 16:31:25 +01:00
VonC
e1b11e737e Make sure a pattern doesn't include space. 2013-11-04 16:31:22 +01:00
VonC
f6445a04a0 Fix bug on data attributes for first vertical slide.
The first slide of a vertical stack see some data attributes ignored.

Mainly the data-transition one.

Repeat all data-attributes on the wrapping section element.

Ignore any other attributes (like 'id="xxx"'), in order to not
mess with internal links (by repeating twice an id).
2013-11-04 16:31:18 +01:00
VonC
c51ab74d72 Add attributes in markdown for slide generation.
By default, look for <!-- slide-attributes: xxxx -->.
Whatever 'xxx' is will be added to the section attributes.

You can define your own pattern with 'data-attributes'.
For instance 'data-attributes="^\s*?-- (.*?)$"':
that will be added to the options.

The 'attributes' section is removed from the content of the slide,
so the final markdown doesn't reflect them.
That also means you can add those attributes *anywhere* in the slide

But that allows for *any* attribute to be added for a specifc slide,
like:

- id="plan", for allowing internal link (issue #430)
- data-background="#ff0000"
- data-transition="fade"

You list those attributes on a single line, like

- (default):
` <!-- id="plan" data-background="#ff0000" -->`
- or, with an alternative data-attributes pattern:
` -- id="plan" data-background="#ff0000"`

Again, that line is remove from the final content.
2013-11-04 16:31:15 +01:00
Hakim El Hattab
7da98d8110 add concave and zoom background transitions 2013-11-04 07:53:07 -05:00
Hakim El Hattab
d4e6fa12bf add convex background transition 2013-11-01 12:27:36 -04:00
Hakim El Hattab
778969c000 generate background hash under additional conditions 2013-11-01 12:27:09 -04:00
uriel
f1dd807f66 change SlidesNumber position and start page counter at 0 instead 1 2013-10-31 19:47:13 +02:00
Gabriel Pillet
80aadaf74e Removing global flag for replacing whitespaces 2013-10-31 14:02:34 +01:00
Chris Lawrence
97d4eb1056 Merge remote-tracking branch 'upstream/master' 2013-10-30 22:32:43 -04:00
uriel
06078f987f synthetic fix 2013-10-31 00:51:34 +02:00
uriel
dda885b71a move the slide-number out of the controls to a proper position and little fix to the updating event. 2013-10-31 00:49:07 +02:00
uriel
7b63cda19d Added slide numbers options and the css files updated as well.
the *.min.js didn't chaged yet.
2013-10-30 22:12:21 +02:00
Hakim El Hattab
fcf91ec261 fix edge case in background transitions (closes #604) 2013-10-30 13:09:46 -04:00
Hakim El Hattab
89cc3f3a29 don't transition between identical backgrounds 2013-10-30 12:22:00 -04:00
Hakim El Hattab
080ae79b54 documentation for #677 2013-10-28 09:16:41 -04:00
Hakim El Hattab
d844195be1 format tweaks markdown.js, remove extra image asset 2013-10-28 09:06:43 -04:00
Hakim El Hattab
6cf5269bfc Merge branch 'classes_in_markdown' of https://github.com/VonC/reveal.js into dev 2013-10-28 08:50:45 -04:00
Hakim El Hattab
8cb3c279b0 don't autoplay videos in notes window #624 2013-10-28 08:45:14 -04:00
VonC
f92f2fdea6 Add unit-tests for attributes in mardown elements.
Test paragraphs, list items and img attributes.
2013-10-27 22:49:44 +01:00
VonC
a87ce95794 Add 'data-element-attributes' attr. to 'section'.
By default '{\\\.\s*?([^}]+?)}'.
2013-10-27 22:49:43 +01:00
VonC
7aa93af0ca Cleanup code, remove console log debugs. 2013-10-27 22:49:43 +01:00
VonC
28198b2ff0 Add attributes extracted from an attribute.
Allows to add attributes to element of an attribute which contains
the attribute pattern.
2013-10-27 22:49:42 +01:00
VonC
d20760f40d Uses the right method setAttribute.
Works better, and the html elements get their attributes.
2013-10-27 22:49:42 +01:00
VonC
0bc3a836fc First implem for adding classes to enclosing elts.
Extra text representing classes is detected and correctly removed.
Adding attributes isn't working yet.
2013-10-27 22:49:41 +01:00
Hakim El Hattab
82d2ae654d kill the shadow on table headers 2013-10-27 17:24:36 -04:00
Hakim El Hattab
3ad4320f61 documentation for iframe post messages 2013-10-27 16:39:20 -04:00
Hakim El Hattab
9dfaf8815a Merge branch 'dev' of github.com:hakimel/reveal.js into dev 2013-10-27 15:44:38 -04:00
Hakim El Hattab
7cb8d96529 merge vertical centering for individual slides 2013-10-27 15:44:26 -04:00
Hakim El Hattab
1b1dedd2bd contrib update 2013-10-27 15:42:22 -04:00
Hakim El Hattab
97b66d1fe0 apply @knownasilya's first slide detection fix to dev branch #671 2013-10-27 15:37:29 -04:00
Hakim El Hattab
806a2f53fc build latest js, format tweaks 2013-10-27 15:27:35 -04:00
Brad Gessler
d66fe964bc Added support for postMessage's into any iframes for content that needs to do something when a slide is displayed and hidden. 2013-10-27 12:18:08 -07:00
Hakim El Hattab
f1f28f61e6 plug potential xss vector 2013-10-24 08:59:52 -04:00
Michael Ekstrand
8473394643 Support per-slide centering
If config.center is false, this change centers slides with the
'center' class.
2013-10-23 21:34:05 -05:00
Hakim El Hattab
c7077cf798 configure notes presentation through query string to avoid flicker 2013-10-22 09:21:49 -04:00
Hakim El Hattab
f356d7228a include all themes in grunt task 2013-10-22 09:05:39 -04:00
Hakim El Hattab
1e6f9429df Merge branch 'dev' of https://github.com/Walther/reveal.js into dev 2013-10-22 08:41:44 -04:00
Hakim El Hattab
34a2cc5dce additional config valeus in readme, remove duplicate value, fix commas 2013-10-22 08:40:22 -04:00
Hakim El Hattab
a28cae4d68 Merge branch 'update-readme' of https://github.com/aethanyc/reveal.js into dev 2013-10-22 08:39:27 -04:00
Hakim El Hattab
41a19baa8e merge readme conflict 2013-10-22 08:38:59 -04:00
Hakim El Hattab
9da2921b74 readme tweak #660 2013-10-22 08:33:39 -04:00
Hakim El Hattab
e84a07cb78 Merge pull request #657 from asmaps/master
README: clone via https
2013-10-22 05:29:31 -07:00
Hakim El Hattab
1b0673d98e Merge pull request #664 from vertti/patch-1
add details to README on creating themes
2013-10-22 05:27:50 -07:00
Janne Sinivirta
3c2d394112 Add details to README on creating themes.
Closes #662.
2013-10-22 12:56:46 +03:00
Hakim El Hattab
d761adf002 smooth reset of auto-slide progress, fix overlapping repaint calls 2013-10-19 09:35:51 -04:00
Hakim El Hattab
2736945385 don't increase body height to try and hide address bar, caused issues in ios 7 safari 2013-10-18 09:15:22 -04:00
Hakim El Hattab
dd08b86a0f don't show auto slide controls if there's only one slide 2013-10-17 22:27:31 -04:00
Arne Schauf
465209c6fe clone via https - ssh not working anonymously 2013-10-17 23:07:15 +02:00
Hakim El Hattab
68318407a8 resume auto-sliding when autoSlide config value changes 2013-10-17 09:17:30 -04:00
Ting-Yu Lin
4bea9bc7a8 Add various configuration options to README
Also add a description about the solarized theme.
2013-10-17 12:08:43 +08:00
Hakim El Hattab
cfb78d2ee8 replay when auto-slide controls are clicked on last slide 2013-10-13 17:14:29 -04:00
Hakim El Hattab
49cfd05022 fix css syntax error 2013-10-13 16:03:41 -04:00
Hakim El Hattab
f318928281 fix playback controls in ie10 2013-10-13 16:00:35 -04:00
Hakim El Hattab
fbbffb6f23 add auto-slide instructions to readme 2013-10-13 15:51:13 -04:00
Hakim El Hattab
2de43199ef minor tweaks and comments 2013-10-13 15:38:24 -04:00
Hakim El Hattab
29c5af84be support moz and webkit prefixed requestAnimationFrame 2013-10-13 15:25:13 -04:00
Hakim El Hattab
6aaf88aae7 auto-slide playback updates, fix tap action, hide during overview 2013-10-13 15:06:30 -04:00
Hakim El Hattab
abf33e55b0 functional playback control for auto sliding 2013-10-13 14:36:27 -04:00
Hakim El Hattab
356a1cf3b7 group feature detection results in 'features' object, test for canvas and requestAnimationFrame 2013-10-13 13:08:50 -04:00
Hakim El Hattab
9fa1382508 foundation for playback component 2013-10-13 13:02:50 -04:00
Hakim El Hattab
e14f5a95da prioritize closing preview when ESC is pressed 2013-10-13 11:47:04 -04:00
Hakim El Hattab
88d84e4551 override any value throguh query, deserialize values of getQueryHash #641 2013-10-11 22:33:23 -04:00
Hakim El Hattab
b455b0281d support for svg background images #632 2013-10-11 22:14:50 -04:00
Hakim El Hattab
942724238f better check for arrays in markdown plugin 2013-10-11 22:05:43 -04:00
Hakim El Hattab
f8fed1358a remove accidentally checked in files 2013-10-11 21:55:28 -04:00
Hakim El Hattab
bbad51e891 use named link for fragments #621 2013-10-11 21:54:25 -04:00
Hakim El Hattab
8f3b14193e Merge branch 'patch-1' of https://github.com/webpro/reveal.js into dev 2013-10-11 21:51:57 -04:00
Hakim El Hattab
421e52d6fb shell highlight #642 2013-10-11 21:48:02 -04:00
Hakim El Hattab
e94f62a58f add autoSlideStoppable config value, allows autoSlide to be aborted on user input 2013-10-11 08:40:40 -04:00
Hakim El Hattab
1421934fde code style 2013-10-10 09:21:06 -04:00
Hakim El Hattab
a143861478 Merge branch 'focus-body-on-visibility-change' of https://github.com/rexxars/reveal.js into dev 2013-10-10 09:14:35 -04:00
Hakim El Hattab
ac1dbd9d61 remove unused head.js in barebones example #616 2013-10-10 09:11:03 -04:00
Hakim El Hattab
9a7fbd6cd1 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2013-10-10 08:14:05 -04:00
olivierbloch
27bf130611 windows.navigator.pointerEnabled
for backward compatibility reasons, IE11 sets both msPointerEnabled and
pointerEnabled. Changed the order for the test and added 'else if' to
not duplicate handlers on pointer events
2013-10-01 15:15:10 -07:00
olivierbloch
e608dafaf1 IE11 Support
Added unprefixed touch-action CSS attribute
Added unprefixed pointer events handlers hooks
2013-10-01 14:06:55 -07:00
olivierbloch
27a86d261e IE 11 support
Added un-prefixed touch-action CSS attribute
added un-prefixed PointerEvents event handler hooks
2013-10-01 14:00:32 -07:00
Lars Kappert
275efa061a Property 'length' is not a variable. 2013-09-29 11:34:17 +02:00
Walther
80a4dfc0f8 add theme 'blood.' 2013-09-22 18:54:45 +03:00
Espen Hovlandsdal
6043756b2e Focus body when page visibility changes to ensure keyboard shortcuts are usable 2013-09-21 22:19:02 +02:00
Hakim El Hattab
059311923b serve remotes js from s3 #611 2013-09-19 23:36:39 -04:00
Hakim El Hattab
1cfb4fc242 remove extravagant comment 2013-09-19 23:32:06 -04:00
Chris Lawrence
55f220109c Merge remote-tracking branch 'upstream/master' 2013-09-15 20:19:47 -04:00
Hakim El Hattab
86216ac645 use 'url()'-free path when specifying parallax image, refactor so that parallax is applied to background class, remove unused attributes #595 2013-09-15 17:45:27 -04:00
Hakim El Hattab
36061b43ba update the parallax background when the window resizes #595 2013-09-15 14:58:41 -04:00
Hakim El Hattab
8399e828db move parallax code to separate method #595 2013-09-15 14:55:23 -04:00
Hakim El Hattab
347a907041 update code style to match rest of reveal.js, disable parallax by default #595 2013-09-15 14:48:54 -04:00
Hakim El Hattab
2fc0dfa8e1 merge parallax into dev, remove default image #595 2013-09-15 14:44:45 -04:00
Hakim El Hattab
9cf7de54b8 add contribution guidelines 2013-09-15 12:48:48 -04:00
Hakim El Hattab
1fb85d4df6 Merge branch 'master' of https://github.com/drhuettl/reveal.js 2013-09-15 11:53:09 -04:00
Hakim El Hattab
c28e023c32 update comment 2013-09-15 11:52:40 -04:00
Donald R. Huettl
45ad161930 prevent unintended slide change event
This prevents the upcoming slide on the notes page from triggering
slidechanged events.  I believe this fixes issue 578, as well.
2013-09-14 23:54:32 -05:00
Hakim El Hattab
ba20df4db9 add note about port #608 2013-09-14 12:20:59 -04:00
Hakim El Hattab
73bfb87ed1 Merge branch 'patch-1' of https://github.com/mrshu/reveal.js 2013-09-14 11:24:20 -04:00
Hakim El Hattab
a3f10e0b0f make sure remotes works without notes plugin being loaded #607 2013-09-14 11:12:21 -04:00
Hakim El Hattab
041a525a3c make hiding of address bar configurable 2013-09-11 21:55:49 -04:00
Marek Šuppa
b8efad0b27 Add option to Gruntfile.js to specify server port 2013-09-12 00:20:09 +02:00
Michał Smoliński
2bd228534b Fix: no parallax scrolling in FF
Fixed problem with parallax background  not working under FF
2013-09-11 20:41:50 +02:00
Michał Smoliński
2b5c06c4ef Added parallax scrolling background 2013-09-10 21:23:10 +02:00
Hakim El Hattab
79340908f4 rebuild css after merging #591 into dev 2013-09-06 23:05:02 -04:00
Tyler Cipriani
0f79903a10 Fix IE10 vertical slide perspective 2013-09-06 17:22:39 -06:00
Hakim El Hattab
c453bc4770 markdown plugin can now process slides that are added at runtime 2013-09-06 08:40:43 -04:00
Hakim El Hattab
ef9168c7c4 fix issue with notes on last slide of external markdown #589 2013-09-06 08:24:03 -04:00
Henrik
6f5ed2f90e supporting same languages as highlight.js 2013-09-05 10:45:50 +02:00
Hakim El Hattab
a3e6c95e79 reorder themes #584 2013-09-04 09:00:26 -04:00
Hakim El Hattab
6ba1a4b780 Merge branch 'list-themes' of https://github.com/tlevine/reveal.js into dev 2013-09-04 08:58:48 -04:00
Hakim El Hattab
2578fddd3f enable hiding of address bar for ios chrome #582 2013-09-04 08:56:50 -04:00
Hakim El Hattab
7cd4af80a6 update progress bar to hide/show using same type of rules as controls 2013-09-03 21:55:29 -04:00
Hakim El Hattab
932a6e047b Merge branch 'master' of https://github.com/ziggystar/reveal.js into dev 2013-09-03 21:51:52 -04:00
Hakim El Hattab
4251c5cd4d update grunt and node dependency versions 2013-09-03 20:49:51 -04:00
Thomas Geier
8a468394b5 fix: links not working when controls are disabled 2013-09-03 11:10:05 +02:00
Thomas Levine
4ce5c75d19 list more themes 2013-09-02 20:44:14 +00:00
Hakim El Hattab
a0f0371fb1 configure notes window presentations to hide needless UI 2013-08-29 09:28:38 -04:00
hakimel
8a7618793a syntax fix in code example 2013-08-28 09:43:36 -04:00
Hakim El Hattab
bba5a5d69c prep markdown test suite 2013-08-27 09:25:02 -04:00
Hakim El Hattab
d9c9474938 markdown refactoring #507 2013-08-27 09:11:43 -04:00
Hakim El Hattab
e9b0f5b481 minor refactoring of overview code 2013-08-26 09:20:12 -04:00
Hakim El Hattab
cf8b004052 update to latest version of highlight theme #576 2013-08-26 09:16:32 -04:00
Chris Lawrence
d8fb09fb64 Merge remote-tracking branch 'upstream/master' 2013-08-26 02:25:38 -04:00
Hakim El Hattab
571fb67864 fix bug where markdown notes in last slide would not parse #574 2013-08-24 16:13:24 -04:00
Hakim El Hattab
d62093c228 include dev flag in version 2013-08-24 15:10:10 -04:00
Hakim El Hattab
7e629936e5 always use 'i' as iterator 2013-08-24 11:06:52 -04:00
Hakim El Hattab
1c8fd60595 add test task, avoid attempt to run tests in unrelated html files 2013-08-24 10:52:35 -04:00
Hakim El Hattab
7f85c21386 markdown refactoring; comments, renamed functions, shorter argument lists 2013-08-24 10:39:15 -04:00
Hakim El Hattab
1c5da37ca6 more markdown plugin refactoring 2013-08-24 10:03:34 -04:00
Hakim El Hattab
4350c0024f standardize way of declaring functions 2013-08-23 17:51:20 -04:00
Hakim El Hattab
b968dfef15 update markdown plugin formatting to match reveal.js core 2013-08-23 17:49:19 -04:00
Hakim El Hattab
f215528575 pause mode tests 2013-08-23 15:57:28 -04:00
Hakim El Hattab
798fbc3dff test coverage for fragments 2013-08-23 15:36:16 -04:00
Hakim El Hattab
2440e19fab move examples into test/ 2013-08-23 14:57:11 -04:00
Hakim El Hattab
a0501a30b2 make sure isVerticalSlide doesn't throw npe 2013-08-23 09:10:11 -04:00
Hakim El Hattab
5cf49561a8 add test for loop setting 2013-08-22 21:38:37 -04:00
Hakim El Hattab
502b26ecf0 run unit tests as part of grunt build and ci 2013-08-22 20:31:52 -04:00
Hakim El Hattab
b3db69745d more tests #123 2013-08-22 20:27:41 -04:00
Hakim El Hattab
45fd91f962 more tests, enable test page scroll overflow #123 2013-08-22 20:09:40 -04:00
Hakim El Hattab
c01e1b648b more tests, use stricEqual and deepEqual assertions where appropriate #123 2013-08-22 19:51:00 -04:00
Hakim El Hattab
d49ff9aa5f include info about which slide the assertion applies to 2013-08-22 19:46:35 -04:00
Hakim El Hattab
f61ee9a693 fix bug where isLastSlide sometimes incorrectly returned false 2013-08-22 19:35:28 -04:00
Hakim El Hattab
a7b348e83b add qunit grunt dependency 2013-08-22 19:06:41 -04:00
Hakim El Hattab
c7728ba659 add unit tests #123 2013-08-22 19:03:11 -04:00
Hakim El Hattab
8d7e93cfc6 2.6.0 2013-08-22 19:02:16 -04:00
Hakim El Hattab
55d3aea268 leap motion doc tweaks 2013-08-22 11:23:22 -04:00
Hakim El Hattab
90a8ca4168 mathjax readme tweak 2013-08-20 23:30:11 -04:00
Hakim El Hattab
4164200474 Merge pull request #567 from hakimel/dev
2.5.0
2013-08-20 20:14:22 -07:00
Hakim El Hattab
2da7c3eacf readme update for notes in external markdown 2013-08-20 22:37:20 -04:00
Hakim El Hattab
631a237b36 merge support for notes when using external markdown 2013-08-20 22:32:19 -04:00
Hakim El Hattab
5cd088cec3 remove needless metadata from math plugin example 2013-08-20 09:10:26 -04:00
Hakim El Hattab
f56a10b9ff disable interaction on future/past slides 2013-08-20 09:05:30 -04:00
Hakim El Hattab
d3ac8e2343 typo fix 2013-08-19 23:52:05 -04:00
Hakim El Hattab
006e9e2ebc Merge branch 'dev' of github.com:hakimel/reveal.js into dev 2013-08-19 23:50:28 -04:00
Hakim El Hattab
2a8f7426f3 add docs about stretch class 2013-08-19 23:50:18 -04:00
Hakim El Hattab
0a021845df make sure stretch works with video 2013-08-19 23:46:29 -04:00
Hakim El Hattab
93c16b83e5 Merge pull request #564 from tomByrer/patch-1
MathJax CDN links for HTTPS & versions
2013-08-19 07:52:04 -07:00
tomByrer
1c45b735de + MathJax CDN links for HTTPS & versions 2013-08-19 00:58:51 -06:00
Chris Lawrence
f84e025d38 Merge remote-tracking branch 'upstream/master' 2013-08-19 01:04:34 -04:00
Hakim El Hattab
74a5fb949d remove commented out dependencies from index 2013-08-18 18:13:31 -04:00
Hakim El Hattab
0748b68335 renamed .remaining-height to .stretch #244 #490 #561 2013-08-18 17:56:41 -04:00
Hakim El Hattab
04c4fa49b8 revised remaining height layout logic 2013-08-18 17:53:41 -04:00
Hakim El Hattab
6f1dfee81b ensure that syntax highlighted code works with remaining-height helper 2013-08-18 15:41:29 -04:00
Hakim El Hattab
6fba833de8 readme adjustment 2013-08-18 15:34:10 -04:00
Hakim El Hattab
62049d1b6d math plugin doc update 2013-08-18 14:43:04 -04:00
Hakim El Hattab
300acb5637 document math plugin 2013-08-18 14:38:01 -04:00
Hakim El Hattab
c9853233ae rename math plugin config option 2013-08-18 14:13:55 -04:00
Hakim El Hattab
271bae6b56 allow hiding of vertical slide stacks 2013-08-18 00:01:28 -04:00
Hakim El Hattab
3dc53b891d prevent invalid slidechanged on page load 2013-08-17 12:18:48 -04:00
Hakim El Hattab
3c5f3ee048 fix retrieval of computed styles in ff 2013-08-17 12:15:55 -04:00
Hakim El Hattab
0239302f45 further work on remaining-height helper #244 #490 #561 2013-08-17 12:11:05 -04:00
Hakim El Hattab
fecee266b6 start work on logic for fitting an element to remaining slide height #244 #490 #561 2013-08-16 09:31:13 -04:00
Hakim El Hattab
2bed5833ca remove pointless .call() 2013-08-16 09:30:22 -04:00
Hakim El Hattab
ead85fd475 refactor js, more natural order of startup methods 2013-08-15 08:54:17 -04:00
Hakim El Hattab
ac3f021a14 add initial slide dom setup pass 2013-08-15 08:51:11 -04:00
Hakim El Hattab
6c0dc635a1 add util method for applying css transforms 2013-08-13 09:27:28 -04:00
Hakim El Hattab
b17e285164 mathjax plugin updates #531 2013-08-13 08:53:41 -04:00
Hakim El Hattab
71218583f7 add isReady method to check reveal.js loaded state 2013-08-13 08:41:16 -04:00
Hakim El Hattab
e7ee8858a2 remove unused code 2013-08-13 00:10:14 -04:00
Hakim El Hattab
3e23b8b690 make mathjax host a config option, revamp script loading, fragment examples #531 2013-08-12 23:15:19 -04:00
Hakim El Hattab
3901904057 comments and failesafes for #531 2013-08-12 23:01:35 -04:00
Hakim El Hattab
69f7c0c693 updates to mathjax plugin, incl more examples #531 2013-08-12 22:42:14 -04:00
Hakim El Hattab
9984cb1f21 limit scope of mathjax rerender #531 2013-08-12 09:27:23 -04:00
Hakim El Hattab
a6af097051 additional math examples #531 2013-08-12 09:24:29 -04:00
Hakim El Hattab
1748a29ff3 first version of mathjax plugin #531 2013-08-12 09:21:38 -04:00
Hakim El Hattab
41edd914ad merge dom setup refactor #544 2013-08-11 16:47:56 -04:00
Hakim El Hattab
32818e0149 move leap styles to js #554 2013-08-11 16:37:17 -04:00
Hakim El Hattab
49298e1991 disable transitions while presentation loads 2013-08-11 16:32:15 -04:00
Hakim El Hattab
cc41aa9115 correction to view distance calculation for vertical slides 2013-08-11 16:27:52 -04:00
Hakim El Hattab
a96ace5194 a few corrections to overview slide positioning 2013-08-11 13:50:51 -04:00
Hakim El Hattab
93f516d30d fix bug that caused slideshow to break if an unexisting named link was used 2013-08-11 13:44:03 -04:00
Hakim El Hattab
ffd3ea410b display more slides in overview 2013-08-11 13:42:50 -04:00
Guillaume Turri
48f5ba9367 Formatting 2013-08-11 16:34:04 +02:00
Guillaume Turri
644ae56f4f inlined method used only once 2013-08-11 16:30:08 +02:00
Guillaume Turri
e18ffa8779 Use more explicit name 2013-08-11 16:25:43 +02:00
Hakim El Hattab
81f762080b rename embed > embedded to signal that it's a state and not an action 2013-08-10 14:38:42 -04:00
Hakim El Hattab
785bee596b add embed option 2013-08-10 14:30:24 -04:00
Hakim El Hattab
0add83e9ed renamed handled flag to captured 2013-08-10 14:09:23 -04:00
Hakim El Hattab
b800d147b1 reduce touch event threshold to make it more sensitive 2013-08-10 13:42:53 -04:00
Hakim El Hattab
8222795c87 code formatting 2013-08-10 13:40:22 -04:00
Hakim El Hattab
73b69eb13d reduce overview depth on small screens 2013-08-10 13:32:19 -04:00
Hakim El Hattab
8e01c03824 make view distance configurable #527 2013-08-10 13:16:45 -04:00
Hakim El Hattab
8ad81aa1a5 delay client capability test until initialization phase 2013-08-10 13:10:48 -04:00
Hakim El Hattab
7b5e537157 much improved distance measuring logic, improves performance on mobile and fixes some crashes 2013-08-10 12:52:40 -04:00
Hakim El Hattab
cb26ff6211 note about speaker notes in setup docs #207 2013-08-09 23:56:26 -04:00
Hakim El Hattab
fc43e905d5 merge master into dev 2013-08-08 13:34:24 -04:00
Hakim El Hattab
8c1923b4a3 Merge pull request #554 from gneatgeek/leapmotion-plugin
Leapmotion plugin
2013-08-08 10:34:22 -07:00
Hakim El Hattab
e135f136c1 merge in leap plugin #554 2013-08-08 10:23:02 -04:00
Rory Hardy
b2c6ccc912 Minor update
Made sure all vars are declared with the var keyword.
	modified:   plugin/leap/leap.js
2013-08-07 22:40:07 -05:00
Rory Hardy
0a78486b22 Update index.html
Commented out leap plugin inclusion.
2013-08-07 22:06:41 -05:00
Rory Hardy
1e1919274c Removed redundant code
modified:   plugin/leap/leap.js
2013-08-07 22:07:02 -05:00
Rory Hardy
bd543e5cee Various updates
Enhanced the pointer.
Cleaned up the code.
Added additional optional parameters.
Updated documentation.

modified:   README.md
modified:   index.html
modified:   plugin/leap/leap.js
2013-08-07 21:53:31 -05:00
Rory Hardy
1d895bad61 Docs and updates
Updated README.md to mention the leap plugin.
Removed leap settings from index.html.
Better variable naming in leap.js

modified:   README.md
modified:   index.html
modified:   plugin/leap/leap.js
2013-08-06 00:11:58 -05:00
Rory Hardy
36a4f56f62 Minor updates
modified:   css/reveal.min.css
modified:   plugin/leap/leap.js
2013-08-05 23:36:07 -05:00
Rory Hardy
32865b43f8 Put the timing code back in.
Occasionally gestures were fired twice. This helps prevent that.
modified:   plugin/leap/leap.js
2013-08-05 22:49:39 -05:00
Rory Hardy
dbcbc7aa69 Added pointer and tweaked the code
modified:   css/reveal.css
modified:   css/reveal.min.css
modified:   plugin/leap/leap.js
2013-08-05 22:41:04 -05:00
Rory Hardy
a06c84e42a Removed timing code.
When used correctly, the 1/2 second delay is uncessary and may yield undesireable results.
modified:   plugin/leap/leap.js
2013-08-05 12:43:07 -05:00
Rory Hardy
0e7bc4091e Minor updates
Changed invert to naturalSwipe
Removed invert rule from index.html
Ensured that left/right swipes only work with 1 hand present
modified:   index.html
modified:   plugin/leap/leap.js
2013-08-04 20:27:47 -05:00
Rory Hardy
70cade3732 Updates to leap.js and index.html
Added timing code to limit gesture calls.
Added gesture to access the overview.
index.html includes the leap plugin
2013-08-04 20:22:34 -05:00
sun16
af5acd1aa2 Added gestures
Left, right, up, and down gestures.
Optional invert for gestures.
2013-08-03 22:36:11 -05:00
Rory Hardy
b2980a705b Added leap.min.js and comments. 2013-08-03 22:33:31 -05:00
Hakim El Hattab
fe90f2b8c7 Merge branch 'bug/markdown' of https://github.com/snowyu/reveal.js into dev 2013-07-31 08:37:53 -04:00
Riceball LEE
efbcab57f7 * [bug] fixed render markdown file error like this:
```html
<section data-markdown>
<script type="text/template">
</script>
</section>
```
2013-07-31 07:12:29 +08:00
Guillaume Turri
04b9e444d9 Minor refactoring
Removed some code duplication
2013-07-29 14:46:02 +02:00
Hakim El Hattab
53f1f110c8 ensure notes window fragment states are mirrored in main window #538 2013-07-26 10:03:59 -04:00
Hakim El Hattab
03385d7245 simplify client side notes plugin 2013-07-26 09:48:21 -04:00
Hakim El Hattab
8bf19ab61f restore rolling links.. but default to off #532 2013-07-26 09:33:25 -04:00
Hakim El Hattab
4c491e5ecc highlight charset option for external md in readme #537 2013-07-24 23:35:28 -04:00
Hakim El Hattab
289ea804ad Merge branch 'master' of https://github.com/iMilnb/reveal.js into dev 2013-07-24 23:30:13 -04:00
Emile 'iMil' Heitor
3ca598473b updated markdown example with data-charset 2013-07-23 17:34:23 +02:00
Emile 'iMil' Heitor
ce0facf7b2 added custom charset support for external markdown file 2013-07-23 17:31:30 +02:00
Hakim El Hattab
b6e85816e5 typo 2013-07-22 08:54:43 -04:00
Hakim El Hattab
09d7589e3e Merge branch 'master' of https://github.com/MatthewEppelsheimer/reveal.js into dev 2013-07-22 08:47:54 -04:00
Chris Lawrence
4874b13f91 Merge remote-tracking branch 'upstream/master' 2013-07-22 05:39:20 -04:00
Matthew Eppelsheimer
9b2f62496c Make header margin an overridable setting.
css/theme/template/settings.scss adds the $headingMargin variable, set to `0 0 20px 0`.
css/theme/template/theme.scss uses $headingMargin to set margin on headers.
2013-07-20 21:32:51 -07:00
Hakim El Hattab
e8d257ec77 remove 'rolling links' #532 2013-07-20 22:56:48 -04:00
Hakim El Hattab
4a68d2d6a5 correction to bug introduced via #529 2013-07-20 22:51:52 -04:00
Hakim El Hattab
8dcf324f7a only call slide() after hash changes if indices have changed #529 2013-07-19 09:35:49 -04:00
Hakim El Hattab
5cb9a58938 remove delay from url update #530 2013-07-19 09:23:22 -04:00
Hakim El Hattab
1bb810e072 add optional 'o' key to toggle overview #491 2013-07-18 21:53:00 -04:00
Hakim El Hattab
0148b3fc2d multiplex readme tweaks #514 2013-07-18 21:16:22 -04:00
Hakim El Hattab
8f47bd04e6 document 'none' background transition 2013-07-16 22:46:13 -04:00
Hakim El Hattab
17332318f4 add immediate transition style (#528) 2013-07-16 22:41:16 -04:00
Hakim El Hattab
6a32756908 Merge branch 'dev' of github.com:hakimel/reveal.js into dev 2013-07-14 18:19:52 -04:00
Hakim El Hattab
bf864c7a0d ensure all future fragments are invisible #473 2013-07-14 18:19:40 -04:00
Hakim El Hattab
fe4315e912 readme update for #505 2013-07-14 17:47:49 -04:00
Hakim El Hattab
0cb6eab979 fix initial auto-slide overridev #525 2013-07-14 17:35:49 -04:00
Hakim El Hattab
18b4cb754a typo and whitespace correction 2013-07-10 09:01:56 -04:00
Hakim El Hattab
85043645ec work around iframe flicker in 3d transitions 2013-07-10 08:59:07 -04:00
Hakim El Hattab
7d19b4f7ce update changelog links 2013-07-02 18:42:37 -04:00
Hakim El Hattab
ed0af87abd update url to setup instructions (closes #520) 2013-07-01 10:26:27 -04:00
Hakim El Hattab
b292c6f3f4 add barebones example 2013-06-29 21:48:56 -04:00
Hakim El Hattab
01e5a54bb6 test > examples 2013-06-29 21:42:15 -04:00
Hakim El Hattab
f1234e51e1 Merge branch 'fix-notes-after-pr-435' of https://github.com/ericweikl/reveal.js 2013-06-29 21:36:35 -04:00
Hakim El Hattab
f0e63c8e75 additional background test 2013-06-29 21:36:11 -04:00
Hakim El Hattab
5a400dc678 Merge pull request #517 from punchFaceChamp/patch-2
Updated README.md
2013-06-29 18:32:26 -07:00
Shammel Lee
668f144f38 Updated README.md
Added "touch" config property
2013-06-28 16:08:40 -04:00
Chris Lawrence
ad086b897e Merge remote-tracking branch 'upstream/master' 2013-06-26 21:21:19 -04:00
Hakim El Hattab
37c9246a6e default lineheight #512 2013-06-26 18:20:21 -04:00
Adam Hepton
245efee894 Support for notes within markdown 2013-06-25 12:15:22 +01:00
Hakim El Hattab
235c78a5c8 pdf print tweak 2013-06-23 10:02:16 -04:00
Hakim El Hattab
c065705128 background image tweaks 2013-06-22 19:23:44 -04:00
Hakim El Hattab
c9b179fd85 pdf hacks 2013-06-22 09:47:29 -04:00
Chris Lawrence
173b4e7f25 Merge remote-tracking branch 'upstream/master' 2013-06-22 01:47:40 -04:00
Hakim El Hattab
bfbeac7a79 removes the extra blank page that was printed with pdf #458 2013-06-21 22:02:06 -04:00
Chris Lawrence
7b119763f8 Merge remote-tracking branch 'upstream/master' 2013-06-21 17:57:09 -04:00
Hakim El Hattab
e51c0fc3ce broader image url detect (closes #500) 2013-06-20 16:46:26 -04:00
Hakim El Hattab
7e8ee5340e update phanomjs pdf printing to work with latest pdf css 2013-06-18 21:55:23 -04:00
Hakim El Hattab
789a196e8f Merge branch 'master' of github.com:hakimel/reveal.js 2013-06-18 20:22:19 -04:00
Hakim El Hattab
922b0037cd adjust background image url detection #453 2013-06-18 20:22:08 -04:00
Eric Weikl
46dd9dd817 Create a single fragment event per fragment-index
For backward-compatibility, add a new 'fragments' property to the
fragmentshown and fragmenthidden events. The 'fragment' property still
returns the first fragment.
2013-06-18 18:33:03 +02:00
Hakim El Hattab
8aede28699 readme restructure, add keyboard section 2013-06-18 10:22:47 -03:00
Hakim El Hattab
2dce8db491 readme update 2013-06-18 10:09:19 -03:00
Hakim El Hattab
ed81faa467 Merge branch 'master' of github.com:hakimel/reveal.js into dev 2013-06-18 09:01:51 -04:00
Hakim El Hattab
4bc16ff5b6 transition override examples in default contents 2013-06-18 08:53:15 -04:00
Hakim El Hattab
c3da106363 rename 'linear' background transition to 'slide' 2013-06-18 08:40:05 -04:00
Hakim El Hattab
eb5b39e685 support for background transition overrides 2013-06-18 08:37:06 -04:00
Chris Lawrence
636a666197 Merge remote-tracking branch 'upstream/master' 2013-06-17 22:55:52 -04:00
Hakim El Hattab
b0b6c75629 mouse wheel tweaks (closes #454) 2013-06-16 19:55:58 -04:00
Hakim El Hattab
b6e3568f52 minify js for #493 2013-06-16 19:36:23 -04:00
Hakim El Hattab
4fde6124e6 merge navigate prev fix #493 2013-06-16 19:33:57 -04:00
Hakim El Hattab
516b1fc794 readme typo (closes #495) 2013-06-16 19:29:12 -04:00
Rick Lupton
d355a04061 Fix jshint test 2013-06-16 22:25:37 +01:00
Hakim El Hattab
56595d65cf keyboard config object support #405 2013-06-16 11:49:51 -04:00
Rick Lupton
510839ab04 Fix navigatePrev() past beginning of stack: fixes issue #463.#463.#463.
Previously navigatePrev() was changing indexh and indexv; instead should
call slide(h, v) and let it change indexh and indexv.
2013-06-14 15:12:56 +01:00
Hakim El Hattab
a9dce74e24 recompile themes #488 2013-06-13 21:31:56 -04:00
Hakim El Hattab
e8f42736ff Merge branch 'master' of https://github.com/OwenVersteeg/reveal.js 2013-06-13 21:30:58 -04:00
Owen Versteeg
cc133679be Fix links so they aren't cut off (in SCSS) 2013-06-13 20:48:20 -03:00
Owen Versteeg
c5408f37da Fix links so they aren't cut off (in SCSS) 2013-06-13 19:42:19 -04:00
Owen Versteeg
6acfcad2f4 correct links in sky theme
They looked a little wonky if you used a G or a Y.
2013-06-10 20:47:12 -03:00
Hakim El Hattab
30a0e67340 Merge pull request #487 from OwenVersteeg/master
update serif (controls, attribution URL, and fix <a> elements)
2013-06-10 16:35:59 -07:00
Owen Versteeg
2990909cc4 update serif (change controls, fix links, change url)
The Serif theme was a little flaky previously
2013-06-10 20:32:34 -03:00
Hakim El Hattab
7094f44eb9 merge conflicts w preview & backgrounds 2013-06-10 16:53:41 -04:00
Hakim El Hattab
424f8ee961 additional background test 2013-06-10 22:34:51 +02:00
Hakim El Hattab
c3b91560c7 match background and transition slide transition easing equations 2013-06-10 08:59:58 +02:00
Hakim El Hattab
abb4ca8f2d rtl support for new sliding backgrounds 2013-06-10 08:55:59 +02:00
Hakim El Hattab
8e348af8b8 pluralize background classname to match '.slides' 2013-06-10 08:49:53 +02:00
Hakim El Hattab
7e50404ad7 markup error correction 2013-06-10 08:43:01 +02:00
Hakim El Hattab
5655b5f467 semi-correction #470 2013-06-09 19:17:31 +02:00
Hakim El Hattab
1c16148c09 set 'hidden' attribute on all slides except the present (#457) 2013-06-09 17:15:40 +02:00
Hakim El Hattab
8393efe8e9 serve notes/multiple index document as html (closes #470) 2013-06-09 17:07:14 +02:00
Hakim El Hattab
f5a379b8a1 merge notes timer rounding fix 2013-06-09 16:51:35 +02:00
Hakim El Hattab
aa9e298f3d update code style to match after merge 2013-06-09 16:47:27 +02:00
Hakim El Hattab
033f3ab169 merge fix for embedded media repeated autoplay 2013-06-09 16:44:03 +02:00
Hakim El Hattab
ddfb130d11 add test deck for embedded media 2013-06-09 16:42:55 +02:00
Hakim El Hattab
4d164dc5b6 revamp pdf printing to support per-slide backgrounds (closes #453) 2013-06-09 16:12:50 +02:00
Chris Lawrence
d3ebbf1be7 Only call embedded content bits if the slide actually changed. 2013-06-08 05:45:48 -04:00
Hakim El Hattab
ff35847fc6 update example deck to use slide backgrounds (#453) 2013-06-04 21:29:32 +02:00
Hakim El Hattab
0ce57f1f91 update background test, documented slide backgrounds in readme (#453) 2013-06-04 21:14:17 +02:00
Hakim El Hattab
544e090bd1 allow control over background color when using images (#453) 2013-06-04 20:25:47 +02:00
Hakim El Hattab
15f24f7a9a linear sliding transition option for full page backgrounds (#453) 2013-06-04 20:15:19 +02:00
Hakim El Hattab
c11e8f624f support for optional background property overrides (#453) 2013-06-04 19:58:50 +02:00
Hakim El Hattab
bfadfcc7ce don't transition to first slide background (#453) 2013-06-04 19:51:06 +02:00
Hakim El Hattab
90811b8709 add test directory and simple test document for per-slide backgrounds (#453) 2013-06-04 19:42:56 +02:00
Hakim El Hattab
f3f5d7780a started the new per-slide background implementation (#453) 2013-06-04 19:42:33 +02:00
Thomas Rosenau
28d370f2af Use Math.floor instead of parseInt to avoid problems with very small numbers like 2e-10 2013-06-02 11:02:53 +02:00
Hakim El Hattab
396d531770 typo (closes #471) 2013-05-26 15:16:26 -03:00
Hakim El Hattab
8b355eaba0 support vertical align of slides with absolute children 2013-05-20 00:29:34 -04:00
Hakim El Hattab
de551634c6 initial implentation of preview frame, add semi-fade fragment style, data-full-height support 2013-05-20 00:18:48 -04:00
Hakim El Hattab
b67889049a viewport meta to fit notes window on ipad 2013-05-19 17:01:52 -04:00
Hakim El Hattab
d1a97b379f float fix in notes-server plugin 2013-05-19 16:42:36 -04:00
Hakim El Hattab
29dbd29962 typos 2013-05-12 17:25:06 -04:00
Hakim El Hattab
d94ae2cf70 -ms-touch-action for #450 2013-05-12 09:47:24 -04:00
Hakim El Hattab
f5155ed2a1 upgrade to 2.5.0 2013-05-12 09:45:20 -04:00
Hakim El Hattab
5642b8d5d3 fix previousFragment, was hiding in reverse order #435 2013-05-05 18:59:17 -04:00
Hakim El Hattab
db4eb20bc3 merge notes float fix and support for multiple fragments with same index 2013-05-05 18:44:10 -04:00
Hakim El Hattab
6b6c87db97 add data-start-indexv #427 2013-05-05 18:40:08 -04:00
Eric Weikl
88eb0af776 Allow override of HTML escaping in code blocks
This way, authors can use HTML for special formatting.
2013-05-05 16:19:08 +02:00
Hakim El Hattab
4d89687fde change markdown code sample syntax 2013-05-04 16:07:49 -04:00
Hakim El Hattab
cb7a9c963d merge master into dev 2013-05-04 16:06:06 -04:00
Hakim El Hattab
f157aec1de Merge branch 'remotes-plugin-natural-bindings' of https://github.com/toy/reveal.js into dev 2013-05-04 15:03:19 -04:00
Hakim El Hattab
c746233f66 rvl.io > slid.es 2013-05-04 14:57:41 -04:00
Hakim El Hattab
f345326a4e re-arrange readme 2013-05-04 14:39:36 -03:00
Hakim El Hattab
5132ccd26d setup instructions #357 2013-05-04 14:38:02 -03:00
Hakim El Hattab
7c9b3421a2 add package and serve grunt tasks (closes #437) 2013-05-04 10:51:27 -04:00
Hakim El Hattab
0344f2f785 fix ios flicker bug with linear transition #410 2013-05-03 21:51:49 -04:00
Ivan Kuchin
352ec7e9ad remotes plugin more natural bindings: tap — next, zoom-out — activate overview, zoom-in — deactivate overview 2013-05-04 02:27:55 +02:00
Hakim El Hattab
028d9186ec merge marked tweak 2013-05-03 09:14:38 -04:00
Hakim El Hattab
f3f9e5b546 remove automatic quotation marks on blockquote/q (closes #434) 2013-05-03 09:13:10 -04:00
Amit Kotlovski
0cbe741afd remove lang prefix from marked.js to fix highlight issue 2013-05-02 18:42:12 +03:00
Hakim El Hattab
39b53a7b3c minify marked #433 2013-05-02 09:18:28 -04:00
Hakim El Hattab
beda5f4881 merge showdown to marked migration 2013-05-02 09:09:33 -04:00
Nigel Stanger
76fce3b4d9 Support for multiple elements with same data-fragment-index
When multiple elements are specified with the same data-fragment-index,
they are all shown or hidden at once.
2013-05-02 12:26:23 +12:00
Nigel Stanger
1219564e05 Added clear:left to notes DIV
Resolves an issue where the first label (e.g., first bullet or first
number) of a list would wrap to the right side of the window and be
hidden under the clock element.
2013-05-02 12:02:46 +12:00
Amit Kotlovski
381da383d9 Replace the ShowDown Markdown engine with marked 2013-05-01 23:10:31 +03:00
Raymond Camden
b649c19af9 Moved my code to auto escape html to the right place 2013-05-01 14:44:53 -05:00
Raymond Camden
0441c26be1 Adds support for auto escaping HTML in code blocks. 2013-05-01 14:29:56 -05:00
Hakim El Hattab
247771e129 update control styles for fragments 2013-04-30 00:07:07 -04:00
Hakim El Hattab
36a8f12127 add isVerticalSlide utility method 2013-04-29 22:07:09 -04:00
Hakim El Hattab
0306e0fa0d greatly improved rtl, slides and progress are now reversed #339 2013-04-29 21:54:39 -04:00
Hakim El Hattab
f210e7b1b5 avoid errors in old ie from code highlighting 2013-04-28 14:12:31 -04:00
Hakim El Hattab
78c4bf420e slight readme tweak 2013-04-27 18:43:14 -04:00
Hakim El Hattab
caeeacbe4a update readme to cover #388 2013-04-27 18:42:15 -04:00
Hakim El Hattab
06d0579610 only auto-play media when data-autoplay is set (#388) 2013-04-27 18:36:29 -04:00
Hakim El Hattab
ed4a8b51c5 auto play/pause youtube video when entering/leaving slide (#388) 2013-04-27 18:32:56 -04:00
Hakim El Hattab
32736a791c auto play/pause html5 media when entering/leaving slide (#388) 2013-04-27 18:27:34 -04:00
Hakim El Hattab
18795c161f add config option for disabling all fragments 2013-04-27 18:03:06 -04:00
Hakim El Hattab
1dfcab906e fix control arrow anti-aliasing in ff 2013-04-27 17:38:52 -04:00
Hakim El Hattab
6cfc6ecc49 available fragment routes reflected in control arrows (closes #411) 2013-04-27 17:35:17 -04:00
Hakim El Hattab
0ebda98735 greatly simplify next/prev fragment routines 2013-04-27 16:23:28 -04:00
Hakim El Hattab
fdecb74cc8 also update controls and progress on sync 2013-04-27 16:18:39 -04:00
Hakim El Hattab
31e9c415fe update progress bar on window resize 2013-04-27 16:10:47 -04:00
Hakim El Hattab
ce66980367 add sync method 2013-04-27 16:09:38 -04:00
Hakim El Hattab
a764c21cd1 add support for data-trim attribute on code elements (closes #419) 2013-04-27 15:50:33 -04:00
Hakim El Hattab
07d0ed8ba6 note included languages in highlight.js build #421 2013-04-27 15:22:37 -04:00
Hakim El Hattab
889692e26a support code highlighting of a few more common languages #421 2013-04-27 13:22:08 -04:00
Hakim El Hattab
336077daeb indentation tweak #417 2013-04-27 13:16:50 -04:00
Hakim El Hattab
38577cceb6 Merge branch 'master' of https://github.com/bozor/reveal.js into dev 2013-04-27 13:14:59 -04:00
Hakim El Hattab
e828b572e7 Merge pull request #425 from marcvangend/master
Use webkitRequestFullscreen if available
2013-04-24 14:07:15 -07:00
Marc van Gend
5736d4ae6e Use the newer element.webkitRequestFullscreen method if available, to support all key events in fullscreen mode. 2013-04-24 22:31:18 +02:00
Hakim El Hattab
f6f0bd96c8 Merge pull request #418 from danse/patch-1
typo
2013-04-24 07:47:05 -07:00
danse
c69b118079 typo 2013-04-24 17:46:10 +03:00
Hakim El Hattab
ab2d8d3eaa Merge branch 'master' of https://github.com/hakimel/reveal.js into dev 2013-04-24 10:27:02 -04:00
Hakim El Hattab
1453d15452 ie8 tweaks 2013-04-23 22:01:11 -04:00
bozor
eb4d02b394 Added a Zoom-in fragment transition 2013-04-23 17:43:51 +02:00
Hakim El Hattab
ba944767a7 remove ?notes from readme 2013-04-22 10:55:46 -03:00
Hakim El Hattab
9f732edf82 more state backgrounds 2013-04-21 21:10:16 -04:00
Hakim El Hattab
914a12e9cf forward all attributes for markdown slides (#413) 2013-04-20 09:16:41 -04:00
Martin Kurtsson
6536d8467f Added support for data-state in section when using external markdown files. 2013-04-20 12:45:11 +02:00
Hakim El Hattab
fee256d8a7 adjust order in readme 2013-04-18 10:01:24 -03:00
Hakim El Hattab
e05aa30db9 Merge pull request #398 from jmdobry/multiplex-docs
Clarified documentation for multiplex plugin.
2013-04-18 05:56:47 -07:00
Hakim El Hattab
cc455e2553 correction to navigate top/right/bottom/left methods (closes #409) 2013-04-18 08:53:11 -04:00
Hakim El Hattab
a18b2a94cf add a few more state background (#396) 2013-04-16 09:07:55 -04:00
Hakim El Hattab
70b7ce360c return current fragment index through getIndices, replaces getCurrentFragmentIndex #395 2013-04-16 08:59:35 -04:00
Hakim El Hattab
3f8f146466 fix previous slide navigation logic (closes #397) 2013-04-15 09:07:09 -04:00
Hakim El Hattab
5181f6e17f Merge branch 'master' of https://github.com/ainformatico/reveal.js into dev 2013-04-15 09:01:45 -04:00
Hakim El Hattab
00b197792b increase min-height of cube/page transitions 2013-04-13 10:12:00 -04:00
Hakim El Hattab
3999430b81 merge mutiplex fragment fix #395 2013-04-11 09:17:20 -04:00
Hakim El Hattab
25e0fbc050 hide rolling links backface 2013-04-10 22:36:33 -04:00
Alejandro El Informático
87894e5503 fix prevents loading remote plugin several times when notes are enabled 2013-04-08 16:18:34 +02:00
tkaczmarzyk
2256621169 returning index only when current fragment is defined 2013-04-07 06:38:21 +02:00
Jason Dobry
bf713c6ce1 Clarified documentation for multiplex plugin.
Thanks to @davidbanham for his help.
2013-04-06 17:06:50 -06:00
tkaczmarzyk
2f8aa51dc2 simplified getCurrentFragmentIndex impl 2013-04-06 18:18:54 +02:00
Hakim El Hattab
a400dd0c70 support for transition speed settings (closes #392) 2013-04-06 12:18:25 -04:00
tkaczmarzyk
6e3487bdd6 removed no longer required helper method 2013-04-06 18:00:32 +02:00
Hakim El Hattab
308987ee31 fix url in readme (closes #393) 2013-04-06 12:42:19 -03:00
tkaczmarzyk
c12b780736 broadcasting fragments state in multiplex plugin (#394) 2013-04-06 13:19:34 +02:00
Hakim El Hattab
3040bc2917 always use https google font urls (closes #382) 2013-04-02 12:31:58 -04:00
Hakim El Hattab
9f6eb282be readme code type fix 2013-04-01 11:00:45 -03:00
Hakim El Hattab
91a8c9b1e4 Update README.md 2013-03-31 00:41:31 -03:00
Hakim El Hattab
6f1049eb8b readme update 2013-03-30 23:36:10 -04:00
Hakim El Hattab
809b46fb5c note about #39 in readme 2013-03-30 23:29:04 -04:00
Hakim El Hattab
46023602d2 support for varied transitions between slides (#39) 2013-03-30 23:23:41 -04:00
Hakim El Hattab
6ece551f8a always construct controls and progress bar at startup (closes #384) 2013-03-30 22:54:57 -04:00
Hakim El Hattab
5353404361 protocol-relative paths for google webfonts (closes #382) 2013-03-30 22:49:46 -04:00
Hakim El Hattab
2c61445f7e Merge branch 'master' of https://github.com/theoreticaLee/reveal.js into dev 2013-03-30 21:58:03 -04:00
Hakim El Hattab
433c7a66cd Merge branch 'md-error-handling' of https://github.com/jakubholynet/reveal.js into dev 2013-03-30 21:54:30 -04:00
Hakim El Hattab
c2aff87379 Merge branch 'patch-1' of https://github.com/jish/reveal.js into dev 2013-03-30 21:51:15 -04:00
Lee Leathers
c457f7c5ae Add Reveal.js license to package.json 2013-03-27 00:23:17 -07:00
Jakub Holy
f6487dc312 More verbose error slide (HTTP necessary) 2013-03-24 23:30:50 +01:00
Jakub Holy
8fd28a9185 Better error reporting for external Markdown files
1. Show an alert when loading the file throws an exception
2. Whenever the status isn't success (2xx) - upon exception or e.g.
  "file not found" - replace the section's content with information
  about the failure (instead of being silent about it and showing
  a blank slide).

We need to inform the user something went wrong, not just be silent
about it. An experienced developer, upon seing a blank slide, will
likely check the javascript console - but the rest will profit from
being told about the problem (and solution) explicitely.
2013-03-24 18:06:44 +01:00
Josh Lubaway
1f4ace01f2 Update README.md
Changing the link to grunt.js installation instructions.
2013-03-23 16:14:44 -07:00
Hakim El Hattab
3a03c4cd28 add availableRoutes to the api (#371) 2013-03-23 11:42:21 -04:00
Hakim El Hattab
08bf6148b1 disable wrapping in code blocks (closes #375) 2013-03-23 11:39:45 -04:00
Hakim El Hattab
4ff462078b always kill touch events on removelisteners (#365) 2013-03-17 18:21:03 -04:00
Hakim El Hattab
e74a10e364 enable keyboard/touch flags to change in runtime configure() call (closes #365) 2013-03-17 08:21:17 -04:00
Hakim El Hattab
92e605c69d new build for autoslide pr 2013-03-17 08:16:29 -04:00
Hakim El Hattab
a927b05967 Merge branch 'bugfix-pause' of https://github.com/EverythingMe/reveal.js into dev 2013-03-17 08:14:45 -04:00
Hakim El Hattab
7605046e83 update version to 2.4 2013-03-17 08:10:04 -04:00
Hakim El Hattab
7439a45b9b Merge branch 'shift-space' of https://github.com/remybach/reveal.js into dev 2013-03-17 08:04:02 -04:00
Hakim El Hattab
864d37f821 remove extra whitespace 2013-03-17 07:51:31 -04:00
Hakim El Hattab
5ba8440dca merge conflict 2013-03-17 07:50:57 -04:00
Hakim El Hattab
d2cf21028e add missing theme readme 2013-03-17 07:34:33 -04:00
Hakim El Hattab
470a2f6fdc Merge pull request #367 from wtw/patch-1
Fixed some typos in the documentation
2013-03-16 21:22:34 -07:00
wtw
5d3d6d6056 Fixed some typos in the documentation 2013-03-15 11:32:20 +01:00
David Banham
b8556751bf Load socket.io client lib from CDN
Based on user feedback, it was very non-obvious that if using an
web server other than multiplex/index.js it would be necessary to
upload the socket.io client libs. This negates that problem.
2013-03-15 10:02:10 +11:00
Amir Nissim
5d26e1618f bugfix - continue autoslide after resume 2013-03-11 12:46:02 +02:00
David Banham
ccaadaad45 Error check to prevent exception from Cipher 2013-03-11 09:25:26 +11:00
Hakim El Hattab
75ffa604d8 remove unused file (closes #360) 2013-03-10 11:57:08 -04:00
Remy Bach
9138e4bc20 Add shift+space functionality 2013-03-10 11:26:24 +00:00
David Banham
523989a21c Remove unessecary file 2013-03-10 14:00:21 +11:00
Hakim El Hattab
13046a0337 merge search plugin, adjust styles 2013-03-08 19:48:30 -05:00
Hakim El Hattab
e0e98a2275 Merge branch 'searchplugin' of https://github.com/razor-1/reveal.js 2013-03-08 19:39:21 -05:00
Hakim El Hattab
7dd2a10b34 remove extra whitespace in css 2013-03-08 19:33:34 -05:00
Hakim El Hattab
b855142f65 remove extra whitespace 2013-03-08 19:31:36 -05:00
Hakim El Hattab
4faaccdf8d fix grunt jshint config 2013-03-08 19:29:15 -05:00
Hakim El Hattab
29348178bc denote language in code samples 2013-03-08 19:24:58 -05:00
Hakim El Hattab
46f98ff483 cut back on spacing 2013-03-08 19:23:14 -05:00
Hakim El Hattab
999ac52256 print port when multiplex server starts (#98) 2013-03-08 19:22:17 -05:00
Hakim El Hattab
cc869cb629 update multiplex setup instructions (#98) 2013-03-08 19:16:29 -05:00
Hakim El Hattab
825fe51de9 add Reveal.getConfig(), replace use of window.globals (#98) 2013-03-08 19:05:58 -05:00
Hakim El Hattab
2bd5e8b65b merge in multiplex (#98) 2013-03-08 18:49:28 -05:00
David Banham
4963f15ab3 Prevent users from accidentally using common credentials 2013-03-09 10:16:44 +11:00
David Banham
580a72c444 Bring multiplex up to date 2013-03-08 12:43:18 +11:00
David Banham
61c229a4f9 Merge branch 'master' of https://github.com/hakimel/reveal.js
Conflicts:
	README.md
	index.html
	js/reveal.js
	package.json
	plugin/speakernotes/client.js
2013-03-08 10:29:54 +11:00
Hakim El Hattab
16f9749db5 scope error (#300) 2013-03-05 09:48:42 -05:00
Hakim El Hattab
d237c22fc0 blindfolded attempt at ie10 touch (#300) 2013-03-05 09:47:08 -05:00
Jon Snyder
329ae0fd43 include search button icon
embed a generic search button icon.
2013-03-04 16:42:23 -08:00
Hakim El Hattab
03237ac9af Merge branch 'searchplugin' of https://github.com/razor-1/reveal.js into dev 2013-03-04 17:58:07 -05:00
Hakim El Hattab
034016e330 merge two new themes, slight adjustments to said themes 2013-03-04 17:54:59 -05:00
Hakim El Hattab
55e16f4cb9 Merge branch 'solarized' of https://github.com/asmod3us/reveal.js into dev 2013-03-04 17:34:45 -05:00
Hakim El Hattab
ee7d36a044 fix error in how touch support was detected 2013-03-04 17:30:28 -05:00
Hakim El Hattab
0926be9781 better null check for stack (closes #354) 2013-03-04 17:01:49 -05:00
Hakim El Hattab
3bae233289 fix rotues check when loop is active 2013-03-04 16:55:39 -05:00
Hakim El Hattab
d5bf12275c better choice of fallback fonts (closes #328) 2013-03-04 16:37:26 -05:00
Hakim El Hattab
6a0ce3c5e9 add grunt sass theme task 2013-03-04 16:34:47 -05:00
Hakim El Hattab
2abf6678fa fix minor inconsistency in left/right nav when first/last slides are vertical 2013-03-04 16:17:01 -05:00
Hakim El Hattab
3a8e6dd4ba Merge branch 'patch-1' of https://github.com/ynonp/unix2-bash-scripts-slides into dev 2013-03-04 16:11:26 -05:00
Hakim El Hattab
a9bef856b0 note about post-startup configuration 2013-03-04 16:06:04 -05:00
Hakim El Hattab
7db0d9c17d enable pos-startup config of autoSlide 2013-03-04 15:59:44 -05:00
ynonp
34afc564cd Update markdown.js
Allow HTML tags in external markdown files
2013-03-01 18:47:26 +02:00
Hakim El Hattab
7081f901da fix a few typos (closes #352) 2013-03-01 11:13:46 -05:00
Hakim El Hattab
eeed287265 format tweak 2013-02-28 17:03:44 -05:00
Ben Houston
2767254d33 fixing an initialization bug when turning off controls and progress in initialization. 2013-02-28 13:05:06 -08:00
asmod3us
49ada91eb1 Merge remote-tracking branch 'upstream/master' into solarized 2013-02-28 17:28:07 +01:00
Hakim El Hattab
d2b6ed4726 force layout after configuration changes 2013-02-27 17:17:32 -05:00
Hakim El Hattab
ed5ada0bd6 Merge branch 'dev' of github.com:hakimel/reveal.js into dev 2013-02-27 17:08:15 -05:00
Hakim El Hattab
65cbe25a02 attempt n2 to fix grunt in travis ci build 2013-02-27 17:07:31 -05:00
Hakim El Hattab
7af90a2d8a attempt to fix grunt in travis ci build 2013-02-27 17:03:28 -05:00
Hakim El Hattab
d7b92c9c65 update main window when current slide changes in notes (closes #343) 2013-02-27 16:55:42 -05:00
Hakim El Hattab
c2ab30b87e replace classList.toggle( ..., force ) as it's broken in ff 2013-02-27 16:55:14 -05:00
Hakim El Hattab
4c57ad918b dispatch event when paused/resumed (closes #336) 2013-02-27 16:41:45 -05:00
Hakim El Hattab
68fa39f083 Merge branch 'patch-1' of https://github.com/asmod3us/reveal.js into dev 2013-02-27 15:40:53 -05:00
Hakim El Hattab
c438ba6516 example external markdown in readme (#329) 2013-02-27 15:32:47 -05:00
Hakim El Hattab
7cc0c8787d add note about external markdown in readme (#329) 2013-02-27 15:05:56 -05:00
Hakim El Hattab
f9f17be014 merge external markdown support, move example to plugin (#329) 2013-02-27 15:01:30 -05:00
Hakim El Hattab
3321e8b600 Merge branch 'slidifyMarkdown' of https://github.com/webpro/reveal.js into dev 2013-02-27 14:20:26 -05:00
Hakim El Hattab
2e8e73a847 fragment sorting tweaks, sort attribute is now called data-fragment-index (#342) 2013-02-27 13:41:29 -05:00
Hakim El Hattab
25f26bdc15 Merge branch 'sort_fragments' of https://github.com/jaberg/reveal.js into dev 2013-02-27 13:25:28 -05:00
Hakim El Hattab
3f740c8553 merge grunt update to 0.4 (#350) 2013-02-27 13:20:24 -05:00
Hakim El Hattab
9f1c5a0cea Merge branch 'upgrade-to-grunt-0.4' of https://github.com/boazsender/reveal.js into dev 2013-02-27 13:13:54 -05:00
Boaz Sender
14105feb10 upgrading to grunt 0.4. resolves #349. 2013-02-27 09:23:40 -05:00
Hakim El Hattab
5978b7fb64 remove share buttons 2013-02-26 12:08:44 -05:00
Hakim El Hattab
3b822c33e4 disabled overview clicks on slides with disabled class 2013-02-26 12:08:04 -05:00
asmod3us
f095af212e Update plugin/markdown/markdown.js
Use textContent instead of innerHTML to prevent encoding of certain characters in Markdown code blocks.
2013-02-26 16:06:18 +01:00
Hakim El Hattab
40759435e4 prevent overview click events after calling Reveal.removeEventListeners 2013-02-24 00:52:54 -05:00
Hakim El Hattab
f795cb0269 add configure api method for update config after initialization 2013-02-24 00:44:20 -05:00
asmod3us
1661fb2fae updated dark theme to use external color definition 2013-02-21 22:57:06 +01:00
asmod3us
b967cfd615 added solarized light theme 2013-02-21 22:56:48 +01:00
asmod3us
ff3e02de18 extracted solarized color definitions to separate file 2013-02-21 22:56:31 +01:00
asmod3us
d44812b8b5 added solarized dark theme 2013-02-21 22:48:54 +01:00
Jeremy Mikola
a9b4eb9a05 Set PDF output to letter landscape, no margin 2013-02-21 14:21:47 -05:00
James Bergstra
e4016792dd FIX: indent level of sort_fragments 2013-02-21 13:16:26 -05:00
James Bergstra
c00de0a24d ENH: fragment-pos attribute for ordering fragments 2013-02-21 11:23:07 -05:00
Hakim El Hattab
d1943fcd91 Merge pull request #338 from jjallaire/ontouchstart-add-nullcheck
ontouchstart null check in addEventListeners
2013-02-20 07:33:44 -08:00
JJ Allaire
2cfabed9f3 ontouchstart null check in addEventListeners 2013-02-14 05:26:46 -05:00
Hakim El Hattab
e1872c9115 added isFirstSlide/isLastSlide api methods 2013-02-13 18:00:53 -05:00
Hakim El Hattab
24a59a53fd Merge branch 'master' of https://github.com/gouravtiwari/reveal.js 2013-02-13 17:38:24 -05:00
Hakim El Hattab
2d0237538c Merge pull request #337 from jjallaire/ontouchstart-nullcheck
check window.ontouchstart != null (required for qtwebkit)
2013-02-13 14:35:28 -08:00
JJ Allaire
45825b61b7 check window.ontouchstart != null (required for qtwebkit) 2013-02-13 08:10:27 -05:00
Jon Snyder
8d61a112ff search plugin 2013-02-11 15:34:31 -08:00
Gourav Tiwari
4df8a25625 Added isFirstSlide and isLastSlide functions 2013-02-11 13:51:40 -05:00
Hakim El Hattab
7ee4e0ba66 scale presentations on ipad instead of zoom 2013-02-11 12:09:14 -05:00
Hakim El Hattab
24c493fb83 add api methods for check if overview is active or presentation is paused 2013-02-09 19:11:54 -05:00
Hakim El Hattab
2962325fd1 stop auto-slide on pause and overview (closes #320) 2013-02-09 19:04:17 -05:00
hakimel
380264afc8 merge in notes improvement 2013-02-06 19:15:30 -05:00
Damjan Georgievski
fd7d09f697 find correct path to open html file from the notes.js path 2013-02-06 12:27:49 +01:00
Hakim El Hattab
cf8708f932 adjust copyright years 2013-02-05 20:08:59 -05:00
Hakim El Hattab
8a2f146267 remove experimental tileflip transition, reduce max size of media content to 95% to account for slide padding 2013-02-05 18:02:03 -05:00
Hakim El Hattab
6b0fff3512 enable backgrounds images when printing to pdf (closes #271) 2013-02-03 16:17:46 -05:00
Hakim El Hattab
11fc906add helper method for retrieving slide based on index (closes #293) 2013-02-03 15:55:22 -05:00
Hakim El Hattab
080fb3cd33 disable zoom plugin while in overview mode 2013-02-03 13:21:42 -05:00
Hakim El Hattab
c21e6bbfed fix vertical centering of slide in ios chrome (closes #289) 2013-02-03 11:28:01 -05:00
Hakim El Hattab
2629be651a trailing ws 2013-02-03 11:27:28 -05:00
Hakim El Hattab
9b830131f7 fix error with removal of control button and progress bar event listeners (closes #323) 2013-02-03 02:00:17 -05:00
Hakim El Hattab
d182235f1f code cosmetics 2013-02-03 01:31:27 -05:00
Hakim El Hattab
abf9ddb588 Merge pull request #322 from commadelimited/deactivate-nav-during-pause
Only allow 'unpause' keyboard events while paused
2013-02-02 22:28:28 -08:00
Hakim El Hattab
f45d94850f describing new presentation sizing logic in readme 2013-02-03 01:21:55 -05:00
Hakim El Hattab
98a99086ac fix word breaks in headers (closes #321) 2013-02-03 01:02:51 -05:00
Hakim El Hattab
c50ae08fe0 remove extra padding in stacks, add api method to retrieve curren scale (#310) 2013-02-02 20:05:09 -05:00
Hakim El Hattab
723bd1cc0b reduce width of single-page fallback slides 2013-02-02 17:05:05 -05:00
andy matthews
f0b93d895b Only allowing 'unpause' keyboard events while paused 2013-01-31 16:44:15 -06:00
Hakim El Hattab
1b01a749b0 change default maxScale to 1.0 (#310) 2013-01-31 00:09:28 -05:00
Hakim El Hattab
f7a0cf7030 add config vars for #310 to readme 2013-01-31 00:06:06 -05:00
Hakim El Hattab
9660cdbd26 add min/max scale settings (#310) 2013-01-30 23:59:37 -05:00
hakimel
1ca8306e2a rename padding config option to margin, better mobile support for scaled presentations (#310) 2013-01-29 18:59:36 -05:00
Lars Kappert
7207122c75 Slightly refactored "slidify" flow 2013-01-30 00:09:02 +01:00
Lars Kappert
5dd63e4919 More/better examples in markdown demo 2013-01-29 23:59:57 +01:00
Lars Kappert
25f3884bf4 Support for external markdown files, including configurable (vertical) slide separator 2013-01-29 23:49:17 +01:00
hakimel
a20d3b6862 fix layering issue of anchors in ff with page transition (closes #274) 2013-01-29 15:11:10 -05:00
hakimel
312eafe2e0 feature detect zoom with fallback on transform, allow percent units for deck width/height (#310) 2013-01-28 18:58:32 -05:00
Hakim El Hattab
d1c74523a4 updated to v2.3, initial implementation of uniformly scaled presentations (#310) 2013-01-27 23:27:14 -05:00
Hakim El Hattab
784fa9d2e3 merge in timer in notes window, timer now stays hidden until initial time is set 2013-01-26 13:32:07 -05:00
Charlie DeTar
ab3f4e5ba3 Add clock and elapsed time to notes view 2013-01-26 11:49:19 -05:00
Hakim El Hattab
f3b4881cdb update code sample for syntax highlight in readme 2013-01-23 16:03:01 -05:00
hakimel
3f8d48d570 merge in clojure syntax highlighting, tweak readme 2013-01-23 15:55:33 -05:00
hakimel
3f140ef50e Merge branch 'feature/highlightjs-clojure' of https://github.com/eightysteele/reveal.js 2013-01-23 15:27:55 -05:00
hakimel
a041f9c64a limit video size to size of slide (closes #308) 2013-01-23 15:26:43 -05:00
hakimel
3daacbc321 Merge branch 'master' of github.com:hakimel/reveal.js 2013-01-23 11:04:32 -05:00
hakimel
a7625a71d3 show error when notes run on non-http, fix load order to make sure upcoming slide is correct when notes open (#278) 2013-01-23 11:04:10 -05:00
Aaron Steele
1aa66aa469 Add Clojure to highlight.js, add code highlight example to README. 2013-01-21 17:53:39 -08:00
Hakim El Hattab
2f48c27201 specify branch name for travis build status image 2013-01-21 16:27:42 -05:00
Hakim El Hattab
3c9bd1ed2b fix placement of travis build status in readme 2013-01-21 16:26:16 -05:00
hakimel
c1f14110a1 remove traling whitespace 2013-01-21 16:21:20 -05:00
hakimel
212450a18d Merge branch 'add-travisci' of https://github.com/nschonni/reveal.js 2013-01-21 16:07:37 -05:00
Nick Schonning
4778cb8e51 Add grunt as a dev dependency 2013-01-21 15:46:23 -05:00
Nick Schonning
0ac4d5b7db Add npm script tage the Travis automatically executes
Set targets to lint, and quint for when the testing is implemented
2013-01-21 15:28:46 -05:00
hakimel
4a0d939962 don't convert anchors with child nodes to rolling links (closes #266) 2013-01-21 14:55:45 -05:00
hakimel
0d66c91e8e remove debug code 2013-01-21 13:06:22 -05:00
hakimel
63a53e9dd1 notes window now displays correct slides when origin is different than index.html (closes #278) 2013-01-21 13:05:09 -05:00
hakimel
d489ec2f9d add overviewshown and overviewhidden events (closes #298) 2013-01-21 12:45:52 -05:00
hakimel
e62b0f8795 config option for disabling touch navigation (closes #299) 2013-01-21 12:29:44 -05:00
hakimel
09bf962d32 expose layout api method (closes #305), consistent spacing across all functions in core JS, remove unused each() method 2013-01-21 12:22:30 -05:00
Hakim El Hattab
305e70d99b Merge pull request #303 from DrBenton/master
Small additions around "togglePause()"
2013-01-18 12:33:28 -08:00
hakimel
61457ce543 fix typos 2013-01-18 15:31:41 -05:00
hakimel
6a7d0cbcc9 Merge branch 'fade-transition' of https://github.com/joelrbrandt/reveal.js 2013-01-18 15:26:48 -05:00
Hakim El Hattab
cd40e9e575 Merge pull request #302 from rschellhorn/master
Fixed fragment fade-in/out example
2013-01-18 12:23:32 -08:00
Olivier Philippon
9c951e07cd add public "togglePause()" access 2013-01-18 17:09:36 +01:00
Olivier Philippon
c0387fd5dd add Logitech presenter tools "black screen" button compatibility 2013-01-18 16:59:38 +01:00
Rob Schellhorn
1830a0d505 Fixed fragment fade-in/out example 2013-01-18 10:00:33 +01:00
Joel Brandt
082e4ed168 implement a fade transition 2013-01-16 12:49:10 -08:00
Hakim El Hattab
feaced800c fix issue with navigateTo and fragments (closes #290) 2013-01-14 09:29:02 -05:00
Hakim El Hattab
e46855096c merge in reset of vertical slides when returning to first slide #291 2013-01-12 12:18:00 -05:00
karimsa
905ec83d53 better fix (issue: #285) 2013-01-11 16:43:43 -05:00
Hakim El Hattab
05b5255d60 attribution for print-pdf phantom script (closes #276) 2013-01-10 09:40:03 -05:00
Hakim El Hattab
17622052a0 merge in phantomjs script for printing pdf (#276) 2013-01-10 09:38:31 -05:00
Hakim El Hattab
5f2a875ec7 theming docs (closes #246, closes #249) 2013-01-08 19:09:36 -05:00
Hakim El Hattab
e618eda4e1 theming docs 2013-01-08 19:05:20 -05:00
Hakim El Hattab
38425fc4ff info about available themes and how to change theme 2013-01-07 09:41:33 -05:00
Hakim El Hattab
2a038afeda Merge pull request #282 from callmephilip/feature/plugin/remotes/none-on-mobile
disable remotes plugin on mobile
2013-01-07 06:19:50 -08:00
karimsa
d4d9c4bfab entities auto fix added 2013-01-06 00:11:32 -05:00
callmephilip
b9483f29e1 disable remotes plugin on mobile 2013-01-04 17:12:20 -08:00
Hakim El Hattab
68f8c9361e fix issue with auto-advance (closes #273) 2013-01-02 09:14:28 -05:00
Nick Schonning
7fd9cfabf2 Add Travis build badge 2012-12-31 00:48:46 -05:00
Nick Schonning
929933ce9d Add travis.yml for CI build 2012-12-31 00:46:01 -05:00
Manuel Bieh
5868becf84 Added phantomjs scriptfile for easier printing 2012-12-15 16:00:25 +01:00
Hakim El Hattab
256186e259 Merge pull request #270 from lawilliams/master
Fixing small typo in index.html
2012-12-14 16:28:26 -08:00
Luke Williams
b5dde35a84 Fixing spelling mistake. 2012-12-08 04:09:58 +10:00
Hakim El Hattab
519ee26809 remove left/right margin from images, tweak pdf print styles 2012-11-27 09:23:40 -05:00
Hakim El Hattab
242006a499 add rtl option to readme 2012-11-27 08:45:02 -05:00
Hakim El Hattab
a6989e4cce right align text in ul/ol when rtl is active (#166) 2012-11-27 08:36:38 -05:00
Hakim El Hattab
385bfd3717 fix issue with click event target on overview slides 2012-11-25 09:45:16 -05:00
Hakim El Hattab
e34ed3c2ff fix inconsistency with vertical centering when using page transition 2012-11-24 20:57:16 -05:00
Hakim El Hattab
1732d67cf5 word break rules and hyphens where possible for titles 2012-11-23 19:26:16 -05:00
Hakim El Hattab
0ac4c6e585 improve rendering accuracy of overview 2012-11-23 15:48:10 -05:00
Hakim El Hattab
8f7c51b4ec use touch start events for controls on touch devices 2012-11-22 16:25:19 -05:00
Hakim El Hattab
b82b56dcce Merge branch 'master' of github.com:hakimel/reveal.js 2012-11-22 09:10:47 -05:00
Hakim El Hattab
34b36753f5 slide method now accepts fragment index argument #228 2012-11-22 09:10:34 -05:00
Hakim El Hattab
f33969301b readme tweaks 2012-11-20 07:45:43 -05:00
Hakim El Hattab
9d0cb0fec7 use system font when rtl is enabled, exclude pre and code blocks from rtl (#166) 2012-11-18 12:19:22 -05:00
Hakim El Hattab
363685967d adjust rtl implementation (#166) 2012-11-18 12:10:16 -05:00
Hakim El Hattab
0402fbde0c experimental rtl support (#166) 2012-11-17 15:59:28 -05:00
Hakim El Hattab
c61dc00a98 enforce max width/height on iframes (#244), disabled mouse wheel navigation by default 2012-11-17 15:48:12 -05:00
Hakim El Hattab
332ce86c3a null check for notes in markdown parser (#253) 2012-11-16 09:29:32 -05:00
Hakim El Hattab
4009f2601e avoid stripping out notes when parsing markdown (closes #253) 2012-11-16 09:25:26 -05:00
Hakim El Hattab
3924878ba1 Merge branch 'master' of github.com:hakimel/reveal.js 2012-11-16 09:09:10 -05:00
Hakim El Hattab
3b073eee65 fix incorrect navigation in notes window (closes #241) 2012-11-16 09:08:32 -05:00
Hakim El Hattab
fc463a964a Merge pull request #254 from harriha/bug-with-theme-switching
Fix bug with switching to 'night' theme
2012-11-16 05:48:20 -08:00
harriha
a5956bc71d Fix bug with switching to night theme
When switching to 'night' theme, the first slide was shown
instead of correctly linking to the Themes slide.
2012-11-15 11:24:09 +02:00
Hakim El Hattab
6d5df9b62d Merge pull request #245 from dandv/patch-1
Document vertical centering breaking backcompat
2012-11-14 05:44:56 -08:00
Hakim El Hattab
10317438b1 Merge branch 'fix-grunt-contrib-mincss-version' of https://github.com/technicalpickles/reveal.js 2012-11-14 08:40:05 -05:00
Hakim El Hattab
9d98cee7fd fix minor issue in pdf print sheet 2012-11-13 23:52:17 -05:00
Hakim El Hattab
d9371e21a0 null check parentNode in case slide has been detached 2012-11-13 21:08:04 -05:00
Hakim El Hattab
ad54b07a84 Merge branch 'fix-callback-with-shared-dir' of https://github.com/hashar/reveal.js 2012-11-13 09:37:37 -05:00
Hakim El Hattab
ec0c744213 disable hiding of address bar on android, caused vertical centering issues 2012-11-13 09:37:27 -05:00
Dan Dascalescu
dfa98a1138 Document vertical centering breaking backcompat
Essentially, slides have variable height now. This is not normally visible, but with transitions that have a non-transparent background, like `cube` or `page`, it is:




http://lab.hakim.se/reveal-js/?transition=cube




Before, slides had a fixed height, which means that presentations designed with that assumption in mind will look very different now.




Another aspect that I bumped into is that I used the slide's height to dynamically size images to fill the remainder of the space from the heading to the footer, like this (stripped to the essence):




          bigImage.style.height = section.offsetHeight - bigImage.offsetTop + 'px';




Alternatively, is there an easy way to restore the previous functionality?
2012-11-13 01:47:02 -08:00
Josh Nichols
00c90a974a Use grunt-contrib-mincss ~0.3.1
Was at ~0.3.2, but doesn't seem to have been released properly.
2012-11-12 17:09:06 -05:00
Antoine Musso
5354b78869 Fix callback calling when using from a parent directory
Authors might want to use a shared reveal.js installation for all their
presentations such as:

	$ ls -1 -F
	20120105-how-to-use-git.html
	20121101-wikimedia-scaling.html
	reveal.js/
	$

In this case, the plugin callbacks will not be called at all.

When using head.js, the callback is marked as depending upon the loading of a
Javscript filename. The regex used to find out the filename is applied to the
full path which in the above case would be something like:

	reveal.js/plugin/highlight/highlight.js

The regex will thus give out 'reveal.js' as a file depency instead of the
expected 'highlight.js'

The fix is quiet easy: simply make sure that we are looking for a file that
actually ends with '.js' instead of simply containing '.js' by adding a $.
2012-11-12 20:31:31 +01:00
Hakim El Hattab
4c8938029d note about #226 in readme 2012-11-11 19:54:26 -05:00
Hakim El Hattab
4fbec5e87d add touch based remote controlled plugin 2012-11-11 19:39:05 -05:00
Hakim El Hattab
05499c8b8e add note about nested fragments 2012-11-11 10:24:48 -05:00
Hakim El Hattab
ce1be451c5 fix typos 2012-11-11 10:05:13 -05:00
Hakim El Hattab
eb011e9f31 Merge branch 'master' of github.com:hakimel/reveal.js 2012-11-11 10:01:18 -05:00
Hakim El Hattab
d6d0f40c5e add grunt.js build file (closes #235) 2012-11-11 10:01:05 -05:00
Hakim El Hattab
2e7b53865e Merge pull request #234 from dandv/patch-1
its->it's in README.md
2012-11-10 18:18:29 -08:00
Dan Dascalescu
4192106469 its->it's in README.md
Thanks for the multi-control support!
2012-11-10 17:51:31 -08:00
Hakim El Hattab
8e79f8592a fixes issue where italic fonts disappeared when printing to pdf (closes #230) 2012-11-10 20:09:12 -05:00
Hakim El Hattab
be4c55cd65 add night theme 2012-11-10 19:49:44 -05:00
Hakim El Hattab
403cb5a8c4 fix issue with dependency loader callbacks 2012-11-10 19:14:16 -05:00
Hakim El Hattab
2834a6bc89 ensure fragments are visible in print styles, fix page-break error in paper print sheet 2012-11-10 18:15:05 -05:00
Hakim El Hattab
87591d95d1 cosmetical tweaks to postmessage plugin 2012-11-10 17:15:11 -05:00
Hakim El Hattab
42766b1bfa Merge branch 'master' of https://github.com/sithmel/reveal.js
merge postmessage api
2012-11-10 17:02:12 -05:00
Hakim El Hattab
b42890d1a2 workaround markdown quote issue (#223) 2012-11-10 16:59:03 -05:00
Hakim El Hattab
fd527c5d07 tweak ie8 fallback 2012-11-10 16:22:10 -05:00
Hakim El Hattab
ecac983116 updated transition styles to work with vertical centering (#70) 2012-11-10 16:01:56 -05:00
Hakim El Hattab
dce2d35a63 fix vertical transition for vertically centered slides, vertical centering is now on by default (#70) 2012-11-10 15:43:32 -05:00
Hakim El Hattab
891a66b5c4 correction to vertical centering and overview mode, clean up of vertical slide storage 2012-11-10 15:28:34 -05:00
Hakim El Hattab
b4815a3a83 remember last visited vertical slide (closes #225) 2012-11-10 14:48:29 -05:00
Hakim El Hattab
eac5a3a239 enable up/down arrows to step through fragments (closes #233) 2012-11-10 14:04:11 -05:00
Hakim El Hattab
fa3d0c899c count vertical slides towards the progress bar (closes #150) 2012-11-10 13:59:51 -05:00
Hakim El Hattab
64ebbf80fb revert to display none from visibility hidden to correct vertical centering 2012-11-10 12:16:48 -05:00
Hakim El Hattab
c79376dab2 allow multiple control elements, document usage of global controls (#184, #204) 2012-11-10 11:40:19 -05:00
Hakim El Hattab
df4e1fd346 write named links, rather than h/v index, to hash when available (closes #224) 2012-11-10 10:39:59 -05:00
Hakim El Hattab
f6c5ceb490 additional media query plus vertical queries to support smaller screens (closes #232) 2012-11-10 10:31:23 -05:00
Hakim El Hattab
a13c6b9ca9 overview mode documentation 2012-11-10 10:16:06 -05:00
Hakim El Hattab
794ad86809 corrections to vertical centering (#70), added to docs, upgrade to 2.2 2012-11-10 10:02:19 -05:00
Hakim El Hattab
691099c6a2 rough support for vertical centering #70 2012-11-10 09:41:26 -05:00
Federico Fissore
6ffa60f5d2 working on #227 2012-11-05 16:38:24 +01:00
Maurizio Lupo
a7c3543069 added a simple postmessage plugin 2012-10-31 15:36:26 +01:00
Bruno Bord
8ca4954059 Describing how to toggle "overview mode" 2012-10-30 22:31:54 +01:00
Hakim El Hattab
f51067b00e fixed issue with dependency loader failing when there were 0 async scripts (#214) 2012-10-29 08:27:20 -04:00
Hakim El Hattab
5c5b3d34d9 fix rolling links glitch in firefox 2012-10-29 00:10:14 -04:00
Hakim El Hattab
e87d689231 content now re-renders after alt+click zoom (closes #195) 2012-10-28 23:55:19 -04:00
Hakim El Hattab
af2a8b053d include theme background in printed pdfs (#217), fix empty white pages in regular print (#215) 2012-10-28 19:32:24 -04:00
Hakim El Hattab
38aff9a37d Merge branch 'master' of github.com:hakimel/reveal.js 2012-10-28 19:07:35 -04:00
Hakim El Hattab
8bd63fe21a document server-side speaker notes 2012-10-28 20:07:06 -03:00
Hakim El Hattab
6a691a0999 remove console.log 2012-10-28 18:57:27 -04:00
Hakim El Hattab
605f7140e3 updated markdown references in notes plugin 2012-10-28 18:49:01 -04:00
Hakim El Hattab
e693717f2a update syntax highlight after editing (#210), move markdown and highlight scripts from lib to plugin 2012-10-28 18:09:54 -04:00
Hakim El Hattab
9da9726403 only call slide() if route is available in navigate methods (closes #213) 2012-10-28 17:30:55 -04:00
Hakim El Hattab
6aafa0107d escape quotes in css using unicode hex 2012-10-27 21:20:13 -04:00
Hakim El Hattab
6794f543e0 merge in support for stepped fragments in notes server 2012-10-25 09:42:33 -04:00
Hakim El Hattab
5d1bac5790 merge in support for stepped fragments in notes window 2012-10-25 09:36:25 -04:00
Hakim El Hattab
4777afe0c5 force 'ready' to fire one cycle later (#208) 2012-10-24 21:42:10 -04:00
Hakim El Hattab
747c4c4b3d fix keyboard navigation in ie9 (closes #202) 2012-10-24 21:30:52 -04:00
Michael Kühnel
b838522be4 Apply latest change to the minified version
Using the latest Uglify JS with --no-seqs and deleting 'use strict' statement for use in production.
2012-10-24 17:52:33 +02:00
Michael Kühnel
5af915adaf Merge branch 'refs/heads/fix-fragments-in-speakernotes' into fragments-in-notes-server
Conflicts:
	js/reveal.min.js

Need to generate a new minified version afterwards.
2012-10-24 17:48:50 +02:00
Michael Kühnel
1801bf67ea Delete functionality to control presentation from notes window
Its was impossible (at least for me) to keep the windows in sync without bloating the code too much.
2012-10-24 15:06:32 +02:00
Michael Kühnel
64448319eb Change source from from reveal.js back to reveal.min.js 2012-10-24 14:57:51 +02:00
Michael Kühnel
73328cfd48 Apply latest change to the minified version
Using the latest Uglify JS with --no-seqs and deleting 'use strict' statement for use in production.
2012-10-24 14:57:20 +02:00
Michael Kühnel
13e7550afe Delete console output. 2012-10-24 14:53:50 +02:00
Michael Kühnel
296242f8d3 Make the fragments visible in speaker notes 2012-10-24 14:33:16 +02:00
Michael Kühnel
76a7bd83fa Add notes to the fragment slide for testing purposes. 2012-10-24 14:31:58 +02:00
Michael Kühnel
40c899ec56 Cherry picking from branch fix-fragments-in-speakernotes
Change source from reveal.min.js to reveal.js for testing purposes.

Add nextFragment and previousFragment to the API:
Making it possible to call the methods Reveal.nextFragment()
and Reveal.previousFragment() from »outside«.

Update README.md:
Add the new API Methods Reveal.prevFragment() and Reveal.nextFragment()
2012-10-23 21:56:56 +02:00
Hakim El Hattab
aefe981040 use borders to generate control arrows (closes #137) 2012-10-22 23:16:14 -04:00
Russell Beattie
7f4e5fc6bf Updated new CSS triangle controls to use theme colors. 2012-10-22 19:34:31 -07:00
Russell Beattie
b373425b69 Updated Controls to use CSS triangles rather than unicode triangles (fix Android support) 2012-10-22 14:49:22 -07:00
Hakim El Hattab
143fc85c65 use outer color of radial gradient as solid fallback 2012-10-20 21:43:42 -04:00
Hakim El Hattab
8576264574 remove traling whitespace (#197) 2012-10-20 21:15:02 -04:00
Hakim El Hattab
8bdeb360ce clean up trailing whitespace (closes #197) 2012-10-20 21:05:14 -04:00
Hakim El Hattab
c6f8a44edf new postMessage-based notes plugin, moved node-based notes to notes-server (#190) 2012-10-20 20:40:52 -04:00
Hakim El Hattab
5188951a0f Merge branch 'master' of github.com:hakimel/reveal.js 2012-10-20 14:20:15 -04:00
Hakim El Hattab
c13390354b explain fragments in readme 2012-10-20 15:20:08 -03:00
Hakim El Hattab
d84aeeb9ae fix overview when zoom transition is active (#196) 2012-10-20 13:46:19 -04:00
Hakim El Hattab
da40cf2172 add support for fragment styles (#192) 2012-10-20 13:33:07 -04:00
Hakim El Hattab
a4f03be485 Merge branch 'master' of github.com:hakimel/reveal.js 2012-10-20 12:51:23 -04:00
Hakim El Hattab
3241cb78d8 progress bar can now be clicked to navigate (closes #181) 2012-10-20 12:51:12 -04:00
Hakim El Hattab
95cf421f01 Merge pull request #194 from mischah/feature-fullscreen
Adding info about the fullscreen mode to README.md
2012-10-20 08:23:16 -07:00
Hakim El Hattab
ecb4347ec1 modularize themes and convert them to sass (closes #191) 2012-10-20 10:57:51 -04:00
Michael Kühnel
f82c13497a Update README.md
Add info about the fullscreen mode
2012-10-19 01:49:02 +02:00
Michael Kühnel
379f5d38ff Change source from from reveal.js back to reveal.min.js 2012-10-19 00:39:11 +02:00
Michael Kühnel
dc57e4c51c Apply latest change to the minified version
Using the latest Uglify JS with --no-seqs and deleting 'use strict' statement for use in production.
2012-10-19 00:38:33 +02:00
Michael Kühnel
ff8ccbb02e Update renamed API method
See b957d0b858
2012-10-19 00:35:23 +02:00
Michael Kühnel
54588f5fea Update README.md
Add the new API Methods Reveal.prevFragment() and Reveal.nextFragment()
2012-10-19 00:26:28 +02:00
Michael Kühnel
b957d0b858 Rename API method from Reveal.previousFragment() to Reveal.prevFragment()
Because of consistency with the existent methods Reveal.prev() and Reveal.next()
2012-10-19 00:24:13 +02:00
Michael Kühnel
c39f5fc0b0 Oops. Delete console output. 2012-10-19 00:14:46 +02:00
Michael Kühnel
82bd8e4fb0 Renaming key within fragmentData
Might be better to use one variable with different values.
2012-10-19 00:12:53 +02:00
Michael Kühnel
d02e64adbd get 'fragmentdata' and react by showing/hiding the corresponding fragments 2012-10-19 00:07:26 +02:00
Michael Kühnel
c46486b3df Add event listener 'fragmentshown' and 'fragmenthidden'
And emit 'fragmentchanged' with the appropriate fragmentData to show or hide fragments.
2012-10-19 00:04:40 +02:00
Michael Kühnel
46e270e59f Broadcast fragmentdata 2012-10-18 23:59:43 +02:00
Michael Kühnel
409c0dfbcc Add missing semicolon 2012-10-18 23:56:51 +02:00
Michael Kühnel
cbdbfc07f4 Fix indentation 2012-10-18 23:55:06 +02:00
Michael Kühnel
5cfb7b3239 Add nextFragment and previousFragment to the API
Making it possible to call the methods Reveal.nextFragment() and Reveal.previousFragment() from »outside«.
2012-10-18 23:19:01 +02:00
Michael Kühnel
e447187c20 Change source from reveal.min.js to reveal.js for testing purposes 2012-10-18 23:15:28 +02:00
Hakim El Hattab
3413d99b2b remove image dir (#187) 2012-10-17 23:15:09 -04:00
Hakim El Hattab
551c783b72 fix issue in browsers that don't support classList 2012-10-17 23:01:41 -04:00
Eric J. Duran
070a1e3ee5 Replacing speakernotes plugin with a simple postMessage system 2012-10-17 17:46:43 -04:00
Hakim El Hattab
3a2036e2b2 add 'ready' event (#182) 2012-10-17 00:20:42 -04:00
Eric J. Duran
f70dcd3c9f Adding images directory to staticDir so we can search images 2012-10-16 17:48:34 -04:00
Hakim El Hattab
558c21e1a3 Merge branch 'master' of github.com:hakimel/reveal.js 2012-10-16 09:28:04 -04:00
Hakim El Hattab
17f3cf4332 adjust themes so that font definitions are at top, apply fonts on .reveal instead of body 2012-10-16 09:27:55 -04:00
Hakim El Hattab
f0c27efc95 Merge pull request #183 from dandv/patch-4
Document zooming feature
2012-10-15 06:15:19 -07:00
Dan Dascalescu
20858d1f4c Document zooming feature 2012-10-14 23:15:41 -07:00
Hakim El Hattab
4271677ea1 take out demo page js 2012-10-14 21:03:07 -04:00
Hakim El Hattab
470cabaea8 new shorter api method names (closes #178), restructured and cleaned up core js 2012-10-14 21:02:32 -04:00
Hakim El Hattab
e15beb47f0 merge full screen key binding (f) 2012-10-14 20:17:49 -04:00
Hakim El Hattab
68139e64e9 Merge branch 'master' of github.com:hakimel/reveal.js 2012-10-14 19:58:34 -04:00
Hakim El Hattab
86a907e8cc enable pinch to zoom interaction if overview is disabled (#175) 2012-10-14 19:58:24 -04:00
Michael Kühnel
ec58a913f2 Change source from from reveal.js back to reveal.min.js
Reverted to c34be2e976
2012-10-14 11:11:19 +02:00
Michael Kühnel
aed06772f6 Apply latest change to the minified version
Using the latest Uglify JS with --no-seqs
2012-10-14 11:08:50 +02:00
Michael Kühnel
a23868804e Change source from reveal.min.js to reveal.js for testing purposes 2012-10-14 10:33:25 +02:00
Michael Kühnel
2869f8a4ee Add fullscreen mode
Handling the fullscreen functionality via the fullscreen JavaScript API.

Press »f« on the keyboard to enter fullscreen mode.
2012-10-14 10:26:40 +02:00
Hakim El Hattab
8c23c89883 Merge pull request #173 from Hlynsson/patch-1
fixed link for browser support
2012-10-13 09:14:06 -07:00
Hakim El Hattab
6e0d0e279d roll back attr name change, just lowercase (#170) 2012-10-13 12:13:26 -04:00
Hakim El Hattab
421b78aafb ability to define autoSlide duration per slide 2012-10-13 12:04:33 -04:00
Hakim El Hattab
ed1db1f3c8 Merge branch 'master' of https://github.com/functino/reveal.js 2012-10-13 11:44:54 -04:00
Hakim El Hattab
6619bc62bd add zoom transition 2012-10-13 10:28:34 -04:00
Hakim El Hattab
bb47678b27 tweaks to page and cube transitions, change sky theme text-highlight color 2012-10-13 10:08:06 -04:00
Hakim El Hattab
c34be2e976 default config value for theme is null 2012-10-13 00:17:45 -04:00
Hansi
1a163d3450 fixed link for browser support
was pointing at changelog
2012-10-12 15:16:46 +02:00
ageier
f6bae66089 Make it possible to customize autoSlide for each slide 2012-10-11 19:18:17 +02:00
Hakim El Hattab
4dad42496e fix conflict with theme set in query and theme specified in head 2012-10-10 09:35:13 -04:00
Hakim El Hattab
87c554b7da merge in relative theme/transition links 2012-10-10 09:32:57 -04:00
Hakim El Hattab
f00d8fa1d6 Merge branch 'patch-3' of https://github.com/dandv/reveal.js 2012-10-10 09:25:07 -04:00
Hakim El Hattab
7711340967 Merge pull request #168 from dandv/patch-2
Typo fix
2012-10-10 05:57:35 -07:00
Dan Dascalescu
a149de8ddc Links to transitions & themes stay in presentation 2012-10-10 03:49:05 -07:00
Dan Dascalescu
2cc6927f3c Typo fix 2012-10-10 02:11:52 -07:00
hakimel
16b71d7a21 slight tweak to zoom integration 2012-10-09 09:22:16 -04:00
Hakim El Hattab
7166e2d8cc Merge branch 'master' of github.com:hakimel/reveal.js 2012-10-09 00:06:44 -04:00
Hakim El Hattab
91e9457cef zoom.js integration via alt+click 2012-10-09 00:06:34 -04:00
Hakim El Hattab
5d7d3e83c5 update re markdown 2012-10-08 10:17:39 -03:00
Hakim El Hattab
25efef8c4f wrap markdown in script text/template to fix parsing errors (closes #146 #155 #162) 2012-10-08 09:15:36 -04:00
Hakim El Hattab
f22e5f85e8 new paused mode feature (closes #144), controls and progress DOM elements are no longer required in HTML 2012-10-08 00:08:50 -04:00
Hakim El Hattab
84b69b6b9a root reset styles at .reveal (#163) 2012-10-07 14:43:50 -04:00
Hakim El Hattab
1c726eed78 remove duplicate padding/margin reset on html & body 2012-10-07 14:31:20 -04:00
Hakim El Hattab
43c8990f2b prevent touchmove default action on android (#143) 2012-10-04 09:32:20 -04:00
Hakim El Hattab
6af14aca0f Merge branch 'serif-theme' of https://github.com/maxogden/reveal.js 2012-10-04 09:05:33 -04:00
Hakim El Hattab
7d5c8b550d add override flag to overview toggle, code cleanup 2012-10-04 08:56:43 -04:00
Hakim El Hattab
b0cc9fee45 add 'none'-transition (closes #159, #160) 2012-10-04 08:14:51 -04:00
Max Ogden
7e719c52c8 add link to serif theme in default presentation 2012-10-04 12:46:23 +02:00
Max Ogden
2c788dffb6 simple serif font theme 2012-10-04 12:44:29 +02:00
Hakim El Hattab
303be5be77 new slide 2012-09-30 18:14:27 -04:00
Hakim El Hattab
e014daa4f5 facility for css shader transitions, add css shader based tile-transition 2012-09-30 17:51:04 -04:00
Hakim El Hattab
eda54dcf7a main.css > reveal.css 2012-09-28 09:28:26 -04:00
Hakim El Hattab
1ed79b9df6 minified version of showdown 2012-09-28 09:28:06 -04:00
Hakim El Hattab
66988b8f0a max-height and overflow for code blocks (closes #16) 2012-09-28 09:11:17 -04:00
Hakim El Hattab
112227b79c slightly larger preview of next slide in speaker notes (closes #147) 2012-09-28 00:23:34 -04:00
Hakim El Hattab
e79bc38b43 rollback change in showndown, stop highlight.js's html entity escape #523 2012-09-28 00:14:57 -04:00
Hakim El Hattab
78b9bb43e1 disable html entity escapes in showdown (cloes #153 & #152) 2012-09-27 21:44:13 -04:00
Gary Murakami
73706ad02e Changes to make PDF output match the browser view more closely
font-size: 18pt; instead of fount-size: 22pt;
  remove the "a" tag from def that forces font size, otherwise anchors in various contexts, e.g., headings, etc., will cause ugly rendering due to mismatched font size.
   specify font size for "pre" tags so that code listings more closely match browser rendering
2012-09-27 11:39:11 -04:00
Hakim El Hattab
a1e73b78ef code comments, remove needless nodelist > array conversion 2012-09-21 09:27:31 -04:00
Hakim El Hattab
edb2051529 2.0 is stable, update to 2.1 2012-09-21 09:18:55 -04:00
Hakim El Hattab
310ba170c1 remove sharing code for sample presentation 2012-09-21 09:14:40 -04:00
Hakim El Hattab
7075bc2b6e merge markdown in notes 2012-09-21 09:08:24 -04:00
Hakim El Hattab
c5fe9bd3c4 Merge branch 'markdown-in-notes' of https://github.com/technicalpickles/reveal.js 2012-09-21 09:01:08 -04:00
Hakim El Hattab
c904cef864 add option for disabling overview mode (closes #145) 2012-09-21 08:58:21 -04:00
Hakim El Hattab
6779f4aecb instructions for print pdf include 2012-09-21 09:50:28 -03:00
Hakim El Hattab
390cdf1172 copy tweaks 2012-09-16 21:50:11 -04:00
Hakim El Hattab
f12ac5f9e9 Merge branch 'master' of github.com:hakimel/reveal.js 2012-09-16 21:47:15 -04:00
Hakim El Hattab
024105fbbc fix mixed spaces & tabs, remove unused feature test, add missing ; 2012-09-16 21:47:07 -04:00
Hakim El Hattab
21d80076bd Merge pull request #141 from rmurphey/node_0.8_update
update package.json for node 0.8+
2012-09-11 13:57:04 -07:00
Rebecca Murphey
9688d3a306 package.json for node 0.8+ 2012-09-11 12:45:55 -04:00
Hakim El Hattab
28567f32ac Merge branch 'master' of github.com:hakimel/reveal.js 2012-09-09 22:17:52 -04:00
Hakim El Hattab
edfcfb1d3f open slide notes window automatically #135 2012-09-09 22:17:45 -04:00
Hakim El Hattab
884ecc6225 Merge branch 'open-notes-in-new-window' of https://github.com/technicalpickles/reveal.js 2012-09-09 22:14:25 -04:00
Hakim El Hattab
48390c0933 readme update 2012-09-09 23:07:57 -03:00
Hakim El Hattab
21f27bdd34 Merge branch 'master' of github.com:hakimel/reveal.js 2012-09-09 22:04:58 -04:00
Hakim El Hattab
be657e0943 add rvl.io to readme and template slide 2012-09-09 22:04:50 -04:00
Josh Nichols
df2ebc570c Add documentation for markdown speaker notes 2012-09-08 22:10:13 -04:00
Josh Nichols
a8a3765bec Support markdown in speaker notes
It's pretty nice to have markdown in slides. It's even nicer to have
markdown in speaker notes too :)
2012-09-08 22:07:14 -04:00
Josh Nichols
77d338f93a Open notes in new window, instead of printing to console
It can be tedious to load up the speaker notes, with the whole having to
open the javascript console, and clicking on the link.

This simplifies it by automatically opening the notes in a new window.
Most browsers will warn that it's trying to open a pop-up, but it's easy
enough to allow it.
2012-09-08 21:53:43 -04:00
Hakim El Hattab
e6e80283f2 Update README.md 2012-09-04 13:36:15 -03:00
Hakim El Hattab
cb2b5ad06c add pledgie button 2012-09-04 13:33:40 -03:00
Hakim El Hattab
6a54cf04d0 Merge pull request #132 from nmec/master
Fix Socket.IO URL
2012-09-03 07:56:58 -07:00
Jono Warren
abede2c2f0 Update Socket.IO URL in readme. 2012-09-03 09:54:43 +01:00
Jono Warren
8e48bd21b0 Fix Socket.IO URL 2012-09-03 09:32:31 +01:00
Hakim El Hattab
c411c4d5d2 Merge pull request #131 from Sinetheta/master
theme swap relative to theme file
2012-08-31 07:46:54 -07:00
Sinetheta
495cb98005 changed theme file swap to be relative to theme file instead of slide-deck 2012-08-30 14:30:29 -07:00
Hakim El Hattab
aa97d80d53 correction to code style in sky theme, adjusted transition demo page 2012-08-30 01:32:18 -04:00
Hakim El Hattab
0c06469d82 prevent same theme from loading repeatedly 2012-08-30 01:13:25 -04:00
Hakim El Hattab
dc9b93a533 tweaks to the simple theme 2012-08-30 01:09:24 -04:00
Hakim El Hattab
90f343e5bd add theme config option, add sky theme, fix line-height of <small> 2012-08-30 00:59:51 -04:00
Hakim El Hattab
e3f3e9defb Update README.md
typo
2012-08-24 17:48:54 -03:00
Hakim El Hattab
141d69469c support for named links (closes #55) 2012-08-20 22:13:00 -04:00
Hakim El Hattab
5bd5ac67a4 fix bug that caused vertical stacks to shift unexpectedly in overview (closes #122) 2012-08-17 00:40:12 -04:00
Hakim El Hattab
efc020c999 margin tweak to keep list delimiters inside of slide box when text is long (#116) 2012-08-15 22:46:57 -04:00
hakimel
0b548bfd5d consistent use of tabs rather than spaces in css (closes #121) 2012-08-15 20:40:16 -04:00
hakimel
9688a52437 define line height for paragraphs 2012-08-15 20:36:28 -04:00
David Banham
26d5febd7f Multiplex fixes 2012-08-15 19:01:14 +10:00
David Banham
7bae522488 Not got github 2012-08-15 18:57:48 +10:00
David Banham
b27f21e527 Not for github 2012-08-15 18:55:22 +10:00
Hakim El Hattab
022d8ca27d readme tweaks 2012-08-14 22:06:53 -04:00
Hakim El Hattab
fc72690cd9 Merge branch 'patch-6' of https://github.com/dandv/reveal.js 2012-08-14 22:05:49 -04:00
Hakim El Hattab
9747673e06 Merge branch 'patch-4' of https://github.com/dandv/reveal.js 2012-08-14 22:03:45 -04:00
Dan Dascalescu
8b00c975e4 Document optional libraries
Note that socket.io and a few others are not shipped by default
2012-08-14 18:09:28 -07:00
Hakim El Hattab
d0e6e95781 Merge pull request #115 from dandv/patch-5
Ensure images are bound within the section
2012-08-14 17:59:33 -07:00
Hakim El Hattab
fd005ea461 Merge pull request #110 from OwenVersteeg/patch-8
made page validate
2012-08-13 21:53:18 -07:00
Dan Dascalescu
41796f3371 Ensure images are bound within the section 2012-08-13 18:55:57 -07:00
Dan Dascalescu
bca37c2eda Increase line-height for links to allow for descenders
Previously, descenders from characters like 'g' or 'y' were truncated (overflow: hidden)
2012-08-13 18:50:44 -07:00
Owen Versteeg
5170fe026c made page validate
woohoo! reveal.js is now HTML5 compliant! 

this is validated using the http://validator.w3.org/ and the http://html5.validator.nu/ services.

this was accomplished using a tad of JavaScript to get around a fullscreen bug.

This also (slightly unintentionally but helpfully) solves a tiny bug with fullscreening in old Opera 11.52 (I think, could be 11.51 or other)
2012-08-12 22:46:06 -03:00
Hakim El Hattab
6fa17971b5 Merge pull request #106 from OwenVersteeg/patch-7
added appropriate selection color
2012-08-12 14:30:19 -07:00
Hakim El Hattab
95898dc9e3 document dependency loading 2012-08-11 21:52:56 -03:00
Hakim El Hattab
49e8e0d205 rewrote initialization code for clarity and brevity (#105) 2012-08-11 20:25:55 -04:00
Hakim El Hattab
1ba1ca1cf3 Merge pull request #109 from dandv/patch-3
typo fix in index.html
2012-08-09 20:30:58 -07:00
Hakim El Hattab
1279cb4286 1.5 > 2.0 (#105) 2012-08-09 00:49:57 -04:00
Dan Dascalescu
2bc8a587e5 Update index.html
Typo fix: let's -> lets
2012-08-08 20:00:40 -07:00
Hakim El Hattab
614c7b1340 Merge pull request #108 from dandv/patch-2
Cosmetic change in css/main.css
2012-08-08 19:01:03 -07:00
Hakim El Hattab
ceae637b36 Merge pull request #107 from dandv/patch-1
clarification of vertical/horizontal slide relation
2012-08-08 19:00:53 -07:00
Dan Dascalescu
cb0416aac5 Update css/main.css
rm extrenous whitespace
2012-08-08 18:55:32 -07:00
Dan Dascalescu
ff5680a794 Update README.md
Clarified a bit how horizontal and vertical slides relate.
2012-08-08 14:38:56 -07:00
Owen Versteeg
704893b38f added simple theme
reveal.js was lacking a nice, simple, minimal theme. now it has one.
bam.
2012-08-08 12:06:04 -04:00
Owen Versteeg
49b3394596 added appropriate selection color
the old one was pink. while I don't have anything against pink, I just thought it might be good to make the highlight color dark brown instead.
2012-08-08 13:03:43 -03:00
Hakim El Hattab
ac33c51eca remove theme from init options example 2012-08-08 03:12:47 -03:00
Hakim El Hattab
25ad8adc68 themes are now available as separate css files under css/theme/, old theme option in config is no longer supported (closes #104) 2012-08-08 01:14:12 -04:00
Hakim El Hattab
1efca069cb readme typo 2012-08-07 23:01:56 -03:00
Hakim El Hattab
8e6018d896 fix broken link 2012-08-07 22:55:08 -03:00
Hakim El Hattab
669c86e16b big rewrite of readme 2012-08-07 22:44:40 -03:00
Hakim El Hattab
0337193790 remove duplicate fonts, tidy up font names (#103) 2012-08-07 01:38:06 -04:00
Hakim El Hattab
6325efe615 Merge branch 'patch-6' of https://github.com/StereotypicalApps/reveal.js 2012-08-07 01:34:46 -04:00
Hakim El Hattab
82b4658faf use minified version of js 2012-08-07 01:27:22 -04:00
Owen Versteeg
c7d4998483 added the actual files
now: eot, svg, ttf, woff
2012-08-06 21:53:49 -04:00
Owen Versteeg
3ccf9a39e0 added more font-face support
this way, more browsers are supported, like older Opera/Chrome/FF
2012-08-06 17:04:25 -03:00
Hakim El Hattab
aca177cdf8 fix order of options extend and listener binding (closes #102) 2012-08-06 15:15:41 -03:00
Hakim El Hattab
2ad720b581 Update README.md 2012-08-06 12:20:59 -03:00
Hakim El Hattab
5ac03701b1 Merge pull request #101 from StereotypicalApps/patch-5
improved accessibility
2012-08-06 06:59:51 -07:00
Hakim El Hattab
b4ca38795c Merge pull request #100 from StereotypicalApps/patch-4
added small fallback for non-font-face browsers
2012-08-06 06:59:00 -07:00
David Banham
7cf17ac063 Removed unused code 2012-08-06 14:40:32 +10:00
Owen Versteeg
9f2d9691a1 improved accessibility
I gave all the <img>s alt attributes, which makes reveal.js a lot more accessible
2012-08-05 23:52:36 -03:00
Owen Versteeg
9d7d8fec99 added small fallback for non-font-face browsers
this way things are in Impact; Impact fits much more with the visual style than does the default Arial or Calibri.
2012-08-05 23:46:33 -03:00
David Banham
a2e021ccdb Don't suppress the whole event, just add context metadata 2012-08-06 11:20:08 +10:00
David Banham
ee12450458 Tweaked heading 2012-08-05 23:52:04 +10:00
David Banham
976536d15e Added multiplexing server 2012-08-05 23:48:55 +10:00
Hakim El Hattab
51a15b840a fix error in slide markup 2012-08-04 18:19:50 -04:00
Hakim El Hattab
c448789016 fix overview slide positioning bug (closes #89) 2012-08-04 18:16:41 -04:00
Hakim El Hattab
de86c4eb7c instructions for pdf export (#92) 2012-08-04 17:38:59 -03:00
Hakim El Hattab
e0e558ac90 more pdf-export tweaks, added slide describing the feature (#92) 2012-08-04 16:16:27 -04:00
Hakim El Hattab
eb002bd2a2 slight tweak to pdf export css (#92) 2012-08-04 15:53:52 -04:00
Hakim El Hattab
f350c6a5cd support for PDF export in chrome (closes #92) 2012-08-04 15:45:13 -04:00
Hakim El Hattab
7101c2408d less horizontal padding for slides 2012-08-04 14:13:41 -04:00
Hakim El Hattab
f837343f9f remove hard line breaks now that slide width is relative 2012-08-04 14:09:06 -04:00
Hakim El Hattab
2d7d5be216 fix overflow glitch on vertical slides in mobile safari 2012-08-04 14:04:36 -04:00
Hakim El Hattab
4821c7b814 use mq to reduce font size for low resultions, max limit on width for slides set to 900px (closes #49) 2012-08-04 13:54:17 -04:00
Hakim El Hattab
6e91411054 Merge branch 'master' of github.com:hakimel/reveal.js 2012-08-04 11:06:13 -04:00
Hakim El Hattab
ec4330700d Merge pull request #93 from StereotypicalApps/patch-1
Made the slideshow responsive
2012-08-04 08:05:52 -07:00
Hakim El Hattab
20b77b5419 Merge branch 'master' of github.com:hakimel/reveal.js 2012-08-04 10:52:34 -04:00
Hakim El Hattab
c858ad069f Merge pull request #97 from davidbanham/master
Include speaker notes plugin after reveal.js
2012-08-04 07:52:02 -07:00
David Banham
79299d0071 Include speaker notes plugin after reveal.js
Must be called after reveal.js otherwise the Reveal object is undefined
and the plugin can't add it's event listener.
2012-08-04 14:33:27 +10:00
Hakim El Hattab
b6b572d185 correct copy year 2012-08-03 23:15:34 -04:00
hakimel
2c3a494eaa disable 3d links in ie, reorder script loading in index for readability (closes #95) 2012-08-03 22:41:31 -04:00
hakimel
75546e8962 fix disappearing 3d hover in chrome 2012-08-03 22:02:16 -04:00
hakimel
9a657e2676 ie8 support (closes #96) 2012-08-03 21:50:06 -04:00
hakimel
6bc92af17c add eot font for ie 2012-08-03 21:21:49 -04:00
Owen Versteeg
5503125ed4 Oops, made the page a little too responsive
if you resized the window or visited the page on a small screen everything would be amiss

now, I've fixed that with a one-liner
2012-08-02 16:47:44 -03:00
Owen Versteeg
cae363e7a5 Made the slideshow responsive
Woohoo! The slideshow now responds to resizing of the browser nicely!
2012-08-02 10:22:44 -03:00
Hakim El Hattab
ee31772aeb added example 2012-08-02 00:03:31 -03:00
Hakim El Hattab
911326f7ac update markdown code example to correctly reflect line breaks 2012-07-31 23:50:41 -04:00
Hakim El Hattab
0a440cee6c modified data-markdown to support markdown indented with tabs 2012-07-31 23:47:09 -04:00
Hakim El Hattab
ff567372c0 self-execute data-markdown 2012-07-31 12:44:37 -03:00
Hakim El Hattab
12c9977cda markdown instructions 2012-07-31 02:49:02 -03:00
Hakim El Hattab
696346dccb added slide announcing markdown support (#15) 2012-07-31 01:35:25 -04:00
Hakim El Hattab
19852772fe support for data-markdown (#15) 2012-07-31 01:13:33 -04:00
Hakim El Hattab
dc05ce1575 move theme styles at bottom of main.css, change background of page transition to be transparent 2012-07-30 00:41:02 -04:00
Hakim El Hattab
e9b874112e fixes bug where the .present class remained on previous slide (closes #88) 2012-07-26 23:22:15 -04:00
Hakim El Hattab
e570265a67 adds new api methods (getCurrentSlide, getPreviousSlide, getIndices) closes #73 2012-07-26 22:54:36 -04:00
Hakim El Hattab
1916d2f64a added example from @pamelafox 2012-07-21 00:44:42 -03:00
Hakim El Hattab
233d626c5f readme code marking 2012-07-20 23:57:23 -03:00
Hakim El Hattab
e50370c251 1.4 is now stable, increment master to 1.5 2012-07-20 22:52:08 -04:00
130 changed files with 33268 additions and 2600 deletions

8
.gitignore vendored
View File

@@ -1,5 +1,13 @@
.idea/
*.iml
*.iws
*.eml
out/
.DS_Store
.svn
log/*.log
tmp/**
node_modules/
.sass-cache
css/reveal.min.css
js/reveal.min.js

5
.travis.yml Normal file
View File

@@ -0,0 +1,5 @@
language: node_js
node_js:
- 11
after_script:
- npm run build -- retire

23
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,23 @@
## Contributing
Please keep the [issue tracker](http://github.com/hakimel/reveal.js/issues) limited to **bug reports**, **feature requests** and **pull requests**.
### Personal Support
If you have personal support or setup questions the best place to ask those are [StackOverflow](http://stackoverflow.com/questions/tagged/reveal.js).
### Bug Reports
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.
### Pull Requests
- Should follow the coding style of the file you work in, most importantly:
- Tabs to indent
- Single-quoted strings
- Should be made towards the **dev branch**
- Should be submitted from a feature/topic branch (not your master)
### Plugins
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

View File

@@ -1,4 +1,4 @@
Copyright (C) 2012 Hakim El Hattab, http://hakim.se
Copyright (C) 2020 Hakim El Hattab, http://hakim.se, and reveal.js contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

1518
README.md

File diff suppressed because it is too large Load Diff

24
bower.json Normal file
View File

@@ -0,0 +1,24 @@
{
"name": "reveal.js",
"version": "3.9.2",
"main": [
"js/reveal.js",
"css/reveal.css"
],
"homepage": "http://revealjs.com",
"license": "MIT",
"description": "The HTML Presentation Framework",
"authors": [
"Hakim El Hattab <hakim.elhattab@gmail.com>"
],
"repository": {
"type": "git",
"url": "git://github.com/hakimel/reveal.js.git"
},
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test"
]
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,167 +0,0 @@
/* Default Print Stylesheet Template
by Rob Glazebrook of CSSnewbie.com
Last Updated: June 4, 2008
Feel free (nay, compelled) to edit, append, and
manipulate this file as you see fit. */
/* SECTION 1: Set default width, margin, float, and
background. This prevents elements from extending
beyond the edge of the printed page, and prevents
unnecessary background images from printing */
body {
background: #fff url(none);
font-size: 13pt;
width: auto;
height: auto;
border: 0;
margin: 0 5%;
padding: 0;
float: none !important;
overflow: visible;
}
html {
background: #fff;
width: auto;
height: auto;
overflow: visible;
}
/* SECTION 2: Remove any elements not needed in print.
This would include navigation, ads, sidebars, etc. */
.nestedarrow,
.controls a,
.reveal .progress span,
.reveal.overview {
display:none;
}
/* SECTION 3: Set body font face, size, and color.
Consider using a serif font for readability. */
body, p, td, li, div, a {
font-size: 13pt;
font-family: Georgia, "Times New Roman", Times, serif !important;
color: #000;
}
/* SECTION 4: Set heading font face, sizes, and color.
Diffrentiate your headings from your body text.
Perhaps use a large sans-serif for distinction. */
h1,h2,h3,h4,h5,h6 {
color: #000!important;
height: auto;
line-height: normal;
font-family: Georgia, "Times New Roman", Times, serif !important;
text-shadow: 0 0 0 #000 !important;
text-align: left;
letter-spacing: normal;
}
/* Need to reduce the size of the fonts for printing */
h1 { font-size: 26pt !important; }
h2 { font-size: 22pt !important; }
h3 { font-size: 20pt !important; }
h4 { font-size: 20pt !important; font-variant: small-caps; }
h5 { font-size: 19pt !important; }
h6 { font-size: 18pt !important; font-style: italic; }
/* SECTION 5: Make hyperlinks more usable.
Ensure links are underlined, and consider appending
the URL to the end of the link for usability. */
a:link,
a:visited {
color: #000 !important;
font-weight: bold;
text-decoration: underline;
}
.reveal a:link:after,
.reveal a:visited:after {
content: " (" attr(href) ") ";
color: #222 !important;
font-size: 90%;
}
/* SECTION 6: more reveal.js specific additions by @skypanther */
ul, ol, div, p {
visibility: visible;
position: static;
width: auto;
height: auto;
display: block;
overflow: visible;
margin: auto;
text-align: left !important;
}
.reveal .slides {
position: static;
width: auto;
height: auto;
left: auto;
top: auto;
margin-left: auto;
margin-top: auto;
padding: auto;
overflow: visible;
display: block;
text-align: center;
-webkit-perspective: none;
-moz-perspective: none;
-ms-perspective: none;
perspective: none;
-webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
-moz-perspective-origin: 50% 50%;
-ms-perspective-origin: 50% 50%;
perspective-origin: 50% 50%;
}
.reveal .slides>section, .reveal .slides>section>section,
.reveal .slides>section.past, .reveal .slides>section.future,
.reveal.linear .slides>section, .reveal.linear .slides>section>section,
.reveal.linear .slides>section.past, .reveal.linear .slides>section.future {
visibility: visible;
position: static;
width: 90%;
height: auto;
display: block;
overflow: visible;
left: 0%;
top: 0%;
margin-left: 0px;
margin-top: 0px;
padding: 20px 0px;
opacity: 1;
-webkit-transform-style: flat;
-moz-transform-style: flat;
-ms-transform-style: flat;
transform-style: flat;
-webkit-transform: none;
-moz-transform: none;
-ms-transform: none;
transform: none;
}
.reveal section {
page-break-after: always !important;
display: block !important;
}
.reveal section.stack {
page-break-after: avoid !important;
}
.reveal section .fragment {
opacity: 1 !important;
}
.reveal section img {
display: block;
margin: 15px 0px;
background: rgba(255,255,255,1);
border: 1px solid #666;
box-shadow: none;
}

203
css/print/paper.css Normal file
View File

@@ -0,0 +1,203 @@
/* Default Print Stylesheet Template
by Rob Glazebrook of CSSnewbie.com
Last Updated: June 4, 2008
Feel free (nay, compelled) to edit, append, and
manipulate this file as you see fit. */
@media print {
/* SECTION 1: Set default width, margin, float, and
background. This prevents elements from extending
beyond the edge of the printed page, and prevents
unnecessary background images from printing */
html {
background: #fff;
width: auto;
height: auto;
overflow: visible;
}
body {
background: #fff;
font-size: 20pt;
width: auto;
height: auto;
border: 0;
margin: 0 5%;
padding: 0;
overflow: visible;
float: none !important;
}
/* SECTION 2: Remove any elements not needed in print.
This would include navigation, ads, sidebars, etc. */
.nestedarrow,
.controls,
.fork-reveal,
.share-reveal,
.state-background,
.reveal .progress,
.reveal .backgrounds,
.reveal .slide-number {
display: none !important;
}
/* SECTION 3: Set body font face, size, and color.
Consider using a serif font for readability. */
body, p, td, li, div {
font-size: 20pt!important;
font-family: Georgia, "Times New Roman", Times, serif !important;
color: #000;
}
/* SECTION 4: Set heading font face, sizes, and color.
Differentiate your headings from your body text.
Perhaps use a large sans-serif for distinction. */
h1,h2,h3,h4,h5,h6 {
color: #000!important;
height: auto;
line-height: normal;
font-family: Georgia, "Times New Roman", Times, serif !important;
text-shadow: 0 0 0 #000 !important;
text-align: left;
letter-spacing: normal;
}
/* Need to reduce the size of the fonts for printing */
h1 { font-size: 28pt !important; }
h2 { font-size: 24pt !important; }
h3 { font-size: 22pt !important; }
h4 { font-size: 22pt !important; font-variant: small-caps; }
h5 { font-size: 21pt !important; }
h6 { font-size: 20pt !important; font-style: italic; }
/* SECTION 5: Make hyperlinks more usable.
Ensure links are underlined, and consider appending
the URL to the end of the link for usability. */
a:link,
a:visited {
color: #000 !important;
font-weight: bold;
text-decoration: underline;
}
/*
.reveal a:link:after,
.reveal a:visited:after {
content: " (" attr(href) ") ";
color: #222 !important;
font-size: 90%;
}
*/
/* SECTION 6: more reveal.js specific additions by @skypanther */
ul, ol, div, p {
visibility: visible;
position: static;
width: auto;
height: auto;
display: block;
overflow: visible;
margin: 0;
text-align: left !important;
}
.reveal pre,
.reveal table {
margin-left: 0;
margin-right: 0;
}
.reveal pre code {
padding: 20px;
border: 1px solid #ddd;
}
.reveal blockquote {
margin: 20px 0;
}
.reveal .slides {
position: static !important;
width: auto !important;
height: auto !important;
left: 0 !important;
top: 0 !important;
margin-left: 0 !important;
margin-top: 0 !important;
padding: 0 !important;
zoom: 1 !important;
overflow: visible !important;
display: block !important;
text-align: left !important;
-webkit-perspective: none;
-moz-perspective: none;
-ms-perspective: none;
perspective: none;
-webkit-perspective-origin: 50% 50%;
-moz-perspective-origin: 50% 50%;
-ms-perspective-origin: 50% 50%;
perspective-origin: 50% 50%;
}
.reveal .slides section {
visibility: visible !important;
position: static !important;
width: auto !important;
height: auto !important;
display: block !important;
overflow: visible !important;
left: 0 !important;
top: 0 !important;
margin-left: 0 !important;
margin-top: 0 !important;
padding: 60px 20px !important;
z-index: auto !important;
opacity: 1 !important;
page-break-after: always !important;
-webkit-transform-style: flat !important;
-moz-transform-style: flat !important;
-ms-transform-style: flat !important;
transform-style: flat !important;
-webkit-transform: none !important;
-moz-transform: none !important;
-ms-transform: none !important;
transform: none !important;
-webkit-transition: none !important;
-moz-transition: none !important;
-ms-transition: none !important;
transition: none !important;
}
.reveal .slides section.stack {
padding: 0 !important;
}
.reveal section:last-of-type {
page-break-after: avoid !important;
}
.reveal section .fragment {
opacity: 1 !important;
visibility: visible !important;
-webkit-transform: none !important;
-moz-transform: none !important;
-ms-transform: none !important;
transform: none !important;
}
.reveal section img {
display: block;
margin: 15px 0px;
background: rgba(255,255,255,1);
border: 1px solid #666;
box-shadow: none;
}
.reveal section small {
font-size: 0.8em;
}
}

164
css/print/pdf.css Normal file
View File

@@ -0,0 +1,164 @@
/**
* This stylesheet is used to print reveal.js
* presentations to PDF.
*
* https://github.com/hakimel/reveal.js#pdf-export
*/
* {
-webkit-print-color-adjust: exact;
}
body {
margin: 0 auto !important;
border: 0;
padding: 0;
float: none !important;
overflow: visible;
}
html {
width: 100%;
height: 100%;
overflow: visible;
}
/* Remove any elements not needed in print. */
.nestedarrow,
.reveal .controls,
.reveal .progress,
.reveal .playback,
.reveal.overview,
.fork-reveal,
.share-reveal,
.state-background {
display: none !important;
}
h1, h2, h3, h4, h5, h6 {
text-shadow: 0 0 0 #000 !important;
}
.reveal pre code {
overflow: hidden !important;
font-family: Courier, 'Courier New', monospace !important;
}
ul, ol, div, p {
visibility: visible;
position: static;
width: auto;
height: auto;
display: block;
overflow: visible;
margin: auto;
}
.reveal {
width: auto !important;
height: auto !important;
overflow: hidden !important;
}
.reveal .slides {
position: static;
width: 100% !important;
height: auto !important;
zoom: 1 !important;
left: auto;
top: auto;
margin: 0 !important;
padding: 0 !important;
overflow: visible;
display: block;
perspective: none;
perspective-origin: 50% 50%;
}
.reveal .slides .pdf-page {
position: relative;
overflow: hidden;
z-index: 1;
page-break-after: always;
}
.reveal .slides section {
visibility: visible !important;
display: block !important;
position: absolute !important;
margin: 0 !important;
padding: 0 !important;
box-sizing: border-box !important;
min-height: 1px;
opacity: 1 !important;
transform-style: flat !important;
transform: none !important;
}
.reveal section.stack {
position: relative !important;
margin: 0 !important;
padding: 0 !important;
page-break-after: avoid !important;
height: auto !important;
min-height: auto !important;
}
.reveal img {
box-shadow: none;
}
.reveal .roll {
overflow: visible;
line-height: 1em;
}
/* Slide backgrounds are placed inside of their slide when exporting to PDF */
.reveal .slide-background {
display: block !important;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: auto !important;
}
/* Display slide speaker notes when 'showNotes' is enabled */
.reveal.show-notes {
max-width: none;
max-height: none;
}
.reveal .speaker-notes-pdf {
display: block;
width: 100%;
height: auto;
max-height: none;
top: auto;
right: auto;
bottom: auto;
left: auto;
z-index: 100;
}
/* Layout option which makes notes appear on a separate page */
.reveal .speaker-notes-pdf[data-layout="separate-page"] {
position: relative;
color: inherit;
background-color: transparent;
padding: 20px;
page-break-after: always;
border: 0;
}
/* Display slide numbers when 'slideNumber' is enabled */
.reveal .slide-number-pdf {
display: block;
position: absolute;
font-size: 14px;
}

View File

@@ -1,5 +1,5 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
/* http://meyerweb.com/eric/tools/css/reset/
v4.0 | 20180602
License: none (public domain)
*/
@@ -12,46 +12,19 @@ b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* HTML5BP:
These selection declarations have to be separate.
No text-shadow: twitter.com/miketaylr/status/12228805301
Also: hot pink. */
::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
::selection { background:#FF5E99; color:#fff; text-shadow: none; }
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
display: block;
}

1606
css/reveal.css Normal file

File diff suppressed because it is too large Load Diff

1777
css/reveal.scss Normal file

File diff suppressed because it is too large Load Diff

21
css/theme/README.md Normal file
View File

@@ -0,0 +1,21 @@
## Dependencies
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 including the Grunt dependencies installed before proceeding: https://github.com/hakimel/reveal.js#full-setup
## Creating a Theme
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 by Grunt from Sass to CSS (see the [Gruntfile](https://github.com/hakimel/reveal.js/blob/master/gruntfile.js)) when you run `npm run build -- css-themes`.
Each theme file does four things in the following order:
1. **Include [/css/theme/template/mixins.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/mixins.scss)**
Shared utility functions.
2. **Include [/css/theme/template/settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss)**
Declares a set of custom variables that the template file (step 4) expects. Can be overridden in step 3.
3. **Override**
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.
4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)**
The template theme file which will generate final CSS output based on the currently defined variables.

277
css/theme/beige.css Normal file
View File

@@ -0,0 +1,277 @@
/**
* Beige theme for reveal.js.
*
* Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
*/
@import url(../../lib/font/league-gothic/league-gothic.css);
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
/*********************************************
* GLOBAL STYLES
*********************************************/
body {
background: #f7f2d3;
background: -moz-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, white), color-stop(100%, #f7f2d3));
background: -webkit-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
background: -o-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
background: -ms-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
background: radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
background-color: #f7f3de; }
.reveal {
font-family: "Lato", sans-serif;
font-size: 40px;
font-weight: normal;
color: #333; }
::selection {
color: #fff;
background: rgba(79, 64, 28, 0.99);
text-shadow: none; }
::-moz-selection {
color: #fff;
background: rgba(79, 64, 28, 0.99);
text-shadow: none; }
.reveal .slides section,
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit; }
/*********************************************
* HEADERS
*********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: 0 0 20px 0;
color: #333;
font-family: "League Gothic", Impact, sans-serif;
font-weight: normal;
line-height: 1.2;
letter-spacing: normal;
text-transform: uppercase;
text-shadow: none;
word-wrap: break-word; }
.reveal h1 {
font-size: 3.77em; }
.reveal h2 {
font-size: 2.11em; }
.reveal h3 {
font-size: 1.55em; }
.reveal h4 {
font-size: 1em; }
.reveal h1 {
text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); }
/*********************************************
* OTHER
*********************************************/
.reveal p {
margin: 20px 0;
line-height: 1.3; }
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
max-width: 95%;
max-height: 95%; }
.reveal strong,
.reveal b {
font-weight: bold; }
.reveal em {
font-style: italic; }
.reveal ol,
.reveal dl,
.reveal ul {
display: inline-block;
text-align: left;
margin: 0 0 0 1em; }
.reveal ol {
list-style-type: decimal; }
.reveal ul {
list-style-type: disc; }
.reveal ul ul {
list-style-type: square; }
.reveal ul ul ul {
list-style-type: circle; }
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
display: block;
margin-left: 40px; }
.reveal dt {
font-weight: bold; }
.reveal dd {
margin-left: 40px; }
.reveal blockquote {
display: block;
position: relative;
width: 70%;
margin: 20px auto;
padding: 5px;
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block; }
.reveal q {
font-style: italic; }
.reveal pre {
display: block;
position: relative;
width: 90%;
margin: 20px auto;
text-align: left;
font-size: 0.55em;
font-family: monospace;
line-height: 1.2em;
word-wrap: break-word;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
.reveal code {
font-family: monospace;
text-transform: none; }
.reveal pre code {
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal; }
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0; }
.reveal table th {
font-weight: bold; }
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid; }
.reveal table th[align="center"],
.reveal table td[align="center"] {
text-align: center; }
.reveal table th[align="right"],
.reveal table td[align="right"] {
text-align: right; }
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
border-bottom: none; }
.reveal sup {
vertical-align: super;
font-size: smaller; }
.reveal sub {
vertical-align: sub;
font-size: smaller; }
.reveal small {
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top; }
.reveal small * {
vertical-align: top; }
/*********************************************
* LINKS
*********************************************/
.reveal a {
color: #8b743d;
text-decoration: none;
-webkit-transition: color .15s ease;
-moz-transition: color .15s ease;
transition: color .15s ease; }
.reveal a:hover {
color: #c0a86e;
text-shadow: none;
border: none; }
.reveal .roll span:after {
color: #fff;
background: #564826; }
/*********************************************
* IMAGES
*********************************************/
.reveal section img {
margin: 15px 0px;
background: rgba(255, 255, 255, 0.12);
border: 4px solid #333;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
.reveal section img.plain {
border: 0;
box-shadow: none; }
.reveal a img {
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
transition: all .15s linear; }
.reveal a:hover img {
background: rgba(255, 255, 255, 0.2);
border-color: #8b743d;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls {
color: #8b743d; }
/*********************************************
* PROGRESS BAR
*********************************************/
.reveal .progress {
background: rgba(0, 0, 0, 0.2);
color: #8b743d; }
.reveal .progress span {
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
/*********************************************
* PRINT BACKGROUND
*********************************************/
@media print {
.backgrounds {
background-color: #f7f3de; } }

273
css/theme/black.css Normal file
View File

@@ -0,0 +1,273 @@
/**
* Black theme for reveal.js. This is the opposite of the 'white' theme.
*
* By Hakim El Hattab, http://hakim.se
*/
@import url(../../lib/font/source-sans-pro/source-sans-pro.css);
section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
color: #222; }
/*********************************************
* GLOBAL STYLES
*********************************************/
body {
background: #191919;
background-color: #191919; }
.reveal {
font-family: "Source Sans Pro", Helvetica, sans-serif;
font-size: 42px;
font-weight: normal;
color: #fff; }
::selection {
color: #fff;
background: #bee4fd;
text-shadow: none; }
::-moz-selection {
color: #fff;
background: #bee4fd;
text-shadow: none; }
.reveal .slides section,
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit; }
/*********************************************
* HEADERS
*********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: 0 0 20px 0;
color: #fff;
font-family: "Source Sans Pro", Helvetica, sans-serif;
font-weight: 600;
line-height: 1.2;
letter-spacing: normal;
text-transform: uppercase;
text-shadow: none;
word-wrap: break-word; }
.reveal h1 {
font-size: 2.5em; }
.reveal h2 {
font-size: 1.6em; }
.reveal h3 {
font-size: 1.3em; }
.reveal h4 {
font-size: 1em; }
.reveal h1 {
text-shadow: none; }
/*********************************************
* OTHER
*********************************************/
.reveal p {
margin: 20px 0;
line-height: 1.3; }
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
max-width: 95%;
max-height: 95%; }
.reveal strong,
.reveal b {
font-weight: bold; }
.reveal em {
font-style: italic; }
.reveal ol,
.reveal dl,
.reveal ul {
display: inline-block;
text-align: left;
margin: 0 0 0 1em; }
.reveal ol {
list-style-type: decimal; }
.reveal ul {
list-style-type: disc; }
.reveal ul ul {
list-style-type: square; }
.reveal ul ul ul {
list-style-type: circle; }
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
display: block;
margin-left: 40px; }
.reveal dt {
font-weight: bold; }
.reveal dd {
margin-left: 40px; }
.reveal blockquote {
display: block;
position: relative;
width: 70%;
margin: 20px auto;
padding: 5px;
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block; }
.reveal q {
font-style: italic; }
.reveal pre {
display: block;
position: relative;
width: 90%;
margin: 20px auto;
text-align: left;
font-size: 0.55em;
font-family: monospace;
line-height: 1.2em;
word-wrap: break-word;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
.reveal code {
font-family: monospace;
text-transform: none; }
.reveal pre code {
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal; }
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0; }
.reveal table th {
font-weight: bold; }
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid; }
.reveal table th[align="center"],
.reveal table td[align="center"] {
text-align: center; }
.reveal table th[align="right"],
.reveal table td[align="right"] {
text-align: right; }
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
border-bottom: none; }
.reveal sup {
vertical-align: super;
font-size: smaller; }
.reveal sub {
vertical-align: sub;
font-size: smaller; }
.reveal small {
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top; }
.reveal small * {
vertical-align: top; }
/*********************************************
* LINKS
*********************************************/
.reveal a {
color: #42affa;
text-decoration: none;
-webkit-transition: color .15s ease;
-moz-transition: color .15s ease;
transition: color .15s ease; }
.reveal a:hover {
color: #8dcffc;
text-shadow: none;
border: none; }
.reveal .roll span:after {
color: #fff;
background: #068de9; }
/*********************************************
* IMAGES
*********************************************/
.reveal section img {
margin: 15px 0px;
background: rgba(255, 255, 255, 0.12);
border: 4px solid #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
.reveal section img.plain {
border: 0;
box-shadow: none; }
.reveal a img {
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
transition: all .15s linear; }
.reveal a:hover img {
background: rgba(255, 255, 255, 0.2);
border-color: #42affa;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls {
color: #42affa; }
/*********************************************
* PROGRESS BAR
*********************************************/
.reveal .progress {
background: rgba(0, 0, 0, 0.2);
color: #42affa; }
.reveal .progress span {
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
/*********************************************
* PRINT BACKGROUND
*********************************************/
@media print {
.backgrounds {
background-color: #191919; } }

296
css/theme/blood.css Normal file
View File

@@ -0,0 +1,296 @@
/**
* Blood theme for reveal.js
* Author: Walther http://github.com/Walther
*
* Designed to be used with highlight.js theme
* "monokai_sublime.css" available from
* https://github.com/isagalaev/highlight.js/
*
* For other themes, change $codeBackground accordingly.
*
*/
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
/*********************************************
* GLOBAL STYLES
*********************************************/
body {
background: #222;
background-color: #222; }
.reveal {
font-family: Ubuntu, "sans-serif";
font-size: 40px;
font-weight: normal;
color: #eee; }
::selection {
color: #fff;
background: #a23;
text-shadow: none; }
::-moz-selection {
color: #fff;
background: #a23;
text-shadow: none; }
.reveal .slides section,
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit; }
/*********************************************
* HEADERS
*********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: 0 0 20px 0;
color: #eee;
font-family: Ubuntu, "sans-serif";
font-weight: normal;
line-height: 1.2;
letter-spacing: normal;
text-transform: uppercase;
text-shadow: 2px 2px 2px #222;
word-wrap: break-word; }
.reveal h1 {
font-size: 3.77em; }
.reveal h2 {
font-size: 2.11em; }
.reveal h3 {
font-size: 1.55em; }
.reveal h4 {
font-size: 1em; }
.reveal h1 {
text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); }
/*********************************************
* OTHER
*********************************************/
.reveal p {
margin: 20px 0;
line-height: 1.3; }
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
max-width: 95%;
max-height: 95%; }
.reveal strong,
.reveal b {
font-weight: bold; }
.reveal em {
font-style: italic; }
.reveal ol,
.reveal dl,
.reveal ul {
display: inline-block;
text-align: left;
margin: 0 0 0 1em; }
.reveal ol {
list-style-type: decimal; }
.reveal ul {
list-style-type: disc; }
.reveal ul ul {
list-style-type: square; }
.reveal ul ul ul {
list-style-type: circle; }
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
display: block;
margin-left: 40px; }
.reveal dt {
font-weight: bold; }
.reveal dd {
margin-left: 40px; }
.reveal blockquote {
display: block;
position: relative;
width: 70%;
margin: 20px auto;
padding: 5px;
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block; }
.reveal q {
font-style: italic; }
.reveal pre {
display: block;
position: relative;
width: 90%;
margin: 20px auto;
text-align: left;
font-size: 0.55em;
font-family: monospace;
line-height: 1.2em;
word-wrap: break-word;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
.reveal code {
font-family: monospace;
text-transform: none; }
.reveal pre code {
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal; }
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0; }
.reveal table th {
font-weight: bold; }
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid; }
.reveal table th[align="center"],
.reveal table td[align="center"] {
text-align: center; }
.reveal table th[align="right"],
.reveal table td[align="right"] {
text-align: right; }
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
border-bottom: none; }
.reveal sup {
vertical-align: super;
font-size: smaller; }
.reveal sub {
vertical-align: sub;
font-size: smaller; }
.reveal small {
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top; }
.reveal small * {
vertical-align: top; }
/*********************************************
* LINKS
*********************************************/
.reveal a {
color: #a23;
text-decoration: none;
-webkit-transition: color .15s ease;
-moz-transition: color .15s ease;
transition: color .15s ease; }
.reveal a:hover {
color: #dd5566;
text-shadow: none;
border: none; }
.reveal .roll span:after {
color: #fff;
background: #6a1520; }
/*********************************************
* IMAGES
*********************************************/
.reveal section img {
margin: 15px 0px;
background: rgba(255, 255, 255, 0.12);
border: 4px solid #eee;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
.reveal section img.plain {
border: 0;
box-shadow: none; }
.reveal a img {
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
transition: all .15s linear; }
.reveal a:hover img {
background: rgba(255, 255, 255, 0.2);
border-color: #a23;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls {
color: #a23; }
/*********************************************
* PROGRESS BAR
*********************************************/
.reveal .progress {
background: rgba(0, 0, 0, 0.2);
color: #a23; }
.reveal .progress span {
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
/*********************************************
* PRINT BACKGROUND
*********************************************/
@media print {
.backgrounds {
background-color: #222; } }
.reveal p {
font-weight: 300;
text-shadow: 1px 1px #222; }
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
font-weight: 700; }
.reveal p code {
background-color: #23241f;
display: inline-block;
border-radius: 7px; }
.reveal small code {
vertical-align: baseline; }

279
css/theme/league.css Normal file
View File

@@ -0,0 +1,279 @@
/**
* League theme for reveal.js.
*
* This was the default theme pre-3.0.0.
*
* Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
*/
@import url(../../lib/font/league-gothic/league-gothic.css);
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
/*********************************************
* GLOBAL STYLES
*********************************************/
body {
background: #1c1e20;
background: -moz-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #555a5f), color-stop(100%, #1c1e20));
background: -webkit-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
background: -o-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
background: -ms-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
background: radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
background-color: #2b2b2b; }
.reveal {
font-family: "Lato", sans-serif;
font-size: 40px;
font-weight: normal;
color: #eee; }
::selection {
color: #fff;
background: #FF5E99;
text-shadow: none; }
::-moz-selection {
color: #fff;
background: #FF5E99;
text-shadow: none; }
.reveal .slides section,
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit; }
/*********************************************
* HEADERS
*********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: 0 0 20px 0;
color: #eee;
font-family: "League Gothic", Impact, sans-serif;
font-weight: normal;
line-height: 1.2;
letter-spacing: normal;
text-transform: uppercase;
text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
word-wrap: break-word; }
.reveal h1 {
font-size: 3.77em; }
.reveal h2 {
font-size: 2.11em; }
.reveal h3 {
font-size: 1.55em; }
.reveal h4 {
font-size: 1em; }
.reveal h1 {
text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); }
/*********************************************
* OTHER
*********************************************/
.reveal p {
margin: 20px 0;
line-height: 1.3; }
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
max-width: 95%;
max-height: 95%; }
.reveal strong,
.reveal b {
font-weight: bold; }
.reveal em {
font-style: italic; }
.reveal ol,
.reveal dl,
.reveal ul {
display: inline-block;
text-align: left;
margin: 0 0 0 1em; }
.reveal ol {
list-style-type: decimal; }
.reveal ul {
list-style-type: disc; }
.reveal ul ul {
list-style-type: square; }
.reveal ul ul ul {
list-style-type: circle; }
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
display: block;
margin-left: 40px; }
.reveal dt {
font-weight: bold; }
.reveal dd {
margin-left: 40px; }
.reveal blockquote {
display: block;
position: relative;
width: 70%;
margin: 20px auto;
padding: 5px;
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block; }
.reveal q {
font-style: italic; }
.reveal pre {
display: block;
position: relative;
width: 90%;
margin: 20px auto;
text-align: left;
font-size: 0.55em;
font-family: monospace;
line-height: 1.2em;
word-wrap: break-word;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
.reveal code {
font-family: monospace;
text-transform: none; }
.reveal pre code {
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal; }
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0; }
.reveal table th {
font-weight: bold; }
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid; }
.reveal table th[align="center"],
.reveal table td[align="center"] {
text-align: center; }
.reveal table th[align="right"],
.reveal table td[align="right"] {
text-align: right; }
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
border-bottom: none; }
.reveal sup {
vertical-align: super;
font-size: smaller; }
.reveal sub {
vertical-align: sub;
font-size: smaller; }
.reveal small {
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top; }
.reveal small * {
vertical-align: top; }
/*********************************************
* LINKS
*********************************************/
.reveal a {
color: #13DAEC;
text-decoration: none;
-webkit-transition: color .15s ease;
-moz-transition: color .15s ease;
transition: color .15s ease; }
.reveal a:hover {
color: #71e9f4;
text-shadow: none;
border: none; }
.reveal .roll span:after {
color: #fff;
background: #0d99a5; }
/*********************************************
* IMAGES
*********************************************/
.reveal section img {
margin: 15px 0px;
background: rgba(255, 255, 255, 0.12);
border: 4px solid #eee;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
.reveal section img.plain {
border: 0;
box-shadow: none; }
.reveal a img {
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
transition: all .15s linear; }
.reveal a:hover img {
background: rgba(255, 255, 255, 0.2);
border-color: #13DAEC;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls {
color: #13DAEC; }
/*********************************************
* PROGRESS BAR
*********************************************/
.reveal .progress {
background: rgba(0, 0, 0, 0.2);
color: #13DAEC; }
.reveal .progress span {
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
/*********************************************
* PRINT BACKGROUND
*********************************************/
@media print {
.backgrounds {
background-color: #2b2b2b; } }

277
css/theme/moon.css Normal file
View File

@@ -0,0 +1,277 @@
/**
* Solarized Dark theme for reveal.js.
* Author: Achim Staebler
*/
@import url(../../lib/font/league-gothic/league-gothic.css);
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
/**
* Solarized colors by Ethan Schoonover
*/
html * {
color-profile: sRGB;
rendering-intent: auto; }
/*********************************************
* GLOBAL STYLES
*********************************************/
body {
background: #002b36;
background-color: #002b36; }
.reveal {
font-family: "Lato", sans-serif;
font-size: 40px;
font-weight: normal;
color: #93a1a1; }
::selection {
color: #fff;
background: #d33682;
text-shadow: none; }
::-moz-selection {
color: #fff;
background: #d33682;
text-shadow: none; }
.reveal .slides section,
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit; }
/*********************************************
* HEADERS
*********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: 0 0 20px 0;
color: #eee8d5;
font-family: "League Gothic", Impact, sans-serif;
font-weight: normal;
line-height: 1.2;
letter-spacing: normal;
text-transform: uppercase;
text-shadow: none;
word-wrap: break-word; }
.reveal h1 {
font-size: 3.77em; }
.reveal h2 {
font-size: 2.11em; }
.reveal h3 {
font-size: 1.55em; }
.reveal h4 {
font-size: 1em; }
.reveal h1 {
text-shadow: none; }
/*********************************************
* OTHER
*********************************************/
.reveal p {
margin: 20px 0;
line-height: 1.3; }
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
max-width: 95%;
max-height: 95%; }
.reveal strong,
.reveal b {
font-weight: bold; }
.reveal em {
font-style: italic; }
.reveal ol,
.reveal dl,
.reveal ul {
display: inline-block;
text-align: left;
margin: 0 0 0 1em; }
.reveal ol {
list-style-type: decimal; }
.reveal ul {
list-style-type: disc; }
.reveal ul ul {
list-style-type: square; }
.reveal ul ul ul {
list-style-type: circle; }
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
display: block;
margin-left: 40px; }
.reveal dt {
font-weight: bold; }
.reveal dd {
margin-left: 40px; }
.reveal blockquote {
display: block;
position: relative;
width: 70%;
margin: 20px auto;
padding: 5px;
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block; }
.reveal q {
font-style: italic; }
.reveal pre {
display: block;
position: relative;
width: 90%;
margin: 20px auto;
text-align: left;
font-size: 0.55em;
font-family: monospace;
line-height: 1.2em;
word-wrap: break-word;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
.reveal code {
font-family: monospace;
text-transform: none; }
.reveal pre code {
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal; }
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0; }
.reveal table th {
font-weight: bold; }
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid; }
.reveal table th[align="center"],
.reveal table td[align="center"] {
text-align: center; }
.reveal table th[align="right"],
.reveal table td[align="right"] {
text-align: right; }
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
border-bottom: none; }
.reveal sup {
vertical-align: super;
font-size: smaller; }
.reveal sub {
vertical-align: sub;
font-size: smaller; }
.reveal small {
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top; }
.reveal small * {
vertical-align: top; }
/*********************************************
* LINKS
*********************************************/
.reveal a {
color: #268bd2;
text-decoration: none;
-webkit-transition: color .15s ease;
-moz-transition: color .15s ease;
transition: color .15s ease; }
.reveal a:hover {
color: #78b9e6;
text-shadow: none;
border: none; }
.reveal .roll span:after {
color: #fff;
background: #1a6091; }
/*********************************************
* IMAGES
*********************************************/
.reveal section img {
margin: 15px 0px;
background: rgba(255, 255, 255, 0.12);
border: 4px solid #93a1a1;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
.reveal section img.plain {
border: 0;
box-shadow: none; }
.reveal a img {
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
transition: all .15s linear; }
.reveal a:hover img {
background: rgba(255, 255, 255, 0.2);
border-color: #268bd2;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls {
color: #268bd2; }
/*********************************************
* PROGRESS BAR
*********************************************/
.reveal .progress {
background: rgba(0, 0, 0, 0.2);
color: #268bd2; }
.reveal .progress span {
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
/*********************************************
* PRINT BACKGROUND
*********************************************/
@media print {
.backgrounds {
background-color: #002b36; } }

271
css/theme/night.css Normal file
View File

@@ -0,0 +1,271 @@
/**
* Black theme for reveal.js.
*
* Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
*/
@import url(https://fonts.googleapis.com/css?family=Montserrat:700);
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
/*********************************************
* GLOBAL STYLES
*********************************************/
body {
background: #111;
background-color: #111; }
.reveal {
font-family: "Open Sans", sans-serif;
font-size: 40px;
font-weight: normal;
color: #eee; }
::selection {
color: #fff;
background: #e7ad52;
text-shadow: none; }
::-moz-selection {
color: #fff;
background: #e7ad52;
text-shadow: none; }
.reveal .slides section,
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit; }
/*********************************************
* HEADERS
*********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: 0 0 20px 0;
color: #eee;
font-family: "Montserrat", Impact, sans-serif;
font-weight: normal;
line-height: 1.2;
letter-spacing: -0.03em;
text-transform: none;
text-shadow: none;
word-wrap: break-word; }
.reveal h1 {
font-size: 3.77em; }
.reveal h2 {
font-size: 2.11em; }
.reveal h3 {
font-size: 1.55em; }
.reveal h4 {
font-size: 1em; }
.reveal h1 {
text-shadow: none; }
/*********************************************
* OTHER
*********************************************/
.reveal p {
margin: 20px 0;
line-height: 1.3; }
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
max-width: 95%;
max-height: 95%; }
.reveal strong,
.reveal b {
font-weight: bold; }
.reveal em {
font-style: italic; }
.reveal ol,
.reveal dl,
.reveal ul {
display: inline-block;
text-align: left;
margin: 0 0 0 1em; }
.reveal ol {
list-style-type: decimal; }
.reveal ul {
list-style-type: disc; }
.reveal ul ul {
list-style-type: square; }
.reveal ul ul ul {
list-style-type: circle; }
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
display: block;
margin-left: 40px; }
.reveal dt {
font-weight: bold; }
.reveal dd {
margin-left: 40px; }
.reveal blockquote {
display: block;
position: relative;
width: 70%;
margin: 20px auto;
padding: 5px;
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block; }
.reveal q {
font-style: italic; }
.reveal pre {
display: block;
position: relative;
width: 90%;
margin: 20px auto;
text-align: left;
font-size: 0.55em;
font-family: monospace;
line-height: 1.2em;
word-wrap: break-word;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
.reveal code {
font-family: monospace;
text-transform: none; }
.reveal pre code {
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal; }
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0; }
.reveal table th {
font-weight: bold; }
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid; }
.reveal table th[align="center"],
.reveal table td[align="center"] {
text-align: center; }
.reveal table th[align="right"],
.reveal table td[align="right"] {
text-align: right; }
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
border-bottom: none; }
.reveal sup {
vertical-align: super;
font-size: smaller; }
.reveal sub {
vertical-align: sub;
font-size: smaller; }
.reveal small {
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top; }
.reveal small * {
vertical-align: top; }
/*********************************************
* LINKS
*********************************************/
.reveal a {
color: #e7ad52;
text-decoration: none;
-webkit-transition: color .15s ease;
-moz-transition: color .15s ease;
transition: color .15s ease; }
.reveal a:hover {
color: #f3d7ac;
text-shadow: none;
border: none; }
.reveal .roll span:after {
color: #fff;
background: #d08a1d; }
/*********************************************
* IMAGES
*********************************************/
.reveal section img {
margin: 15px 0px;
background: rgba(255, 255, 255, 0.12);
border: 4px solid #eee;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
.reveal section img.plain {
border: 0;
box-shadow: none; }
.reveal a img {
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
transition: all .15s linear; }
.reveal a:hover img {
background: rgba(255, 255, 255, 0.2);
border-color: #e7ad52;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls {
color: #e7ad52; }
/*********************************************
* PROGRESS BAR
*********************************************/
.reveal .progress {
background: rgba(0, 0, 0, 0.2);
color: #e7ad52; }
.reveal .progress span {
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
/*********************************************
* PRINT BACKGROUND
*********************************************/
@media print {
.backgrounds {
background-color: #111; } }

273
css/theme/serif.css Normal file
View File

@@ -0,0 +1,273 @@
/**
* A simple theme for reveal.js presentations, similar
* to the default theme. The accent color is brown.
*
* This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed.
*/
.reveal a {
line-height: 1.3em; }
/*********************************************
* GLOBAL STYLES
*********************************************/
body {
background: #F0F1EB;
background-color: #F0F1EB; }
.reveal {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
font-size: 40px;
font-weight: normal;
color: #000; }
::selection {
color: #fff;
background: #26351C;
text-shadow: none; }
::-moz-selection {
color: #fff;
background: #26351C;
text-shadow: none; }
.reveal .slides section,
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit; }
/*********************************************
* HEADERS
*********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: 0 0 20px 0;
color: #383D3D;
font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
font-weight: normal;
line-height: 1.2;
letter-spacing: normal;
text-transform: none;
text-shadow: none;
word-wrap: break-word; }
.reveal h1 {
font-size: 3.77em; }
.reveal h2 {
font-size: 2.11em; }
.reveal h3 {
font-size: 1.55em; }
.reveal h4 {
font-size: 1em; }
.reveal h1 {
text-shadow: none; }
/*********************************************
* OTHER
*********************************************/
.reveal p {
margin: 20px 0;
line-height: 1.3; }
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
max-width: 95%;
max-height: 95%; }
.reveal strong,
.reveal b {
font-weight: bold; }
.reveal em {
font-style: italic; }
.reveal ol,
.reveal dl,
.reveal ul {
display: inline-block;
text-align: left;
margin: 0 0 0 1em; }
.reveal ol {
list-style-type: decimal; }
.reveal ul {
list-style-type: disc; }
.reveal ul ul {
list-style-type: square; }
.reveal ul ul ul {
list-style-type: circle; }
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
display: block;
margin-left: 40px; }
.reveal dt {
font-weight: bold; }
.reveal dd {
margin-left: 40px; }
.reveal blockquote {
display: block;
position: relative;
width: 70%;
margin: 20px auto;
padding: 5px;
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block; }
.reveal q {
font-style: italic; }
.reveal pre {
display: block;
position: relative;
width: 90%;
margin: 20px auto;
text-align: left;
font-size: 0.55em;
font-family: monospace;
line-height: 1.2em;
word-wrap: break-word;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
.reveal code {
font-family: monospace;
text-transform: none; }
.reveal pre code {
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal; }
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0; }
.reveal table th {
font-weight: bold; }
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid; }
.reveal table th[align="center"],
.reveal table td[align="center"] {
text-align: center; }
.reveal table th[align="right"],
.reveal table td[align="right"] {
text-align: right; }
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
border-bottom: none; }
.reveal sup {
vertical-align: super;
font-size: smaller; }
.reveal sub {
vertical-align: sub;
font-size: smaller; }
.reveal small {
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top; }
.reveal small * {
vertical-align: top; }
/*********************************************
* LINKS
*********************************************/
.reveal a {
color: #51483D;
text-decoration: none;
-webkit-transition: color .15s ease;
-moz-transition: color .15s ease;
transition: color .15s ease; }
.reveal a:hover {
color: #8b7c69;
text-shadow: none;
border: none; }
.reveal .roll span:after {
color: #fff;
background: #25211c; }
/*********************************************
* IMAGES
*********************************************/
.reveal section img {
margin: 15px 0px;
background: rgba(255, 255, 255, 0.12);
border: 4px solid #000;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
.reveal section img.plain {
border: 0;
box-shadow: none; }
.reveal a img {
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
transition: all .15s linear; }
.reveal a:hover img {
background: rgba(255, 255, 255, 0.2);
border-color: #51483D;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls {
color: #51483D; }
/*********************************************
* PROGRESS BAR
*********************************************/
.reveal .progress {
background: rgba(0, 0, 0, 0.2);
color: #51483D; }
.reveal .progress span {
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
/*********************************************
* PRINT BACKGROUND
*********************************************/
@media print {
.backgrounds {
background-color: #F0F1EB; } }

276
css/theme/simple.css Normal file
View File

@@ -0,0 +1,276 @@
/**
* A simple theme for reveal.js presentations, similar
* to the default theme. The accent color is darkblue.
*
* This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
* reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
*/
@import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
color: #fff; }
/*********************************************
* GLOBAL STYLES
*********************************************/
body {
background: #fff;
background-color: #fff; }
.reveal {
font-family: "Lato", sans-serif;
font-size: 40px;
font-weight: normal;
color: #000; }
::selection {
color: #fff;
background: rgba(0, 0, 0, 0.99);
text-shadow: none; }
::-moz-selection {
color: #fff;
background: rgba(0, 0, 0, 0.99);
text-shadow: none; }
.reveal .slides section,
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit; }
/*********************************************
* HEADERS
*********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: 0 0 20px 0;
color: #000;
font-family: "News Cycle", Impact, sans-serif;
font-weight: normal;
line-height: 1.2;
letter-spacing: normal;
text-transform: none;
text-shadow: none;
word-wrap: break-word; }
.reveal h1 {
font-size: 3.77em; }
.reveal h2 {
font-size: 2.11em; }
.reveal h3 {
font-size: 1.55em; }
.reveal h4 {
font-size: 1em; }
.reveal h1 {
text-shadow: none; }
/*********************************************
* OTHER
*********************************************/
.reveal p {
margin: 20px 0;
line-height: 1.3; }
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
max-width: 95%;
max-height: 95%; }
.reveal strong,
.reveal b {
font-weight: bold; }
.reveal em {
font-style: italic; }
.reveal ol,
.reveal dl,
.reveal ul {
display: inline-block;
text-align: left;
margin: 0 0 0 1em; }
.reveal ol {
list-style-type: decimal; }
.reveal ul {
list-style-type: disc; }
.reveal ul ul {
list-style-type: square; }
.reveal ul ul ul {
list-style-type: circle; }
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
display: block;
margin-left: 40px; }
.reveal dt {
font-weight: bold; }
.reveal dd {
margin-left: 40px; }
.reveal blockquote {
display: block;
position: relative;
width: 70%;
margin: 20px auto;
padding: 5px;
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block; }
.reveal q {
font-style: italic; }
.reveal pre {
display: block;
position: relative;
width: 90%;
margin: 20px auto;
text-align: left;
font-size: 0.55em;
font-family: monospace;
line-height: 1.2em;
word-wrap: break-word;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
.reveal code {
font-family: monospace;
text-transform: none; }
.reveal pre code {
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal; }
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0; }
.reveal table th {
font-weight: bold; }
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid; }
.reveal table th[align="center"],
.reveal table td[align="center"] {
text-align: center; }
.reveal table th[align="right"],
.reveal table td[align="right"] {
text-align: right; }
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
border-bottom: none; }
.reveal sup {
vertical-align: super;
font-size: smaller; }
.reveal sub {
vertical-align: sub;
font-size: smaller; }
.reveal small {
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top; }
.reveal small * {
vertical-align: top; }
/*********************************************
* LINKS
*********************************************/
.reveal a {
color: #00008B;
text-decoration: none;
-webkit-transition: color .15s ease;
-moz-transition: color .15s ease;
transition: color .15s ease; }
.reveal a:hover {
color: #0000f1;
text-shadow: none;
border: none; }
.reveal .roll span:after {
color: #fff;
background: #00003f; }
/*********************************************
* IMAGES
*********************************************/
.reveal section img {
margin: 15px 0px;
background: rgba(255, 255, 255, 0.12);
border: 4px solid #000;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
.reveal section img.plain {
border: 0;
box-shadow: none; }
.reveal a img {
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
transition: all .15s linear; }
.reveal a:hover img {
background: rgba(255, 255, 255, 0.2);
border-color: #00008B;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls {
color: #00008B; }
/*********************************************
* PROGRESS BAR
*********************************************/
.reveal .progress {
background: rgba(0, 0, 0, 0.2);
color: #00008B; }
.reveal .progress span {
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
/*********************************************
* PRINT BACKGROUND
*********************************************/
@media print {
.backgrounds {
background-color: #fff; } }

280
css/theme/sky.css Normal file
View File

@@ -0,0 +1,280 @@
/**
* Sky theme for reveal.js.
*
* Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
*/
@import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
.reveal a {
line-height: 1.3em; }
/*********************************************
* GLOBAL STYLES
*********************************************/
body {
background: #add9e4;
background: -moz-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #f7fbfc), color-stop(100%, #add9e4));
background: -webkit-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
background: -o-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
background: -ms-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
background: radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
background-color: #f7fbfc; }
.reveal {
font-family: "Open Sans", sans-serif;
font-size: 40px;
font-weight: normal;
color: #333; }
::selection {
color: #fff;
background: #134674;
text-shadow: none; }
::-moz-selection {
color: #fff;
background: #134674;
text-shadow: none; }
.reveal .slides section,
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit; }
/*********************************************
* HEADERS
*********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: 0 0 20px 0;
color: #333;
font-family: "Quicksand", sans-serif;
font-weight: normal;
line-height: 1.2;
letter-spacing: -0.08em;
text-transform: uppercase;
text-shadow: none;
word-wrap: break-word; }
.reveal h1 {
font-size: 3.77em; }
.reveal h2 {
font-size: 2.11em; }
.reveal h3 {
font-size: 1.55em; }
.reveal h4 {
font-size: 1em; }
.reveal h1 {
text-shadow: none; }
/*********************************************
* OTHER
*********************************************/
.reveal p {
margin: 20px 0;
line-height: 1.3; }
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
max-width: 95%;
max-height: 95%; }
.reveal strong,
.reveal b {
font-weight: bold; }
.reveal em {
font-style: italic; }
.reveal ol,
.reveal dl,
.reveal ul {
display: inline-block;
text-align: left;
margin: 0 0 0 1em; }
.reveal ol {
list-style-type: decimal; }
.reveal ul {
list-style-type: disc; }
.reveal ul ul {
list-style-type: square; }
.reveal ul ul ul {
list-style-type: circle; }
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
display: block;
margin-left: 40px; }
.reveal dt {
font-weight: bold; }
.reveal dd {
margin-left: 40px; }
.reveal blockquote {
display: block;
position: relative;
width: 70%;
margin: 20px auto;
padding: 5px;
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block; }
.reveal q {
font-style: italic; }
.reveal pre {
display: block;
position: relative;
width: 90%;
margin: 20px auto;
text-align: left;
font-size: 0.55em;
font-family: monospace;
line-height: 1.2em;
word-wrap: break-word;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
.reveal code {
font-family: monospace;
text-transform: none; }
.reveal pre code {
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal; }
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0; }
.reveal table th {
font-weight: bold; }
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid; }
.reveal table th[align="center"],
.reveal table td[align="center"] {
text-align: center; }
.reveal table th[align="right"],
.reveal table td[align="right"] {
text-align: right; }
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
border-bottom: none; }
.reveal sup {
vertical-align: super;
font-size: smaller; }
.reveal sub {
vertical-align: sub;
font-size: smaller; }
.reveal small {
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top; }
.reveal small * {
vertical-align: top; }
/*********************************************
* LINKS
*********************************************/
.reveal a {
color: #3b759e;
text-decoration: none;
-webkit-transition: color .15s ease;
-moz-transition: color .15s ease;
transition: color .15s ease; }
.reveal a:hover {
color: #74a7cb;
text-shadow: none;
border: none; }
.reveal .roll span:after {
color: #fff;
background: #264c66; }
/*********************************************
* IMAGES
*********************************************/
.reveal section img {
margin: 15px 0px;
background: rgba(255, 255, 255, 0.12);
border: 4px solid #333;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
.reveal section img.plain {
border: 0;
box-shadow: none; }
.reveal a img {
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
transition: all .15s linear; }
.reveal a:hover img {
background: rgba(255, 255, 255, 0.2);
border-color: #3b759e;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls {
color: #3b759e; }
/*********************************************
* PROGRESS BAR
*********************************************/
.reveal .progress {
background: rgba(0, 0, 0, 0.2);
color: #3b759e; }
.reveal .progress span {
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
/*********************************************
* PRINT BACKGROUND
*********************************************/
@media print {
.backgrounds {
background-color: #f7fbfc; } }

277
css/theme/solarized.css Normal file
View File

@@ -0,0 +1,277 @@
/**
* Solarized Light theme for reveal.js.
* Author: Achim Staebler
*/
@import url(../../lib/font/league-gothic/league-gothic.css);
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
/**
* Solarized colors by Ethan Schoonover
*/
html * {
color-profile: sRGB;
rendering-intent: auto; }
/*********************************************
* GLOBAL STYLES
*********************************************/
body {
background: #fdf6e3;
background-color: #fdf6e3; }
.reveal {
font-family: "Lato", sans-serif;
font-size: 40px;
font-weight: normal;
color: #657b83; }
::selection {
color: #fff;
background: #d33682;
text-shadow: none; }
::-moz-selection {
color: #fff;
background: #d33682;
text-shadow: none; }
.reveal .slides section,
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit; }
/*********************************************
* HEADERS
*********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: 0 0 20px 0;
color: #586e75;
font-family: "League Gothic", Impact, sans-serif;
font-weight: normal;
line-height: 1.2;
letter-spacing: normal;
text-transform: uppercase;
text-shadow: none;
word-wrap: break-word; }
.reveal h1 {
font-size: 3.77em; }
.reveal h2 {
font-size: 2.11em; }
.reveal h3 {
font-size: 1.55em; }
.reveal h4 {
font-size: 1em; }
.reveal h1 {
text-shadow: none; }
/*********************************************
* OTHER
*********************************************/
.reveal p {
margin: 20px 0;
line-height: 1.3; }
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
max-width: 95%;
max-height: 95%; }
.reveal strong,
.reveal b {
font-weight: bold; }
.reveal em {
font-style: italic; }
.reveal ol,
.reveal dl,
.reveal ul {
display: inline-block;
text-align: left;
margin: 0 0 0 1em; }
.reveal ol {
list-style-type: decimal; }
.reveal ul {
list-style-type: disc; }
.reveal ul ul {
list-style-type: square; }
.reveal ul ul ul {
list-style-type: circle; }
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
display: block;
margin-left: 40px; }
.reveal dt {
font-weight: bold; }
.reveal dd {
margin-left: 40px; }
.reveal blockquote {
display: block;
position: relative;
width: 70%;
margin: 20px auto;
padding: 5px;
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block; }
.reveal q {
font-style: italic; }
.reveal pre {
display: block;
position: relative;
width: 90%;
margin: 20px auto;
text-align: left;
font-size: 0.55em;
font-family: monospace;
line-height: 1.2em;
word-wrap: break-word;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
.reveal code {
font-family: monospace;
text-transform: none; }
.reveal pre code {
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal; }
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0; }
.reveal table th {
font-weight: bold; }
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid; }
.reveal table th[align="center"],
.reveal table td[align="center"] {
text-align: center; }
.reveal table th[align="right"],
.reveal table td[align="right"] {
text-align: right; }
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
border-bottom: none; }
.reveal sup {
vertical-align: super;
font-size: smaller; }
.reveal sub {
vertical-align: sub;
font-size: smaller; }
.reveal small {
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top; }
.reveal small * {
vertical-align: top; }
/*********************************************
* LINKS
*********************************************/
.reveal a {
color: #268bd2;
text-decoration: none;
-webkit-transition: color .15s ease;
-moz-transition: color .15s ease;
transition: color .15s ease; }
.reveal a:hover {
color: #78b9e6;
text-shadow: none;
border: none; }
.reveal .roll span:after {
color: #fff;
background: #1a6091; }
/*********************************************
* IMAGES
*********************************************/
.reveal section img {
margin: 15px 0px;
background: rgba(255, 255, 255, 0.12);
border: 4px solid #657b83;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
.reveal section img.plain {
border: 0;
box-shadow: none; }
.reveal a img {
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
transition: all .15s linear; }
.reveal a:hover img {
background: rgba(255, 255, 255, 0.2);
border-color: #268bd2;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls {
color: #268bd2; }
/*********************************************
* PROGRESS BAR
*********************************************/
.reveal .progress {
background: rgba(0, 0, 0, 0.2);
color: #268bd2; }
.reveal .progress span {
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
/*********************************************
* PRINT BACKGROUND
*********************************************/
@media print {
.backgrounds {
background-color: #fdf6e3; } }

View File

@@ -0,0 +1,39 @@
/**
* Beige theme for reveal.js.
*
* Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
*/
// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
// ---------------------------------------------
// Include theme-specific fonts
@import url(../../lib/font/league-gothic/league-gothic.css);
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
// Override theme settings (see ../template/settings.scss)
$mainColor: #333;
$headingColor: #333;
$headingTextShadow: none;
$backgroundColor: #f7f3de;
$linkColor: #8b743d;
$linkColorHover: lighten( $linkColor, 20% );
$selectionBackgroundColor: rgba(79, 64, 28, 0.99);
$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);
// Background generator
@mixin bodyBackground() {
@include radial-gradient( rgba(247,242,211,1), rgba(255,255,255,1) );
}
// Theme template ------------------------------
@import "../template/theme";
// ---------------------------------------------

View File

@@ -0,0 +1,49 @@
/**
* Black theme for reveal.js. This is the opposite of the 'white' theme.
*
* By Hakim El Hattab, http://hakim.se
*/
// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
// ---------------------------------------------
// Include theme-specific fonts
@import url(../../lib/font/source-sans-pro/source-sans-pro.css);
// Override theme settings (see ../template/settings.scss)
$backgroundColor: #191919;
$mainColor: #fff;
$headingColor: #fff;
$mainFontSize: 42px;
$mainFont: 'Source Sans Pro', Helvetica, sans-serif;
$headingFont: 'Source Sans Pro', Helvetica, sans-serif;
$headingTextShadow: none;
$headingLetterSpacing: normal;
$headingTextTransform: uppercase;
$headingFontWeight: 600;
$linkColor: #42affa;
$linkColorHover: lighten( $linkColor, 15% );
$selectionBackgroundColor: lighten( $linkColor, 25% );
$heading1Size: 2.5em;
$heading2Size: 1.6em;
$heading3Size: 1.3em;
$heading4Size: 1.0em;
section.has-light-background {
&, h1, h2, h3, h4, h5, h6 {
color: #222;
}
}
// Theme template ------------------------------
@import "../template/theme";
// ---------------------------------------------

View File

@@ -0,0 +1,78 @@
/**
* Blood theme for reveal.js
* Author: Walther http://github.com/Walther
*
* Designed to be used with highlight.js theme
* "monokai_sublime.css" available from
* https://github.com/isagalaev/highlight.js/
*
* For other themes, change $codeBackground accordingly.
*
*/
// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
// ---------------------------------------------
// Include theme-specific fonts
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
// Colors used in the theme
$blood: #a23;
$coal: #222;
$codeBackground: #23241f;
$backgroundColor: $coal;
// Main text
$mainFont: Ubuntu, 'sans-serif';
$mainColor: #eee;
// Headings
$headingFont: Ubuntu, 'sans-serif';
$headingTextShadow: 2px 2px 2px $coal;
// h1 shadow, borrowed humbly from
// (c) Default theme by Hakim El Hattab
$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);
// Links
$linkColor: $blood;
$linkColorHover: lighten( $linkColor, 20% );
// Text selection
$selectionBackgroundColor: $blood;
$selectionColor: #fff;
// Theme template ------------------------------
@import "../template/theme";
// ---------------------------------------------
// some overrides after theme template import
.reveal p {
font-weight: 300;
text-shadow: 1px 1px $coal;
}
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
font-weight: 700;
}
.reveal p code {
background-color: $codeBackground;
display: inline-block;
border-radius: 7px;
}
.reveal small code {
vertical-align: baseline;
}

View File

@@ -0,0 +1,34 @@
/**
* League theme for reveal.js.
*
* This was the default theme pre-3.0.0.
*
* Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
*/
// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
// ---------------------------------------------
// Include theme-specific fonts
@import url(../../lib/font/league-gothic/league-gothic.css);
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
// Override theme settings (see ../template/settings.scss)
$headingTextShadow: 0px 0px 6px rgba(0,0,0,0.2);
$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);
// Background generator
@mixin bodyBackground() {
@include radial-gradient( rgba(28,30,32,1), rgba(85,90,95,1) );
}
// Theme template ------------------------------
@import "../template/theme";
// ---------------------------------------------

View File

@@ -0,0 +1,57 @@
/**
* Solarized Dark theme for reveal.js.
* Author: Achim Staebler
*/
// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
// ---------------------------------------------
// Include theme-specific fonts
@import url(../../lib/font/league-gothic/league-gothic.css);
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
/**
* Solarized colors by Ethan Schoonover
*/
html * {
color-profile: sRGB;
rendering-intent: auto;
}
// Solarized colors
$base03: #002b36;
$base02: #073642;
$base01: #586e75;
$base00: #657b83;
$base0: #839496;
$base1: #93a1a1;
$base2: #eee8d5;
$base3: #fdf6e3;
$yellow: #b58900;
$orange: #cb4b16;
$red: #dc322f;
$magenta: #d33682;
$violet: #6c71c4;
$blue: #268bd2;
$cyan: #2aa198;
$green: #859900;
// Override theme settings (see ../template/settings.scss)
$mainColor: $base1;
$headingColor: $base2;
$headingTextShadow: none;
$backgroundColor: $base03;
$linkColor: $blue;
$linkColorHover: lighten( $linkColor, 20% );
$selectionBackgroundColor: $magenta;
// Theme template ------------------------------
@import "../template/theme";
// ---------------------------------------------

View File

@@ -0,0 +1,34 @@
/**
* Black theme for reveal.js.
*
* Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
*/
// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
// ---------------------------------------------
// Include theme-specific fonts
@import url(https://fonts.googleapis.com/css?family=Montserrat:700);
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
// Override theme settings (see ../template/settings.scss)
$backgroundColor: #111;
$mainFont: 'Open Sans', sans-serif;
$linkColor: #e7ad52;
$linkColorHover: lighten( $linkColor, 20% );
$headingFont: 'Montserrat', Impact, sans-serif;
$headingTextShadow: none;
$headingLetterSpacing: -0.03em;
$headingTextTransform: none;
$selectionBackgroundColor: #e7ad52;
// Theme template ------------------------------
@import "../template/theme";
// ---------------------------------------------

View File

@@ -0,0 +1,35 @@
/**
* A simple theme for reveal.js presentations, similar
* to the default theme. The accent color is brown.
*
* This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed.
*/
// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
// ---------------------------------------------
// Override theme settings (see ../template/settings.scss)
$mainFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
$mainColor: #000;
$headingFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
$headingColor: #383D3D;
$headingTextShadow: none;
$headingTextTransform: none;
$backgroundColor: #F0F1EB;
$linkColor: #51483D;
$linkColorHover: lighten( $linkColor, 20% );
$selectionBackgroundColor: #26351C;
.reveal a {
line-height: 1.3em;
}
// Theme template ------------------------------
@import "../template/theme";
// ---------------------------------------------

View File

@@ -0,0 +1,43 @@
/**
* A simple theme for reveal.js presentations, similar
* to the default theme. The accent color is darkblue.
*
* This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
* reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
*/
// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
// ---------------------------------------------
// Include theme-specific fonts
@import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
// Override theme settings (see ../template/settings.scss)
$mainFont: 'Lato', sans-serif;
$mainColor: #000;
$headingFont: 'News Cycle', Impact, sans-serif;
$headingColor: #000;
$headingTextShadow: none;
$headingTextTransform: none;
$backgroundColor: #fff;
$linkColor: #00008B;
$linkColorHover: lighten( $linkColor, 20% );
$selectionBackgroundColor: rgba(0, 0, 0, 0.99);
section.has-dark-background {
&, h1, h2, h3, h4, h5, h6 {
color: #fff;
}
}
// Theme template ------------------------------
@import "../template/theme";
// ---------------------------------------------

46
css/theme/source/sky.scss Normal file
View File

@@ -0,0 +1,46 @@
/**
* Sky theme for reveal.js.
*
* Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
*/
// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
// ---------------------------------------------
// Include theme-specific fonts
@import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
// Override theme settings (see ../template/settings.scss)
$mainFont: 'Open Sans', sans-serif;
$mainColor: #333;
$headingFont: 'Quicksand', sans-serif;
$headingColor: #333;
$headingLetterSpacing: -0.08em;
$headingTextShadow: none;
$backgroundColor: #f7fbfc;
$linkColor: #3b759e;
$linkColorHover: lighten( $linkColor, 20% );
$selectionBackgroundColor: #134674;
// Fix links so they are not cut off
.reveal a {
line-height: 1.3em;
}
// Background generator
@mixin bodyBackground() {
@include radial-gradient( #add9e4, #f7fbfc );
}
// Theme template ------------------------------
@import "../template/theme";
// ---------------------------------------------

View File

@@ -0,0 +1,63 @@
/**
* Solarized Light theme for reveal.js.
* Author: Achim Staebler
*/
// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
// ---------------------------------------------
// Include theme-specific fonts
@import url(../../lib/font/league-gothic/league-gothic.css);
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
/**
* Solarized colors by Ethan Schoonover
*/
html * {
color-profile: sRGB;
rendering-intent: auto;
}
// Solarized colors
$base03: #002b36;
$base02: #073642;
$base01: #586e75;
$base00: #657b83;
$base0: #839496;
$base1: #93a1a1;
$base2: #eee8d5;
$base3: #fdf6e3;
$yellow: #b58900;
$orange: #cb4b16;
$red: #dc322f;
$magenta: #d33682;
$violet: #6c71c4;
$blue: #268bd2;
$cyan: #2aa198;
$green: #859900;
// Override theme settings (see ../template/settings.scss)
$mainColor: $base00;
$headingColor: $base01;
$headingTextShadow: none;
$backgroundColor: $base3;
$linkColor: $blue;
$linkColorHover: lighten( $linkColor, 20% );
$selectionBackgroundColor: $magenta;
// Background generator
// @mixin bodyBackground() {
// @include radial-gradient( rgba($base3,1), rgba(lighten($base3, 20%),1) );
// }
// Theme template ------------------------------
@import "../template/theme";
// ---------------------------------------------

View File

@@ -0,0 +1,49 @@
/**
* White theme for reveal.js. This is the opposite of the 'black' theme.
*
* By Hakim El Hattab, http://hakim.se
*/
// Default mixins and settings -----------------
@import "../template/mixins";
@import "../template/settings";
// ---------------------------------------------
// Include theme-specific fonts
@import url(../../lib/font/source-sans-pro/source-sans-pro.css);
// Override theme settings (see ../template/settings.scss)
$backgroundColor: #fff;
$mainColor: #222;
$headingColor: #222;
$mainFontSize: 42px;
$mainFont: 'Source Sans Pro', Helvetica, sans-serif;
$headingFont: 'Source Sans Pro', Helvetica, sans-serif;
$headingTextShadow: none;
$headingLetterSpacing: normal;
$headingTextTransform: uppercase;
$headingFontWeight: 600;
$linkColor: #2a76dd;
$linkColorHover: lighten( $linkColor, 15% );
$selectionBackgroundColor: lighten( $linkColor, 25% );
$heading1Size: 2.5em;
$heading2Size: 1.6em;
$heading3Size: 1.3em;
$heading4Size: 1.0em;
section.has-dark-background {
&, h1, h2, h3, h4, h5, h6 {
color: #fff;
}
}
// Theme template ------------------------------
@import "../template/theme";
// ---------------------------------------------

View File

@@ -0,0 +1,29 @@
@mixin vertical-gradient( $top, $bottom ) {
background: $top;
background: -moz-linear-gradient( top, $top 0%, $bottom 100% );
background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) );
background: -webkit-linear-gradient( top, $top 0%, $bottom 100% );
background: -o-linear-gradient( top, $top 0%, $bottom 100% );
background: -ms-linear-gradient( top, $top 0%, $bottom 100% );
background: linear-gradient( top, $top 0%, $bottom 100% );
}
@mixin horizontal-gradient( $top, $bottom ) {
background: $top;
background: -moz-linear-gradient( left, $top 0%, $bottom 100% );
background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) );
background: -webkit-linear-gradient( left, $top 0%, $bottom 100% );
background: -o-linear-gradient( left, $top 0%, $bottom 100% );
background: -ms-linear-gradient( left, $top 0%, $bottom 100% );
background: linear-gradient( left, $top 0%, $bottom 100% );
}
@mixin radial-gradient( $outer, $inner, $type: circle ) {
background: $outer;
background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) );
background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
background: radial-gradient( center, $type cover, $inner 0%, $outer 100% );
}

View File

@@ -0,0 +1,45 @@
// Base settings for all themes that can optionally be
// overridden by the super-theme
// Background of the presentation
$backgroundColor: #2b2b2b;
// Primary/body text
$mainFont: 'Lato', sans-serif;
$mainFontSize: 40px;
$mainColor: #eee;
// Vertical spacing between blocks of text
$blockMargin: 20px;
// Headings
$headingMargin: 0 0 $blockMargin 0;
$headingFont: 'League Gothic', Impact, sans-serif;
$headingColor: #eee;
$headingLineHeight: 1.2;
$headingLetterSpacing: normal;
$headingTextTransform: uppercase;
$headingTextShadow: none;
$headingFontWeight: normal;
$heading1TextShadow: $headingTextShadow;
$heading1Size: 3.77em;
$heading2Size: 2.11em;
$heading3Size: 1.55em;
$heading4Size: 1.00em;
$codeFont: monospace;
// Links and actions
$linkColor: #13DAEC;
$linkColorHover: lighten( $linkColor, 20% );
// Text selection
$selectionBackgroundColor: #FF5E99;
$selectionColor: #fff;
// Generates the presentation background, can be overridden
// to return a background image or gradient
@mixin bodyBackground() {
background: $backgroundColor;
}

View File

@@ -0,0 +1,325 @@
// Base theme template for reveal.js
/*********************************************
* GLOBAL STYLES
*********************************************/
body {
@include bodyBackground();
background-color: $backgroundColor;
}
.reveal {
font-family: $mainFont;
font-size: $mainFontSize;
font-weight: normal;
color: $mainColor;
}
::selection {
color: $selectionColor;
background: $selectionBackgroundColor;
text-shadow: none;
}
::-moz-selection {
color: $selectionColor;
background: $selectionBackgroundColor;
text-shadow: none;
}
.reveal .slides section,
.reveal .slides section>section {
line-height: 1.3;
font-weight: inherit;
}
/*********************************************
* HEADERS
*********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: $headingMargin;
color: $headingColor;
font-family: $headingFont;
font-weight: $headingFontWeight;
line-height: $headingLineHeight;
letter-spacing: $headingLetterSpacing;
text-transform: $headingTextTransform;
text-shadow: $headingTextShadow;
word-wrap: break-word;
}
.reveal h1 {font-size: $heading1Size; }
.reveal h2 {font-size: $heading2Size; }
.reveal h3 {font-size: $heading3Size; }
.reveal h4 {font-size: $heading4Size; }
.reveal h1 {
text-shadow: $heading1TextShadow;
}
/*********************************************
* OTHER
*********************************************/
.reveal p {
margin: $blockMargin 0;
line-height: 1.3;
}
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
max-width: 95%;
max-height: 95%;
}
.reveal strong,
.reveal b {
font-weight: bold;
}
.reveal em {
font-style: italic;
}
.reveal ol,
.reveal dl,
.reveal ul {
display: inline-block;
text-align: left;
margin: 0 0 0 1em;
}
.reveal ol {
list-style-type: decimal;
}
.reveal ul {
list-style-type: disc;
}
.reveal ul ul {
list-style-type: square;
}
.reveal ul ul ul {
list-style-type: circle;
}
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
display: block;
margin-left: 40px;
}
.reveal dt {
font-weight: bold;
}
.reveal dd {
margin-left: 40px;
}
.reveal blockquote {
display: block;
position: relative;
width: 70%;
margin: $blockMargin auto;
padding: 5px;
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
}
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block;
}
.reveal q {
font-style: italic;
}
.reveal pre {
display: block;
position: relative;
width: 90%;
margin: $blockMargin auto;
text-align: left;
font-size: 0.55em;
font-family: $codeFont;
line-height: 1.2em;
word-wrap: break-word;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}
.reveal code {
font-family: $codeFont;
text-transform: none;
}
.reveal pre code {
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal;
}
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0;
}
.reveal table th {
font-weight: bold;
}
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid;
}
.reveal table th[align="center"],
.reveal table td[align="center"] {
text-align: center;
}
.reveal table th[align="right"],
.reveal table td[align="right"] {
text-align: right;
}
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
border-bottom: none;
}
.reveal sup {
vertical-align: super;
font-size: smaller;
}
.reveal sub {
vertical-align: sub;
font-size: smaller;
}
.reveal small {
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top;
}
.reveal small * {
vertical-align: top;
}
/*********************************************
* LINKS
*********************************************/
.reveal a {
color: $linkColor;
text-decoration: none;
-webkit-transition: color .15s ease;
-moz-transition: color .15s ease;
transition: color .15s ease;
}
.reveal a:hover {
color: $linkColorHover;
text-shadow: none;
border: none;
}
.reveal .roll span:after {
color: #fff;
background: darken( $linkColor, 15% );
}
/*********************************************
* IMAGES
*********************************************/
.reveal section img {
margin: 15px 0px;
background: rgba(255,255,255,0.12);
border: 4px solid $mainColor;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
.reveal section img.plain {
border: 0;
box-shadow: none;
}
.reveal a img {
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
transition: all .15s linear;
}
.reveal a:hover img {
background: rgba(255,255,255,0.2);
border-color: $linkColor;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
}
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls {
color: $linkColor;
}
/*********************************************
* PROGRESS BAR
*********************************************/
.reveal .progress {
background: rgba(0,0,0,0.2);
color: $linkColor;
}
.reveal .progress span {
-webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
-moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
}
/*********************************************
* PRINT BACKGROUND
*********************************************/
@media print {
.backgrounds {
background-color: $backgroundColor;
}
}

273
css/theme/white.css Normal file
View File

@@ -0,0 +1,273 @@
/**
* White theme for reveal.js. This is the opposite of the 'black' theme.
*
* By Hakim El Hattab, http://hakim.se
*/
@import url(../../lib/font/source-sans-pro/source-sans-pro.css);
section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
color: #fff; }
/*********************************************
* GLOBAL STYLES
*********************************************/
body {
background: #fff;
background-color: #fff; }
.reveal {
font-family: "Source Sans Pro", Helvetica, sans-serif;
font-size: 42px;
font-weight: normal;
color: #222; }
::selection {
color: #fff;
background: #98bdef;
text-shadow: none; }
::-moz-selection {
color: #fff;
background: #98bdef;
text-shadow: none; }
.reveal .slides section,
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit; }
/*********************************************
* HEADERS
*********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: 0 0 20px 0;
color: #222;
font-family: "Source Sans Pro", Helvetica, sans-serif;
font-weight: 600;
line-height: 1.2;
letter-spacing: normal;
text-transform: uppercase;
text-shadow: none;
word-wrap: break-word; }
.reveal h1 {
font-size: 2.5em; }
.reveal h2 {
font-size: 1.6em; }
.reveal h3 {
font-size: 1.3em; }
.reveal h4 {
font-size: 1em; }
.reveal h1 {
text-shadow: none; }
/*********************************************
* OTHER
*********************************************/
.reveal p {
margin: 20px 0;
line-height: 1.3; }
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
max-width: 95%;
max-height: 95%; }
.reveal strong,
.reveal b {
font-weight: bold; }
.reveal em {
font-style: italic; }
.reveal ol,
.reveal dl,
.reveal ul {
display: inline-block;
text-align: left;
margin: 0 0 0 1em; }
.reveal ol {
list-style-type: decimal; }
.reveal ul {
list-style-type: disc; }
.reveal ul ul {
list-style-type: square; }
.reveal ul ul ul {
list-style-type: circle; }
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
display: block;
margin-left: 40px; }
.reveal dt {
font-weight: bold; }
.reveal dd {
margin-left: 40px; }
.reveal blockquote {
display: block;
position: relative;
width: 70%;
margin: 20px auto;
padding: 5px;
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block; }
.reveal q {
font-style: italic; }
.reveal pre {
display: block;
position: relative;
width: 90%;
margin: 20px auto;
text-align: left;
font-size: 0.55em;
font-family: monospace;
line-height: 1.2em;
word-wrap: break-word;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
.reveal code {
font-family: monospace;
text-transform: none; }
.reveal pre code {
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal; }
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0; }
.reveal table th {
font-weight: bold; }
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid; }
.reveal table th[align="center"],
.reveal table td[align="center"] {
text-align: center; }
.reveal table th[align="right"],
.reveal table td[align="right"] {
text-align: right; }
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
border-bottom: none; }
.reveal sup {
vertical-align: super;
font-size: smaller; }
.reveal sub {
vertical-align: sub;
font-size: smaller; }
.reveal small {
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top; }
.reveal small * {
vertical-align: top; }
/*********************************************
* LINKS
*********************************************/
.reveal a {
color: #2a76dd;
text-decoration: none;
-webkit-transition: color .15s ease;
-moz-transition: color .15s ease;
transition: color .15s ease; }
.reveal a:hover {
color: #6ca0e8;
text-shadow: none;
border: none; }
.reveal .roll span:after {
color: #fff;
background: #1a53a1; }
/*********************************************
* IMAGES
*********************************************/
.reveal section img {
margin: 15px 0px;
background: rgba(255, 255, 255, 0.12);
border: 4px solid #222;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
.reveal section img.plain {
border: 0;
box-shadow: none; }
.reveal a img {
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
transition: all .15s linear; }
.reveal a:hover img {
background: rgba(255, 255, 255, 0.2);
border-color: #2a76dd;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls {
color: #2a76dd; }
/*********************************************
* PROGRESS BAR
*********************************************/
.reveal .progress {
background: rgba(0, 0, 0, 0.2);
color: #2a76dd; }
.reveal .progress span {
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
/*********************************************
* PRINT BACKGROUND
*********************************************/
@media print {
.backgrounds {
background-color: #fff; } }

425
demo.html Normal file
View File

@@ -0,0 +1,425 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>reveal.js The HTML Presentation Framework</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/black.css" id="theme">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/monokai.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h1>Reveal.js</h1>
<h3>The HTML Presentation Framework</h3>
<p>
<small>Created by <a href="http://hakim.se">Hakim El Hattab</a> and <a href="https://github.com/hakimel/reveal.js/graphs/contributors">contributors</a></small>
</p>
</section>
<section>
<h2>Hello There</h2>
<p>
reveal.js enables you to create beautiful interactive slide decks using HTML. This presentation will show you examples of what it can do.
</p>
</section>
<!-- Example of nested vertical slides -->
<section>
<section>
<h2>Vertical Slides</h2>
<p>Slides can be nested inside of each other.</p>
<p>Use the <em>Space</em> key to navigate through all slides.</p>
<br>
<a href="#" class="navigate-down">
<img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
</a>
</section>
<section>
<h2>Basement Level 1</h2>
<p>Nested slides are useful for adding additional detail underneath a high level horizontal slide.</p>
</section>
<section>
<h2>Basement Level 2</h2>
<p>That's it, time to go back up.</p>
<br>
<a href="#/2">
<img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Up arrow" style="transform: rotate(180deg); -webkit-transform: rotate(180deg);">
</a>
</section>
</section>
<section>
<h2>Slides</h2>
<p>
Not a coder? Not a problem. There's a fully-featured visual editor for authoring these, try it out at <a href="https://slides.com" target="_blank">https://slides.com</a>.
</p>
</section>
<section>
<h2>Point of View</h2>
<p>
Press <strong>ESC</strong> to enter the slide overview.
</p>
<p>
Hold down the <strong>alt</strong> key (<strong>ctrl</strong> in Linux) and click on any element to zoom towards it using <a href="http://lab.hakim.se/zoom-js">zoom.js</a>. Click again to zoom back out.
</p>
<p>
(NOTE: Use ctrl + click in Linux.)
</p>
</section>
<section>
<h2>Touch Optimized</h2>
<p>
Presentations look great on touch devices, like mobile phones and tablets. Simply swipe through your slides.
</p>
</section>
<section data-markdown>
<script type="text/template">
## Markdown support
Write content using inline or external Markdown.
Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
```
<section data-markdown>
## Markdown support
Write content using inline or external Markdown.
Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
</section>
```
</script>
</section>
<section>
<section id="fragments">
<h2>Fragments</h2>
<p>Hit the next arrow...</p>
<p class="fragment">... to step through ...</p>
<p><span class="fragment">... a</span> <span class="fragment">fragmented</span> <span class="fragment">slide.</span></p>
<aside class="notes">
This slide has fragments which are also stepped through in the notes window.
</aside>
</section>
<section>
<h2>Fragment Styles</h2>
<p>There's different types of fragments, like:</p>
<p class="fragment grow">grow</p>
<p class="fragment shrink">shrink</p>
<p class="fragment fade-out">fade-out</p>
<p>
<span style="display: inline-block;" class="fragment fade-right">fade-right, </span>
<span style="display: inline-block;" class="fragment fade-up">up, </span>
<span style="display: inline-block;" class="fragment fade-down">down, </span>
<span style="display: inline-block;" class="fragment fade-left">left</span>
</p>
<p class="fragment fade-in-then-out">fade-in-then-out</p>
<p class="fragment fade-in-then-semi-out">fade-in-then-semi-out</p>
<p>Highlight <span class="fragment highlight-red">red</span> <span class="fragment highlight-blue">blue</span> <span class="fragment highlight-green">green</span></p>
</section>
</section>
<section id="transitions">
<h2>Transition Styles</h2>
<p>
You can select from different transitions, like: <br>
<a href="?transition=none#/transitions">None</a> -
<a href="?transition=fade#/transitions">Fade</a> -
<a href="?transition=slide#/transitions">Slide</a> -
<a href="?transition=convex#/transitions">Convex</a> -
<a href="?transition=concave#/transitions">Concave</a> -
<a href="?transition=zoom#/transitions">Zoom</a>
</p>
</section>
<section id="themes">
<h2>Themes</h2>
<p>
reveal.js comes with a few themes built in: <br>
<!-- Hacks to swap themes after the page has loaded. Not flexible and only intended for the reveal.js demo deck. -->
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/black.css'); return false;">Black (default)</a> -
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/white.css'); return false;">White</a> -
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/league.css'); return false;">League</a> -
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/sky.css'); return false;">Sky</a> -
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/beige.css'); return false;">Beige</a> -
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/simple.css'); return false;">Simple</a> <br>
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/serif.css'); return false;">Serif</a> -
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/blood.css'); return false;">Blood</a> -
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/night.css'); return false;">Night</a> -
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/moon.css'); return false;">Moon</a> -
<a href="#" onclick="document.getElementById('theme').setAttribute('href','css/theme/solarized.css'); return false;">Solarized</a>
</p>
</section>
<section>
<section data-background="#dddddd">
<h2>Slide Backgrounds</h2>
<p>
Set <code>data-background="#dddddd"</code> on a slide to change the background color. All CSS color formats are supported.
</p>
<a href="#" class="navigate-down">
<img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
</a>
</section>
<section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png">
<h2>Image Backgrounds</h2>
<pre><code class="hljs html">&lt;section data-background="image.png"&gt;</code></pre>
</section>
<section data-background="https://s3.amazonaws.com/hakim-static/reveal-js/image-placeholder.png" data-background-repeat="repeat" data-background-size="100px">
<h2>Tiled Backgrounds</h2>
<pre><code class="hljs html" style="word-wrap: break-word;">&lt;section data-background="image.png" data-background-repeat="repeat" data-background-size="100px"&gt;</code></pre>
</section>
<section data-background-video="https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.mp4,https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.webm" data-background-color="#000000">
<div style="background-color: rgba(0, 0, 0, 0.9); color: #fff; padding: 20px;">
<h2>Video Backgrounds</h2>
<pre><code class="hljs html" style="word-wrap: break-word;">&lt;section data-background-video="video.mp4,video.webm"&gt;</code></pre>
</div>
</section>
<section data-background="http://i.giphy.com/90F8aUepslB84.gif">
<h2>... and GIFs!</h2>
</section>
</section>
<section data-transition="slide" data-background="#4d7e65" data-background-transition="zoom">
<h2>Background Transitions</h2>
<p>
Different background transitions are available via the backgroundTransition option. This one's called "zoom".
</p>
<pre><code class="hljs javascript">Reveal.configure({ backgroundTransition: 'zoom' })</code></pre>
</section>
<section data-transition="slide" data-background="#b5533c" data-background-transition="zoom">
<h2>Background Transitions</h2>
<p>
You can override background transitions per-slide.
</p>
<pre><code class="hljs html" style="word-wrap: break-word;">&lt;section data-background-transition="zoom"&gt;</code></pre>
</section>
<section data-background-iframe="https://hakim.se" data-background-interactive>
<div style="position: absolute; width: 40%; right: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.5), 0 5px 25px rgba(0,0,0,0.2); background-color: rgba(0, 0, 0, 0.9); color: #fff; padding: 20px; font-size: 20px; text-align: left;">
<h2>Iframe Backgrounds</h2>
<p>Since reveal.js runs on the web, you can easily embed other web content. Try interacting with the page in the background.</p>
</div>
</section>
<section>
<h2>Pretty Code</h2>
<pre><code class="hljs" data-trim data-line-numbers="4|9|4,8-11">
import React, { useState } from 'react';
function Example() {
const [count, setCount] = useState(0);
return (
&lt;div&gt;
&lt;p&gt;You clicked {count} times&lt;/p&gt;
&lt;button onClick={() =&gt; setCount(count + 1)}&gt;
Click me
&lt;/button&gt;
&lt;/div&gt;
);
}
</code></pre>
<p>Code syntax highlighting courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
</section>
<section>
<h2>Marvelous List</h2>
<ul>
<li>No order here</li>
<li>Or here</li>
<li>Or here</li>
<li>Or here</li>
</ul>
</section>
<section>
<h2>Fantastic Ordered List</h2>
<ol>
<li>One is smaller than...</li>
<li>Two is smaller than...</li>
<li>Three!</li>
</ol>
</section>
<section>
<h2>Tabular Tables</h2>
<table>
<thead>
<tr>
<th>Item</th>
<th>Value</th>
<th>Quantity</th>
</tr>
</thead>
<tbody>
<tr>
<td>Apples</td>
<td>$1</td>
<td>7</td>
</tr>
<tr>
<td>Lemonade</td>
<td>$2</td>
<td>18</td>
</tr>
<tr>
<td>Bread</td>
<td>$3</td>
<td>2</td>
</tr>
</tbody>
</table>
</section>
<section>
<h2>Clever Quotes</h2>
<p>
These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">The nice thing about standards is that there are so many to choose from</q> and block:
</p>
<blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
&ldquo;For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.&rdquo;
</blockquote>
</section>
<section>
<h2>Intergalactic Interconnections</h2>
<p>
You can link between slides internally,
<a href="#/2/3">like this</a>.
</p>
</section>
<section>
<h2>Speaker View</h2>
<p>There's a <a href="https://github.com/hakimel/reveal.js#speaker-notes">speaker view</a>. It includes a timer, preview of the upcoming slide as well as your speaker notes.</p>
<p>Press the <em>S</em> key to try it out.</p>
<aside class="notes">
Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you open the speaker notes window (hit 's' on your keyboard).
</aside>
</section>
<section>
<h2>Export to PDF</h2>
<p>Presentations can be <a href="https://github.com/hakimel/reveal.js#pdf-export">exported to PDF</a>, here's an example:</p>
<iframe data-src="https://www.slideshare.net/slideshow/embed_code/42840540" width="445" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:3px solid #666; margin-bottom:5px; max-width: 100%;" allowfullscreen> </iframe>
</section>
<section>
<h2>Global State</h2>
<p>
Set <code>data-state="something"</code> on a slide and <code>"something"</code>
will be added as a class to the document element when the slide is open. This lets you
apply broader style changes, like switching the page background.
</p>
</section>
<section data-state="customevent">
<h2>State Events</h2>
<p>
Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
</p>
<pre><code class="javascript" data-trim contenteditable style="font-size: 18px;">
Reveal.addEventListener( 'customevent', function() {
console.log( '"customevent" has fired' );
} );
</code></pre>
</section>
<section>
<h2>Take a Moment</h2>
<p>
Press B or . on your keyboard to pause the presentation. This is helpful when you're on stage and want to take distracting slides off the screen.
</p>
</section>
<section>
<h2>Much more</h2>
<ul>
<li>Right-to-left support</li>
<li><a href="https://github.com/hakimel/reveal.js#api">Extensive JavaScript API</a></li>
<li><a href="https://github.com/hakimel/reveal.js#auto-sliding">Auto-progression</a></li>
<li><a href="https://github.com/hakimel/reveal.js#parallax-background">Parallax backgrounds</a></li>
<li><a href="https://github.com/hakimel/reveal.js#keyboard-bindings">Custom keyboard bindings</a></li>
</ul>
</section>
<section style="text-align: left;">
<h1>THE END</h1>
<p>
- <a href="https://slides.com">Try the online editor</a> <br>
- <a href="https://github.com/hakimel/reveal.js">Source code &amp; documentation</a>
</p>
</section>
</div>
</div>
<script src="js/reveal.js"></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
center: true,
hash: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js' },
{ src: 'plugin/search/search.js', async: true },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>

189
gruntfile.js Normal file
View File

@@ -0,0 +1,189 @@
const sass = require('node-sass');
module.exports = grunt => {
require('load-grunt-tasks')(grunt);
let port = grunt.option('port') || 8000;
let root = grunt.option('root') || '.';
if (!Array.isArray(root)) root = [root];
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner:
'/*!\n' +
' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +
' * http://revealjs.com\n' +
' * MIT licensed\n' +
' *\n' +
' * Copyright (C) 2020 Hakim El Hattab, http://hakim.se\n' +
' */'
},
qunit: {
files: [ 'test/*.html' ]
},
uglify: {
options: {
banner: '<%= meta.banner %>\n',
ie8: true
},
build: {
src: 'js/reveal.js',
dest: 'js/reveal.min.js'
}
},
sass: {
options: {
implementation: sass,
sourceMap: false
},
core: {
src: 'css/reveal.scss',
dest: 'css/reveal.css'
},
themes: {
expand: true,
cwd: 'css/theme/source',
src: ['*.sass', '*.scss'],
dest: 'css/theme',
ext: '.css'
}
},
autoprefixer: {
core: {
src: 'css/reveal.css'
}
},
cssmin: {
options: {
compatibility: 'ie9'
},
compress: {
src: 'css/reveal.css',
dest: 'css/reveal.min.css'
}
},
jshint: {
options: {
curly: false,
eqeqeq: true,
immed: true,
esnext: true,
latedef: 'nofunc',
newcap: true,
noarg: true,
sub: true,
undef: true,
eqnull: true,
browser: true,
expr: true,
loopfunc: true,
globals: {
head: false,
module: false,
console: false,
unescape: false,
define: false,
exports: false,
require: false
}
},
files: [ 'gruntfile.js', 'js/reveal.js' ]
},
connect: {
server: {
options: {
port: port,
base: root,
livereload: true,
open: true,
useAvailablePort: true
}
}
},
zip: {
bundle: {
src: [
'index.html',
'css/**',
'js/**',
'lib/**',
'images/**',
'plugin/**',
'**.md'
],
dest: 'reveal-js-presentation.zip'
}
},
watch: {
js: {
files: [ 'gruntfile.js', 'js/reveal.js' ],
tasks: 'js'
},
theme: {
files: [
'css/theme/source/*.sass',
'css/theme/source/*.scss',
'css/theme/template/*.sass',
'css/theme/template/*.scss'
],
tasks: 'css-themes'
},
css: {
files: [ 'css/reveal.scss' ],
tasks: 'css-core'
},
test: {
files: [ 'test/*.html' ],
tasks: 'test'
},
html: {
files: root.map(path => path + '/*.html')
},
markdown: {
files: root.map(path => path + '/*.md')
},
options: {
livereload: true
}
}
});
// Default task
grunt.registerTask( 'default', [ 'css', 'js' ] );
// JS task
grunt.registerTask( 'js', [ 'jshint', 'uglify', 'qunit' ] );
// Theme CSS
grunt.registerTask( 'css-themes', [ 'sass:themes' ] );
// Core framework CSS
grunt.registerTask( 'css-core', [ 'sass:core', 'autoprefixer', 'cssmin' ] );
// All CSS
grunt.registerTask( 'css', [ 'sass', 'autoprefixer', 'cssmin' ] );
// Package presentation to archive
grunt.registerTask( 'package', [ 'default', 'zip' ] );
// Serve presentation locally
grunt.registerTask( 'serve', [ 'connect', 'watch' ] );
// Run tests
grunt.registerTask( 'test', [ 'jshint', 'qunit' ] );
};

View File

@@ -1,308 +1,50 @@
<!doctype html>
<html lang="en">
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>reveal.js - HTML5 Presentations</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="description" content="An easy to use CSS 3D slideshow tool for quickly creating good looking HTML presentations.">
<meta name="author" content="Hakim El Hattab">
<title>reveal.js</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link href='http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/print.css" type="text/css" media="print">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/black.css">
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/monokai.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<div class="reveal">
<!-- Used to fade in a background when a specific slide state is reached -->
<div class="state-background"></div>
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h1>Reveal.js</h1>
<h3 class="inverted">CSS 3D Presentations</h3>
<script>
// Delicously hacky. Look away.
if( navigator.userAgent.match( /(iPhone|iPad|iPod|Android)/i ) ) document.write( '<p style="color: rgba(0,0,0,0.3); text-shadow: none;">('+'Tap to navigate'+')</p>' );
</script>
</section>
<section>
<h2>Heads Up</h2>
<p>
reveal.js is an easy to use, HTML based, presentation tool. You'll need a modern browser with
support for CSS 3D transforms to see it in its full glory.
</p>
<p>
<i><small>- <a href="http://hakim.se">Hakim El Hattab</a> / <a href="http://twitter.com/hakimel">@hakimel</a></small></i>
</p>
<aside class="notes">
Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you run the speaker notes server.
</aside>
</section>
<!-- Example of nested vertical slides -->
<section>
<section>
<h2>Vertical Slides</h2>
<p>
Slides can be nested inside of other slides,<br/>
try pressing <a href="#/2/1">down</a>.
</p>
<a href="#/2/1" class="image">
<img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
</a>
</section>
<section>
<h2>Basement Level 1</h2>
<p>Press down or up to navigate.</p>
</section>
<section>
<h2>Basement Level 2</h2>
<p>Cornify</p>
<a class="test" href="http://cornify.com">
<img width="280" height="326" src="https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif">
</a>
</section>
<section>
<h2>Basement Level 3</h2>
<p>That's it, time to go back up.</p>
<a href="#/2" class="image">
<img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
</a>
</section>
</section>
<section>
<h2>Holistic Overview</h2>
<p>
Press <strong>ESC</strong> to enter the slide overview!
</p>
</section>
<section>
<h2>Works in Mobile Safari</h2>
<p>
Try it out! You can swipe through the slides pinch your way to the overview.
</p>
</section>
<section>
<h2>Transition Styles</h2>
<p>
You can select from different transitions, like:
</p>
<ul>
<li><a href="http://lab.hakim.se/reveal-js/?transition=cube">Cube</a></li>
<li><a href="http://lab.hakim.se/reveal-js/?transition=page">Page</a></li>
<li><a href="http://lab.hakim.se/reveal-js/?transition=concave">Concave</a></li>
<li><a href="http://lab.hakim.se/reveal-js/?transition=linear">Linear</a></li>
</ul>
</section>
<section>
<h2>Marvelous Unordered List</h2>
<ul>
<li>No order here</li>
<li>Or here</li>
<li>Or here</li>
<li>Or here</li>
</ul>
</section>
<section>
<h2>Fantastic Ordered List</h2>
<ol>
<li>One is smaller than...</li>
<li>Two is smaller than...</li>
<li>Three!</li>
</ol>
</section>
<section>
<section data-state="alert">
<h2>Global State</h2>
<p>
Set <code>data-state="something"</code> on a slide and <code>"something"</code>
will be added as a class to the document element when the slide is open. This let's you
apply broader style changes, like switching the background.
</p>
<a href="#/7/1" class="image">
<img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
</a>
</section>
<section data-state="blackout">
<h2>"blackout"</h2>
<a href="#/7/2" class="image">
<img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
</a>
</section>
<section data-state="soothe">
<h2>"soothe"</h2>
<a href="#/7/0" class="image">
<img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
</a>
</section>
</section>
<section data-state="customevent">
<h2>Custom Events</h2>
<p>
Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
</p>
<pre><code contenteditable style="font-size: 18px; margin-top: 20px;">Reveal.addEventListener( 'customevent', function() {
console.log( '"customevent" has fired' );
} );
</code></pre>
</section>
<section>
<h2>Clever Quotes</h2>
<p>
These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
The nice thing about standards is that there are so many to choose from</q> and block:
</p>
<blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
</blockquote>
</section>
<section>
<h2>Pretty Code</h2>
<pre><code contenteditable>
function linkify( selector ) {
if( supports3DTransforms ) {
var nodes = document.querySelectorAll( selector );
for( var i = 0, len = nodes.length; i < len; i++ ) {
var node = nodes[i];
if( !node.className ) ) {
node.className += ' roll';
}
};
}
}
</code></pre>
<p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
</section>
<section>
<h2>Intergalactic Interconnections</h2>
<p>
You can link between slides internally,<br/>
<a href="#/2/3">like this</a>.
</p>
</section>
<section>
<h2>Fragmented Views</h2>
<p>Hit the next arrow...</p>
<p class="fragment">... to step through ...</p>
<ol>
<li class="fragment"><code>any type</code></li>
<li class="fragment"><em>of view</em></li>
<li class="fragment"><strong>fragments</strong></li>
</ol>
</section>
<section>
<h2>Spectacular image!</h2>
<a class="image" href="http://hakim.se/experiments/html5/breakdom/" target="_blank">
<img width="320" height="412" src="https://s3.amazonaws.com/hakim-static/reveal-js/breakdom.png">
</a>
</section>
<section>
<h2>Stellar Links</h2>
<ul>
<li><a href="https://github.com/hakimel/reveal.js">Source code on github</a></li>
<li><a href="http://hakim.se/projects/reveal-js">Read more on my site</a></li>
<li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
</ul>
</section>
<section>
<h1>THE END</h1>
<h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
</section>
<section>Slide 1</section>
<section>Slide 2</section>
</div>
<!-- The navigational controls UI -->
<aside class="controls">
<a class="left" href="#">&#x25C4;</a>
<a class="right" href="#">&#x25BA;</a>
<a class="up" href="#">&#x25B2;</a>
<a class="down" href="#">&#x25BC;</a>
</aside>
<!-- Presentation progress bar -->
<div class="progress"><span></span></div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// Load reveal.js as well as a classList polyfill if needed
head.js( !document.body.classList ? 'lib/js/classList.js' : null )
.js( 'js/reveal.js', function() {
// Parse the query string into a key/value object
var query = {};
location.search.replace( /[A-Z0-9]+?=(\w*)/gi, function(a) {
query[ a.split( '=' ).shift() ] = a.split( '=' ).pop();
} );
// Fires when a slide with data-state=customevent is activated
Reveal.addEventListener( 'customevent', function() {
console.log( '"customevent" has fired' );
} );
// Fires each time a new slide is activated
Reveal.addEventListener( 'slidechanged', function( event ) {
// event.previousSlide, event.currentSlide, event.indexh, event.indexv
} );
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
theme: query.theme || 'default', // default/neon/beige
transition: query.transition || 'default' // default/cube/page/concave/linear(2d)
});
} );
// Load highlight.js for syntax highlighting of code samples
head.js( 'lib/js/highlight.js', function() {
hljs.initHighlightingOnLoad();
} );
// If we're runnning the notes server we need to include some additional JS
// TODO Is there a better way to determine if we're running the notes server?
if( window.location.host === 'localhost:1947' ) {
head.js( 'socket.io/socket.io.js', 'plugin/speakernotes/client.js' );
}
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
hash: true,
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/highlight/highlight.js' },
{ src: 'plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>
</html>

File diff suppressed because it is too large Load Diff

71
lib/css/monokai.css Normal file
View File

@@ -0,0 +1,71 @@
/*
Monokai style - ported by Luigi Maselli - http://grigio.org
*/
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: #272822;
color: #ddd;
}
.hljs-tag,
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-strong,
.hljs-name {
color: #f92672;
}
.hljs-code {
color: #66d9ef;
}
.hljs-class .hljs-title {
color: white;
}
.hljs-attribute,
.hljs-symbol,
.hljs-regexp,
.hljs-link {
color: #bf79db;
}
.hljs-string,
.hljs-bullet,
.hljs-subst,
.hljs-title,
.hljs-section,
.hljs-emphasis,
.hljs-type,
.hljs-built_in,
.hljs-builtin-name,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-addition,
.hljs-variable,
.hljs-template-tag,
.hljs-template-variable {
color: #a6e22e;
}
.hljs-comment,
.hljs-quote,
.hljs-deletion,
.hljs-meta {
color: #75715e;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-doctag,
.hljs-title,
.hljs-section,
.hljs-type,
.hljs-selector-id {
font-weight: bold;
}

View File

@@ -5,111 +5,76 @@ based on dark.css by Ivan Sagalaev
*/
pre code {
display: block; padding: 0.5em;
background: #3F3F3F;
color: #DCDCDC;
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: #3f3f3f;
color: #dcdcdc;
}
pre .keyword,
pre .tag,
pre .django .tag,
pre .django .keyword,
pre .css .class,
pre .css .id,
pre .lisp .title {
color: #E3CEAB;
.hljs-keyword,
.hljs-selector-tag,
.hljs-tag {
color: #e3ceab;
}
pre .django .template_tag,
pre .django .variable,
pre .django .filter .argument {
color: #DCDCDC;
.hljs-template-tag {
color: #dcdcdc;
}
pre .number,
pre .date {
color: #8CD0D3;
.hljs-number {
color: #8cd0d3;
}
pre .dos .envvar,
pre .dos .stream,
pre .variable,
pre .apache .sqbracket {
color: #EFDCBC;
.hljs-variable,
.hljs-template-variable,
.hljs-attribute {
color: #efdcbc;
}
pre .dos .flow,
pre .diff .change,
pre .python .exception,
pre .python .built_in,
pre .literal,
pre .tex .special {
color: #EFEFAF;
.hljs-literal {
color: #efefaf;
}
pre .diff .chunk,
pre .ruby .subst {
color: #8F8F8F;
.hljs-subst {
color: #8f8f8f;
}
pre .dos .keyword,
pre .python .decorator,
pre .class .title,
pre .haskell .label,
pre .function .title,
pre .ini .title,
pre .diff .header,
pre .ruby .class .parent,
pre .apache .tag,
pre .nginx .built_in,
pre .tex .command,
pre .input_number {
color: #efef8f;
.hljs-title,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-section,
.hljs-type {
color: #efef8f;
}
pre .dos .winutils,
pre .ruby .symbol,
pre .ruby .symbol .string,
pre .ruby .symbol .keyword,
pre .ruby .symbol .keymethods,
pre .ruby .string,
pre .ruby .instancevar {
color: #DCA3A3;
.hljs-symbol,
.hljs-bullet,
.hljs-link {
color: #dca3a3;
}
pre .diff .deletion,
pre .string,
pre .tag .value,
pre .preprocessor,
pre .built_in,
pre .sql .aggregate,
pre .javadoc,
pre .smalltalk .class,
pre .smalltalk .localvars,
pre .smalltalk .array,
pre .css .rules .value,
pre .attr_selector,
pre .pseudo,
pre .apache .cbracket,
pre .tex .formula {
color: #CC9393;
.hljs-deletion,
.hljs-string,
.hljs-built_in,
.hljs-builtin-name {
color: #cc9393;
}
pre .shebang,
pre .diff .addition,
pre .comment,
pre .java .annotation,
pre .template_comment,
pre .pi,
pre .doctype {
color: #7F9F7F;
.hljs-addition,
.hljs-comment,
.hljs-quote,
.hljs-meta {
color: #7f9f7f;
}
pre .xml .css,
pre .xml .javascript,
pre .xml .vbscript,
pre .tex .formula {
opacity: 0.5;
.hljs-emphasis {
font-style: italic;
}
.hljs-strong {
font-weight: bold;
}

View File

@@ -0,0 +1,10 @@
@font-face {
font-family: 'League Gothic';
src: url('league-gothic.eot');
src: url('league-gothic.eot?#iefix') format('embedded-opentype'),
url('league-gothic.woff') format('woff'),
url('league-gothic.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,45 @@
SIL Open Font License
Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name Source. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
—————————————————————————————-
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
—————————————————————————————-
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
DEFINITIONS
“Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
“Reserved Font Name” refers to any names specified as such after the copyright statement(s).
“Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s).
“Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
“Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,39 @@
@font-face {
font-family: 'Source Sans Pro';
src: url('source-sans-pro-regular.eot');
src: url('source-sans-pro-regular.eot?#iefix') format('embedded-opentype'),
url('source-sans-pro-regular.woff') format('woff'),
url('source-sans-pro-regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Source Sans Pro';
src: url('source-sans-pro-italic.eot');
src: url('source-sans-pro-italic.eot?#iefix') format('embedded-opentype'),
url('source-sans-pro-italic.woff') format('woff'),
url('source-sans-pro-italic.ttf') format('truetype');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'Source Sans Pro';
src: url('source-sans-pro-semibold.eot');
src: url('source-sans-pro-semibold.eot?#iefix') format('embedded-opentype'),
url('source-sans-pro-semibold.woff') format('woff'),
url('source-sans-pro-semibold.ttf') format('truetype');
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: 'Source Sans Pro';
src: url('source-sans-pro-semibolditalic.eot');
src: url('source-sans-pro-semibolditalic.eot?#iefix') format('embedded-opentype'),
url('source-sans-pro-semibolditalic.woff') format('woff'),
url('source-sans-pro-semibolditalic.ttf') format('truetype');
font-weight: 600;
font-style: italic;
}

View File

@@ -1,2 +0,0 @@
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js*/
if(typeof document!=="undefined"&&!("classList" in document.createElement("a"))){(function(j){var a="classList",f="prototype",m=(j.HTMLElement||j.Element)[f],b=Object,k=String[f].trim||function(){return this.replace(/^\s+|\s+$/g,"")},c=Array[f].indexOf||function(q){var p=0,o=this.length;for(;p<o;p++){if(p in this&&this[p]===q){return p}}return -1},n=function(o,p){this.name=o;this.code=DOMException[o];this.message=p},g=function(p,o){if(o===""){throw new n("SYNTAX_ERR","An invalid or illegal string was specified")}if(/\s/.test(o)){throw new n("INVALID_CHARACTER_ERR","String contains an invalid character")}return c.call(p,o)},d=function(s){var r=k.call(s.className),q=r?r.split(/\s+/):[],p=0,o=q.length;for(;p<o;p++){this.push(q[p])}this._updateClassName=function(){s.className=this.toString()}},e=d[f]=[],i=function(){return new d(this)};n[f]=Error[f];e.item=function(o){return this[o]||null};e.contains=function(o){o+="";return g(this,o)!==-1};e.add=function(o){o+="";if(g(this,o)===-1){this.push(o);this._updateClassName()}};e.remove=function(p){p+="";var o=g(this,p);if(o!==-1){this.splice(o,1);this._updateClassName()}};e.toggle=function(o){o+="";if(g(this,o)===-1){this.add(o)}else{this.remove(o)}};e.toString=function(){return this.join(" ")};if(b.defineProperty){var l={get:i,enumerable:true,configurable:true};try{b.defineProperty(m,a,l)}catch(h){if(h.number===-2146823252){l.enumerable=false;b.defineProperty(m,a,l)}}}else{if(b[f].__defineGetter__){m.__defineGetter__(a,i)}}}(self))};

8
lib/js/head.min.js vendored
View File

@@ -1,8 +0,0 @@
/**
Head JS The only script in your <HEAD>
Copyright Tero Piirainen (tipiirai)
License MIT / http://bit.ly/mit-license
Version 0.96
http://headjs.com
*/(function(a){function z(){d||(d=!0,s(e,function(a){p(a)}))}function y(c,d){var e=a.createElement("script");e.type="text/"+(c.type||"javascript"),e.src=c.src||c,e.async=!1,e.onreadystatechange=e.onload=function(){var a=e.readyState;!d.done&&(!a||/loaded|complete/.test(a))&&(d.done=!0,d())},(a.body||b).appendChild(e)}function x(a,b){if(a.state==o)return b&&b();if(a.state==n)return k.ready(a.name,b);if(a.state==m)return a.onpreload.push(function(){x(a,b)});a.state=n,y(a.url,function(){a.state=o,b&&b(),s(g[a.name],function(a){p(a)}),u()&&d&&s(g.ALL,function(a){p(a)})})}function w(a,b){a.state===undefined&&(a.state=m,a.onpreload=[],y({src:a.url,type:"cache"},function(){v(a)}))}function v(a){a.state=l,s(a.onpreload,function(a){a.call()})}function u(a){a=a||h;var b;for(var c in a){if(a.hasOwnProperty(c)&&a[c].state!=o)return!1;b=!0}return b}function t(a){return Object.prototype.toString.call(a)=="[object Function]"}function s(a,b){if(!!a){typeof a=="object"&&(a=[].slice.call(a));for(var c=0;c<a.length;c++)b.call(a,a[c],c)}}function r(a){var b;if(typeof a=="object")for(var c in a)a[c]&&(b={name:c,url:a[c]});else b={name:q(a),url:a};var d=h[b.name];if(d&&d.url===b.url)return d;h[b.name]=b;return b}function q(a){var b=a.split("/"),c=b[b.length-1],d=c.indexOf("?");return d!=-1?c.substring(0,d):c}function p(a){a._done||(a(),a._done=1)}var b=a.documentElement,c,d,e=[],f=[],g={},h={},i=a.createElement("script").async===!0||"MozAppearance"in a.documentElement.style||window.opera,j=window.head_conf&&head_conf.head||"head",k=window[j]=window[j]||function(){k.ready.apply(null,arguments)},l=1,m=2,n=3,o=4;i?k.js=function(){var a=arguments,b=a[a.length-1],c={};t(b)||(b=null),s(a,function(d,e){d!=b&&(d=r(d),c[d.name]=d,x(d,b&&e==a.length-2?function(){u(c)&&p(b)}:null))});return k}:k.js=function(){var a=arguments,b=[].slice.call(a,1),d=b[0];if(!c){f.push(function(){k.js.apply(null,a)});return k}d?(s(b,function(a){t(a)||w(r(a))}),x(r(a[0]),t(d)?d:function(){k.js.apply(null,b)})):x(r(a[0]));return k},k.ready=function(b,c){if(b==a){d?p(c):e.push(c);return k}t(b)&&(c=b,b="ALL");if(typeof b!="string"||!t(c))return k;var f=h[b];if(f&&f.state==o||b=="ALL"&&u()&&d){p(c);return k}var i=g[b];i?i.push(c):i=g[b]=[c];return k},k.ready(a,function(){u()&&s(g.ALL,function(a){p(a)}),k.feature&&k.feature("domloaded",!0)});if(window.addEventListener)a.addEventListener("DOMContentLoaded",z,!1),window.addEventListener("load",z,!1);else if(window.attachEvent){a.attachEvent("onreadystatechange",function(){a.readyState==="complete"&&z()});var A=1;try{A=window.frameElement}catch(B){}!A&&b.doScroll&&function(){try{b.doScroll("left"),z()}catch(a){setTimeout(arguments.callee,1);return}}(),window.attachEvent("onload",z)}!a.readyState&&a.addEventListener&&(a.readyState="loading",a.addEventListener("DOMContentLoaded",handler=function(){a.removeEventListener("DOMContentLoaded",handler,!1),a.readyState="complete"},!1)),setTimeout(function(){c=!0,s(f,function(a){a()})},300)})(document)

File diff suppressed because one or more lines are too long

7
lib/js/html5shiv.js vendored Normal file
View File

@@ -0,0 +1,7 @@
document.createElement('header');
document.createElement('nav');
document.createElement('section');
document.createElement('article');
document.createElement('aside');
document.createElement('footer');
document.createElement('hgroup');

2
lib/js/promise.js Normal file
View File

@@ -0,0 +1,2 @@
/* MIT | https://github.com/taylorhakes/promise-polyfill */
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n():"function"==typeof define&&define.amd?define(n):n()}(0,function(){"use strict";function e(e){var n=this.constructor;return this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){return n.reject(t)})})}function n(){}function t(e){if(!(this instanceof t))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],u(e,this)}function o(e,n){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,t._immediateFn(function(){var t=1===e._state?n.onFulfilled:n.onRejected;if(null!==t){var o;try{o=t(e._value)}catch(f){return void i(n.promise,f)}r(n.promise,o)}else(1===e._state?r:i)(n.promise,e._value)})):e._deferreds.push(n)}function r(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var o=n.then;if(n instanceof t)return e._state=3,e._value=n,void f(e);if("function"==typeof o)return void u(function(e,n){return function(){e.apply(n,arguments)}}(o,n),e)}e._state=1,e._value=n,f(e)}catch(r){i(e,r)}}function i(e,n){e._state=2,e._value=n,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&t._immediateFn(function(){e._handled||t._unhandledRejectionFn(e._value)});for(var n=0,r=e._deferreds.length;r>n;n++)o(e,e._deferreds[n]);e._deferreds=null}function u(e,n){var t=!1;try{e(function(e){t||(t=!0,r(n,e))},function(e){t||(t=!0,i(n,e))})}catch(o){if(t)return;t=!0,i(n,o)}}var c=setTimeout;t.prototype["catch"]=function(e){return this.then(null,e)},t.prototype.then=function(e,t){var r=new this.constructor(n);return o(this,new function(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}(e,t,r)),r},t.prototype["finally"]=e,t.all=function(e){return new t(function(n,t){function o(e,f){try{if(f&&("object"==typeof f||"function"==typeof f)){var u=f.then;if("function"==typeof u)return void u.call(f,function(n){o(e,n)},t)}r[e]=f,0==--i&&n(r)}catch(c){t(c)}}if(!e||"undefined"==typeof e.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(e);if(0===r.length)return n([]);for(var i=r.length,f=0;r.length>f;f++)o(f,r[f])})},t.resolve=function(e){return e&&"object"==typeof e&&e.constructor===t?e:new t(function(n){n(e)})},t.reject=function(e){return new t(function(n,t){t(e)})},t.race=function(e){return new t(function(n,t){for(var o=0,r=e.length;r>o;o++)e[o].then(n,t)})},t._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){c(e,0)},t._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"Promise"in l?l.Promise.prototype["finally"]||(l.Promise.prototype["finally"]=e):l.Promise=t});

5703
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,20 +1,44 @@
{
"author": "Hakim El Hattab",
"name": "reveal.js",
"description": "HTML5 Slideware with Presenter Notes",
"version": "1.5.0",
"repository": {
"type": "git",
"url": "git://github.com/hakimel/reveal.js.git"
},
"engines": {
"node": "~0.6.8"
},
"dependencies": {
"underscore" : "1.3.3",
"express" : "2.5.9",
"socket.io" : "0.9.6",
"mustache" : "0.4.0"
},
"devDependencies": {}
"name": "reveal.js",
"version": "3.9.2",
"description": "The HTML Presentation Framework",
"homepage": "http://revealjs.com",
"subdomain": "revealjs",
"main": "js/reveal.js",
"scripts": {
"test": "grunt test",
"start": "grunt serve",
"build": "grunt"
},
"author": {
"name": "Hakim El Hattab",
"email": "hakim.elhattab@gmail.com",
"web": "http://hakim.se"
},
"repository": {
"type": "git",
"url": "git://github.com/hakimel/reveal.js.git"
},
"engines": {
"node": ">=9.0.0"
},
"devDependencies": {
"express": "^4.16.2",
"grunt": "^1.0.4",
"grunt-autoprefixer": "^3.0.4",
"grunt-cli": "^1.3.2",
"grunt-contrib-connect": "^2.0.0",
"grunt-contrib-cssmin": "^3.0.0",
"grunt-contrib-jshint": "^2.0.0",
"grunt-contrib-qunit": "^3.1.0",
"grunt-contrib-uglify": "^3.3.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-sass": "^3.0.2",
"grunt-zip": "~0.17.1",
"load-grunt-tasks": "^4.0.0",
"mustache": "^2.3.0",
"node-sass": "^4.13.1",
"socket.io": "^2.2.0"
},
"license": "MIT"
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,134 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>reveal.js - Markdown Demo</title>
<link rel="stylesheet" href="../../css/reveal.css">
<link rel="stylesheet" href="../../css/theme/white.css" id="theme">
<link rel="stylesheet" href="../../lib/css/monokai.css">
</head>
<body>
<div class="reveal">
<div class="slides">
<!-- Use external markdown resource, separate slides by three newlines; vertical slides by two newlines -->
<section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section>
<!-- Slides are separated by three dashes (quick 'n dirty regular expression) -->
<section data-markdown data-separator="---">
<script type="text/template">
## Demo 1
Slide 1
---
## Demo 1
Slide 2
---
## Demo 1
Slide 3
</script>
</section>
<!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes -->
<section data-markdown data-separator="^\n---\n$" data-separator-vertical="^\n--\n$">
<script type="text/template">
## Demo 2
Slide 1.1
--
## Demo 2
Slide 1.2
---
## Demo 2
Slide 2
</script>
</section>
<!-- No "extra" slides, since there are no separators defined (so they'll become horizontal rulers) -->
<section data-markdown>
<script type="text/template">
A
---
B
---
C
</script>
</section>
<!-- Slide attributes -->
<section data-markdown>
<script type="text/template">
<!-- .slide: data-background="#000000" -->
## Slide attributes
</script>
</section>
<!-- Element attributes -->
<section data-markdown>
<script type="text/template">
## Element attributes
- Item 1 <!-- .element: class="fragment" data-fragment-index="2" -->
- Item 2 <!-- .element: class="fragment" data-fragment-index="1" -->
</script>
</section>
<!-- Code -->
<section data-markdown>
<script type="text/template">
```php
public function foo()
{
$foo = array(
'bar' => 'bar'
)
}
```
</script>
</section>
<!-- Images -->
<section data-markdown>
<script type="text/template">
![Sample image](https://s3.amazonaws.com/static.slid.es/logo/v2/slides-symbol-512x512.png)
</script>
</section>
</div>
</div>
<script src="../../js/reveal.js"></script>
<script>
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: '../highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: '../notes/notes.js' }
]
});
</script>
</body>
</html>

View File

@@ -0,0 +1,36 @@
# Markdown Demo
## External 1.1
Content 1.1
Note: This will only appear in the speaker notes window.
## External 1.2
Content 1.2
## External 2
Content 2.1
## External 3.1
Content 3.1
## External 3.2
Content 3.2
## External 3.3
![External Image](https://s3.amazonaws.com/static.slid.es/logo/v2/slides-symbol-512x512.png)

446
plugin/markdown/markdown.js Executable file
View File

@@ -0,0 +1,446 @@
/**
* The reveal.js markdown plugin. Handles parsing of
* markdown inside of presentations as well as loading
* of external markdown documents.
*/
(function( root, factory ) {
if (typeof define === 'function' && define.amd) {
root.marked = require( './marked' );
root.RevealMarkdown = factory( root.marked );
} else if( typeof exports === 'object' ) {
module.exports = factory( require( './marked' ) );
} else {
// Browser globals (root is window)
root.RevealMarkdown = factory( root.marked );
}
}( this, function( marked ) {
var DEFAULT_SLIDE_SEPARATOR = '^\r?\n---\r?\n$',
DEFAULT_NOTES_SEPARATOR = 'notes?:',
DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '\\\.element\\\s*?(.+?)$',
DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = '\\\.slide:\\\s*?(\\\S.+?)$';
var SCRIPT_END_PLACEHOLDER = '__SCRIPT_END__';
/**
* Retrieves the markdown contents of a slide section
* element. Normalizes leading tabs/whitespace.
*/
function getMarkdownFromSlide( section ) {
// look for a <script> or <textarea data-template> wrapper
var template = section.querySelector( '[data-template]' ) || section.querySelector( 'script' );
// strip leading whitespace so it isn't evaluated as code
var text = ( template || section ).textContent;
// restore script end tags
text = text.replace( new RegExp( SCRIPT_END_PLACEHOLDER, 'g' ), '</script>' );
var leadingWs = text.match( /^\n?(\s*)/ )[1].length,
leadingTabs = text.match( /^\n?(\t*)/ )[1].length;
if( leadingTabs > 0 ) {
text = text.replace( new RegExp('\\n?\\t{' + leadingTabs + '}','g'), '\n' );
}
else if( leadingWs > 1 ) {
text = text.replace( new RegExp('\\n? {' + leadingWs + '}', 'g'), '\n' );
}
return text;
}
/**
* Given a markdown slide section element, this will
* return all arguments that aren't related to markdown
* parsing. Used to forward any other user-defined arguments
* to the output markdown slide.
*/
function getForwardedAttributes( section ) {
var attributes = section.attributes;
var result = [];
for( var i = 0, len = attributes.length; i < len; i++ ) {
var name = attributes[i].name,
value = attributes[i].value;
// disregard attributes that are used for markdown loading/parsing
if( /data\-(markdown|separator|vertical|notes)/gi.test( name ) ) continue;
if( value ) {
result.push( name + '="' + value + '"' );
}
else {
result.push( name );
}
}
return result.join( ' ' );
}
/**
* Inspects the given options and fills out default
* values for what's not defined.
*/
function getSlidifyOptions( options ) {
options = options || {};
options.separator = options.separator || DEFAULT_SLIDE_SEPARATOR;
options.notesSeparator = options.notesSeparator || DEFAULT_NOTES_SEPARATOR;
options.attributes = options.attributes || '';
return options;
}
/**
* Helper function for constructing a markdown slide.
*/
function createMarkdownSlide( content, options ) {
options = getSlidifyOptions( options );
var notesMatch = content.split( new RegExp( options.notesSeparator, 'mgi' ) );
if( notesMatch.length === 2 ) {
content = notesMatch[0] + '<aside class="notes">' + marked(notesMatch[1].trim()) + '</aside>';
}
// prevent script end tags in the content from interfering
// with parsing
content = content.replace( /<\/script>/g, SCRIPT_END_PLACEHOLDER );
return '<script type="text/template">' + content + '</script>';
}
/**
* Parses a data string into multiple slides based
* on the passed in separator arguments.
*/
function slidify( markdown, options ) {
options = getSlidifyOptions( options );
var separatorRegex = new RegExp( options.separator + ( options.verticalSeparator ? '|' + options.verticalSeparator : '' ), 'mg' ),
horizontalSeparatorRegex = new RegExp( options.separator );
var matches,
lastIndex = 0,
isHorizontal,
wasHorizontal = true,
content,
sectionStack = [];
// iterate until all blocks between separators are stacked up
while( matches = separatorRegex.exec( markdown ) ) {
notes = null;
// determine direction (horizontal by default)
isHorizontal = horizontalSeparatorRegex.test( matches[0] );
if( !isHorizontal && wasHorizontal ) {
// create vertical stack
sectionStack.push( [] );
}
// pluck slide content from markdown input
content = markdown.substring( lastIndex, matches.index );
if( isHorizontal && wasHorizontal ) {
// add to horizontal stack
sectionStack.push( content );
}
else {
// add to vertical stack
sectionStack[sectionStack.length-1].push( content );
}
lastIndex = separatorRegex.lastIndex;
wasHorizontal = isHorizontal;
}
// add the remaining slide
( wasHorizontal ? sectionStack : sectionStack[sectionStack.length-1] ).push( markdown.substring( lastIndex ) );
var markdownSections = '';
// flatten the hierarchical stack, and insert <section data-markdown> tags
for( var i = 0, len = sectionStack.length; i < len; i++ ) {
// vertical
if( sectionStack[i] instanceof Array ) {
markdownSections += '<section '+ options.attributes +'>';
sectionStack[i].forEach( function( child ) {
markdownSections += '<section data-markdown>' + createMarkdownSlide( child, options ) + '</section>';
} );
markdownSections += '</section>';
}
else {
markdownSections += '<section '+ options.attributes +' data-markdown>' + createMarkdownSlide( sectionStack[i], options ) + '</section>';
}
}
return markdownSections;
}
/**
* Parses any current data-markdown slides, splits
* multi-slide markdown into separate sections and
* handles loading of external markdown.
*/
function processSlides() {
return new Promise( function( resolve ) {
var externalPromises = [];
[].slice.call( document.querySelectorAll( '[data-markdown]') ).forEach( function( section, i ) {
if( section.getAttribute( 'data-markdown' ).length ) {
externalPromises.push( loadExternalMarkdown( section ).then(
// Finished loading external file
function( xhr, url ) {
section.outerHTML = slidify( xhr.responseText, {
separator: section.getAttribute( 'data-separator' ),
verticalSeparator: section.getAttribute( 'data-separator-vertical' ),
notesSeparator: section.getAttribute( 'data-separator-notes' ),
attributes: getForwardedAttributes( section )
});
},
// Failed to load markdown
function( xhr, url ) {
section.outerHTML = '<section data-state="alert">' +
'ERROR: The attempt to fetch ' + url + ' failed with HTTP status ' + xhr.status + '.' +
'Check your browser\'s JavaScript console for more details.' +
'<p>Remember that you need to serve the presentation HTML from a HTTP server.</p>' +
'</section>';
}
) );
}
else if( section.getAttribute( 'data-separator' ) || section.getAttribute( 'data-separator-vertical' ) || section.getAttribute( 'data-separator-notes' ) ) {
section.outerHTML = slidify( getMarkdownFromSlide( section ), {
separator: section.getAttribute( 'data-separator' ),
verticalSeparator: section.getAttribute( 'data-separator-vertical' ),
notesSeparator: section.getAttribute( 'data-separator-notes' ),
attributes: getForwardedAttributes( section )
});
}
else {
section.innerHTML = createMarkdownSlide( getMarkdownFromSlide( section ) );
}
});
Promise.all( externalPromises ).then( resolve );
} );
}
function loadExternalMarkdown( section ) {
return new Promise( function( resolve, reject ) {
var xhr = new XMLHttpRequest(),
url = section.getAttribute( 'data-markdown' );
datacharset = section.getAttribute( 'data-charset' );
// see https://developer.mozilla.org/en-US/docs/Web/API/element.getAttribute#Notes
if( datacharset != null && datacharset != '' ) {
xhr.overrideMimeType( 'text/html; charset=' + datacharset );
}
xhr.onreadystatechange = function( section, xhr ) {
if( xhr.readyState === 4 ) {
// file protocol yields status code 0 (useful for local debug, mobile applications etc.)
if ( ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status === 0 ) {
resolve( xhr, url );
}
else {
reject( xhr, url );
}
}
}.bind( this, section, xhr );
xhr.open( 'GET', url, true );
try {
xhr.send();
}
catch ( e ) {
alert( 'Failed to get the Markdown file ' + url + '. Make sure that the presentation and the file are served by a HTTP server and the file can be found there. ' + e );
resolve( xhr, url );
}
} );
}
/**
* Check if a node value has the attributes pattern.
* If yes, extract it and add that value as one or several attributes
* to the target element.
*
* You need Cache Killer on Chrome to see the effect on any FOM transformation
* directly on refresh (F5)
* http://stackoverflow.com/questions/5690269/disabling-chrome-cache-for-website-development/7000899#answer-11786277
*/
function addAttributeInElement( node, elementTarget, separator ) {
var mardownClassesInElementsRegex = new RegExp( separator, 'mg' );
var mardownClassRegex = new RegExp( "([^\"= ]+?)=\"([^\"=]+?)\"", 'mg' );
var nodeValue = node.nodeValue;
if( matches = mardownClassesInElementsRegex.exec( nodeValue ) ) {
var classes = matches[1];
nodeValue = nodeValue.substring( 0, matches.index ) + nodeValue.substring( mardownClassesInElementsRegex.lastIndex );
node.nodeValue = nodeValue;
while( matchesClass = mardownClassRegex.exec( classes ) ) {
elementTarget.setAttribute( matchesClass[1], matchesClass[2] );
}
return true;
}
return false;
}
/**
* Add attributes to the parent element of a text node,
* or the element of an attribute node.
*/
function addAttributes( section, element, previousElement, separatorElementAttributes, separatorSectionAttributes ) {
if ( element != null && element.childNodes != undefined && element.childNodes.length > 0 ) {
previousParentElement = element;
for( var i = 0; i < element.childNodes.length; i++ ) {
childElement = element.childNodes[i];
if ( i > 0 ) {
j = i - 1;
while ( j >= 0 ) {
aPreviousChildElement = element.childNodes[j];
if ( typeof aPreviousChildElement.setAttribute == 'function' && aPreviousChildElement.tagName != "BR" ) {
previousParentElement = aPreviousChildElement;
break;
}
j = j - 1;
}
}
parentSection = section;
if( childElement.nodeName == "section" ) {
parentSection = childElement ;
previousParentElement = childElement ;
}
if ( typeof childElement.setAttribute == 'function' || childElement.nodeType == Node.COMMENT_NODE ) {
addAttributes( parentSection, childElement, previousParentElement, separatorElementAttributes, separatorSectionAttributes );
}
}
}
if ( element.nodeType == Node.COMMENT_NODE ) {
if ( addAttributeInElement( element, previousElement, separatorElementAttributes ) == false ) {
addAttributeInElement( element, section, separatorSectionAttributes );
}
}
}
/**
* Converts any current data-markdown slides in the
* DOM to HTML.
*/
function convertSlides() {
var sections = document.querySelectorAll( '[data-markdown]:not([data-markdown-parsed])');
[].slice.call( sections ).forEach( function( section ) {
section.setAttribute( 'data-markdown-parsed', true )
var notes = section.querySelector( 'aside.notes' );
var markdown = getMarkdownFromSlide( section );
section.innerHTML = marked( markdown );
addAttributes( section, section, null, section.getAttribute( 'data-element-attributes' ) ||
section.parentNode.getAttribute( 'data-element-attributes' ) ||
DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR,
section.getAttribute( 'data-attributes' ) ||
section.parentNode.getAttribute( 'data-attributes' ) ||
DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR);
// If there were notes, we need to re-add them after
// having overwritten the section's HTML
if( notes ) {
section.appendChild( notes );
}
} );
return Promise.resolve();
}
// API
var RevealMarkdown = {
/**
* Starts processing and converting Markdown within the
* current reveal.js deck.
*
* @param {function} callback function to invoke once
* we've finished loading and parsing Markdown
*/
init: function( callback ) {
if( typeof marked === 'undefined' ) {
throw 'The reveal.js Markdown plugin requires marked to be loaded';
}
if( typeof hljs !== 'undefined' ) {
marked.setOptions({
highlight: function( code, lang ) {
return hljs.highlightAuto( code, [lang] ).value;
}
});
}
// marked can be configured via reveal.js config options
var options = Reveal.getConfig().markdown;
if( options ) {
marked.setOptions( options );
}
return processSlides().then( convertSlides );
},
// TODO: Do these belong in the API?
processSlides: processSlides,
convertSlides: convertSlides,
slidify: slidify
};
// Register our plugin so that reveal.js will call our
// plugin 'init' method as part of the initialization
Reveal.registerPlugin( 'markdown', RevealMarkdown );
return RevealMarkdown;
}));

File diff suppressed because one or more lines are too long

92
plugin/math/math.js Executable file
View File

@@ -0,0 +1,92 @@
/**
* A plugin which enables rendering of math equations inside
* of reveal.js slides. Essentially a thin wrapper for MathJax.
*
* @author Hakim El Hattab
*/
var RevealMath = window.RevealMath || (function(){
var options = Reveal.getConfig().math || {};
var mathjax = options.mathjax || 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js';
var config = options.config || 'TeX-AMS_HTML-full';
var url = mathjax + '?config=' + config;
var defaultOptions = {
messageStyle: 'none',
tex2jax: {
inlineMath: [ [ '$', '$' ], [ '\\(', '\\)' ] ],
skipTags: [ 'script', 'noscript', 'style', 'textarea', 'pre' ]
},
skipStartupTypeset: true
};
function defaults( options, defaultOptions ) {
for ( var i in defaultOptions ) {
if ( !options.hasOwnProperty( i ) ) {
options[i] = defaultOptions[i];
}
}
}
function loadScript( url, callback ) {
var head = document.querySelector( 'head' );
var script = document.createElement( 'script' );
script.type = 'text/javascript';
script.src = url;
// Wrapper for callback to make sure it only fires once
var finish = function() {
if( typeof callback === 'function' ) {
callback.call();
callback = null;
}
}
script.onload = finish;
// IE
script.onreadystatechange = function() {
if ( this.readyState === 'loaded' ) {
finish();
}
}
// Normal browsers
head.appendChild( script );
}
return {
init: function() {
defaults( options, defaultOptions );
defaults( options.tex2jax, defaultOptions.tex2jax );
options.mathjax = options.config = null;
loadScript( url, function() {
MathJax.Hub.Config( options );
// Typeset followed by an immediate reveal.js layout since
// the typesetting process could affect slide height
MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub ] );
MathJax.Hub.Queue( Reveal.layout );
// Reprocess equations in slides when they turn visible
Reveal.addEventListener( 'slidechanged', function( event ) {
MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub, event.currentSlide ] );
} );
} );
}
}
})();
Reveal.registerPlugin( 'math', RevealMath );

View File

@@ -0,0 +1,13 @@
(function() {
var multiplex = Reveal.getConfig().multiplex;
var socketId = multiplex.id;
var socket = io.connect(multiplex.url);
socket.on(multiplex.id, function(data) {
// ignore data from sockets that aren't ours
if (data.socketId !== socketId) { return; }
if( window.location.host === 'localhost:1947' ) return;
Reveal.setState(data.state);
});
}());

64
plugin/multiplex/index.js Normal file
View File

@@ -0,0 +1,64 @@
var http = require('http');
var express = require('express');
var fs = require('fs');
var io = require('socket.io');
var crypto = require('crypto');
var app = express();
var staticDir = express.static;
var server = http.createServer(app);
io = io(server);
var opts = {
port: process.env.PORT || 1948,
baseDir : __dirname + '/../../'
};
io.on( 'connection', function( socket ) {
socket.on('multiplex-statechanged', function(data) {
if (typeof data.secret == 'undefined' || data.secret == null || data.secret === '') return;
if (createHash(data.secret) === data.socketId) {
data.secret = null;
socket.broadcast.emit(data.socketId, data);
};
});
});
[ 'css', 'js', 'plugin', 'lib' ].forEach(function(dir) {
app.use('/' + dir, staticDir(opts.baseDir + dir));
});
app.get("/", function(req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
var stream = fs.createReadStream(opts.baseDir + '/index.html');
stream.on('error', function( error ) {
res.write('<style>body{font-family: sans-serif;}</style><h2>reveal.js multiplex server.</h2><a href="/token">Generate token</a>');
res.end();
});
stream.on('readable', function() {
stream.pipe(res);
});
});
app.get("/token", function(req,res) {
var ts = new Date().getTime();
var rand = Math.floor(Math.random()*9999999);
var secret = ts.toString() + rand.toString();
res.send({secret: secret, socketId: createHash(secret)});
});
var createHash = function(secret) {
var cipher = crypto.createCipher('blowfish', secret);
return(cipher.final('hex'));
};
// Actually listen
server.listen( opts.port || null );
var brown = '\033[33m',
green = '\033[32m',
reset = '\033[0m';
console.log( brown + "reveal.js:" + reset + " Multiplex running on port " + green + opts.port + reset );

View File

@@ -0,0 +1,34 @@
(function() {
// Don't emit events from inside of notes windows
if ( window.location.search.match( /receiver/gi ) ) { return; }
var multiplex = Reveal.getConfig().multiplex;
var socket = io.connect( multiplex.url );
function post() {
var messageData = {
state: Reveal.getState(),
secret: multiplex.secret,
socketId: multiplex.id
};
socket.emit( 'multiplex-statechanged', messageData );
};
// post once the page is loaded, so the client follows also on "open URL".
window.addEventListener( 'load', post );
// Monitor events that trigger a change in state
Reveal.addEventListener( 'slidechanged', post );
Reveal.addEventListener( 'fragmentshown', post );
Reveal.addEventListener( 'fragmenthidden', post );
Reveal.addEventListener( 'overviewhidden', post );
Reveal.addEventListener( 'overviewshown', post );
Reveal.addEventListener( 'paused', post );
Reveal.addEventListener( 'resumed', post );
}());

View File

@@ -0,0 +1,19 @@
{
"name": "reveal-js-multiplex",
"version": "1.0.0",
"description": "reveal.js multiplex server",
"homepage": "http://revealjs.com",
"scripts": {
"start": "node index.js"
},
"engines": {
"node": "~4.1.1"
},
"dependencies": {
"express": "~4.13.3",
"grunt-cli": "~0.1.13",
"mustache": "~2.2.1",
"socket.io": "~1.3.7"
},
"license": "MIT"
}

View File

@@ -0,0 +1,65 @@
(function() {
// don't emit events from inside the previews themselves
if( window.location.search.match( /receiver/gi ) ) { return; }
var socket = io.connect( window.location.origin ),
socketId = Math.random().toString().slice( 2 );
console.log( 'View slide notes at ' + window.location.origin + '/notes/' + socketId );
window.open( window.location.origin + '/notes/' + socketId, 'notes-' + socketId );
/**
* Posts the current slide data to the notes window
*/
function post() {
var slideElement = Reveal.getCurrentSlide(),
notesElement = slideElement.querySelector( 'aside.notes' );
var messageData = {
notes: '',
markdown: false,
socketId: socketId,
state: Reveal.getState()
};
// Look for notes defined in a slide attribute
if( slideElement.hasAttribute( 'data-notes' ) ) {
messageData.notes = slideElement.getAttribute( 'data-notes' );
}
// Look for notes defined in an aside element
if( notesElement ) {
messageData.notes = notesElement.innerHTML;
messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string';
}
socket.emit( 'statechanged', messageData );
}
// When a new notes window connects, post our current state
socket.on( 'new-subscriber', function( data ) {
post();
} );
// When the state changes from inside of the speaker view
socket.on( 'statechanged-speaker', function( data ) {
Reveal.setState( data.state );
} );
// Monitor events that trigger a change in state
Reveal.addEventListener( 'slidechanged', post );
Reveal.addEventListener( 'fragmentshown', post );
Reveal.addEventListener( 'fragmenthidden', post );
Reveal.addEventListener( 'overviewhidden', post );
Reveal.addEventListener( 'overviewshown', post );
Reveal.addEventListener( 'paused', post );
Reveal.addEventListener( 'resumed', post );
// Post the initial state
post();
}());

View File

@@ -0,0 +1,69 @@
var http = require('http');
var express = require('express');
var fs = require('fs');
var io = require('socket.io');
var Mustache = require('mustache');
var app = express();
var staticDir = express.static;
var server = http.createServer(app);
io = io(server);
var opts = {
port : 1947,
baseDir : __dirname + '/../../'
};
io.on( 'connection', function( socket ) {
socket.on( 'new-subscriber', function( data ) {
socket.broadcast.emit( 'new-subscriber', data );
});
socket.on( 'statechanged', function( data ) {
delete data.state.overview;
socket.broadcast.emit( 'statechanged', data );
});
socket.on( 'statechanged-speaker', function( data ) {
delete data.state.overview;
socket.broadcast.emit( 'statechanged-speaker', data );
});
});
[ 'css', 'js', 'images', 'plugin', 'lib' ].forEach( function( dir ) {
app.use( '/' + dir, staticDir( opts.baseDir + dir ) );
});
app.get('/', function( req, res ) {
res.writeHead( 200, { 'Content-Type': 'text/html' } );
fs.createReadStream( opts.baseDir + '/index.html' ).pipe( res );
});
app.get( '/notes/:socketId', function( req, res ) {
fs.readFile( opts.baseDir + 'plugin/notes-server/notes.html', function( err, data ) {
res.send( Mustache.to_html( data.toString(), {
socketId : req.params.socketId
}));
});
});
// Actually listen
server.listen( opts.port || null );
var brown = '\033[33m',
green = '\033[32m',
reset = '\033[0m';
var slidesLocation = 'http://localhost' + ( opts.port ? ( ':' + opts.port ) : '' );
console.log( brown + 'reveal.js - Speaker Notes' + reset );
console.log( '1. Open the slides at ' + green + slidesLocation + reset );
console.log( '2. Click on the link in your JS console to go to the notes page' );
console.log( '3. Advance through your slides and your notes will advance automatically' );

View File

@@ -0,0 +1,585 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>reveal.js - Slide Notes</title>
<style>
body {
font-family: Helvetica;
font-size: 18px;
}
#current-slide,
#upcoming-slide,
#speaker-controls {
padding: 6px;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
#current-slide iframe,
#upcoming-slide iframe {
width: 100%;
height: 100%;
border: 1px solid #ddd;
}
#current-slide .label,
#upcoming-slide .label {
position: absolute;
top: 10px;
left: 10px;
z-index: 2;
}
.overlay-element {
height: 34px;
line-height: 34px;
padding: 0 10px;
text-shadow: none;
background: rgba( 220, 220, 220, 0.8 );
color: #222;
font-size: 14px;
}
.overlay-element.interactive:hover {
background: rgba( 220, 220, 220, 1 );
}
#current-slide {
position: absolute;
width: 60%;
height: 100%;
top: 0;
left: 0;
padding-right: 0;
}
#upcoming-slide {
position: absolute;
width: 40%;
height: 40%;
right: 0;
top: 0;
}
/* Speaker controls */
#speaker-controls {
position: absolute;
top: 40%;
right: 0;
width: 40%;
height: 60%;
overflow: auto;
font-size: 18px;
}
.speaker-controls-time.hidden,
.speaker-controls-notes.hidden {
display: none;
}
.speaker-controls-time .label,
.speaker-controls-notes .label {
text-transform: uppercase;
font-weight: normal;
font-size: 0.66em;
color: #666;
margin: 0;
}
.speaker-controls-time {
border-bottom: 1px solid rgba( 200, 200, 200, 0.5 );
margin-bottom: 10px;
padding: 10px 16px;
padding-bottom: 20px;
cursor: pointer;
}
.speaker-controls-time .reset-button {
opacity: 0;
float: right;
color: #666;
text-decoration: none;
}
.speaker-controls-time:hover .reset-button {
opacity: 1;
}
.speaker-controls-time .timer,
.speaker-controls-time .clock {
width: 50%;
font-size: 1.9em;
}
.speaker-controls-time .timer {
float: left;
}
.speaker-controls-time .clock {
float: right;
text-align: right;
}
.speaker-controls-time span.mute {
color: #bbb;
}
.speaker-controls-notes {
padding: 10px 16px;
}
.speaker-controls-notes .value {
margin-top: 5px;
line-height: 1.4;
font-size: 1.2em;
}
/* Layout selector */
#speaker-layout {
position: absolute;
top: 10px;
right: 10px;
color: #222;
z-index: 10;
}
#speaker-layout select {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
border: 0;
box-shadow: 0;
cursor: pointer;
opacity: 0;
font-size: 1em;
background-color: transparent;
-moz-appearance: none;
-webkit-appearance: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
#speaker-layout select:focus {
outline: none;
box-shadow: none;
}
.clear {
clear: both;
}
/* Speaker layout: Wide */
body[data-speaker-layout="wide"] #current-slide,
body[data-speaker-layout="wide"] #upcoming-slide {
width: 50%;
height: 45%;
padding: 6px;
}
body[data-speaker-layout="wide"] #current-slide {
top: 0;
left: 0;
}
body[data-speaker-layout="wide"] #upcoming-slide {
top: 0;
left: 50%;
}
body[data-speaker-layout="wide"] #speaker-controls {
top: 45%;
left: 0;
width: 100%;
height: 50%;
font-size: 1.25em;
}
/* Speaker layout: Tall */
body[data-speaker-layout="tall"] #current-slide,
body[data-speaker-layout="tall"] #upcoming-slide {
width: 45%;
height: 50%;
padding: 6px;
}
body[data-speaker-layout="tall"] #current-slide {
top: 0;
left: 0;
}
body[data-speaker-layout="tall"] #upcoming-slide {
top: 50%;
left: 0;
}
body[data-speaker-layout="tall"] #speaker-controls {
padding-top: 40px;
top: 0;
left: 45%;
width: 55%;
height: 100%;
font-size: 1.25em;
}
/* Speaker layout: Notes only */
body[data-speaker-layout="notes-only"] #current-slide,
body[data-speaker-layout="notes-only"] #upcoming-slide {
display: none;
}
body[data-speaker-layout="notes-only"] #speaker-controls {
padding-top: 40px;
top: 0;
left: 0;
width: 100%;
height: 100%;
font-size: 1.25em;
}
</style>
</head>
<body>
<div id="current-slide"></div>
<div id="upcoming-slide"><span class="overlay-element label">Upcoming</span></div>
<div id="speaker-controls">
<div class="speaker-controls-time">
<h4 class="label">Time <span class="reset-button">Click to Reset</span></h4>
<div class="clock">
<span class="clock-value">0:00 AM</span>
</div>
<div class="timer">
<span class="hours-value">00</span><span class="minutes-value">:00</span><span class="seconds-value">:00</span>
</div>
<div class="clear"></div>
</div>
<div class="speaker-controls-notes hidden">
<h4 class="label">Notes</h4>
<div class="value"></div>
</div>
</div>
<div id="speaker-layout" class="overlay-element interactive">
<span class="speaker-layout-label"></span>
<select class="speaker-layout-dropdown"></select>
</div>
<script src="/socket.io/socket.io.js"></script>
<script src="/plugin/markdown/marked.js"></script>
<script>
(function() {
var notes,
notesValue,
currentState,
currentSlide,
upcomingSlide,
layoutLabel,
layoutDropdown,
connected = false;
var socket = io.connect( window.location.origin ),
socketId = '{{socketId}}';
var SPEAKER_LAYOUTS = {
'default': 'Default',
'wide': 'Wide',
'tall': 'Tall',
'notes-only': 'Notes only'
};
socket.on( 'statechanged', function( data ) {
// ignore data from sockets that aren't ours
if( data.socketId !== socketId ) { return; }
if( connected === false ) {
connected = true;
setupKeyboard();
setupNotes();
setupTimer();
}
handleStateMessage( data );
} );
setupLayout();
// Load our presentation iframes
setupIframes();
// Once the iframes have loaded, emit a signal saying there's
// a new subscriber which will trigger a 'statechanged'
// message to be sent back
window.addEventListener( 'message', function( event ) {
var data = JSON.parse( event.data );
if( data && data.namespace === 'reveal' ) {
if( /ready/.test( data.eventName ) ) {
socket.emit( 'new-subscriber', { socketId: socketId } );
}
}
// Messages sent by reveal.js inside of the current slide preview
if( data && data.namespace === 'reveal' ) {
if( /slidechanged|fragmentshown|fragmenthidden|overviewshown|overviewhidden|paused|resumed/.test( data.eventName ) && currentState !== JSON.stringify( data.state ) ) {
socket.emit( 'statechanged-speaker', { state: data.state } );
}
}
} );
/**
* Called when the main window sends an updated state.
*/
function handleStateMessage( data ) {
// Store the most recently set state to avoid circular loops
// applying the same state
currentState = JSON.stringify( data.state );
// No need for updating the notes in case of fragment changes
if ( data.notes ) {
notes.classList.remove( 'hidden' );
if( data.markdown ) {
notesValue.innerHTML = marked( data.notes );
}
else {
notesValue.innerHTML = data.notes;
}
}
else {
notes.classList.add( 'hidden' );
}
// Update the note slides
currentSlide.contentWindow.postMessage( JSON.stringify({ method: 'setState', args: [ data.state ] }), '*' );
upcomingSlide.contentWindow.postMessage( JSON.stringify({ method: 'setState', args: [ data.state ] }), '*' );
upcomingSlide.contentWindow.postMessage( JSON.stringify({ method: 'next' }), '*' );
}
// Limit to max one state update per X ms
handleStateMessage = debounce( handleStateMessage, 200 );
/**
* Forward keyboard events to the current slide window.
* This enables keyboard events to work even if focus
* isn't set on the current slide iframe.
*/
function setupKeyboard() {
document.addEventListener( 'keydown', function( event ) {
currentSlide.contentWindow.postMessage( JSON.stringify({ method: 'triggerKey', args: [ event.keyCode ] }), '*' );
} );
}
/**
* Creates the preview iframes.
*/
function setupIframes() {
var params = [
'receiver',
'progress=false',
'history=false',
'transition=none',
'backgroundTransition=none'
].join( '&' );
var currentURL = '/?' + params + '&postMessageEvents=true';
var upcomingURL = '/?' + params + '&controls=false';
currentSlide = document.createElement( 'iframe' );
currentSlide.setAttribute( 'width', 1280 );
currentSlide.setAttribute( 'height', 1024 );
currentSlide.setAttribute( 'src', currentURL );
document.querySelector( '#current-slide' ).appendChild( currentSlide );
upcomingSlide = document.createElement( 'iframe' );
upcomingSlide.setAttribute( 'width', 640 );
upcomingSlide.setAttribute( 'height', 512 );
upcomingSlide.setAttribute( 'src', upcomingURL );
document.querySelector( '#upcoming-slide' ).appendChild( upcomingSlide );
}
/**
* Setup the notes UI.
*/
function setupNotes() {
notes = document.querySelector( '.speaker-controls-notes' );
notesValue = document.querySelector( '.speaker-controls-notes .value' );
}
/**
* Create the timer and clock and start updating them
* at an interval.
*/
function setupTimer() {
var start = new Date(),
timeEl = document.querySelector( '.speaker-controls-time' ),
clockEl = timeEl.querySelector( '.clock-value' ),
hoursEl = timeEl.querySelector( '.hours-value' ),
minutesEl = timeEl.querySelector( '.minutes-value' ),
secondsEl = timeEl.querySelector( '.seconds-value' );
function _updateTimer() {
var diff, hours, minutes, seconds,
now = new Date();
diff = now.getTime() - start.getTime();
hours = Math.floor( diff / ( 1000 * 60 * 60 ) );
minutes = Math.floor( ( diff / ( 1000 * 60 ) ) % 60 );
seconds = Math.floor( ( diff / 1000 ) % 60 );
clockEl.innerHTML = now.toLocaleTimeString( 'en-US', { hour12: true, hour: '2-digit', minute:'2-digit' } );
hoursEl.innerHTML = zeroPadInteger( hours );
hoursEl.className = hours > 0 ? '' : 'mute';
minutesEl.innerHTML = ':' + zeroPadInteger( minutes );
minutesEl.className = minutes > 0 ? '' : 'mute';
secondsEl.innerHTML = ':' + zeroPadInteger( seconds );
}
// Update once directly
_updateTimer();
// Then update every second
setInterval( _updateTimer, 1000 );
timeEl.addEventListener( 'click', function() {
start = new Date();
_updateTimer();
return false;
} );
}
/**
* Sets up the speaker view layout and layout selector.
*/
function setupLayout() {
layoutDropdown = document.querySelector( '.speaker-layout-dropdown' );
layoutLabel = document.querySelector( '.speaker-layout-label' );
// Render the list of available layouts
for( var id in SPEAKER_LAYOUTS ) {
var option = document.createElement( 'option' );
option.setAttribute( 'value', id );
option.textContent = SPEAKER_LAYOUTS[ id ];
layoutDropdown.appendChild( option );
}
// Monitor the dropdown for changes
layoutDropdown.addEventListener( 'change', function( event ) {
setLayout( layoutDropdown.value );
}, false );
// Restore any currently persisted layout
setLayout( getLayout() );
}
/**
* Sets a new speaker view layout. The layout is persisted
* in local storage.
*/
function setLayout( value ) {
var title = SPEAKER_LAYOUTS[ value ];
layoutLabel.innerHTML = 'Layout' + ( title ? ( ': ' + title ) : '' );
layoutDropdown.value = value;
document.body.setAttribute( 'data-speaker-layout', value );
// Persist locally
if( window.localStorage ) {
window.localStorage.setItem( 'reveal-speaker-layout', value );
}
}
/**
* Returns the ID of the most recently set speaker layout
* or our default layout if none has been set.
*/
function getLayout() {
if( window.localStorage ) {
var layout = window.localStorage.getItem( 'reveal-speaker-layout' );
if( layout ) {
return layout;
}
}
// Default to the first record in the layouts hash
for( var id in SPEAKER_LAYOUTS ) {
return id;
}
}
function zeroPadInteger( num ) {
var str = '00' + parseInt( num );
return str.substring( str.length - 2 );
}
/**
* Limits the frequency at which a function can be called.
*/
function debounce( fn, ms ) {
var lastTime = 0,
timeout;
return function() {
var args = arguments;
var context = this;
clearTimeout( timeout );
var timeSinceLastCall = Date.now() - lastTime;
if( timeSinceLastCall > ms ) {
fn.apply( context, args );
lastTime = Date.now();
}
else {
timeout = setTimeout( function() {
fn.apply( context, args );
lastTime = Date.now();
}, ms - timeSinceLastCall );
}
}
}
})();
</script>
</body>
</html>

854
plugin/notes/notes.html Normal file
View File

@@ -0,0 +1,854 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>reveal.js - Slide Notes</title>
<style>
body {
font-family: Helvetica;
font-size: 18px;
}
#current-slide,
#upcoming-slide,
#speaker-controls {
padding: 6px;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
#current-slide iframe,
#upcoming-slide iframe {
width: 100%;
height: 100%;
border: 1px solid #ddd;
}
#current-slide .label,
#upcoming-slide .label {
position: absolute;
top: 10px;
left: 10px;
z-index: 2;
}
#connection-status {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 20;
padding: 30% 20% 20% 20%;
font-size: 18px;
color: #222;
background: #fff;
text-align: center;
box-sizing: border-box;
line-height: 1.4;
}
.overlay-element {
height: 34px;
line-height: 34px;
padding: 0 10px;
text-shadow: none;
background: rgba( 220, 220, 220, 0.8 );
color: #222;
font-size: 14px;
}
.overlay-element.interactive:hover {
background: rgba( 220, 220, 220, 1 );
}
#current-slide {
position: absolute;
width: 60%;
height: 100%;
top: 0;
left: 0;
padding-right: 0;
}
#upcoming-slide {
position: absolute;
width: 40%;
height: 40%;
right: 0;
top: 0;
}
/* Speaker controls */
#speaker-controls {
position: absolute;
top: 40%;
right: 0;
width: 40%;
height: 60%;
overflow: auto;
font-size: 18px;
}
.speaker-controls-time.hidden,
.speaker-controls-notes.hidden {
display: none;
}
.speaker-controls-time .label,
.speaker-controls-pace .label,
.speaker-controls-notes .label {
text-transform: uppercase;
font-weight: normal;
font-size: 0.66em;
color: #666;
margin: 0;
}
.speaker-controls-time, .speaker-controls-pace {
border-bottom: 1px solid rgba( 200, 200, 200, 0.5 );
margin-bottom: 10px;
padding: 10px 16px;
padding-bottom: 20px;
cursor: pointer;
}
.speaker-controls-time .reset-button {
opacity: 0;
float: right;
color: #666;
text-decoration: none;
}
.speaker-controls-time:hover .reset-button {
opacity: 1;
}
.speaker-controls-time .timer,
.speaker-controls-time .clock {
width: 50%;
}
.speaker-controls-time .timer,
.speaker-controls-time .clock,
.speaker-controls-time .pacing .hours-value,
.speaker-controls-time .pacing .minutes-value,
.speaker-controls-time .pacing .seconds-value {
font-size: 1.9em;
}
.speaker-controls-time .timer {
float: left;
}
.speaker-controls-time .clock {
float: right;
text-align: right;
}
.speaker-controls-time span.mute {
opacity: 0.3;
}
.speaker-controls-time .pacing-title {
margin-top: 5px;
}
.speaker-controls-time .pacing.ahead {
color: blue;
}
.speaker-controls-time .pacing.on-track {
color: green;
}
.speaker-controls-time .pacing.behind {
color: red;
}
.speaker-controls-notes {
padding: 10px 16px;
}
.speaker-controls-notes .value {
margin-top: 5px;
line-height: 1.4;
font-size: 1.2em;
}
/* Layout selector */
#speaker-layout {
position: absolute;
top: 10px;
right: 10px;
color: #222;
z-index: 10;
}
#speaker-layout select {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
border: 0;
box-shadow: 0;
cursor: pointer;
opacity: 0;
font-size: 1em;
background-color: transparent;
-moz-appearance: none;
-webkit-appearance: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
#speaker-layout select:focus {
outline: none;
box-shadow: none;
}
.clear {
clear: both;
}
/* Speaker layout: Wide */
body[data-speaker-layout="wide"] #current-slide,
body[data-speaker-layout="wide"] #upcoming-slide {
width: 50%;
height: 45%;
padding: 6px;
}
body[data-speaker-layout="wide"] #current-slide {
top: 0;
left: 0;
}
body[data-speaker-layout="wide"] #upcoming-slide {
top: 0;
left: 50%;
}
body[data-speaker-layout="wide"] #speaker-controls {
top: 45%;
left: 0;
width: 100%;
height: 50%;
font-size: 1.25em;
}
/* Speaker layout: Tall */
body[data-speaker-layout="tall"] #current-slide,
body[data-speaker-layout="tall"] #upcoming-slide {
width: 45%;
height: 50%;
padding: 6px;
}
body[data-speaker-layout="tall"] #current-slide {
top: 0;
left: 0;
}
body[data-speaker-layout="tall"] #upcoming-slide {
top: 50%;
left: 0;
}
body[data-speaker-layout="tall"] #speaker-controls {
padding-top: 40px;
top: 0;
left: 45%;
width: 55%;
height: 100%;
font-size: 1.25em;
}
/* Speaker layout: Notes only */
body[data-speaker-layout="notes-only"] #current-slide,
body[data-speaker-layout="notes-only"] #upcoming-slide {
display: none;
}
body[data-speaker-layout="notes-only"] #speaker-controls {
padding-top: 40px;
top: 0;
left: 0;
width: 100%;
height: 100%;
font-size: 1.25em;
}
@media screen and (max-width: 1080px) {
body[data-speaker-layout="default"] #speaker-controls {
font-size: 16px;
}
}
@media screen and (max-width: 900px) {
body[data-speaker-layout="default"] #speaker-controls {
font-size: 14px;
}
}
@media screen and (max-width: 800px) {
body[data-speaker-layout="default"] #speaker-controls {
font-size: 12px;
}
}
</style>
</head>
<body>
<div id="connection-status">Loading speaker view...</div>
<div id="current-slide"></div>
<div id="upcoming-slide"><span class="overlay-element label">Upcoming</span></div>
<div id="speaker-controls">
<div class="speaker-controls-time">
<h4 class="label">Time <span class="reset-button">Click to Reset</span></h4>
<div class="clock">
<span class="clock-value">0:00 AM</span>
</div>
<div class="timer">
<span class="hours-value">00</span><span class="minutes-value">:00</span><span class="seconds-value">:00</span>
</div>
<div class="clear"></div>
<h4 class="label pacing-title" style="display: none">Pacing Time to finish current slide</h4>
<div class="pacing" style="display: none">
<span class="hours-value">00</span><span class="minutes-value">:00</span><span class="seconds-value">:00</span>
</div>
</div>
<div class="speaker-controls-notes hidden">
<h4 class="label">Notes</h4>
<div class="value"></div>
</div>
</div>
<div id="speaker-layout" class="overlay-element interactive">
<span class="speaker-layout-label"></span>
<select class="speaker-layout-dropdown"></select>
</div>
<script src="../../plugin/markdown/marked.js"></script>
<script>
(function() {
var notes,
notesValue,
currentState,
currentSlide,
upcomingSlide,
layoutLabel,
layoutDropdown,
pendingCalls = {},
lastRevealApiCallId = 0,
connected = false;
var SPEAKER_LAYOUTS = {
'default': 'Default',
'wide': 'Wide',
'tall': 'Tall',
'notes-only': 'Notes only'
};
setupLayout();
var connectionStatus = document.querySelector( '#connection-status' );
var connectionTimeout = setTimeout( function() {
connectionStatus.innerHTML = 'Error connecting to main window.<br>Please try closing and reopening the speaker view.';
}, 5000 );
window.addEventListener( 'message', function( event ) {
clearTimeout( connectionTimeout );
connectionStatus.style.display = 'none';
var data = JSON.parse( event.data );
// The overview mode is only useful to the reveal.js instance
// where navigation occurs so we don't sync it
if( data.state ) delete data.state.overview;
// Messages sent by the notes plugin inside of the main window
if( data && data.namespace === 'reveal-notes' ) {
if( data.type === 'connect' ) {
handleConnectMessage( data );
}
else if( data.type === 'state' ) {
handleStateMessage( data );
}
else if( data.type === 'return' ) {
pendingCalls[data.callId](data.result);
delete pendingCalls[data.callId];
}
}
// Messages sent by the reveal.js inside of the current slide preview
else if( data && data.namespace === 'reveal' ) {
if( /ready/.test( data.eventName ) ) {
// Send a message back to notify that the handshake is complete
window.opener.postMessage( JSON.stringify({ namespace: 'reveal-notes', type: 'connected'} ), '*' );
}
else if( /slidechanged|fragmentshown|fragmenthidden|paused|resumed/.test( data.eventName ) && currentState !== JSON.stringify( data.state ) ) {
window.opener.postMessage( JSON.stringify({ method: 'setState', args: [ data.state ]} ), '*' );
}
}
} );
/**
* Asynchronously calls the Reveal.js API of the main frame.
*/
function callRevealApi( methodName, methodArguments, callback ) {
var callId = ++lastRevealApiCallId;
pendingCalls[callId] = callback;
window.opener.postMessage( JSON.stringify( {
namespace: 'reveal-notes',
type: 'call',
callId: callId,
methodName: methodName,
arguments: methodArguments
} ), '*' );
}
/**
* Called when the main window is trying to establish a
* connection.
*/
function handleConnectMessage( data ) {
if( connected === false ) {
connected = true;
setupIframes( data );
setupKeyboard();
setupNotes();
setupTimer();
}
}
/**
* Called when the main window sends an updated state.
*/
function handleStateMessage( data ) {
// Store the most recently set state to avoid circular loops
// applying the same state
currentState = JSON.stringify( data.state );
// No need for updating the notes in case of fragment changes
if ( data.notes ) {
notes.classList.remove( 'hidden' );
notesValue.style.whiteSpace = data.whitespace;
if( data.markdown ) {
notesValue.innerHTML = marked( data.notes );
}
else {
notesValue.innerHTML = data.notes;
}
}
else {
notes.classList.add( 'hidden' );
}
// Update the note slides
currentSlide.contentWindow.postMessage( JSON.stringify({ method: 'setState', args: [ data.state ] }), '*' );
upcomingSlide.contentWindow.postMessage( JSON.stringify({ method: 'setState', args: [ data.state ] }), '*' );
upcomingSlide.contentWindow.postMessage( JSON.stringify({ method: 'next' }), '*' );
}
// Limit to max one state update per X ms
handleStateMessage = debounce( handleStateMessage, 200 );
/**
* Forward keyboard events to the current slide window.
* This enables keyboard events to work even if focus
* isn't set on the current slide iframe.
*
* Block F5 default handling, it reloads and disconnects
* the speaker notes window.
*/
function setupKeyboard() {
document.addEventListener( 'keydown', function( event ) {
if( event.keyCode === 116 || ( event.metaKey && event.keyCode === 82 ) ) {
event.preventDefault();
return false;
}
currentSlide.contentWindow.postMessage( JSON.stringify({ method: 'triggerKey', args: [ event.keyCode ] }), '*' );
} );
}
/**
* Creates the preview iframes.
*/
function setupIframes( data ) {
var params = [
'receiver',
'progress=false',
'history=false',
'transition=none',
'autoSlide=0',
'backgroundTransition=none'
].join( '&' );
var urlSeparator = /\?/.test(data.url) ? '&' : '?';
var hash = '#/' + data.state.indexh + '/' + data.state.indexv;
var currentURL = data.url + urlSeparator + params + '&postMessageEvents=true' + hash;
var upcomingURL = data.url + urlSeparator + params + '&controls=false' + hash;
currentSlide = document.createElement( 'iframe' );
currentSlide.setAttribute( 'width', 1280 );
currentSlide.setAttribute( 'height', 1024 );
currentSlide.setAttribute( 'src', currentURL );
document.querySelector( '#current-slide' ).appendChild( currentSlide );
upcomingSlide = document.createElement( 'iframe' );
upcomingSlide.setAttribute( 'width', 640 );
upcomingSlide.setAttribute( 'height', 512 );
upcomingSlide.setAttribute( 'src', upcomingURL );
document.querySelector( '#upcoming-slide' ).appendChild( upcomingSlide );
}
/**
* Setup the notes UI.
*/
function setupNotes() {
notes = document.querySelector( '.speaker-controls-notes' );
notesValue = document.querySelector( '.speaker-controls-notes .value' );
}
function getTimings( callback ) {
callRevealApi( 'getSlidesAttributes', [], function ( slideAttributes ) {
callRevealApi( 'getConfig', [], function ( config ) {
var totalTime = config.totalTime;
var minTimePerSlide = config.minimumTimePerSlide || 0;
var defaultTiming = config.defaultTiming;
if ((defaultTiming == null) && (totalTime == null)) {
callback(null);
return;
}
// Setting totalTime overrides defaultTiming
if (totalTime) {
defaultTiming = 0;
}
var timings = [];
for ( var i in slideAttributes ) {
var slide = slideAttributes[ i ];
var timing = defaultTiming;
if( slide.hasOwnProperty( 'data-timing' )) {
var t = slide[ 'data-timing' ];
timing = parseInt(t);
if( isNaN(timing) ) {
console.warn("Could not parse timing '" + t + "' of slide " + i + "; using default of " + defaultTiming);
timing = defaultTiming;
}
}
timings.push(timing);
}
if ( totalTime ) {
// After we've allocated time to individual slides, we summarize it and
// subtract it from the total time
var remainingTime = totalTime - timings.reduce( function(a, b) { return a + b; }, 0 );
// The remaining time is divided by the number of slides that have 0 seconds
// allocated at the moment, giving the average time-per-slide on the remaining slides
var remainingSlides = (timings.filter( function(x) { return x == 0 }) ).length
var timePerSlide = Math.round( remainingTime / remainingSlides, 0 )
// And now we replace every zero-value timing with that average
timings = timings.map( function(x) { return (x==0 ? timePerSlide : x) } );
}
var slidesUnderMinimum = timings.filter( function(x) { return (x < minTimePerSlide) } ).length
if ( slidesUnderMinimum ) {
message = "The pacing time for " + slidesUnderMinimum + " slide(s) is under the configured minimum of " + minTimePerSlide + " seconds. Check the data-timing attribute on individual slides, or consider increasing the totalTime or minimumTimePerSlide configuration options (or removing some slides).";
alert(message);
}
callback( timings );
} );
} );
}
/**
* Return the number of seconds allocated for presenting
* all slides up to and including this one.
*/
function getTimeAllocated( timings, callback ) {
callRevealApi( 'getSlidePastCount', [], function ( currentSlide ) {
var allocated = 0;
for (var i in timings.slice(0, currentSlide + 1)) {
allocated += timings[i];
}
callback( allocated );
} );
}
/**
* Create the timer and clock and start updating them
* at an interval.
*/
function setupTimer() {
var start = new Date(),
timeEl = document.querySelector( '.speaker-controls-time' ),
clockEl = timeEl.querySelector( '.clock-value' ),
hoursEl = timeEl.querySelector( '.hours-value' ),
minutesEl = timeEl.querySelector( '.minutes-value' ),
secondsEl = timeEl.querySelector( '.seconds-value' ),
pacingTitleEl = timeEl.querySelector( '.pacing-title' ),
pacingEl = timeEl.querySelector( '.pacing' ),
pacingHoursEl = pacingEl.querySelector( '.hours-value' ),
pacingMinutesEl = pacingEl.querySelector( '.minutes-value' ),
pacingSecondsEl = pacingEl.querySelector( '.seconds-value' );
var timings = null;
getTimings( function ( _timings ) {
timings = _timings;
if (_timings !== null) {
pacingTitleEl.style.removeProperty('display');
pacingEl.style.removeProperty('display');
}
// Update once directly
_updateTimer();
// Then update every second
setInterval( _updateTimer, 1000 );
} );
function _resetTimer() {
if (timings == null) {
start = new Date();
_updateTimer();
}
else {
// Reset timer to beginning of current slide
getTimeAllocated( timings, function ( slideEndTimingSeconds ) {
var slideEndTiming = slideEndTimingSeconds * 1000;
callRevealApi( 'getSlidePastCount', [], function ( currentSlide ) {
var currentSlideTiming = timings[currentSlide] * 1000;
var previousSlidesTiming = slideEndTiming - currentSlideTiming;
var now = new Date();
start = new Date(now.getTime() - previousSlidesTiming);
_updateTimer();
} );
} );
}
}
timeEl.addEventListener( 'click', function() {
_resetTimer();
return false;
} );
function _displayTime( hrEl, minEl, secEl, time) {
var sign = Math.sign(time) == -1 ? "-" : "";
time = Math.abs(Math.round(time / 1000));
var seconds = time % 60;
var minutes = Math.floor( time / 60 ) % 60 ;
var hours = Math.floor( time / ( 60 * 60 )) ;
hrEl.innerHTML = sign + zeroPadInteger( hours );
if (hours == 0) {
hrEl.classList.add( 'mute' );
}
else {
hrEl.classList.remove( 'mute' );
}
minEl.innerHTML = ':' + zeroPadInteger( minutes );
if (hours == 0 && minutes == 0) {
minEl.classList.add( 'mute' );
}
else {
minEl.classList.remove( 'mute' );
}
secEl.innerHTML = ':' + zeroPadInteger( seconds );
}
function _updateTimer() {
var diff, hours, minutes, seconds,
now = new Date();
diff = now.getTime() - start.getTime();
clockEl.innerHTML = now.toLocaleTimeString( 'en-US', { hour12: true, hour: '2-digit', minute:'2-digit' } );
_displayTime( hoursEl, minutesEl, secondsEl, diff );
if (timings !== null) {
_updatePacing(diff);
}
}
function _updatePacing(diff) {
getTimeAllocated( timings, function ( slideEndTimingSeconds ) {
var slideEndTiming = slideEndTimingSeconds * 1000;
callRevealApi( 'getSlidePastCount', [], function ( currentSlide ) {
var currentSlideTiming = timings[currentSlide] * 1000;
var timeLeftCurrentSlide = slideEndTiming - diff;
if (timeLeftCurrentSlide < 0) {
pacingEl.className = 'pacing behind';
}
else if (timeLeftCurrentSlide < currentSlideTiming) {
pacingEl.className = 'pacing on-track';
}
else {
pacingEl.className = 'pacing ahead';
}
_displayTime( pacingHoursEl, pacingMinutesEl, pacingSecondsEl, timeLeftCurrentSlide );
} );
} );
}
}
/**
* Sets up the speaker view layout and layout selector.
*/
function setupLayout() {
layoutDropdown = document.querySelector( '.speaker-layout-dropdown' );
layoutLabel = document.querySelector( '.speaker-layout-label' );
// Render the list of available layouts
for( var id in SPEAKER_LAYOUTS ) {
var option = document.createElement( 'option' );
option.setAttribute( 'value', id );
option.textContent = SPEAKER_LAYOUTS[ id ];
layoutDropdown.appendChild( option );
}
// Monitor the dropdown for changes
layoutDropdown.addEventListener( 'change', function( event ) {
setLayout( layoutDropdown.value );
}, false );
// Restore any currently persisted layout
setLayout( getLayout() );
}
/**
* Sets a new speaker view layout. The layout is persisted
* in local storage.
*/
function setLayout( value ) {
var title = SPEAKER_LAYOUTS[ value ];
layoutLabel.innerHTML = 'Layout' + ( title ? ( ': ' + title ) : '' );
layoutDropdown.value = value;
document.body.setAttribute( 'data-speaker-layout', value );
// Persist locally
if( supportsLocalStorage() ) {
window.localStorage.setItem( 'reveal-speaker-layout', value );
}
}
/**
* Returns the ID of the most recently set speaker layout
* or our default layout if none has been set.
*/
function getLayout() {
if( supportsLocalStorage() ) {
var layout = window.localStorage.getItem( 'reveal-speaker-layout' );
if( layout ) {
return layout;
}
}
// Default to the first record in the layouts hash
for( var id in SPEAKER_LAYOUTS ) {
return id;
}
}
function supportsLocalStorage() {
try {
localStorage.setItem('test', 'test');
localStorage.removeItem('test');
return true;
}
catch( e ) {
return false;
}
}
function zeroPadInteger( num ) {
var str = '00' + parseInt( num );
return str.substring( str.length - 2 );
}
/**
* Limits the frequency at which a function can be called.
*/
function debounce( fn, ms ) {
var lastTime = 0,
timeout;
return function() {
var args = arguments;
var context = this;
clearTimeout( timeout );
var timeSinceLastCall = Date.now() - lastTime;
if( timeSinceLastCall > ms ) {
fn.apply( context, args );
lastTime = Date.now();
}
else {
timeout = setTimeout( function() {
fn.apply( context, args );
lastTime = Date.now();
}, ms - timeSinceLastCall );
}
}
}
})();
</script>
</body>
</html>

178
plugin/notes/notes.js Normal file
View File

@@ -0,0 +1,178 @@
/**
* Handles opening of and synchronization with the reveal.js
* notes window.
*
* Handshake process:
* 1. This window posts 'connect' to notes window
* - Includes URL of presentation to show
* 2. Notes window responds with 'connected' when it is available
* 3. This window proceeds to send the current presentation state
* to the notes window
*/
var RevealNotes = (function() {
var notesPopup = null;
function openNotes( notesFilePath ) {
if (notesPopup && !notesPopup.closed) {
notesPopup.focus();
return;
}
if( !notesFilePath ) {
var jsFileLocation = document.querySelector('script[src$="notes.js"]').src; // this js file path
jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, ''); // the js folder path
notesFilePath = jsFileLocation + 'notes.html';
}
notesPopup = window.open( notesFilePath, 'reveal.js - Notes', 'width=1100,height=700' );
if( !notesPopup ) {
alert( 'Speaker view popup failed to open. Please make sure popups are allowed and reopen the speaker view.' );
return;
}
/**
* Connect to the notes window through a postmessage handshake.
* Using postmessage enables us to work in situations where the
* origins differ, such as a presentation being opened from the
* file system.
*/
function connect() {
// Keep trying to connect until we get a 'connected' message back
var connectInterval = setInterval( function() {
notesPopup.postMessage( JSON.stringify( {
namespace: 'reveal-notes',
type: 'connect',
url: window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search,
state: Reveal.getState()
} ), '*' );
}, 500 );
window.addEventListener( 'message', function( event ) {
var data = JSON.parse( event.data );
if( data && data.namespace === 'reveal-notes' && data.type === 'connected' ) {
clearInterval( connectInterval );
onConnected();
}
if( data && data.namespace === 'reveal-notes' && data.type === 'call' ) {
callRevealApi( data.methodName, data.arguments, data.callId );
}
} );
}
/**
* Calls the specified Reveal.js method with the provided argument
* and then pushes the result to the notes frame.
*/
function callRevealApi( methodName, methodArguments, callId ) {
var result = Reveal[methodName].apply( Reveal, methodArguments );
notesPopup.postMessage( JSON.stringify( {
namespace: 'reveal-notes',
type: 'return',
result: result,
callId: callId
} ), '*' );
}
/**
* Posts the current slide data to the notes window
*/
function post( event ) {
var slideElement = Reveal.getCurrentSlide(),
notesElement = slideElement.querySelector( 'aside.notes' ),
fragmentElement = slideElement.querySelector( '.current-fragment' );
var messageData = {
namespace: 'reveal-notes',
type: 'state',
notes: '',
markdown: false,
whitespace: 'normal',
state: Reveal.getState()
};
// Look for notes defined in a slide attribute
if( slideElement.hasAttribute( 'data-notes' ) ) {
messageData.notes = slideElement.getAttribute( 'data-notes' );
messageData.whitespace = 'pre-wrap';
}
// Look for notes defined in a fragment
if( fragmentElement ) {
var fragmentNotes = fragmentElement.querySelector( 'aside.notes' );
if( fragmentNotes ) {
notesElement = fragmentNotes;
}
else if( fragmentElement.hasAttribute( 'data-notes' ) ) {
messageData.notes = fragmentElement.getAttribute( 'data-notes' );
messageData.whitespace = 'pre-wrap';
// In case there are slide notes
notesElement = null;
}
}
// Look for notes defined in an aside element
if( notesElement ) {
messageData.notes = notesElement.innerHTML;
messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string';
}
notesPopup.postMessage( JSON.stringify( messageData ), '*' );
}
/**
* Called once we have established a connection to the notes
* window.
*/
function onConnected() {
// Monitor events that trigger a change in state
Reveal.addEventListener( 'slidechanged', post );
Reveal.addEventListener( 'fragmentshown', post );
Reveal.addEventListener( 'fragmenthidden', post );
Reveal.addEventListener( 'overviewhidden', post );
Reveal.addEventListener( 'overviewshown', post );
Reveal.addEventListener( 'paused', post );
Reveal.addEventListener( 'resumed', post );
// Post the initial state
post();
}
connect();
}
return {
init: function() {
if( !/receiver/i.test( window.location.search ) ) {
// If the there's a 'notes' query set, open directly
if( window.location.search.match( /(\?|\&)notes/gi ) !== null ) {
openNotes();
}
// Open the notes when the 's' key is hit
Reveal.addKeyBinding({keyCode: 83, key: 'S', description: 'Speaker notes view'}, function() {
openNotes();
} );
}
},
open: openNotes
};
})();
Reveal.registerPlugin( 'notes', RevealNotes );

View File

@@ -0,0 +1,67 @@
/**
* phantomjs script for printing presentations to PDF.
*
* Example:
* phantomjs print-pdf.js "http://revealjs.com?print-pdf" reveal-demo.pdf
*
* @author Manuel Bieh (https://github.com/manuelbieh)
* @author Hakim El Hattab (https://github.com/hakimel)
* @author Manuel Riezebosch (https://github.com/riezebosch)
*/
// html2pdf.js
var system = require( 'system' );
var probePage = new WebPage();
var printPage = new WebPage();
var inputFile = system.args[1] || 'index.html?print-pdf';
var outputFile = system.args[2] || 'slides.pdf';
if( outputFile.match( /\.pdf$/gi ) === null ) {
outputFile += '.pdf';
}
console.log( 'Export PDF: Reading reveal.js config [1/4]' );
probePage.open( inputFile, function( status ) {
console.log( 'Export PDF: Preparing print layout [2/4]' );
var config = probePage.evaluate( function() {
return Reveal.getConfig();
} );
if( config ) {
printPage.paperSize = {
width: Math.floor( config.width * ( 1 + config.margin ) ),
height: Math.floor( config.height * ( 1 + config.margin ) ),
border: 0
};
printPage.open( inputFile, function( status ) {
console.log( 'Export PDF: Preparing pdf [3/4]')
printPage.evaluate( function() {
Reveal.isReady() ? window.callPhantom() : Reveal.addEventListener( 'pdf-ready', window.callPhantom );
} );
} );
printPage.onCallback = function( data ) {
// For some reason we need to "jump the queue" for syntax highlighting to work.
// See: http://stackoverflow.com/a/3580132/129269
setTimeout( function() {
console.log( 'Export PDF: Writing file [4/4]' );
printPage.render( outputFile );
console.log( 'Export PDF: Finished successfully!' );
phantom.exit();
}, 0 );
};
}
else {
console.log( 'Export PDF: Unable to read reveal.js config. Make sure the input address points to a reveal.js page.' );
phantom.exit( 1 );
}
} );

206
plugin/search/search.js Normal file
View File

@@ -0,0 +1,206 @@
/*
* Handles finding a text string anywhere in the slides and showing the next occurrence to the user
* by navigatating to that slide and highlighting it.
*
* By Jon Snyder <snyder.jon@gmail.com>, February 2013
*/
var RevealSearch = (function() {
var matchedSlides;
var currentMatchedIndex;
var searchboxDirty;
var myHilitor;
// Original JavaScript code by Chirp Internet: www.chirp.com.au
// Please acknowledge use of this code by including this header.
// 2/2013 jon: modified regex to display any match, not restricted to word boundaries.
function Hilitor(id, tag)
{
var targetNode = document.getElementById(id) || document.body;
var hiliteTag = tag || "EM";
var skipTags = new RegExp("^(?:" + hiliteTag + "|SCRIPT|FORM)$");
var colors = ["#ff6", "#a0ffff", "#9f9", "#f99", "#f6f"];
var wordColor = [];
var colorIdx = 0;
var matchRegex = "";
var matchingSlides = [];
this.setRegex = function(input)
{
input = input.replace(/^[^\w]+|[^\w]+$/g, "").replace(/[^\w'-]+/g, "|");
matchRegex = new RegExp("(" + input + ")","i");
}
this.getRegex = function()
{
return matchRegex.toString().replace(/^\/\\b\(|\)\\b\/i$/g, "").replace(/\|/g, " ");
}
// recursively apply word highlighting
this.hiliteWords = function(node)
{
if(node == undefined || !node) return;
if(!matchRegex) return;
if(skipTags.test(node.nodeName)) return;
if(node.hasChildNodes()) {
for(var i=0; i < node.childNodes.length; i++)
this.hiliteWords(node.childNodes[i]);
}
if(node.nodeType == 3) { // NODE_TEXT
if((nv = node.nodeValue) && (regs = matchRegex.exec(nv))) {
//find the slide's section element and save it in our list of matching slides
var secnode = node;
while (secnode != null && secnode.nodeName != 'SECTION') {
secnode = secnode.parentNode;
}
var slideIndex = Reveal.getIndices(secnode);
var slidelen = matchingSlides.length;
var alreadyAdded = false;
for (var i=0; i < slidelen; i++) {
if ( (matchingSlides[i].h === slideIndex.h) && (matchingSlides[i].v === slideIndex.v) ) {
alreadyAdded = true;
}
}
if (! alreadyAdded) {
matchingSlides.push(slideIndex);
}
if(!wordColor[regs[0].toLowerCase()]) {
wordColor[regs[0].toLowerCase()] = colors[colorIdx++ % colors.length];
}
var match = document.createElement(hiliteTag);
match.appendChild(document.createTextNode(regs[0]));
match.style.backgroundColor = wordColor[regs[0].toLowerCase()];
match.style.fontStyle = "inherit";
match.style.color = "#000";
var after = node.splitText(regs.index);
after.nodeValue = after.nodeValue.substring(regs[0].length);
node.parentNode.insertBefore(match, after);
}
}
};
// remove highlighting
this.remove = function()
{
var arr = document.getElementsByTagName(hiliteTag);
while(arr.length && (el = arr[0])) {
el.parentNode.replaceChild(el.firstChild, el);
}
};
// start highlighting at target node
this.apply = function(input)
{
if(input == undefined || !input) return;
this.remove();
this.setRegex(input);
this.hiliteWords(targetNode);
return matchingSlides;
};
}
function openSearch() {
//ensure the search term input dialog is visible and has focus:
var inputboxdiv = document.getElementById("searchinputdiv");
var inputbox = document.getElementById("searchinput");
inputboxdiv.style.display = "inline";
inputbox.focus();
inputbox.select();
}
function closeSearch() {
var inputboxdiv = document.getElementById("searchinputdiv");
inputboxdiv.style.display = "none";
if(myHilitor) myHilitor.remove();
}
function toggleSearch() {
var inputboxdiv = document.getElementById("searchinputdiv");
if (inputboxdiv.style.display !== "inline") {
openSearch();
}
else {
closeSearch();
}
}
function doSearch() {
//if there's been a change in the search term, perform a new search:
if (searchboxDirty) {
var searchstring = document.getElementById("searchinput").value;
if (searchstring === '') {
if(myHilitor) myHilitor.remove();
matchedSlides = null;
}
else {
//find the keyword amongst the slides
myHilitor = new Hilitor("slidecontent");
matchedSlides = myHilitor.apply(searchstring);
currentMatchedIndex = 0;
}
}
if (matchedSlides) {
//navigate to the next slide that has the keyword, wrapping to the first if necessary
if (matchedSlides.length && (matchedSlides.length <= currentMatchedIndex)) {
currentMatchedIndex = 0;
}
if (matchedSlides.length > currentMatchedIndex) {
Reveal.slide(matchedSlides[currentMatchedIndex].h, matchedSlides[currentMatchedIndex].v);
currentMatchedIndex++;
}
}
}
var dom = {};
dom.wrapper = document.querySelector( '.reveal' );
if( !dom.wrapper.querySelector( '.searchbox' ) ) {
var searchElement = document.createElement( 'div' );
searchElement.id = "searchinputdiv";
searchElement.classList.add( 'searchdiv' );
searchElement.style.position = 'absolute';
searchElement.style.top = '10px';
searchElement.style.right = '10px';
searchElement.style.zIndex = 10;
//embedded base64 search icon Designed by Sketchdock - http://www.sketchdock.com/:
searchElement.innerHTML = '<span><input type="search" id="searchinput" class="searchinput" style="vertical-align: top;"/><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJiSURBVHjatFZNaxNBGH5md+Mmu92NVdKDRipSAyqCghgQD4L4cRe86UUtAQ+eFCxoa4/25EXBFi8eBE+eRPoDhB6KgiiixdAPCEkx2pjvTXadd9yNsflwuyUDD/O+u8PzzDPvzOwyx3EwyCZhwG3gAkp7MnpjgbopjsltcD4gjuXZZKeAR348MYLYTm3LzOs/y3j3JTfZxgXWXmTuwPHIc4VmoOmv5IrI53+AO2DdHLjkDWQ3GoEEVFXtXQOvkSnPWcyUceviLhwbDYv8/XIVj97kse7TodLvZXxYxrPUHkQ1ufXs3FEdybEIxucySOesoNvUgWU1cP3MkCBfTFdw9fGaAMVmRELq7LBw2Q3/FaAxxWIRpw+ZIr/7IouPqzUBiqmdHAv7EuhRAwf1er2Vy4x1jW3b2d5Jfvu5IPp7l2LYbcgCFFNb+FoJ7oBqEAqFMPNqFcmEgVMJDfMT+1tvN0pNjERlMS6QA5pFOKxiKVPFhakPeL3It+WGJUDxt2wFR+JhzI7v5ctkd8DXOZAkCYYxhO+lKm4+Xfqz/rIixBuNBl7eOYzkQQNzqX249mRl6zUgEcYkaJrGhUwBinVdh6IouPzwE6/DL5w4oLkH8y981aDf+uq6hlKpJESiUdNfDZi7/ehG9K6KfiA3pml0PLcsq+cSMTj2NL9ukc4UOmz7AZ3+crkC4mHujFvXNaMFB3bEr8xPS6p5O+jXxq4VZtaen7/PwzrntjcLUE0iHPS1Ud1cdiEJl/8WivZk0wXd7zWOMkeF8s0CcAmkNrC2nvXZDbbbN73ccYnZoH9bfgswAFzAe9/h3dbKAAAAAElFTkSuQmCC" id="searchbutton" class="searchicon" style="vertical-align: top; margin-top: -1px;"/></span>';
dom.wrapper.appendChild( searchElement );
}
document.getElementById( 'searchbutton' ).addEventListener( 'click', function(event) {
doSearch();
}, false );
document.getElementById( 'searchinput' ).addEventListener( 'keyup', function( event ) {
switch (event.keyCode) {
case 13:
event.preventDefault();
doSearch();
searchboxDirty = false;
break;
default:
searchboxDirty = true;
}
}, false );
document.addEventListener( 'keydown', function( event ) {
if( event.key == "F" && (event.ctrlKey || event.metaKey) ) { //Control+Shift+f
event.preventDefault();
toggleSearch();
}
}, false );
if( window.Reveal ) Reveal.registerKeyboardShortcut( 'CTRL + Shift + F', 'Search' );
closeSearch();
return { open: openSearch };
})();

View File

@@ -1,35 +0,0 @@
(function() {
// don't emit events from inside the previews themselves
if ( window.location.search.match( /receiver/gi ) ) { return; }
var socket = io.connect(window.location.origin);
var socketId = Math.random().toString().slice(2);
console.log('View slide notes at ' + window.location.origin + '/notes/' + socketId);
Reveal.addEventListener( 'slidechanged', function( event ) {
var nextindexh;
var nextindexv;
var slideElement = event.currentSlide;
if (slideElement.nextElementSibling && slideElement.parentNode.nodeName == 'SECTION') {
nextindexh = event.indexh;
nextindexv = event.indexv + 1;
} else {
nextindexh = event.indexh + 1;
nextindexv = 0;
}
var notes = slideElement.querySelector('aside.notes');
var slideData = {
notes : notes ? notes.innerHTML : '',
indexh : event.indexh,
indexv : event.indexv,
nextindexh : nextindexh,
nextindexv : nextindexv,
socketId : socketId
};
socket.emit('slidechanged', slideData);
} );
}());

View File

@@ -1,55 +0,0 @@
var express = require('express');
var fs = require('fs');
var io = require('socket.io');
var _ = require('underscore');
var Mustache = require('mustache');
var app = express.createServer();
var staticDir = express.static;
io = io.listen(app);
var opts = {
port : 1947,
baseDir : __dirname + '/../../'
};
io.sockets.on('connection', function(socket) {
socket.on('slidechanged', function(slideData) {
socket.broadcast.emit('slidedata', slideData);
});
});
app.configure(function() {
[ 'css', 'js', 'plugin', 'lib' ].forEach(function(dir) {
app.use('/' + dir, staticDir(opts.baseDir + dir));
});
});
app.get("/", function(req, res) {
fs.createReadStream(opts.baseDir + '/index.html').pipe(res);
});
app.get("/notes/:socketId", function(req, res) {
fs.readFile(opts.baseDir + 'plugin/speakernotes/notes.html', function(err, data) {
res.send(Mustache.to_html(data.toString(), {
socketId : req.params.socketId
}));
});
// fs.createReadStream(opts.baseDir + 'speakernotes/notes.html').pipe(res);
});
// Actually listen
app.listen(opts.port || null);
var brown = '\033[33m',
green = '\033[32m',
reset = '\033[0m';
var slidesLocation = "http://localhost" + ( opts.port ? ( ':' + opts.port ) : '' );
console.log( brown + "reveal.js - Speaker Notes" + reset );
console.log( "1. Open the slides at " + green + slidesLocation + reset );
console.log( "2. Click on the link your JS console to go to the notes page" );
console.log( "3. Advance through your slides and your notes will advance automatically" );

View File

@@ -1,109 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>reveal.js - Slide Notes</title>
<style>
body {
font-family: Helvetica;
}
#notes {
font-size: 24px;
width: 640px;
margin-top: 5px;
}
#wrap-current-slide {
width: 640px;
height: 512px;
float: left;
overflow: hidden;
}
#current-slide {
width: 1280px;
height: 1024px;
border: none;
-moz-transform: scale(0.5);
-moz-transform-origin: 0 0;
-o-transform: scale(0.5);
-o-transform-origin: 0 0;
-webkit-transform: scale(0.5);
-webkit-transform-origin: 0 0;
}
#wrap-next-slide {
width: 320px;
height: 256px;
float: left;
margin: 0 0 0 10px;
overflow: hidden;
}
#next-slide {
width: 1280px;
height: 1024px;
border: none;
-moz-transform: scale(0.25);
-moz-transform-origin: 0 0;
-o-transform: scale(0.25);
-o-transform-origin: 0 0;
-webkit-transform: scale(0.25);
-webkit-transform-origin: 0 0;
}
.slides {
position: relative;
margin-bottom: 10px;
border: 1px solid black;
border-radius: 2px;
background: rgb(28, 30, 32);
}
.slides span {
position: absolute;
top: 3px;
left: 3px;
font-weight: bold;
font-size: 14px;
color: rgba( 255, 255, 255, 0.9 );
}
</style>
</head>
<body>
<div id="wrap-current-slide" class="slides">
<iframe src="/?receiver" width="1280" height="1024" id="current-slide"></iframe>
</div>
<div id="wrap-next-slide" class="slides">
<iframe src="/?receiver" width="640" height="512" id="next-slide"></iframe>
<span>UPCOMING:</span>
</div>
<div id="notes"></div>
<script src="/socket.io/socket.io.js"></script>
<script>
var socketId = '{{socketId}}';
var socket = io.connect(window.location.origin);
var notes = document.getElementById('notes');
var currentSlide = document.getElementById('current-slide');
var nextSlide = document.getElementById('next-slide');
socket.on('slidedata', function(data) {
// ignore data from sockets that aren't ours
if (data.socketId !== socketId) { return; }
notes.innerHTML = data.notes;
currentSlide.contentWindow.Reveal.navigateTo(data.indexh, data.indexv);
nextSlide.contentWindow.Reveal.navigateTo(data.nextindexh, data.nextindexv);
});
</script>
</body>
</html>

277
plugin/zoom-js/zoom.js Normal file
View File

@@ -0,0 +1,277 @@
// Custom reveal.js integration
var RevealZoom = (function(){
return {
init: function() {
Reveal.getRevealElement().addEventListener( 'mousedown', function( event ) {
var defaultModifier = /Linux/.test( window.navigator.platform ) ? 'ctrl' : 'alt';
var modifier = ( Reveal.getConfig().zoomKey ? Reveal.getConfig().zoomKey : defaultModifier ) + 'Key';
var zoomLevel = ( Reveal.getConfig().zoomLevel ? Reveal.getConfig().zoomLevel : 2 );
if( event[ modifier ] && !Reveal.isOverview() ) {
event.preventDefault();
zoom.to({
x: event.clientX,
y: event.clientY,
scale: zoomLevel,
pan: false
});
}
} );
}
}
})();
Reveal.registerPlugin( 'zoom', RevealZoom );
/*!
* zoom.js 0.3 (modified for use with reveal.js)
* http://lab.hakim.se/zoom-js
* MIT licensed
*
* Copyright (C) 2011-2014 Hakim El Hattab, http://hakim.se
*/
var zoom = (function(){
// The current zoom level (scale)
var level = 1;
// The current mouse position, used for panning
var mouseX = 0,
mouseY = 0;
// Timeout before pan is activated
var panEngageTimeout = -1,
panUpdateInterval = -1;
// Check for transform support so that we can fallback otherwise
var supportsTransforms = '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;
if( supportsTransforms ) {
// The easing that will be applied when we zoom in/out
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';
}
// Zoom out if the user hits escape
document.addEventListener( 'keyup', function( event ) {
if( level !== 1 && event.keyCode === 27 ) {
zoom.out();
}
} );
// Monitor mouse movement for panning
document.addEventListener( 'mousemove', function( event ) {
if( level !== 1 ) {
mouseX = event.clientX;
mouseY = event.clientY;
}
} );
/**
* Applies the CSS required to zoom in, prefers the use of CSS3
* transforms but falls back on zoom for IE.
*
* @param {Object} rect
* @param {Number} scale
*/
function magnify( rect, scale ) {
var scrollOffset = getScrollOffset();
// Ensure a width/height is set
rect.width = rect.width || 1;
rect.height = rect.height || 1;
// Center the rect within the zoomed viewport
rect.x -= ( window.innerWidth - ( rect.width * scale ) ) / 2;
rect.y -= ( window.innerHeight - ( rect.height * scale ) ) / 2;
if( supportsTransforms ) {
// Reset
if( scale === 1 ) {
document.body.style.transform = '';
document.body.style.OTransform = '';
document.body.style.msTransform = '';
document.body.style.MozTransform = '';
document.body.style.WebkitTransform = '';
}
// Scale
else {
var origin = scrollOffset.x +'px '+ scrollOffset.y +'px',
transform = 'translate('+ -rect.x +'px,'+ -rect.y +'px) scale('+ scale +')';
document.body.style.transformOrigin = origin;
document.body.style.OTransformOrigin = origin;
document.body.style.msTransformOrigin = origin;
document.body.style.MozTransformOrigin = origin;
document.body.style.WebkitTransformOrigin = origin;
document.body.style.transform = transform;
document.body.style.OTransform = transform;
document.body.style.msTransform = transform;
document.body.style.MozTransform = transform;
document.body.style.WebkitTransform = transform;
}
}
else {
// Reset
if( scale === 1 ) {
document.body.style.position = '';
document.body.style.left = '';
document.body.style.top = '';
document.body.style.width = '';
document.body.style.height = '';
document.body.style.zoom = '';
}
// Scale
else {
document.body.style.position = 'relative';
document.body.style.left = ( - ( scrollOffset.x + rect.x ) / scale ) + 'px';
document.body.style.top = ( - ( scrollOffset.y + rect.y ) / scale ) + 'px';
document.body.style.width = ( scale * 100 ) + '%';
document.body.style.height = ( scale * 100 ) + '%';
document.body.style.zoom = scale;
}
}
level = scale;
if( document.documentElement.classList ) {
if( level !== 1 ) {
document.documentElement.classList.add( 'zoomed' );
}
else {
document.documentElement.classList.remove( 'zoomed' );
}
}
}
/**
* Pan the document when the mosue cursor approaches the edges
* of the window.
*/
function pan() {
var range = 0.12,
rangeX = window.innerWidth * range,
rangeY = window.innerHeight * range,
scrollOffset = getScrollOffset();
// Up
if( mouseY < rangeY ) {
window.scroll( scrollOffset.x, scrollOffset.y - ( 1 - ( mouseY / rangeY ) ) * ( 14 / level ) );
}
// Down
else if( mouseY > window.innerHeight - rangeY ) {
window.scroll( scrollOffset.x, scrollOffset.y + ( 1 - ( window.innerHeight - mouseY ) / rangeY ) * ( 14 / level ) );
}
// Left
if( mouseX < rangeX ) {
window.scroll( scrollOffset.x - ( 1 - ( mouseX / rangeX ) ) * ( 14 / level ), scrollOffset.y );
}
// Right
else if( mouseX > window.innerWidth - rangeX ) {
window.scroll( scrollOffset.x + ( 1 - ( window.innerWidth - mouseX ) / rangeX ) * ( 14 / level ), scrollOffset.y );
}
}
function getScrollOffset() {
return {
x: window.scrollX !== undefined ? window.scrollX : window.pageXOffset,
y: window.scrollY !== undefined ? window.scrollY : window.pageYOffset
}
}
return {
/**
* Zooms in on either a rectangle or HTML element.
*
* @param {Object} options
* - element: HTML element to zoom in on
* OR
* - x/y: coordinates in non-transformed space to zoom in on
* - width/height: the portion of the screen to zoom in on
* - scale: can be used instead of width/height to explicitly set scale
*/
to: function( options ) {
// Due to an implementation limitation we can't zoom in
// to another element without zooming out first
if( level !== 1 ) {
zoom.out();
}
else {
options.x = options.x || 0;
options.y = options.y || 0;
// If an element is set, that takes precedence
if( !!options.element ) {
// Space around the zoomed in element to leave on screen
var padding = 20;
var bounds = options.element.getBoundingClientRect();
options.x = bounds.left - padding;
options.y = bounds.top - padding;
options.width = bounds.width + ( padding * 2 );
options.height = bounds.height + ( padding * 2 );
}
// If width/height values are set, calculate scale from those values
if( options.width !== undefined && options.height !== undefined ) {
options.scale = Math.max( Math.min( window.innerWidth / options.width, window.innerHeight / options.height ), 1 );
}
if( options.scale > 1 ) {
options.x *= options.scale;
options.y *= options.scale;
magnify( options, options.scale );
if( options.pan !== false ) {
// Wait with engaging panning as it may conflict with the
// zoom transition
panEngageTimeout = setTimeout( function() {
panUpdateInterval = setInterval( pan, 1000 / 60 );
}, 800 );
}
}
}
},
/**
* Resets the document zoom state to its default.
*/
out: function() {
clearTimeout( panEngageTimeout );
clearInterval( panUpdateInterval );
magnify( { x: 0, y: 0 }, 1 );
level = 1;
},
// Alias
magnify: function( options ) { this.to( options ) },
reset: function() { this.out() },
zoomLevel: function() {
return level;
}
}
})();

View File

@@ -0,0 +1 @@
window.externalScriptSequence += 'A';

View File

@@ -0,0 +1 @@
window.externalScriptSequence += 'B';

View File

@@ -0,0 +1 @@
window.externalScriptSequence += 'C';

View File

@@ -0,0 +1 @@
window.externalScriptSequence += 'D';

View File

@@ -0,0 +1,2 @@
Source: https://freesound.org/people/fennelliott/sounds/379419/
License: CC0 (public domain)

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Some files were not shown because too many files have changed in this diff Show More