forked from AustinCodingAcademy/JS211_CurrentDateTimeProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
29 lines (28 loc) · 921 Bytes
/
index.html
File metadata and controls
29 lines (28 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="main.js"></script>
</head>
<body>
<h1>Hello World!</h1>
<hr/>
<div id="display-element"></div>
<button onclick="displayDate()">What is the current date and time?</button>
<hr/>
<h2>Taylor Tipton</h2>
<hr/>
<div id="display-number1"></div>
<button onclick="num()">How old am I?</button>
<hr/>
<h2>How about a math question?</h2>
<hr/>
<div id="display-number2"></div>
<button onclick="addSum()">What is 10 + 12?</button>
<hr/>
<input type="number" name="input1" id="input1" placeholder="Pick a number!"><br>
<input type="number" name="input2" id="input2" placeholder="Pick another number!"><br>
<button onclick="addTwo(document.getElementById('input1').value,document.getElementById('input2').value)">Let's add them together!</button>
</body>
</html>