-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (76 loc) · 3.5 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
<!--
Author: Irfan Shaikh
Date: 02/08/2020
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>iCalci</title>
<link rel="icon" href="iCalci.ico">
<link rel="stylesheet" href="styles.css">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Montserrat&family=Roboto:wght@300;400&display=swap"
rel="stylesheet">
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/d847080bee.js" crossorigin="anonymous"></script>
</head>
<body>
<h1><i class="apple-icon fab fa-apple"></i>iPhone Calculator</h1>
<main>
<div id="calculator">
<div id="head">
<div class="time"></div>
<label class="switch tooltip">
<input type="checkbox" class="theme">
<span class="slider round"></span>
<span class="tooltiptext">Toggle Theme</span>
</label>
<label class="switch tooltip">
<input type="checkbox" class="btn-shape">
<span class="slider"></span>
<span class="tooltiptext">Toggle Button</span>
</label>
<div id="display">0</div>
</div>
<button class="btn row-1" id="clear">AC</button>
<button class="btn row-1" id="change-sign">+/-</button>
<button class="btn row-1" id="percentage">%</button>
<button class="btn col-4 operator" id="divide">/</button>
<button class="btn number" id="seven">7</button>
<button class="btn number" id="eight">8</button>
<button class="btn number" id="nine">9</button>
<button class="btn col-4 operator" id="multiply">x</button>
<button class="btn number" id="four">4</button>
<button class="btn number" id="five">5</button>
<button class="btn number" id="six">6</button>
<button class="btn col-4 operator" id="add">+</button>
<button class="btn number" id="one">1</button>
<button class="btn number" id="two">2</button>
<button class="btn number" id="three">3</button>
<button class="btn col-4 operator" id="subtract">-</button>
<button class="btn number" id="zero">0</button>
<button class="btn" id="decimal">.</button>
<button class="btn col-4" id="equals">=</button>
</div>
</main>
<footer>
<div>
<a href="https://www.linkedin.com/in/irfansk/"><i class="social-icons fab fa-linkedin"
title="Linkedin"></i></a>
<a href="https://www.instagram.com/itsirfansk/"><i class="social-icons fab fa-instagram"
title="Instagram"></i></a>
<a href="https://github.com/irfansk-22"><i class="social-icons fab fa-github" title="Github"></i></a>
</div>
<p class="copywrite">© <span class="year"></span> iCalci | Made by Irfan Shaikh.</p>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="index.js"></script>
<script>
var currentYear = document.querySelector(".year");
var year = new Date().getFullYear();
currentYear.innerHTML = year;
</script>
</body>
</html>