Skip to content

Commit 160e3f5

Browse files
layout
1 parent a3a2546 commit 160e3f5

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

index.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
font-family: Arial, Helvetica, sans-serif;
1616
-webkit-user-select: none;
1717
user-select: none;
18+
width: 100vw;
19+
height: 100vh;
20+
overflow: hidden;
1821
}
1922

2023
.container {
@@ -26,7 +29,7 @@
2629
justify-content: center;
2730
background-color: #ffffff;
2831
aspect-ratio: 5 / 4; /* Aspect ratio 4:3 */
29-
32+
height: 100%;
3033
}
3134

3235
/* vertical stacked: */
@@ -36,16 +39,12 @@
3639
font-size: 2vw;
3740
text-align: center; /* Center text within each label */
3841
font-weight: 300;
39-
position: relative;
40-
top: 2vw;
4142
display: flex;
4243

4344
}
4445
.questionHeader {
4546
/* height: 20vh; */
4647
font-size:4vw;
47-
position: relative;
48-
top: 6vw;
4948
text-align: center; /* Center text within each label */
5049
font-weight: 600;
5150
margin: 0 5vw 0 5vw;
@@ -104,13 +103,17 @@
104103
#answer2 {
105104
text-align: right;
106105
}
106+
#liveIndicator {
107+
width: 32px;
108+
height: 32px;
109+
}
107110
</style>
108111
</head>
109112
<body>
110113
<div class="container">
111114
<div class="numberOfResults">
112115
LIVE ABSTIMMUNG
113-
<svg width="12.5%" height="12.5%" xmlns="http://www.w3.org/2000/svg" overflow="visible">
116+
<svg id="liveIndicator" xmlns="http://www.w3.org/2000/svg" overflow="visible">
114117
<circle fill="#24B9D6" cx="50%" cy="50%" r="22.5%">
115118
<animate
116119
attributeName="r"
@@ -147,7 +150,7 @@
147150
<span id="question"></span>
148151
</div>
149152
<div class="slider-container">
150-
<svg id="sliderSVG" viewBox="0 0 300 150" preserveAspectRatio="xMidYMid meet" width="100%" height="100%" overflow="visible">
153+
<svg id="sliderSVG" viewBox="0 0 300 150" preserveAspectRatio="xMidYMid meet" overflow="visible">
151154
<!-- Curved slider path -->
152155
<path id="sliderPath" d="M 50 150 A 100 100 0 0 1 250 150" class="slider"></path>
153156

@@ -223,6 +226,7 @@
223226
document.addEventListener('pointermove', onDrag);
224227
document.addEventListener('pointerup', endDrag);
225228

229+
226230
function startDrag(e) {
227231
e.preventDefault();
228232
if (typeof pollyMessageListener !== 'undefined' && pollyMessageListener !== null) {

0 commit comments

Comments
 (0)