-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
107 lines (104 loc) · 4.58 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
<!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">
<title>Web Dev Tools</title>
<link rel="stylesheet" href="style/style.css">
<link rel="stylesheet" href="style/calculators.css">
<link rel="stylesheet" href="style/graphicalTools.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet">
</head>
<body>
<main>
<div class="factsContainer">
<div class="factContainer">
<p class="factLabel">Browser font size:</p>
<p class="factData" id="fontSize">?</p>
<p>px</p>
</div>
<div class="factsGroup">
<p class="groupHeader">FEATURES</p>
<div class="factContainer">
<p class="factLabel">Javascript</p>
<p class="factData" id="jsEnabled">is not</p>
<p class="factLabel">enabled</p>
</div>
<div class="factContainer">
<p class="factLabel">Cookies</p>
<p class="factData" id="cookiesEnabled">might be</p>
<p class="factLabel">enabled</p>
</div>
</div>
<div class="factsGroup">
<p class="groupHeader">PAGE SIZE</p>
<div class="factContainer">
<p class="factLabel">Page width: </p>
<p class="factData" id="pageWidth">?</p>
<p class="factUnitDimen"></p>
</div>
<div class="factContainer">
<p class="factLabel">Page height: </p>
<p class="factData" id="pageHeight">?</p>
<p class="factUnitDimen"></p>
</div>
</div>
<div class="factContainer">
<p class="factLabel">Mouse position:</p>
<p class="factData" id="mousePos">?</p>
<div>(<p class="factUnitDimen">?</p>)</div>
</div>
</div>
<div class="options">
<div class="optionContainer">
<p class="optionDescription">Dimension unit</p>
<select id="dimensionUnitSelect" onchange="onSelectedDimensionUnit()">
<option value="px">px</option>
<option value="rem">rem</option>
<option value="mm">mm</option>
</select>
</div>
</div>
<div class="graphicalTools">
<div class="rulerContainer">
<div class="ruler" id="ruler"></div>
<div class="measuringLineUnitContainer">
<div class="unitAnnotation">(<p class="factUnitDimen"></p>)</div>
</div>
</div>
</div>
<div class="calculators">
<div class="unitCalculatorContainer">
<p class="groupHeader">UNIT CALCULATOR</p>
<div class="unitCalculator">
<input type="number" oninput="calculateUnitConversion()" id="unitCalculatorNumInput">
<select onchange="calculateUnitConversion()" id="unitCalculatorUnitFrom">
<option value="px">px</option>
<option value="rem">rem</option>
<option value="mm">mm</option>
</select>
<span class="unitCalculatorTo">=</span>
<input type="text" disabled class="unitCalculatorRes" id="unitCalculatorRes"></input>
<select onchange="calculateUnitConversion()" id="unitCalculatorUnitTo">
<option value="rem">rem</option>
<option value="mm">mm</option>
<option value="px">px</option>
</select>
</div>
</div>
</div>
</main>
<div class="computing">
<div id="mmMeasurement" style="height:100mm;display:none"></div>
</div>
<script src="script/units.js" type="module"></script>
<script src="script/displayData.js" type="module"></script>
<script src="script/calc.js"></script>
<script src="script/calculators.js" type="module"></script>
<script src="script/script.js" type="module"></script>
<script src="script/listeners.js" type="module"></script>
</body>
</html>