Fix font issues

main
Ashelyn Dawn 3 years ago
parent 978f1ad5f9
commit 9aec38ccfe

@ -7,6 +7,7 @@
<script src="https://unpkg.com/ansi_up@5.1.0/ansi_up.js"></script> <script src="https://unpkg.com/ansi_up@5.1.0/ansi_up.js"></script>
</head> </head>
<body> <body>
<input autofocus id="input"/>
<div id="container"> <div id="container">
<div id="target"></div> <div id="target"></div>
</div> </div>
@ -38,8 +39,9 @@
white-space: pre-wrap; white-space: pre-wrap;
word-break: break-all; word-break: break-all;
font-family: 'Courier New', Courier, monospace; font-family: 'Courier New', Courier, monospace;
height: 450px; line-height: 18px;
width: 600px; height: 24em;
width: 64ch;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
user-select: none; user-select: none;
@ -59,6 +61,11 @@
opacity: .8; opacity: .8;
} }
#input {
pointer-events: none;
opacity: 0;
}
@keyframes blink { @keyframes blink {
0%, 49% { 0%, 49% {
color: var(--foreground-color); color: var(--foreground-color);
@ -88,6 +95,10 @@
window.addEventListener('resize', scale); window.addEventListener('resize', scale);
scale(); scale();
document.getElementById("input").addEventListener("change", ev => {
ev.target.value = ""
})
</script> </script>
</body> </body>
</html> </html>

Loading…
Cancel
Save