mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
e
This commit is contained in:
parent
5621439290
commit
45d7450bf4
11
other/urls to array/index.html
Normal file
11
other/urls to array/index.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
</head>
|
||||||
|
<script src="index.js"></script>
|
||||||
|
<body>
|
||||||
|
<textarea id="textInput"></textarea>
|
||||||
|
<button id="processButton">Process</button>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
8
other/urls to array/index.js
Normal file
8
other/urls to array/index.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
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);
|
||||||
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user