-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
116 lines (111 loc) · 4.2 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RelayPro Engineering Services</title>
<script type="module" src="testonPolylinewithPoints.js"></script>
<script type="text/javascript" src="d3.v7.min.js"></script>
<link href="jquery-ui.css" rel="stylesheet" />
<script src="jquery-1.11.1.js"></script>
<script src="jquery-ui.js"></script>
<link rel="stylesheet" href="style.css" />
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ"
crossorigin="anonymous"
/>
</head>
<body>
<div class="container text-center m">
<div class="row align-items-center">
<div id="input-fields" class="position-absolute top-0 start-30 col-2">
<!-- <table class="table col-8 .table-hover">
<thead>
<tr>
<th class="col-1" scope="col"></th>
<th class="col-1" scope="col"></th>
<th class="col-5" scope="col">R</th>
<th class="col-5" scope="col">X</th>
</tr>
</thead>
<tbody>
<tr style="color:#dc143c;">
<th scope="row">Va</th>
<td>=</td>
<td></td>
<td></td>
</tr>
<tr style="color:gold;">
<th scope="row">Vb</th>
<td>=</td>
<td></td>
<td></td>
</tr>
<tr style="color:blue;">
<th scope="row" class="vectorc">Vc</th>
<td>=</td>
<td></td>
<td></td>
</tr>
</tbody>
</table> -->
</div>
<div class="col-12" id="vis" style="background-color: blue"></div>
<div id="input-fields1" class="position-absolute bottom-0 start-30 col-2">
<!-- <table class="table col-8 .table-hover">
<thead>
<tr>
<th class="col-1" scope="col"></th>
<th class="col-1" scope="col"></th>
<th class="col-5" scope="col">R</th>
<th class="col-5" scope="col">X</th>
</tr>
</thead>
<tbody>
<tr style="color:#dc143c;">
<th scope="row">Va</th>
<td>=</td>
<td></td>
<td></td>
</tr>
<tr style="color:gold;">
<th scope="row">Vb</th>
<td>=</td>
<td></td>
<td></td>
</tr>
<tr style="color:blue;">
<th scope="row" class="vectorc">Vc</th>
<td>=</td>
<td></td>
<td></td>
</tr>
</tbody>
</table> -->
</div>
</div>
</div>
<script>
var pageWidth = document.documentElement.clientWidth;
var pageHeight = document.documentElement.clientHeight;
const element_vis = document.getElementById("vis");
const styles = window.getComputedStyle(element_vis);
const width_vis =
parseFloat(styles.width) -
parseFloat(styles.paddingLeft) -
parseFloat(styles.paddingRight);
var w = pageWidth,
h = pageHeight;
var vis = d3.select("#vis").append("svg").attr("id", "Containersvg");
</script>
<!-- <script type="module" src="script.js"></script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe"
crossorigin="anonymous"
></script>
</body>
</html>