numbEnter should work now

This commit is contained in:
adrian
2025-10-27 22:41:51 +01:00
parent 8a0d1ad4d1
commit 8162f72898
2 changed files with 1 additions and 7 deletions

View File

@ -4,12 +4,6 @@ const app = express();
app.use(express.static(__dirname)); app.use(express.static(__dirname));
app.use((req, res, next) => {
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Methods', 'GET, POST, OPTIONS');
res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept');
next();
});
app.listen(3000, () => { app.listen(3000, () => {

View File

@ -65,7 +65,7 @@
<script> <script>
const input = document.getElementById('input'); const input = document.getElementById('input');
input.addEventListener('keydown', function(event) { input.addEventListener('keydown', function(event) {
if (event.code == 'Enter'){ if (event.keyCode === 13){
convert_input(); convert_input();
} }
}) })