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', () => {
|
window.addEventListener('DOMContentLoaded', () => {
|
||||||
|
document.getElementById('output').innerText = '';
|
||||||
window.emu = new Emulator();
|
window.emu = new Emulator();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script type="text/javascript" src="emu.js"></script>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user