Deployed 280c539
This commit is contained in:
parent
a6779f6ba2
commit
64932242cd
2 changed files with 2 additions and 2 deletions
|
|
@ -164,7 +164,7 @@ return t.forEach(function(t){n+=e[t].state.bri}),n/t.length}),brightnessControlD
|
||||||
l!==n.some(function(e){return"colorloop"===t[e].state.effect})&&n.forEach(function(t){e.get("lightsData")[t].state.effect!==o&&c.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({effect:o}),contentType:"application/json",type:"PUT"})})}),rgbPreview:l("rgb",function(){var e=this,t=this.get("rgb"),n=rgbToCie(t[0],t[1],t[2])
|
l!==n.some(function(e){return"colorloop"===t[e].state.effect})&&n.forEach(function(t){e.get("lightsData")[t].state.effect!==o&&c.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({effect:o}),contentType:"application/json",type:"PUT"})})}),rgbPreview:l("rgb",function(){var e=this,t=this.get("rgb"),n=rgbToCie(t[0],t[1],t[2])
|
||||||
this.set("colorLoopOn",!1),this.get("activeLights").forEach(function(t){c.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({xy:n}),contentType:"application/json",type:"PUT"})}),this.set("colorLoopOn",!1),c(".color").css("background","rgb("+t[0]+","+t[1]+","+t[2]+")")}),onActiveLightsChange:s("init",l("activeLights.[]",function(){var e=this.get("lightsData"),t=null,n=!0
|
this.set("colorLoopOn",!1),this.get("activeLights").forEach(function(t){c.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({xy:n}),contentType:"application/json",type:"PUT"})}),this.set("colorLoopOn",!1),c(".color").css("background","rgb("+t[0]+","+t[1]+","+t[2]+")")}),onActiveLightsChange:s("init",l("activeLights.[]",function(){var e=this.get("lightsData"),t=null,n=!0
|
||||||
if(!u(e))if(this.get("activeLights").forEach(function(l){var o=e[l]
|
if(!u(e))if(this.get("activeLights").forEach(function(l){var o=e[l]
|
||||||
null!==t&&t[0]!==o.state.xy[0]&&t[1]!==o.state.xy[1]&&(n=!1),t=o.state.xy}),n&&t){var l=cieToRgb(t[0],t[1])
|
o&&o.state&&o.state.xy&&(null!==t&&t[0]!==o.state.xy[0]&&t[1]!==o.state.xy[1]&&(n=!1),t=o.state.xy)}),n&&t){var l=cieToRgb(t[0],t[1])
|
||||||
c(".color").css("background","rgb("+Math.abs(l[0])+","+Math.abs(l[1])+","+Math.abs(l[2])+")")}else c(".color").css("background","rgb(255,255,255)")})),lightsOnChange:s("init",l("lightsData.@each.state.on","activeLights.[]",function(){if(!this.get("strobeOn")){var e=this.get("lightsData"),t=this.get("activeLights").some(function(t){return!0===e[t].state.on})
|
c(".color").css("background","rgb("+Math.abs(l[0])+","+Math.abs(l[1])+","+Math.abs(l[2])+")")}else c(".color").css("background","rgb(255,255,255)")})),lightsOnChange:s("init",l("lightsData.@each.state.on","activeLights.[]",function(){if(!this.get("strobeOn")){var e=this.get("lightsData"),t=this.get("activeLights").some(function(t){return!0===e[t].state.on})
|
||||||
this.set("lightsOn",t)}})),onLightsOnChange:l("lightsOn",function(){var e=this,t=this.get("lightsData"),n=this.get("activeLights"),l=this.get("lightsOn"),o=n.some(function(e){return!0===t[e].state.on})
|
this.set("lightsOn",t)}})),onLightsOnChange:l("lightsOn",function(){var e=this,t=this.get("lightsData"),n=this.get("activeLights"),l=this.get("lightsOn"),o=n.some(function(e){return!0===t[e].state.on})
|
||||||
l!==o&&n.forEach(function(t){c.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({on:l}),contentType:"application/json",type:"PUT"})})}),changeLightsBrightness:function(){var e=this,t=this.get("lightsData"),n=!1,l=this.get("lightsBrightness"),o=this.get("activeLights")
|
l!==o&&n.forEach(function(t){c.ajax(e.get("apiURL")+"/lights/"+t+"/state",{data:JSON.stringify({on:l}),contentType:"application/json",type:"PUT"})})}),changeLightsBrightness:function(){var e=this,t=this.get("lightsData"),n=!1,l=this.get("lightsBrightness"),o=this.get("activeLights")
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
|
|
||||||
|
|
||||||
<script src="/assets/vendor-99f419067837b6cdbfdc95e0b20113c6.js" integrity="sha256-iHfhdfsVOrJfSGfHCs1O+BwQEv20GpvtlzrNlf9e/gQ= sha512-pAGO9shbfDrmQPUFPxsDl7T7oLlymvvqMgeOKlpaKRsiQ9wvKBZSPCCspc+/I/OquiIo3lp7B7xaP+HGLjoflg==" ></script>
|
<script src="/assets/vendor-99f419067837b6cdbfdc95e0b20113c6.js" integrity="sha256-iHfhdfsVOrJfSGfHCs1O+BwQEv20GpvtlzrNlf9e/gQ= sha512-pAGO9shbfDrmQPUFPxsDl7T7oLlymvvqMgeOKlpaKRsiQ9wvKBZSPCCspc+/I/OquiIo3lp7B7xaP+HGLjoflg==" ></script>
|
||||||
<script src="/assets/huegasm-76b29460151cc8da0d4ce94a2639061f.js" integrity="sha256-qb6rs390WEe4oFvDjdNhSEZaWXWUoi9UYXiD9lpsJQ4= sha512-c2ZRoFBbFJA8o8BmaAe0bnh6uAPcybU0e8hes5a9Ebzilxoxgv5N95Lr6vVdeax05JLc3JxE8PV3qxeJ4Bp/1Q==" ></script>
|
<script src="/assets/huegasm-f9a6fab993b0d818bf7c289b499ef019.js" integrity="sha256-QKCiJreJH7fpfe5T2Hz39o8zWMn+y122bMJ2BizJiiA= sha512-fXR4wpCu6KMPHUO9uy0a85nCQEpqfx4/wlPJ6kbcLkifbUOVJf8UeELLbgKQ9R0c2hP0q6KSIH6l3vKZbCbO9A==" ></script>
|
||||||
|
|
||||||
<div id="ember-basic-dropdown-wormhole"></div><div id="paper-wormhole"></div>
|
<div id="ember-basic-dropdown-wormhole"></div><div id="paper-wormhole"></div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
Reference in a new issue