Added global brightness controll

This commit is contained in:
Andreas Völker
2019-01-01 12:49:26 +01:00
parent 50f8dd29f7
commit 4da4c93a3e
3 changed files with 29 additions and 1 deletions

View File

@ -16,6 +16,14 @@
</form>
</div>
<h2>Brightness:</h2>
<div id='container'>
<form id='brightnessform' onSubmit="return setbrightness()">
Rot: <input id="brightness" value=1.0 /><br/>
<button id="sendbrightness">Setzen</button>
</form>
</div>
<h2>Gamma:</h2>
<div id='container'>
<form id='gammeform' onSubmit="return setgamma()">
@ -110,6 +118,13 @@
return false;
}
function setbrightness(){
let i = document.getElementById('brightness').value;
let url = "/setbrightness/" + i;
getRaw(url, function test(){});
return false;
}
function updateLog(){
getRaw("/apps/log", function(text){
document.getElementById('logs').innerText = text;