restructured
This commit is contained in:
@@ -15,14 +15,14 @@
|
|||||||
if (!isNaN(e.key)) {
|
if (!isNaN(e.key)) {
|
||||||
output.textContent += e.key;
|
output.textContent += e.key;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
el.addEventListener("keyup", (e) => {
|
el.addEventListener("keyup", (e) => {
|
||||||
console.log(e.key);
|
console.log(e.key);
|
||||||
})
|
});
|
||||||
el.addEventListener("paste", (e) => {
|
el.addEventListener("paste", (e) => {
|
||||||
console.log('pasted');
|
console.log('pasted');
|
||||||
})
|
});
|
||||||
})
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user