comparison service/rdf_to_mqtt/index.html @ 1563:71eec31da919

more theater output controls Ignore-this: 34e105c3760b9df22d63eb0035aca19d darcs-hash:095f5932e595b89d909c85018999fa926503abcd
author drewp <drewp@bigasterisk.com>
date Fri, 14 Feb 2020 10:21:24 -0800
parents 0c8aa432ec9d
children de145b8129d8
comparison
equal deleted inserted replaced
1560:c3d699b5759c 1563:71eec31da919
28 <div><button data-post="output?s=:livingLamp3&p=:brightness" data-body="0.0">Send (:livingLamp3 :brightness 0.0)</button></div> 28 <div><button data-post="output?s=:livingLamp3&p=:brightness" data-body="0.0">Send (:livingLamp3 :brightness 0.0)</button></div>
29 <div><button data-post="output?s=:livingLamp3&p=:brightness" data-body="1.0">Send (:livingLamp3 :brightness 1.0)</button></div> 29 <div><button data-post="output?s=:livingLamp3&p=:brightness" data-body="1.0">Send (:livingLamp3 :brightness 1.0)</button></div>
30 <div><button data-post="output?s=:livingLamp4&p=:brightness" data-body="0.0">Send (:livingLamp4 :brightness 0.0)</button></div> 30 <div><button data-post="output?s=:livingLamp4&p=:brightness" data-body="0.0">Send (:livingLamp4 :brightness 0.0)</button></div>
31 <div><button data-post="output?s=:livingLamp4&p=:brightness" data-body="1.0">Send (:livingLamp4 :brightness 1.0)</button></div> 31 <div><button data-post="output?s=:livingLamp4&p=:brightness" data-body="1.0">Send (:livingLamp4 :brightness 1.0)</button></div>
32 32
33 <div><button data-post="output?s=:theater&p=:inputSelector" data-body="bd">Theater to chromecast</button></div>
34 <div><button data-post="output?s=:theater&p=:inputSelector" data-body="game">Theater to PS4</button></div>
35 <div><button data-post="output?s=:theater&p=:inputSelector" data-body="pc">Theater to VR</button></div>
36 <div><button data-post="output?s=:theater&p=:inputSelector" data-body="cbl">Theater to PS3</button></div>
37 <div><button data-post="output?s=:theater&p=:volumeChange" data-body="3">Theater volume up</button></div>
38 <div><button data-post="output?s=:theater&p=:volumeChange" data-body="-3">Theater volume down</button></div>
39
33 <script> 40 <script>
34 Array.from(document.querySelectorAll("button")).forEach((el) => { 41 Array.from(document.querySelectorAll("button")).forEach((el) => {
35 el.addEventListener("click", (ev) => { 42 el.addEventListener("click", (ev) => {
36 fetch(el.dataset.post, { 43 fetch(el.dataset.post, {
37 method: "PUT", 44 method: "PUT",