Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- index.html +14 -4
index.html
CHANGED
|
@@ -7,8 +7,17 @@
|
|
| 7 |
<title>DCM Assembly Visualizer</title>
|
| 8 |
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
|
| 9 |
<style>
|
| 10 |
-
body { font-family: sans-serif; padding: 20px; }
|
| 11 |
-
#plot {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
.controls { width: 200px; margin-right: 20px; }
|
| 13 |
</style>
|
| 14 |
</head>
|
|
@@ -26,7 +35,9 @@
|
|
| 26 |
<label><input type="checkbox" id="toggleConstraints" checked onchange="toggleConstraints()"> Show Constraints</label>
|
| 27 |
</div>
|
| 28 |
<div style="flex: 1;">
|
| 29 |
-
<div id="plot"
|
|
|
|
|
|
|
| 30 |
</div>
|
| 31 |
</div>
|
| 32 |
|
|
@@ -151,4 +162,3 @@
|
|
| 151 |
</script>
|
| 152 |
</body>
|
| 153 |
</html>
|
| 154 |
-
|
|
|
|
| 7 |
<title>DCM Assembly Visualizer</title>
|
| 8 |
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
|
| 9 |
<style>
|
| 10 |
+
body { font-family: sans-serif; padding: 20px; margin: 0; box-sizing: border-box; }
|
| 11 |
+
#plot-wrapper {
|
| 12 |
+
width: 100%;
|
| 13 |
+
height: calc(100vh - 200px);
|
| 14 |
+
border: 2px dashed #999;
|
| 15 |
+
display: flex;
|
| 16 |
+
align-items: center;
|
| 17 |
+
justify-content: center;
|
| 18 |
+
background-color: #fafafa;
|
| 19 |
+
}
|
| 20 |
+
#plot { width: 100%; height: 100%; }
|
| 21 |
.controls { width: 200px; margin-right: 20px; }
|
| 22 |
</style>
|
| 23 |
</head>
|
|
|
|
| 35 |
<label><input type="checkbox" id="toggleConstraints" checked onchange="toggleConstraints()"> Show Constraints</label>
|
| 36 |
</div>
|
| 37 |
<div style="flex: 1;">
|
| 38 |
+
<div id="plot-wrapper">
|
| 39 |
+
<div id="plot"></div>
|
| 40 |
+
</div>
|
| 41 |
</div>
|
| 42 |
</div>
|
| 43 |
|
|
|
|
| 162 |
</script>
|
| 163 |
</body>
|
| 164 |
</html>
|
|
|