forked from harsh98trivedi/Simple-JavaScript-Calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
116 lines (110 loc) · 4.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1 user-scalable=no, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Simple Calculator Harsh Trivedi</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Fjalla+One&display=swap" rel="stylesheet">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-70447982-5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-70447982-5');
</script>
<!-- Common Tags -->
<meta content='#171825' name='theme-color' />
<meta name="keywords"
content="Simple JavaScript Calculator, Harsh, JavaScript, Calculator, JavaScript Calculator, JSCalci, JavaScriptCalci, Harsh Trivedi">
<!-- Open Graph general (Facebook, Pinterest & Google+) -->
<meta property="og:title" content="Simple JavaScript Calculator" />
<meta property="og:description"
content="Simple JavaScript Calculator by Harsh Trivedi" />
<meta property="og:image"
content="https://raw.github.com/harsh98trivedi/Simple-JavaScript-Calculator/master/meta.jpg" />
<meta property="og:url" content="https://harsh98trivedi.github.io/Simple-JavaScript-Calculator/" />
<meta property="og:site_name" content="Simple JavaScript Calculator" />
<meta property="og:locale" content="en_US" />
<meta property="fb:admins" content="245221532650178" />
<meta property="og:type" content="website" />
<meta content='https://www.facebook.com/TheHarshTrivedi' property='article:author' />
<meta property="og:url" content="https://harsh98trivedi.github.io/Simple-JavaScript-Calculator/" />
<!-- Search Engine -->
<meta property="description"
content="Simple JavaScript Calculator by Harsh Trivedi" />
<meta property="image"
content="https://raw.github.com/harsh98trivedi/Simple-JavaScript-Calculator/master/meta.jpg" />
<!-- Schema.org for Google -->
<meta itemprop="name" content="Simple JavaScript Calculator" />
<meta itemprop="description"
content="Simple JavaScript Calculator by Harsh Trivedi" />
<meta itemprop="image"
content="https://raw.github.com/harsh98trivedi/Simple-JavaScript-Calculator/master/meta.jpg" />
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:title" content="Simple JavaScript Calculator" />
<meta property="twitter:description"
content="Simple JavaScript Calculator by Harsh Trivedi" />
<meta property="twitter:creator" content="@harsh98trivedi" />
<meta property="twitter:creator:id" content="@harsh98trivedi" />
<meta property="twitter:image:src"
content="https://raw.github.com/harsh98trivedi/Simple-JavaScript-Calculator/master/meta.jpg" />
<meta property="twitter:image" content="Calculator by Harsh Trivedi" />
<link rel='icon' type='image/x-icon' href='favicon.png' />
</head>
<body>
<div class="container">
<h1><a style="text-decoration: none; color: #f1c40f; margin-left: 0.25rem;" href="" onclick="location.reload();">CALCULATOR</a><img id="historybutton" src="history.png"></h1 >
<div class="calculator">
<input type="text" name="screen" id="answer" readonly>
<table>
<tr>
<td><button>(</button></td>
<td><button>)</button></td>
<td><button style="background-color: #f01600; font-weight: bold; color: #ecf0f1;">C</button></td>
<td><button>%</button></td>
</tr>
<tr>
<td><button>7</button></td>
<td><button>8</button></td>
<td><button>9</button></td>
<td><button>X</button></td>
</tr>
<tr>
<td><button>4</button></td>
<td><button>5</button></td>
<td><button>6</button></td>
<td><button>-</button></td>
</tr>
<tr>
<td><button>1</button></td>
<td><button>2</button></td>
<td><button>3</button></td>
<td><button>+</button></td>
</tr>
<tr>
<td><button>0</button></td>
<td><button style="font-weight: bold;">.</button></td>
<td><button>/</button></td>
<td><button style="background-color: #25db72; font-weight: bold; color: #ecf0f1;">=</button></td>
</tr>
</table>
<hr style="max-width: 50vw;">
<div style="font-size:1rem; display: flex; align-items: center; justify-content: center;">Made with <img style="margin: 0.15rem;" src="heart.png">by<a style="text-decoration: none; color: #f1c40f; margin-left: 0.25rem;"
target="_blank" href="https://harsh98trivedi.github.io">Harsh Trivedi</a></div>
</div>
</div>
<div id="bar1" class = "bars"></div>
<div id="bar2" class = "bars"></div>
<div id="history">
</div>
<div id="turn">
PLEASE TURN YOUR DEVICE
</div>
</body>
<script src="hist.js"></script>
<script src="calc.js"></script>
</html>