diff options
author | Joris | 2022-09-04 16:48:26 +0200 |
---|---|---|
committer | Joris | 2022-09-04 16:48:26 +0200 |
commit | f3cc2d50118722463e623216315bff99de341ec3 (patch) | |
tree | 7a85ce922bf4ea4aae795600dfc5345f943c9f30 /public | |
parent | 2379e2da3de6d0c49f3c2fbdeae4df00b526d586 (diff) |
Replace inline JS by static to run Maindemo
Diffstat (limited to 'public')
-rw-r--r-- | public/index.html | 6 | ||||
-rw-r--r-- | public/run-client.js | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/public/index.html b/public/index.html index 974a6fd..a008bdc 100644 --- a/public/index.html +++ b/public/index.html @@ -1,7 +1,6 @@ <!doctype HTML> <html> - <head> <title>cAtchVoid</title> <meta charset="utf-8"> @@ -12,8 +11,5 @@ <body> </body> - <script> - Elm.Main.fullscreen(new Date().getTime()); - </script> - + <script src="run-client.js"></script> </html> diff --git a/public/run-client.js b/public/run-client.js new file mode 100644 index 0000000..97c1135 --- /dev/null +++ b/public/run-client.js @@ -0,0 +1,3 @@ +document.body.onload = function() { + Elm.Main.fullscreen(new Date().getTime()); +} |