New Sleep Timer button

This commit is contained in:
Pecusx
2017-03-05 13:09:57 +01:00
committed by GitHub
parent 630057d1e7
commit 6b706dd78b
+6 -2
View File
@@ -47,9 +47,10 @@
<div id="nadole"> <div id="nadole">
<div id="player"> <div id="player">
</div> </div>
<button id="VDOWNbutton">VOL-</button> <button id="VDOWNbutton">V-</button>
<button id="VUPbutton">VOL+</button>
<button id="MUTEbutton">MUTE</button> <button id="MUTEbutton">MUTE</button>
<button id="VUPbutton">V+</button>
<button id="TIMERbutton">SLEEP TIMER</button>
</div> </div>
<script> <script>
$("#OKbutton").click(function() { $("#OKbutton").click(function() {
@@ -100,6 +101,9 @@
$("#MUTEbutton").click(function() { $("#MUTEbutton").click(function() {
$.post("button.php?key=KEY_MUTE"); $.post("button.php?key=KEY_MUTE");
}); });
$("#TIMERbutton").click(function() {
$.post("button.php?key=KEY_TIME");
});
$("#RADIObutton").click(function() { $("#RADIObutton").click(function() {
$.post("button.php?key=KEY_RADIO"); $.post("button.php?key=KEY_RADIO");
setTimeout(function(){ setTimeout(function(){