-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simple substep implemenation #280
Conversation
Update README.md grammar
Thought I'd add an easy link to see this working in my pages branch: Thanks @bartaz for the great tool! |
This is exactly what I needed! 👍 Thanks a lot @tehfoo! |
Hey @rubik! Glad it's useful to someone! I'll try and keep my fork up on changes so at least if the pull request never merges my version of impress.js won't be too far behind. |
Thanks! In fact now I'm using the file from your fork. |
threw an error on the console
fix retrieving previous substep
I merged a pull request that fixed a bug in my code. I also tried to keep everything else updated with upstream master, which is why the diff on this pull request is getting noisy. If there's an interest in merging this, I'm happy to start a new pull request that's cleaner. The diffs that matter most are js/impress.js, substep.html (the example), and css/substep.css (for the example) |
thanks @tehfoo , substep is nice. |
Any estimated date whe this will be merged? |
Unfortunately I'm not currently maintaining impress.js code regularly because of other priorities. So for those interested in using impress.js with additional features such as sub-steps, I suggest to use an unofficial fork that implements this feature - such as the one in this pull request. |
Hi @misterbrownlee , in an effort to clear up older issues/PRs we are pinging back to know if you are still tracking this request. To give a little bit of context, recently a decision was made in the project to make the development more active and the first task is to clear up older PRs like this one to see if the OP is still interested in keep it going. |
This looks like pretty much the same thing as #264, just with slightly different naming choices. I think it's a good approach in general, and I don't care which one is merged. |
Closing due to the lack of feedback from the OP. If you want to work in the PR again, feel free to comment here to open up the discussion again. Also, this PR was opened in the dev branch, as from the CONTRIBUTING.md file, it should be opened against the master branch instead. |
Greetings impress.js overlords:
I have made an unobtrusive and clean attempt at providing the basics of a substep feature.
My implementation follows the syntax and behavior modeled by regular steps:
Because the only presentation-side change is CSS classes, there would be no effect on existing presentations. A new presentation would have to implement substep specific css to utilize the feature. This is outlined in the comments of the example html and css.
I thought it was best to create a separate example, rather than tinker with the existing index.html, as it seems like someone who wants substeps will find the html and figure it out from there.
Substeps are not included as a separate API feature. I felt this was the right thing because it didn't seem necessary to directly navigate to a substep. I also didn't think deep linking a substep made sense, and the sytax for that would have gotten weird, anyway. It did make sense to hook into next/prev. If you're adding substeps, you probably wouldn't want prev/next to skip them, even if you're moving via the API.
I felt an expected default behavior was to have substeps remain active, but that's easily changed. This could also be easily toggled with a 'data-' property.
The TL;DR notes on my commit are:
I know substeps are 'powerpointish', and thus subject to controversy. They also may not meet the impress.js philosophy. My coding style might not be exactly in-line with the main repo. If the philosophical issue can be overcome, I'm happy to revise my code as needed to be acceptable. Just let me know.
Thanks for considering my contribution!
-- Aaron (aka tehfoo)