Open olange opened 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:
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?)
Features
DONE
05.03 OLrefresh
attributeDONE
05.03 OLrefresh
attribute is undefinedDONE
06.03 OLDONE
18.03 OLSee also
8 Create ‹dia-livecode› element
9 Add a « live » mode to distinguish from after presentation