-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (40 loc) · 1.63 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
<!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">
<meta name="author" content="MG95Developer">
<link rel="stylesheet" href="./styles.css">
<title>Convert PX / PT - PT / PX</title>
</head>
<body>
<h1>Convert Px to PT / PX to PT</h1>
<div class="container">
<div class="converter-container">
<h3>Pixels (PX) to Points (PT)</h3>
<div id="convert-pt-to-px">
<label for="pixels">PIXELS (px) value:</label> <br>
<input type="number" id="pixels" name="pixels">
<br>
<button onclick="convertPixelsToPoints()">Convert PX to PT</button>
<button id="reset-btn" type="submit" onClick="refreshPage()">RESET</button>
</div>
</div>
<div class="converter-container" id="last">
<h3>Points (PT) to Pixels (PX)</h3>
<div id="convert-px-to-pt">
<label for="points">POINTS (pt) value:</label> <br>
<input type="number" id="points" name="points">
<br>
<button onclick="convertPointsToPixels()">Convert PT to PX</button>
<button id="reset-btn" type="submit" onClick="refreshPage()">RESET</button>
</div>
</div>
</div>
<div id="result">
<p>Result: <span id="dom-result"></span></p>
</div>
<script src="./scripts.js"></script>
</body>
</html>