Repository navigation
feat: details and languages - #18
Open
victorbahl wants to merge 2 commits into
Open
victorbahl wants to merge 2 commits into
victorbahl wants to merge 2 commits into
Conversation
data-detail="id" on an element opens the <aside class="detail" id="id"> of its slide, with a click or Enter. Esc, ←, its close button or a click outside closes it; → closes it and goes on. The slide and its numbers do not move. The presenter view follows the open detail and shows its notes, or the slide's. Print gives each detail a page after its slide. In the edit view details are sub-thumbnails under their slide, edited like a slide, added from a selected element. While one is open, Skip and Delete act on it: a skipped detail stays in the file and does not open in the show or print. A public copy keeps the details, without their notes or the skipped ones.
data-langs="en fr" on <html> lists the languages; lang="fr" on an element shows it in French only. Elements side by side with a language each are versions of one text; a text without the language shown keeps the first one. L, a globe near the corner or a data-set-lang button switches; the choice is kept per deck, and ?lang= sets it. A build with a version per language is one press. The notes, the presenter view and its panes, the page title and the print follow the language, and a public copy keeps them all. In the edit view you edit the language shown; deleting, duplicating or moving a text does it in every language, and texts missing in the language shown are dimmed and counted. The Suggest prompt asks for each change in every language.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey Roald, a bigger one, in two commits you can take separately: details and languages.
What I like about a deck being plain HTML is that a slide doesn't have to stop at what a slide usually is. These are the two things I missed most.
Details: a "click for more"
I keep few words on my slides, and the rest for when someone asks:
←, the close button or a click outside closes it;→closes it and goes on. The slide and its number don't move.<aside class="detail">is one.Languages: one file, not one per language
My decks are usually in English, but sometimes my audience prefers them in their own language, and two files drift apart:
L, a globe near the bottom-left corner or adata-set-langbutton switches. The choice is kept per deck, and?lang=frsets it.A deck that uses neither stays as it is. The example deck gains a slide on each.
npm test: 13 node tests and 142 browser tests pass, 36 of them new.