elm/Examples/elm-js/FrameRate
2012-06-29 14:32:42 -05:00
..
FrameRate.elm Add frame rate example. 2012-06-28 12:55:58 -05:00
FrameRateHelp.js Add maps example and rename some folders. 2012-06-28 15:33:36 -05:00
README.md Switch readmes to .md 2012-06-29 14:32:42 -05:00

Use the arrow keys to move the square around.

To compile this example yourself use:

elm --import-js="FrameRateHelp.js" FrameRate.elm

This compiles the Elm file and includes the necessary JavaScript code. It produces a self-contained HTML file.

Note: Not all browsers like reading the elm-runtime-x.y.z.js file from an absolute path, so you may have to specify a relative path with the --runtime flag (e.g. --runtime="../../../elm/elm-runtime-0.3.5.js").