-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
126 lines (120 loc) · 5.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<script src="https://kit.fontawesome.com/3da1a747b2.js" crossorigin="anonymous" SameSite="None"></script>
<link rel="stylesheet" href="css/main.css" />
<link rel="icon" type="image/png" sizes="32x32" href="/assets/percentage-calc-favicon.png">
<title>Percentage Calculator - Sascha Majewsky</title>
</head>
<body>
<div class="container">
<h2 class="unselectable">Percentage Calculator</h2>
<h6 class="unselectable">Click on result to copy to clipboard</h6>
<div class="methods-wrapper">
<div class="method-container percent-from">
<div class="left-elements mobile-column">
<div>
<span class="unselectable">What is</span>
<input class="modern percent mobile-align" onkeydown="return (event.keyCode!=188);" type="number"
id="from-first-input"></input>
<span class="unselectable">%</span>
</div>
<div>
<span class="unselectable"><span class="spacing-desktop"></span>of</span>
<input class="modern long-input mobile-align mobile-from" type="number"
onkeydown="return (event.keyCode!=188);" id="from-second-input"></input>
<span class="unselectable">?<span class="mobile-from-label"></span></span>
</div>
</div>
<div class="right-elements">
<span class="result-text unselectable">=</span>
<input class="modern result resultmouse margin-right" readonly id="from-result-input"></input>
</div>
</div>
<div class="method-container percent-of">
<div class="left-elements mobile-column">
<div>
<input class="modern long-input no-margin-left mobile-align" type="number"
onkeydown="return (event.keyCode!=188);" id="of-first-input"></input>
<span class="unselectable">is what % </span>
</div>
<div>
<span class="unselectable"><span class="spacing-desktop"></span>of</span>
<input class="modern long-input mobile-align mobile-of" type="number"
onkeydown="return (event.keyCode!=188);" id="of-second-input"></input>
<span class="unselectable">?</span>
</div>
</div>
<div class="right-elements">
<span class="result-text unselectable mobile-of-label">=</span>
<input class="modern percent resultmouse mobile-result-of" readonly id="of-result-input"></input>
<span class="unselectable">%</span>
</div>
</div>
<div class="method-container percent-increase">
<div class="left-elements mobile-column tablet-column">
<div>
<span class="unselectable">In<span class="mobile-expand"></span>/<span
class="mobile-expand-second"></span>Decrease <span class="mobile-expand-third"></span>%</span>
</div>
<div>
<span class="unselectable"><span class="spacing-desktop"></span>from</span>
<input class="modern long-input mobile-align mobile-increase-first" onkeydown="return (event.keyCode!=188);"
type="number" id="increase-first-input"></input>
</div>
<div>
<span class="unselectable">to</span>
<input class="modern long-input mobile-align mobile-increase-second"
onkeydown="return (event.keyCode!=188);" type="number" id="increase-second-input"></input>
<span class="unselectable">?</span>
</div>
</div>
<div class="right-elements">
<span class="result-text unselectable mobile-increase-label">=</span>
<input class="modern percent resultmouse mobile-result-increase" readonly id="increase-result-input"></input>
<span class="unselectable">%</span>
</div>
</div>
</div>
<div class="setting">
<div class="option">
<label class="vertical-align unselectable">Convert results to german notation</label>
<button class="btn convert convert-dark" id="button-convert">
<i class="fas fa-sync-alt" id="convert-symbol"></i>
</button>
</div>
<div class="option">
<label class="unselectable">Round to second decimal place</label>
<div class="switch-align">
<label class="switch">
<input type="checkbox" id="switch-rounding" checked />
<div></div>
</label>
</div>
</div>
<div class="option">
<div class="" onclick="" id="theme-symbol"></div>
<label class="unselectable">Dark Mode</label>
<div class="switch-align">
<label class="switch">
<input type="checkbox" id="switch-theme" checked />
<div></div>
</label>
</div>
</div>
</div>
<div class="author">
<div class="spacing-left author-text unselectable">Made with</div>
<a class="heart-anchor" href="https://github.com/SaschaWebDev">
<div class="heart"></div>
</a>
<div class="author-text unselectable">by <a href="http://www.saschamajewsky.de">Sascha Majewsky</a></div>
</div>
</div>
</div>
<script src="js/main.js"></script>
</body>
</html>