Setting gamma kindof works

This commit is contained in:
deckensteuerung
2018-10-21 15:55:12 +02:00
parent 037017ca94
commit ea653b6840
3 changed files with 25 additions and 3 deletions

View File

@ -16,6 +16,16 @@
</form>
</div>
<h2>Gamma:</h2>
<div id='container'>
<form id='gammeform' onSubmit="return setgamma()">
Rot: <input id="gammar" value=2.8 /><br/>
Grün: <input id="gammag" value=2.65 /><br/>
Blau: <input id="gammab" value=2.65 /><br/>
<button id="sendgamma">Setzen</button>
</form>
</div>
<h2>Log:</h2>
<div id='log'>
<textarea readonly id='logs' style="width: 500px; height: 500px;"></textarea>
@ -91,6 +101,15 @@
return false;
}
function setgamma(){
let r = document.getElementById('gammar').value;
let g = document.getElementById('gammag').value;
let b = document.getElementById('gammab').value;
let url = "/setgamma/" + r+"/"+g+"/"+b;
getRaw(url, function test(){});
return false;
}
function updateLog(){
getRaw("/apps/log", function(text){
document.getElementById('logs').innerText = text;
@ -106,4 +125,4 @@
</html>
</html>