-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
176 lines (154 loc) · 6.61 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="png" href="assets/favicon.png">
<link rel="stylesheet" href="style.css" />
<script defer src="script.js" type="module"></script>
<script defer src="sound.js" type="module"></script>
<title>Digital Conversion Calculator</title>
</head>
<body>
<!-- /* Colour Pallete Start */ -->
<div class="btn-mode">
<div class="colorpallet">
<button id="violet"></button>
<button id="dark"></button>
</div>
</div>
<!-- /* Colour Pallete End */ -->
<div class="container">
<div class="calculator">
<!-- Display of Calculator -->
<div class="input-box">
<button class="Mode">DEC</button>
<input type="text" class="opcode" onkeydown="disableKeyboardInput(event)"/>
<input type="text" id="inputBox" class="input" placeholder="0" onkeydown="disableKeyboardInput(event)" />
</div>
<!-- <input type="text" id="inputBox" class="t1" placeholder="0" /> -->
<br>
<div class="input-box">
<button class="Mode">BIN</button>
<input type="text" class="opcode" onkeydown="disableKeyboardInput(event)"/>
<input type="text" id="inputBox" class="input" placeholder="0" onkeydown="disableKeyboardInput(event)"/>
</div>
<br>
<div class="input-box">
<button class="Mode">HEX</button>
<input type="text" class="opcode" onkeydown="disableKeyboardInput(event)"/>
<input type="text" id="inputBox" class="input" placeholder="0" onkeydown="disableKeyboardInput(event)"/>
</div>
<br>
<div class="input-box">
<button class="Mode">OCT</button>
<input type="text" class="opcode" onkeydown="disableKeyboardInput(event)"/>
<input type="text" id="inputBox" class="input" placeholder="0" onkeydown="disableKeyboardInput(event)"/>
</div>
<br>
<!-- Input buttons for Hexadecimal values -->
<div class="button-collection">
<button class="button operatorA">A</button>
<button class="button operatorA">B</button>
<button class="button operatorA">C</button>
<button class="button operatorA">D</button>
<button class="button operatorA">E</button>
<button class="button operatorA">F</button>
</div>
<div class="button-collection">
<button class="button number">7</button>
<button class="button number">8</button>
<button class="button number">9</button>
<button class="button operator">DEL</button>
<button class="button operator">AC</button>
</div>
<div class="button-collection">
<button class="button number">4</button>
<button class="button number">5</button>
<button class="button number">6</button>
<button class="button operator">*</button>
<button class="button operator">/</button>
</div>
<div class="button-collection">
<button class="button number">1</button>
<button class="button number">2</button>
<button class="button number">3</button>
<button class="button operator">+</button>
<button class="button operator">-</button>
</div>
<div class="button-collection">
<button class="button number">.</button>
<button class="button number">0</button>
<button class="button equalBtn">=</button>
</div>
</div>
</div>
<!-- welcomesection Start -->
<div class="welcomesection">
<h1>Welcome User!
</h1>
<p>🚀 Initializing...<br>
🔢 Explore the power of DigiConverter Calculator, your all-in-one tool for base conversion, addition,
subtraction, multiplication, and division. <br>
💡 Tip: Simply enter your numbers and choose the base.<br><br>
🎉 Let the calculations begin!</p>
</div>
<!-- welcomesection ends -->
<footer>
<div class="footer-container">
<div class="spt-logo">
<img src="./covers/Spotify-White-Logo.png" alt="">
</div>
<div class="panel2">
<div class="foot">
<div class="company">
<ul>
<div class="main-head">Company</div>
<li>About</li>
<li>Jobs</li>
<li>For the Record</li>
</ul>
</div>
<div class="company">
<ul>
<div class="main-head">Communities</div>
<li>For Artists</li>
<li>Developers</li>
<li>Advertising</li>
<li>Investors</li>
<li>Vendors</li>
</ul>
</div>
<div class="company">
<ul>
<div class="main-head">Useful links</div>
<li>Support</li>
<li>Free Mobile App</li>
</ul>
</div>
</div>
<div class="social-icons">
<div class="icon_border"><img src="assets/fb.png" alt=""></div>
<div class="icon_border"><img src="assets/ig.png" alt=""></div>
<div class="icon_border"><img src="assets/twt.png" alt=""></div>
</div>
</div>
</div>
<br><br>
<hr>
<br><br>
<div class="panel3" style="text-align: center;">
<p>© <span id="year"></span> Digiconvert-Calculator Rohan Mitra </p>
</div>
<br><br>
</footer>
<script src="script.js"></script>
<script>
function disableKeyboardInput(event) {
event.preventDefault();
}
document.getElementById("year").innerHTML = new Date().getFullYear();
</script>
</body>
</html>