petitatelier / slideshow

A multiplex slideshow system – one or more speakers drive the same slideshow, projected on one or many displays
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Create ‹dia-livecode› element #4

Open olange opened 5 years ago

olange commented 5 years ago

Features

See also

olange commented 5 years ago

In live-mode, we should display initial state of examples (almost empty script). In non live-mode, we should present final state of the examples. This would rely on a naming convention of the live-coding projects on Glitch – such as having a final. prefix to the filename being edited; for instance:

olange commented 5 years ago

For the cache / reuse, an idea: we could have all ‹dia-livecode› instances that share the same name attribute value also share the same ‹iframe› instance.

We would need to detach the ‹iframe› from a ‹dia-livecode› when it goes out of view (and keep it where?); and reattach it to ‹dia-livecode› that appears in view (using the Intersection Observer API?)