Created
November 17, 2018 05:21
-
-
Save xraymemory/d12b9fcf79b6a2dc56573e9877e857c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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