Commit Graph

168 Commits (ec72e8cbc7e97af9aae28a37a0b92829b2bfe301)

Author SHA1 Message Date
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 d844195be1 format tweaks markdown.js, remove extra image asset 2013-10-28 09:06:43 -04: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 c7077cf798 configure notes presentation through query string to avoid flicker 2013-10-22 09:21:49 -04:00
Hakim El Hattab 942724238f better check for arrays in markdown plugin 2013-10-11 22:05:43 -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
Lars Kappert 275efa061a Property 'length' is not a variable. 2013-09-29 11:34:17 +02:00
Hakim El Hattab 059311923b serve remotes js from s3 #611 2013-09-19 23:36:39 -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 a3f10e0b0f make sure remotes works without notes plugin being loaded #607 2013-09-14 11:12:21 -04: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
Hakim El Hattab a0f0371fb1 configure notes window presentations to hide needless UI 2013-08-29 09:28:38 -04:00
Hakim El Hattab d9c9474938 markdown refactoring #507 2013-08-27 09:11:43 -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 7e629936e5 always use 'i' as iterator 2013-08-24 11:06:52 -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 631a237b36 merge support for notes when using external markdown 2013-08-20 22:32:19 -04:00
Hakim El Hattab c9853233ae rename math plugin config option 2013-08-18 14:13:55 -04:00
Hakim El Hattab 2bed5833ca remove pointless .call() 2013-08-16 09:30:22 -04:00
Hakim El Hattab b17e285164 mathjax plugin updates #531 2013-08-13 08:53:41 -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 1748a29ff3 first version of mathjax plugin #531 2013-08-12 09:21:38 -04:00
Hakim El Hattab 32818e0149 move leap styles to js #554 2013-08-11 16:37:17 -04: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 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