Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.09 KB

README_CJ.md

File metadata and controls

28 lines (22 loc) · 1.09 KB

Changes made by CJ Yuan

Mainly added examples to demonstrate how to use Html blocks and Variables

New files

  • examples.html

    • Copy of index.html, with exercises replaced by examples.
    • class="exercise" is replaced by class="example"
    • Introduced an attribute start_code to <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 after https://blocks.codeyourfuture.io/share.html?v=.
  • examples/

    • Contains descriptions of example as .md files.

Modified 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_code attribute of <zero-md>.
      • window.localStorage won't be used to remember edited codes.