-
Notifications
You must be signed in to change notification settings - Fork 12
/
biparabola.html
37 lines (37 loc) · 1.05 KB
/
biparabola.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
<!doctype html>
<!-- Copyright 2018 Raph Levien -->
<style>
.th_handle {
stroke: #800;
fill: #800;
}
.th_handle:hover {
stroke: #f00;
fill: #f00;
}
</style>
<body>
<svg id="s" width="640" height="480" pointer-events="all">
<!-- chord line -->
<line x1="100" y1="200" x2="300" y2="200" stroke="black" pointer-events="none" />
<g id="left_th" class="th_handle">
<line x1="100" y1="200" x2="135" y2="165" />
<circle cx="135" cy="165" r="3" />
</g>
<g id="right_th" class="th_handle">
<line x1="300" y1="200" x2="135" y2="165" />
<circle cx="135" cy="165" r="3" />
</g>
<path id="left_par" d="" stroke="blue" fill="none" pointer-events="none" />
<path id="right_par" d="" stroke="green" fill="none" pointer-events="none" />
<path id="left_qb" d="" stroke="blue" fill="none" pointer-events="none" />
<path id="right_qb" d="" stroke="green" fill="none" pointer-events="none" />
<g id="plots" />
</svg>
</body>
<script src="curves.js"></script>
<script src="biparabola.js"></script>
<script>
let ui = new BiParabolaUi();
ui.redraw();
</script>