Add message to index.html for if JS is disabled
This commit is contained in:
1
emu.js
1
emu.js
@@ -267,5 +267,6 @@ class Emulator {
|
||||
}
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
document.getElementById('output').innerText = '';
|
||||
window.emu = new Emulator();
|
||||
});
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript" src="emu.js"></script>
|
||||
<div id="output"></div>
|
||||
<div id="output">I'm afraid you need javascript enabled for this to work :(
|
||||
|
||||
cringe, I know... but I promise there are no frameworks™</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user