diff options
author | Joris | 2022-09-04 16:39:16 +0200 |
---|---|---|
committer | Joris | 2022-09-04 16:39:16 +0200 |
commit | ee0b1ca459499cd44f0ac80c61bcbcc4a8f4888b (patch) | |
tree | cbc6e71b97e4ce7ab29498daf9521b0628afc6ed | |
parent | b5aa7864fbbf02fb4fad8377cc8fc46414893aa3 (diff) |
Replace inline JS by static filedemo
-rw-r--r-- | public/index.html | 7 | ||||
-rw-r--r-- | public/run-main.js | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/public/index.html b/public/index.html index 587080b..4998f06 100644 --- a/public/index.html +++ b/public/index.html @@ -1,6 +1,5 @@ <!DOCTYPE html> - -<html lang="en"> +<html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"> @@ -11,6 +10,8 @@ <script src="main.js"></script> </head> - <body onload="reading.Main().main()"> + <body> </body> + + <script src="run-main.js"></script> </html> diff --git a/public/run-main.js b/public/run-main.js new file mode 100644 index 0000000..5c3b044 --- /dev/null +++ b/public/run-main.js @@ -0,0 +1,3 @@ + document.body.onload = function() { + reading.Main().main() + } |