numbEnter should work now
This commit is contained in:
@ -4,12 +4,6 @@ const app = express();
|
||||
|
||||
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, () => {
|
||||
|
||||
@ -65,7 +65,7 @@
|
||||
<script>
|
||||
const input = document.getElementById('input');
|
||||
input.addEventListener('keydown', function(event) {
|
||||
if (event.code == 'Enter'){
|
||||
if (event.keyCode === 13){
|
||||
convert_input();
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user