Skip to content

Added substep resetting#4

Open
dimitriye98 wants to merge 6 commits into
misterbrownlee:masterfrom
dimitriye98:master
Open

Added substep resetting#4
dimitriye98 wants to merge 6 commits into
misterbrownlee:masterfrom
dimitriye98:master

Conversation

@dimitriye98

Copy link
Copy Markdown

Made it so when leaving a step, all the substeps deactivate, and if you enter a step from the back i.e. using the left arrow key, all the substeps reactivate before moving to the step. Thus, looping repeatedly through the presentation forwards will result in always encountering steps with entirely reset substeps, and looping repeatedly backwards will result in always encountering steps with entirely activated substeps.

Also added an "impress-substep-[substep id]" indicator similar to the "impress-on-[step id]" indicator for steps. However, the class is added to the parent step instead of the impress div. Substeps with no user-defined id will have the id "substep-[index]", just like with steps. This yields the slightly awkward indicator name "impress-substep-substep-[index]".

Made substeps reset when leaving a slide, and turn on when entering the
slide in reverse
Added a "impress-substep-[id]" similar to the “impress-on-[step]”
indicator, but to the parent step instead of the general impress div.
Replaced my tab indents with the space indents used in the rest of the
code.
Fixed a slight mistake in the reset code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant