diff --git a/examples/barebones.html b/examples/barebones.html new file mode 100644 index 0000000..c17546c --- /dev/null +++ b/examples/barebones.html @@ -0,0 +1,11 @@ + diff --git a/examples/index.html b/examples/index.html new file mode 100644 index 0000000..fb0ae22 --- /dev/null +++ b/examples/index.html @@ -0,0 +1,313 @@ + diff --git a/reveal-demo.coffee b/reveal-demo.coffee index 42f40cb..c8b0337 100644 --- a/reveal-demo.coffee +++ b/reveal-demo.coffee @@ -1,7 +1,27 @@ if Meteor.isClient - Meteor.startup -> - Reveal.initialize - loop: true - controls: false - progress: false - autoSlide: 5000 + + Router.configure autoRender: false + + Router.map -> + @route 'home', path: '/' + @route 'barebones' + + Template.reveal.rendered = -> + Reveal.initialize() + Reveal.slide() # Go to first slide + + Template.menu.rendered = -> + $('.ui.dropdown') .dropdown() + Router.load -> # Change theme/transition using links params (eg. ) + Reveal.configure theme: theme if theme=this.params.theme + Reveal.configure transition: transition if transition=this.params.transition + + Template.transitionSelect.events + 'click .item': (event) -> + transition = $(event.currentTarget).data 'value' + Reveal.configure transition: transition + + Template.themeSelect.events + 'click .item': (event) -> + theme = $(event.currentTarget).data 'value' + Reveal.configure theme: theme diff --git a/reveal-demo.css b/reveal-demo.css index 01a7cb8..04db286 100644 --- a/reveal-demo.css +++ b/reveal-demo.css @@ -1 +1,3 @@ -@import url(packages/reveal-js/reveal.js/css/theme/default.css); +#menu { + font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif; +} diff --git a/reveal-demo.html b/reveal-demo.html index d73660c..8e128cf 100644 --- a/reveal-demo.html +++ b/reveal-demo.html @@ -1,22 +1,66 @@ - reveal.js - Barebones + reveal.js - The HTML Presentation Framework + + + + {{> menu}} + {{> reveal}} + + + -
-

Barebones Presentation

-

This example contains the bare minimum includes and markup required to run a reveal.js presentation.

-
+ -
-

No Theme

-

There's no theme included, so it will fall back on browser defaults.

-
+ + +