mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
9 lines
282 B
JavaScript
9 lines
282 B
JavaScript
const textInput = document.getElementById("textInput");
|
|
const processButton = document.getElementById("processButton");
|
|
|
|
processButton.addEventListener("click", function () {
|
|
const inputText = textInput.value;
|
|
const lines = inputText.split(/[\n\r]+/);
|
|
console.log(lines);
|
|
});
|