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
62 lines (62 loc) · 1.82 KB
/
index.html
File metadata and controls
62 lines (62 loc) · 1.82 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!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-element1"></div>
<h1>Display Date</h1>
<button onclick="displayDate()">Click Me</button>
<hr/>
<hr/>
<div id="display-element2"></div>
<input type="number" name="numStr" id="numStr">
<h1>Covert Number to String</h1>
<button onclick="toStr()">Click Me</button>
<hr/>
<hr/>
<div id="display-element3"></div>
<input type="text" name="strNum" id="strNum">
<h1>Covert String to Number</h1>
<button onclick="toNum()">Click Me</button>
<hr/>
<hr/>
<div id="display-element4"></div>
<input type="text" name="dataType" id="dataType">
<h1>What Type am I</h1>
<button onclick="whatDataType()">Click Me</button>
<hr/>
<hr/>
<div id="display-element5"></div>
<input type="number" name="num1" id="num1">
<input type="number" name="num2" id="num2">
<h1>Add two numbers</h1>
<button onclick="addSum()">Click Me</button>
<hr/>
<hr/>
<div id="display-element6"></div>
<input type="text" name="t1" id="t1_1">
<input type="text" name="t2" id="t2_1">
<h1>Runs when both are TRUE</h1>
<button onclick="truthTest1()">Click Me</button>
<hr/>
<hr/>
<div id="display-element7"></div>
<input type="text" name="t1" id="t1_2">
<input type="text" name="t2" id="t2_2">
<h1>Runs when 1 is true</h1>
<button onclick="truthTest2()">Click Me</button>
<hr/>
<hr/>
<div id="display-element8"></div>
<input type="text" name="t1" id="t1_3">
<input type="text" name="t2" id="t2_3">
<h1>Runs when 1 is true</h1>
<button onclick="truthTest3()">Click Me</button>
<hr/>
</body>
</html>