-
Notifications
You must be signed in to change notification settings - Fork 240
/
api.html
29 lines (24 loc) · 887 Bytes
/
api.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html>
<head>
<title>Ragnarok Online in the Browser powered by roBrowser</title>
<script type="text/javascript">
var ROConfig = {};
addEventListener('message', function( event ) {
if( ROConfig.ready ) {
return;
}
event.source.postMessage('ready', '*' );
ROConfig.ready = true;
ROConfig.grfList = event.data.grfList || null;
ROConfig.servers = event.data.servers || 'data/clientinfo.xml';
ROConfig.remoteClient = event.data.remoteClient || '';
ROConfig.packetver = event.data.packetver || 'auto';
var script = document.createElement('script');
script.src = 'ROBrowser/Vendors/require.js';
script.setAttribute('data-main', 'ROBrowser/App/' + event.data.application);
document.getElementsByTagName('head')[0].appendChild(script);
}, false);
</script>
</head>
</html>