aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.html2
-rw-r--r--webAO/client.js5
2 files changed, 4 insertions, 3 deletions
diff --git a/webAO/client.html b/webAO/client.html
index 860e043..e130964 100644
--- a/webAO/client.html
+++ b/webAO/client.html
@@ -322,7 +322,7 @@
</p>
</div>
-<body>
+<body onload="onLoad()">
<span id="sound"></span>
<div id="here"></div>
<div id="client_loading">
diff --git a/webAO/client.js b/webAO/client.js
index e7d607b..e6647c1 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -2184,10 +2184,11 @@ function decodeBBCode(estring) {
let client = new Client(serverIP);
let viewport = new Viewport();
-$(document).ready(function () {
+export function onLoad(){
client.initialObservBBCode();
client.loadResources();
-});
+}
+window.onLoad = onLoad;
// Create dialog and link to button
$(function () {