Commit Graph

417 Commits

Author SHA1 Message Date
Henrik Ingo
3e4d7d2e42 Small README edit 2019-04-11 12:59:38 +03:00
Moritz
898083116b Update dependencies and remove outdated ones (#722)
* Update dependencies and remove outdated ones
* Add package lock file
* Add minified file
* Karma now uses headless browser to run QUnit
* Add to readme that node and npm install is required
* Update license info
* Add lint-new but don't use it in CI yet
2019-04-10 10:21:23 +03:00
Guilherme I F L Weizenmann
97546a5536 Add fullscreen with support to remote presentation controller (#712)
- F5 to enter/exit
- Escape to exit
2019-02-06 13:36:04 +02:00
Guilherme I F L Weizenmann
6db3f7c877 Add support for "." to enter/exit blackout screen (#716)
* Add support for "." to enter/exit blackout screen

- This is the default on Power Point
- THis add support for remote controller presentation blackout key

* Rename autoplay event call from resume to play
2019-02-06 13:25:11 +02:00
Guilherme I F L Weizenmann
6776a0dab7 Add pause and play events to autoplay (#713)
This is useful to request pause/resume from other plugins
2019-02-06 13:21:51 +02:00
Henrik Ingo
24e28cc43f Fix example in plugin README 2019-01-02 13:35:27 +02:00
Henrik Ingo
4d3adb09cd Fix form plugin for input fields.
It turns out input[type=text] will only find input fields where
the type attribute is explicitly set to text, but would skip
fields that left it out and defaulted to type text. This changes
to catch all types of input elements.
2019-01-01 21:40:46 +02:00
Henrik Ingo
f6f4a36766 Add test/HOWTO.md (#696)
Note: I will now expect new PRs to add tests for the functionality they
add or change. (Including my own, mostly...)

Fixes #657
2018-12-17 21:35:15 +02:00
zilioti
65870699f4 Add keyup event for shift space previous slide (#706) 2018-10-22 11:18:53 -04:00
zilioti
dd74d3da0a Add keyup for 191 keyCode (#705) 2018-10-22 11:16:53 -04:00
Henrik Ingo
4b326d4164 Remove edits to example presentation, used to test previous commit 2018-05-08 20:09:58 +03:00
Henrik Ingo
194ae3bb62 Fixes to data-rel-to
Fixes 80ffff0e8f
2018-05-08 20:01:11 +03:00
Henrik Ingo
67079504b5 Run node build.js to update js/impress.js from previous commit 2018-05-08 19:18:07 +03:00
Holger Teichert
80ffff0e8f rel: Add relative positioning relative to any previous step. (#686) 2018-05-01 21:57:40 +03:00
Holger Teichert
c09ce88749 New plugin: media (#676)
The media plugin can autoplay and autopause/autostop <audio> and <video> elements when entering and leaving a step.

Support for impressConsole: don't autoplay in preview window and play but mute clips in current window.
2018-03-17 16:33:34 +02:00
Henrik Ingo
09b5d46c85 Update npmignore to publish v1.0.0 on NPM
Fixes #679
2018-03-15 08:57:45 +02:00
Henrik Ingo
e8394d0899 Remove beta label from version strings.
Also update Copyright / Author info in core module.
2018-03-09 10:23:25 +02:00
Henrik Ingo
436f92e09b Another attempt at fixing the race issue in tests for Chrome.
Seems like setting iframe.src to a dummy value causes Chrome
to trigger the onLoad event when it 404s.
2018-03-04 14:39:13 +02:00
Jon Schlinkert
fbb17083d5 Fix condition in if statement for data-rotate-order
References #673
2018-03-04 13:58:41 +02:00
Henrik Ingo
2a3dd7ebb2 Remove outdated comment about copying syn.js into repo. No longer the case. 2018-02-25 13:12:15 +02:00
Henrik Ingo
e52866d1c4 Remove CHANGELOG.md as it was no longer up to date.
For release notes, see Github release page:
https://github.com/impress/impress.js/releases

For absolutely every detail, see Github commits page (or `git log`)
https://github.com/impress/impress.js/commits/master

Fixes #574
2018-01-08 00:20:58 +02:00
Henrik Ingo
e99a2df7f2 Fix typo 2018-01-07 18:46:36 +02:00
Henrik Ingo
4b5fe0fbf8 Set stopPropagation() event handlers for text input fields
Fixes #525 #140
2018-01-06 18:28:34 +02:00
Henrik Ingo
8b14eda98f Broader try-catch for handling impress-console-button disappearance (#652)
The previous attempt at merely reading a property of event.target was
incorrect. It worked at first but errors reappeared later, so must
have been a reace.

This wraps the entire navigation event handlers in the try-catch, and
then checks for the very specific error and suppresses it. Other errors
are rethrown as is.
2018-01-01 16:03:13 +02:00
Henrik Ingo
784a6d245b Also sync js/impress.js / Forgot to run node build.js 2018-01-01 15:32:16 +02:00
Henrik Ingo
729651dd5d Fix lint errors 2018-01-01 15:27:33 +02:00
Henrik Ingo
e92e02ccb4 Make impress-console-button actually clickable (#651)
Changed the onclick handler to trigger the impress:console:open event
and not use the impressConsole() global function any more. The latter
is considered deprecated now that impressConsole is integrated into
impress.js itself.

Also catch some errors that appear in event handlers when the target
for the click event was immediately removed from DOM.

Fixes #651
2018-01-01 15:05:55 +02:00
Naja Melan
b86214c6e9 impressConsole: Don't put onclick inside style attribute (#652) 2018-01-01 12:54:55 +02:00
Henrik Ingo
df3532085f impressConsole broke init() if root element didn't have id="impress"
Also adds regression tests to prevent this from happening in the future
as well as upgrades karma-chrome-launcher to newest version.

Fixes #654
2017-12-31 14:36:43 +02:00
Blaine Carter
cd499ed8cf Fixed the link to "extra addons" in the plugins README (#647)
* Fixed the link to extra addons. It was 404, now it's linked to https://github.com/impress/impress-extras

* Added new sentence describing how to use extra addons.
2017-12-11 13:04:01 +02:00
Henrik Ingo
ba1fe7f6d6 Add link to Github release page for downloading stable releases.
Intentionally omitting git checkout <tag> alternative for simplicity.
Those that now how git works, will know it anyway.
2017-12-01 21:48:16 +02:00
Henrik Ingo
c5e93f6885 Fix a couple links in README.md 2017-11-12 21:41:13 +02:00
Henrik Ingo
7354dbf5fc Merge pull request #643 from impress/dev
1.0.0-beta1: Merge 2 years worth of work from dev to master!

Highlights

* New plugin based architecture allows adding more features without bloating core src/impress.js file
* Source files are in src/ and compiled into js/impress.js with npm run build. End users should continue to use js/impress.js as before.
* 19 new plugins
* Integrates impressConsole.js by default (press 'P' to open speaker console)
* Markdown support for those that are too much in a hurry to type HTML
* 5 new demo presentations under examples/ show case the new features
* Removes the code that prevented impress.js from running on mobile phones
2017-11-12 19:29:24 +02:00
Henrik Ingo
8a1384769c Fix the DOCUMENTATION.md for impress:stepenter and impress:stepleave events
Use event.target and event.detail.next in the examples.
2017-11-12 19:11:58 +02:00
Henrik Ingo
f7f217114e Add example of a plugin capturing the impress:init event to plugin README 2017-11-05 19:18:32 +02:00
Henrik Ingo
1946c5be55 Change hyperlinks to github.com/henrikingo/impress.js back to upstream repo 2017-11-05 18:42:27 +02:00
Henrik Ingo
003664c840 Add impress-extras as git submodule
This adds extra addons, which are 3rd party libraries, into extras/

* Highlight.js
* Markdown.js
* Mathjax.js
* Mermaid.js
2017-11-05 18:42:27 +02:00
Henrik Ingo
d6c6cd47c2 Change gc.lib.addCallback to gc.lib.pushCallback (#626) 2017-11-05 18:42:27 +02:00
Henrik Ingo
2d229bf4a6 Update karma.conf-sauce.js to work with the post-merge way of testing 2017-11-05 18:42:27 +02:00
Henrik Ingo
2a8f784592 Bump version to 1.0.0-beta1 2017-11-05 18:42:27 +02:00
Henrik Ingo
3ef230053e Update README.md to match the new repository structure
Explains the plugins, lib and build.js, etc.

Also delete the contributor guidelines in .github. We won't be using
those going forward, what README.md says is enough.
2017-11-05 18:42:27 +02:00
Henrik Ingo
443a4a82c1 Fix goto plugin: set lib variable from impress:init 2017-11-05 18:42:27 +02:00
Henrik Ingo
7505838891 Use autoplay and toolbar plugins in the main impress demo
For all the other features, see demos under extras/
2017-11-05 18:42:27 +02:00
Henrik Ingo
ff036a5dbd Add demo examples/2D-navigation
Show cases the new non-linear navigation possibilities of goto plugin.
2017-11-05 18:42:27 +02:00
Henrik Ingo
cfd1200dcc Add new demo presentation examples/3D-rotations
...to showcase a truly 3-dimensional presentation and also the
use of the new data-rotate-order="" attribute.
2017-11-05 18:42:27 +02:00
Henrik Ingo
4a62376145 Add new demo examples/cube to showcase a simple 3-dimensional presentation.
Also nice demo of multi-dimensional navigation from impress#465
2017-11-05 18:42:27 +02:00
Henrik Ingo
a37723fd82 Add demo presentation: examples/markdown
This demo presentation is written entirely in Markdown, as provided
by the combination of the extras plugin, and extras/markdown/markdown.js

The idea for using Markdown instead of HTML came from users who felt that
sometimes when you just need to quickly toss together some slides, using
Markdown is faster than HTML. Same approach is also familiar to Hovercraft
users, where RST is converted to a traditional HTML based impress.js presentation.

Unlike Hovercraft, using Markdown.js allows you to write Markdown directly into
your html file that is the presentation. It is converted in the browser, and no
separate command line tool is necessary. As a result you can also mix and match:
some slides can be HTML (when needed) and some in Markdown.
2017-11-05 18:42:27 +02:00
Henrik Ingo
e847fb4fb4 Add another demo presentation: examples/classic-slides
Add one presentation that provides a very simple demo, using
impress.js to create a very traditional "slide show". Possibly
it's an easier way to learn impress.js (it's commented, just like
the official demo.) It uses the relative positioning plugin and
uses "speaker notes", which aren't shown in the presentation,
but are picked up and shown in the speaker console (press 'P').
Also uses autoplay, forms... and includes short demo of all the extra
addons from extras/. (Highlight.js, Markdown.js, Mathjax.js, Mermaid.js)
2017-11-05 18:42:27 +02:00
Henrik Ingo
478a572294 Add data-rotate-order to DOCUMENTATION.md, as well as a link to plugins README.md 2017-11-05 18:42:27 +02:00
Henrik Ingo
c9c1943f39 Update build.js to activate all the plugins added in previous commits
Also adds esversion:6 to .jshintrc. This is required by impressConsole.js.
2017-10-30 17:07:14 +02:00