Setting gamma kindof works
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user