elm/Examples/elm-js/Pong
2012-11-26 13:29:10 -08:00
..
FrameRateHelp.js Add Pong project. 2012-08-17 16:38:41 +02:00
Pong.elm Get Pong back to working with 0.5.0.2. 2012-11-26 13:29:10 -08:00
README.md Make little cosmetic changes. 2012-08-21 15:24:30 +02:00

To compile this example yourself use:

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

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

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. adding the following to your compile command: --runtime="../../../elm/elm-runtime-0.3.6.js").