forked from PlayMario/HTML5_Client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
24 lines (21 loc) · 1003 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var time = Date.now();
document.onreadystatechange = function (event) {
if (event.target.readyState !== "complete") {
return;
}
var UserWrapper = new UserWrappr.UserWrappr(PlayMarioJas.PlayMarioJas.prototype.proliferate(
{
"GameStartrConstructor": PlayMarioJas.PlayMarioJas
}, PlayMarioJas.PlayMarioJas.settings.ui, true));
console.log("PlayMario took " + (Date.now() - time) + " milliseconds to start.");
UserWrapper.GameStarter.UsageHelper.displayHelpMenu();
};
var manifest_iframe = document.createElement('iframe');
manifest_iframe.setAttribute("width","0")
manifest_iframe.setAttribute("height","0")
manifest_iframe.setAttribute("scrolling","no")
manifest_iframe.setAttribute("frameborder","0")
manifest_iframe.setAttribute("src","assets/manifest.html")
manifest_iframe.setAttribute("style","visibility:hidden;display:none")
manifest_iframe.setAttribute("seamless","seamless")
document.body.appendChild(manifest_iframe);