Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<input class="starter" id="input" placeholder="input"/>
<h2>output:</h2>
<h2>Output:</h2>
<p class="starter" id="output"></p>
<h2>Instructions:</h2>
<p>Type a number for columns, then a number for rows.</p>
<p>Type two numbers (i.e. 3 4) for columns and rows.</p>
<p>Type clear to erase.</p>
<p>Type triangle followed by a number for its height.</p>

<script>
document.querySelector('#input').addEventListener('change', function(event){
var currentInput = event.target.value;
inputHappened(currentInput)
});

document.querySelector('#input').addEventListener('change', function(event){
var currentInput = event.target.value;
inputHappened(currentInput)
});
</script>
<script src="script.js"></script>
</body>
</html>
</html>