Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
abbreviatedman committed Feb 10, 2021
0 parents commit ab21e59
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Formless and Void

A form-and-git project.
21 changes: 21 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Formless And Void</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="form">
<input type="text" id="test" />
<button>Submit</button>
</div>

<div id="results">
<h1 class="test"></h1>
</div>

<script src="main.js"></script>
</body>
</html>
5 changes: 5 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
document.querySelector("button").addEventListener("click", () => {
document.querySelectorAll("input").forEach((input) => {
document.querySelector("h1." + input.id).innerText = input.value;
});
});
Empty file added style.css
Empty file.

0 comments on commit ab21e59

Please sign in to comment.