@@ -28,26 +28,15 @@ sandwich moduleName javascript =
31−<div id="embed"></div>
31+<div id="elm-f0111bc4e658d0f98db96260c16f7e49"></div>
33|] <> javascript <> [r|
33|] <> javascript <> [r|
35−// It is too complicated to figure out which kind of Program you created
35+var app = Elm.|] <> name <> [r|.init({ node: document.getElementById("elm-f0111bc4e658d0f98db96260c16f7e49") });
36−// based on only the code. So here we check for different possibilities.
38−// When you embed compiled Elm into HTML yourself, you should not copy/paste
39−// from here. Do just the part that makes sense for your application!
42− Elm.|] <> name <> [r|.fullscreen
43− ? Elm.|] <> name <> [r|.fullscreen()
45− Elm.|] <> name <> [r|.embed
46− ? Elm.|] <> name <> [r|.embed(document.getElementById('embed'))
36+if (document.getElementById("elm-f0111bc4e658d0f98db96260c16f7e49"))
48− Elm.|] <> name <> [r|.worker
49− ? (document.getElementById('embed').innerText = 'This is a headless program, meaning there is nothing to show here. I started the program anyway though, and you can access it as `app` in the developer console.', Elm.|] <> name <> [r|.worker())
38+ document.getElementById("elm-f0111bc4e658d0f98db96260c16f7e49").innerText = 'This is a headless program, meaning there is nothing to show here.\n\nI started the program anyway though, and you can access it as `app` in the developer console.';
50− : (document.getElementById('embed').innerText = 'I cannot figure out what kind of program this is supposed to be. Perhaps someone on Slack can help?', undefined);
39+}