makestuff formatting
go back to makestuff
The HTML section should contain !DOCTYPE html, as well as the html, body, and head tags.

It should NOT contain any script tags.

All javascript code should be placed in the JAVASCRIPT section.
When testing the file on the page, do not use setInterval() because intervals won't be cleared.
Note: using requestAnimationFrame() in place of setInterval() will work.

When the file is downloaded, the script tag containing the javascript is inserted right before the end of the body tag.

When the file is imported, the inner html of the script tag is loaded into the JAVASCRIPT section, and the script tag is removed from the text in the HTML section.

The variable "msFirstRun" will be true the first time the code is tested, but false every other time.