Mainly added examples to demonstrate how to use Html blocks and Variables
-
examples.html- Copy of index.html, with exercises replaced by examples.
- class="exercise" is replaced by class="example"
- Introduced an attribute
start_codeto<zero-md>. The value of the attribute represents the initial HTML code and Code Blocks. The value can be obtained from the URL generated by clicking the SHARE button; it is the string that appears afterhttps://blocks.codeyourfuture.io/share.html?v=.
-
examples/- Contains descriptions of example as .md files.
-
index.html- Only added a line to execute a necessary JS statement.
-
exercises/- Added links in some of the exercises to related examples. The instructions in the exercises remain unchanged.
-
exercises.js -
editor.js- Parameterised some functions so that for "examples.html"
- The initial code will always be loaded from the
start_codeattribute of<zero-md>. - window.localStorage won't be used to remember edited codes.
- The initial code will always be loaded from the
- Parameterised some functions so that for "examples.html"