-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
120 lines (114 loc) · 3.71 KB
/
index.html
File metadata and controls
120 lines (114 loc) · 3.71 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>VecBro</title>
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<script type="module" src="/src/main.ts"></script>
<style>
body > * {
position: absolute;
top: 0;
left: 0;
background-color: #030303;
color: snow;
font-weight: bolder;
font-family: sans-serif;
}
button {
margin: 5pt;
z-index: 1;
}
.input-area {
display: flex;
flex-direction: row;
z-index: 1;
background-color: #232323;
color: black;
padding: 5pt;
margin: 5pt;
border: 1px solid #333;
border-radius: 5px;
color: snow;
}
input {
border: 1px solid #333;
border-radius: 5px;
padding-right: 0;
background-color: #535353;
color: snow;
width: 50pt;
font-weight: bolder;
}
button {
background-color: #535353;
border: 1px solid #333;
border-radius: 5px;
color: snow;
font-weight: bolder;
transition: 0.1s;
}
button:hover {
cursor: pointer;
background-color: #232323;
}
.vec {
display: flex;
flex-direction: column;
}
.formula-middle {
margin-left: 5pt;
margin-right: 5pt;
}
</style>
</head>
<body>
<div class="input-area">
<div
style="
align-items: center;
justify-content: center;
display: flex;
margin-right: 5pt;
"
>
<select name="Type" id="vectype">
<option value="point">P</option>
<option value="line">g</option>
<option value="plane">E</option>
</select>
:
</div>
<div class="vec">
<input type="number" value="0" id="vecAx1" />
<input type="number" value="0" id="vecAx2" />
<input type="number" value="0" id="vecAx3" />
</div>
<p class="formula-middle" condition="line" needs="point">
+ r ×
</p>
<div condition="line">
<div class="vec">
<input type="number" value="0" id="vecBx1" />
<input type="number" value="0" id="vecBx2" />
<input type="number" value="0" id="vecBx3" />
</div>
</div>
<p class="formula-middle" condition="plane" needs="line">
+ s ×
</p>
<div condition="plane">
<div class="vec">
<input type="number" value="0" id="vecCx1" />
<input type="number" value="0" id="vecCx2" />
<input type="number" value="0" id="vecCx3" />
</div>
</div>
<div class="vec">
<button id="drawBtn">Draw</button>
<button id="clearBtn">Clear</button>
</div>
</div>
</body>
</html>