-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (68 loc) · 3.04 KB
/
index.html
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
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Digit Wizard | Simple Calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="title">
<h1>A Sourcerer's Calculator</h1>
<h2>Digit Wizard</h2>
</div>
<div class="calculator">
<div class="display"><div id="output">0</div></div>
<div class="buttons">
<button class="toggle-sign">+/-</button>
<button class="percent">%</button>
<button class="backspace">←</button>
<button class="operator add" data-key="+">+</button>
<button class="seven">7</button>
<button class="eight">8</button>
<button class="nine">9</button>
<button class="operator divide" data-key="/">/</button>
<button class="four">4</button>
<button class="five">5</button>
<button class="six">6</button>
<button class="operator multiply" data-key="*">*</button>
<button class="one">1</button>
<button class="two">2</button>
<button class="three">3</button>
<button class="operator subtract" data-key="-">-</button>
<button class="clear">C</button>
<button class="zero">0</button>
<button class="dot" data-key=".">.</button>
<button class="equals" data-key="=">=</button>
</div>
</div>
<div class="instructions">
<h2>Getting Started:</h2>
<p class="text">Display Area: The top display shows your current calculations and results in a mystical red glow.</p>
<h2>Basic Operations:</h2>
<ul>
<li>Use +, -, *, / for addition, subtraction, multiplication, and division.</li>
<li>C clears the current calculation.</li>
<li>← erases the last digit.</li>
<li>% converts numbers to magic percentages.</li>
<li>+/- toggles between positive and negative energy.</li>
</ul>
<h2>Performing Calculations:</h2>
<ul>
<li>Simply click on the buttons to conjure numbers and operations.</li>
<li>Use the = key to unleash the magic and see your result.</li>
</ul>
<h2>Advanced Features:</h2>
<ul>
<li>Feel the power of . for decimal precision.</li>
</ul>
<h2>Keyboard Sorcery:</h2>
<p>All spells can be cast using your keyboard's numpad for swift calculations.</p>
<p class="text">Enjoy your journey with Digit Wizard - where calculations meet wizardry!</p>
<h3>Pro Tip:</h3>
<p class="text">Explore the enchanting hover effects on buttons to sense their arcane power.</p>
<p><em>Special thanks to founders and contributors of The Odin Project, and to Harvard's CS50x course for all the free education and pointing me to the right resources.</em></p>
</div>
<script src="main.js"></script>
</body>
</html>