Update index.html
Browse files- index.html +9 -4
index.html
CHANGED
@@ -13,10 +13,16 @@
|
|
13 |
}
|
14 |
#viz {
|
15 |
width: 100%;
|
16 |
-
height:
|
17 |
position: relative;
|
18 |
overflow: hidden;
|
19 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
#popup {
|
21 |
display: none;
|
22 |
position: absolute;
|
@@ -90,10 +96,9 @@ function createVisualization() {
|
|
90 |
|
91 |
// Set dynamic width and height for responsiveness
|
92 |
const width = window.innerWidth;
|
93 |
-
const height = window.innerHeight;
|
94 |
-
|
95 |
-
// Determine if we're on mobile (width < 768px is a common breakpoint)
|
96 |
const isMobile = width < 768;
|
|
|
|
|
97 |
|
98 |
// Adjust sizes based on device
|
99 |
const pointSize = isMobile ? 8 : 12;
|
|
|
13 |
}
|
14 |
#viz {
|
15 |
width: 100%;
|
16 |
+
height: 67vh;
|
17 |
position: relative;
|
18 |
overflow: hidden;
|
19 |
}
|
20 |
+
|
21 |
+
@media (max-width: 768px) {
|
22 |
+
#viz {
|
23 |
+
height: 100vh;
|
24 |
+
}
|
25 |
+
}
|
26 |
#popup {
|
27 |
display: none;
|
28 |
position: absolute;
|
|
|
96 |
|
97 |
// Set dynamic width and height for responsiveness
|
98 |
const width = window.innerWidth;
|
|
|
|
|
|
|
99 |
const isMobile = width < 768;
|
100 |
+
const height = isMobile ? window.innerHeight : window.innerHeight * 0.67;
|
101 |
+
|
102 |
|
103 |
// Adjust sizes based on device
|
104 |
const pointSize = isMobile ? 8 : 12;
|