Added global brightness controll
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user