buttons für farbdarstellung hinzugefügt
This commit is contained in:
+6
-1
@@ -55,11 +55,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<button id="disable">Punktwolke ausblenden</button>
|
<button id="disable">Punktwolke ausblenden</button>
|
||||||
<p class="sideBarText">Qualität der Punktwolke</p>
|
<p class="sideBarText">Qualität der Punktwolke</p>
|
||||||
<div id="buttonRow">
|
<div class="buttonRow">
|
||||||
<button class="qualityButtons">niedrig</button>
|
<button class="qualityButtons">niedrig</button>
|
||||||
<button class="qualityButtons active">mittel</button>
|
<button class="qualityButtons active">mittel</button>
|
||||||
<button class="qualityButtons">hoch</button>
|
<button class="qualityButtons">hoch</button>
|
||||||
</div>
|
</div>
|
||||||
|
<p class="sideBarText">Farbdarstellung</p>
|
||||||
|
<div class="buttonRow">
|
||||||
|
<button class="colorButtons active">RGB</button>
|
||||||
|
<button class="colorButtons">höhencodiert</button>
|
||||||
|
</div>
|
||||||
<p class="sideBarText" id="pointSliderValue"></p>
|
<p class="sideBarText" id="pointSliderValue"></p>
|
||||||
<input id="pointSlider" type="range" min="1000000" max="9000000" value="3000000">
|
<input id="pointSlider" type="range" min="1000000" max="9000000" value="3000000">
|
||||||
<p class="sideBarText" id="pointSizeSliderValue"></p>
|
<p class="sideBarText" id="pointSizeSliderValue"></p>
|
||||||
|
|||||||
@@ -382,4 +382,22 @@ qualityButtons.forEach(button => {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// Farbbuttons aktivieren/deaktivieren
|
||||||
|
const colorButtons = document.querySelectorAll('.colorButtons');
|
||||||
|
|
||||||
|
colorButtons.forEach(button => {
|
||||||
|
|
||||||
|
button.addEventListener('click', () => {
|
||||||
|
|
||||||
|
colorButtons.forEach(btn => {
|
||||||
|
btn.classList.remove('active');
|
||||||
|
});
|
||||||
|
|
||||||
|
button.classList.add('active');
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -43,7 +43,7 @@ body{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.logos{
|
.logos{
|
||||||
margin-top:30px;
|
margin-top:25px;
|
||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
opacity:0.8;
|
opacity:0.8;
|
||||||
}
|
}
|
||||||
@@ -94,7 +94,7 @@ body{
|
|||||||
|
|
||||||
#sidebar {
|
#sidebar {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 48%;
|
||||||
transform:translateY(-50%);
|
transform:translateY(-50%);
|
||||||
left: 20px;
|
left: 20px;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
@@ -107,7 +107,7 @@ body{
|
|||||||
z-index: 20;
|
z-index: 20;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap:10px;
|
gap:8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main {
|
#main {
|
||||||
@@ -139,11 +139,11 @@ select{
|
|||||||
-webkit-appearance:none;
|
-webkit-appearance:none;
|
||||||
-moz-appearance:none;
|
-moz-appearance:none;
|
||||||
width:100%;
|
width:100%;
|
||||||
padding:14px 16px;
|
padding:10px 16px;
|
||||||
border:none;
|
border:none;
|
||||||
border-radius:14px;
|
border-radius:14px;
|
||||||
background:rgba(255,255,255,0.92);
|
background:rgba(255,255,255,0.92);
|
||||||
font-size:15px;
|
font-size:14px;
|
||||||
font-weight:500;
|
font-weight:500;
|
||||||
color:#0f172a;
|
color:#0f172a;
|
||||||
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.278);
|
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.278);
|
||||||
@@ -172,7 +172,7 @@ select{
|
|||||||
-webkit-appearance:none;
|
-webkit-appearance:none;
|
||||||
-moz-appearance:none;
|
-moz-appearance:none;
|
||||||
width:100%;
|
width:100%;
|
||||||
padding:14px 16px;
|
padding:10px 16px;
|
||||||
border:none;
|
border:none;
|
||||||
border-radius:14px;
|
border-radius:14px;
|
||||||
background:
|
background:
|
||||||
@@ -183,14 +183,14 @@ select{
|
|||||||
rgba(6, 45, 135, 0.92) 100%
|
rgba(6, 45, 135, 0.92) 100%
|
||||||
),
|
),
|
||||||
rgba(6, 45, 135, 0.92);
|
rgba(6, 45, 135, 0.92);
|
||||||
font-size:15px;
|
font-size:14px;
|
||||||
font-weight:500;
|
font-weight:500;
|
||||||
color:#ffffff;
|
color:#ffffff;
|
||||||
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.278);
|
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.278);
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
transition:0.2s;
|
transition:0.2s;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
select:hover{
|
select:hover{
|
||||||
@@ -326,17 +326,17 @@ position: absolute;
|
|||||||
padding:5px 15px;
|
padding:5px 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#buttonRow{
|
.buttonRow{
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 14px;
|
border-radius: 10px;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.278);
|
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.278);
|
||||||
margin-bottom: 12px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.qualityButtons{
|
.qualityButtons, .colorButtons{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
appearance:none;
|
appearance:none;
|
||||||
@@ -352,7 +352,7 @@ position: absolute;
|
|||||||
transition:0.2s;
|
transition:0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.qualityButtons.active{
|
.qualityButtons.active, .colorButtons.active{
|
||||||
background:
|
background:
|
||||||
linear-gradient(
|
linear-gradient(
|
||||||
135deg,
|
135deg,
|
||||||
|
|||||||
Reference in New Issue
Block a user