-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclass_activity_5.html
More file actions
78 lines (70 loc) · 3.67 KB
/
class_activity_5.html
File metadata and controls
78 lines (70 loc) · 3.67 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!--
Design a basic calculator in html
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Basic Calculator</title>
<link rel="shortcut icon" href="image/html_favicon/icons8-html-color-32.png" type="image/x-icon">
</head>
<body>
<h1>Class Activity 5: Basic Calculator</h1>
<p>Ready to count some people on this planet? 🌍😎 This activity has me building a basic calculator to do just that.
Math + HTML = Fun!</p>
<h3>Class Activity Links</h3>
<a href="index.html">Home page</a> |
<a href="class_activity_1.html">Favorite Food</a> |
<a href="class_activity_2.html">Login Form</a> |
<a href="class_activity_3.html">Favorite Book</a> |
<a href="class_activity_4.html">Feedback Form</a> |
<a href="class_activity_5.html">Basic Calculator</a> |
<a href="class_activity_6.html">Html Multimedia</a> |
<a href="class_activity_7.html">Page Replicate</a> |
<a href="class_activity_8.html">Financial Webpage Replication</a> |
<a href="class_activity_9.html">Weekly Planner</a> |
<a href="class_activity_10.html">Weekly Classroom Schedule</a> |
<a href="class_activity_11.html">Revision 1</a> |
<a href="class_activity_12.html">Revision 2</a> |
<h3>Assignment Links</h3>
<a href="assignment_1.html">T-Shirt Signup Form</a> |
<a href="assignment_2.html">Kaduna Electric Form</a> |
<a href="assignment_3.html">Cable TV Packages</a> |
<h3>Project Preview Links</h3>
<a href="https://deliciousbytes.vercel.app/" target="_blank">Delicious Bytes Food Menu</a> |
<div class="container" style="text-align: center;">
<h1>Basic Calculator</h1>
<form action="calculator">
<div class="calc">
<input type="text" name="screen" id="answer" placeholder="0" disabled>
<br><br>
<input type="button" value="7" onclick="form.screen.value+='7'">
<input type="button" value="8" onclick="form.screen.value+='8'">
<input type="button" value="9" onclick="form.screen.value+='9'">
<input type="button" value="." onclick="form.screen.value+='.'">
<input type="button" value="c" onclick="form.screen.value=''">
<br><br>
<input type="button" value="4" onclick="form.screen.value+='4'">
<input type="button" value="5" onclick="form.screen.value+='5'">
<input type="button" value="6" onclick="form.screen.value+='6'">
<input type="button" value="+" onclick="form.screen.value+='+'">
<input type="button" value="-" onclick="form.screen.value+='-'">
<br><br>
<input type="button" value="1" onclick="form.screen.value+='1'">
<input type="button" value="2" onclick="form.screen.value+='2'">
<input type="button" value="3" onclick="form.screen.value+='3'">
<input type="button" value="*" onclick="form.screen.value+='*'">
<input type="button" value="/" onclick="form.screen.value+='/'">
<br><br>
<input type="button" value="0" onclick="form.screen.value+='0'">
<input type="button" value="00" onclick="form.screen.value+='00'">
<input type="button" value="000" onclick="form.screen.value+='000'">
<input type="button" value="%" onclick="form.screen.value=(form.screen.value)/100">
<input type="button" value="=" onclick="form.screen.value=eval(form.screen.value)">
<br><br>
</div>
</form>
</div>
</body>
</html>