Skip to content

Instantly share code, notes, and snippets.

@xraymemory
Created November 17, 2018 05:21
Show Gist options
  • Select an option

  • Save xraymemory/d12b9fcf79b6a2dc56573e9877e857c8 to your computer and use it in GitHub Desktop.

Select an option

Save xraymemory/d12b9fcf79b6a2dc56573e9877e857c8 to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>js-dos api</title>
<style type="text/css">
.dosbox-container { width: 640px; height: 400px; }
</style>
</head>
<body>
<div id="dosbox"></div>
<br/>
<script type="text/javascript" src="https://js-dos.com/cdn/js-dos-api.js"></script>
<script type="text/javascript">
var dosbox = new Dosbox({
id: "dosbox",
onload: function (dosbox) {
dosbox.run("10BYTES.COM.zip", "./10BYTES.COM");
},
onrun: function (dosbox, app) {
console.log("App '" + app + "' is runned");
}
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment