From 88f5b23bba9a94c0a704b7e91b256fa1c145d0c5 Mon Sep 17 00:00:00 2001 From: Egor Date: Thu, 28 Dec 2017 21:13:01 -0800 Subject: [PATCH] Deployed 2895d49 --- ...efd.js => huegasm-02594633d1114c7082201f28b31905db.js} | 8 ++++---- index.html | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) rename assets/{huegasm-348acaeb3c68c4ad413e984dab013efd.js => huegasm-02594633d1114c7082201f28b31905db.js} (95%) diff --git a/assets/huegasm-348acaeb3c68c4ad413e984dab013efd.js b/assets/huegasm-02594633d1114c7082201f28b31905db.js similarity index 95% rename from assets/huegasm-348acaeb3c68c4ad413e984dab013efd.js rename to assets/huegasm-02594633d1114c7082201f28b31905db.js index b3a509a..76d008f 100644 --- a/assets/huegasm-348acaeb3c68c4ad413e984dab013efd.js +++ b/assets/huegasm-02594633d1114c7082201f28b31905db.js @@ -58,7 +58,7 @@ this.set("canTryChrome",/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(na this.get("pauseLightUpdates")||p.get(this.get("apiURL")+"/lights",function(n,o){i(n[0])||i(n[0].error)?"success"===o&&JSON.stringify(e.get("lightsData"))!==JSON.stringify(n)&&e.set("lightsData",n):t()}).fail(t)},actions:{tryAndroid:function(){window.open("https://play.google.com/store/apps/details?id=com.hoboman313.huegasm","_blank")},tryExtension:function(){chrome.webstore.install("https://chrome.google.com/webstore/detail/mbjanbdhcpohhfecjgbdpcfhnnbofooj")},changeTab:function(e){var t=this.get("tabList").indexOf(e) this.set("selectedTab",t),this.get("storage").set("huegasm.selectedTab",t)},clearBridge:function(){var e=this.get("storage") e.remove("huegasm.bridgeUsername"),e.remove("huegasm.bridgeIp"),location.reload()},toggleDimmer:function(){this.sendAction("toggleDimmer")},toggleLightsIcons:function(){this.sendAction("toggleLightsIcons")},clearAllSettings:function(){this.get("storage").clear(),location.reload()},email:function(){window.open("mailto:huegasm.app@gmail.com","_blank")},startIntro:function(){var e=this,t=introJs(),n=p("#player-bottom") -this.get("dimmerOn")&&this.send("toggleDimmer"),t.setOptions({steps:[{intro:"Welcome! This short tutorial will introduce you to Huegasm."},{element:"#music-tab",intro:"This is the music player. You'll use this to play music and synchronize it with your active lights.

TIP: Control which lights are active through the Lights tab."},{element:"#playlist",intro:"You can add and select music to play from your playlist here. You may listen to local audio files, online audio streams or stream music from SoundCloud.

TIP: Songs added through Soundcloud will be saved for when you visit this page again."},{element:p("#playlist md-menu")[0],intro:'You can add songs from SoundCloud by copy and pasting the URL shown here'},{element:"#player-area",intro:"The audio playback may be controlled with the controls here. Basic music visualization effects may be shown here by selecting them from the menu (eyeball icon in the bottom right)."},{element:"#beat-option-row",intro:"Sensitivity - The sensitivity of the beat detector (higher sensitivity results in more registered beats)
Color Range - The color range that the lights may change to on beat.
Brightness Range - The minimum (off-beat) and maximum (on-beat) brightness of the lights.
Flashing Transitions - Quickly flash the lights on beat
Colorloop - Slowly cycle the lights through all the colors while the music is playing
Ambience - When turned on, your lights will sporadically change color.
Blackout - When turned on, your lghts will turn off after flashing on a detected beat.

TIP: Your sensitivity settings are saved per song as indicated by the red star icon in the top left corner.",position:"top"},{element:"#beat-container",intro:"An interactive speaker that will bump when a beat is registered.

TIP: Click on the center of the speaker to simulate a beat.",position:"top"},{element:"#lights-tab",intro:"This is the lights tab. Here you'll be able to change various light properties:
Power - Turn the selected lights on/off
Brightness - The brightness level of the selected lights
Color - The color of the selected lights
Strobe - Selected lights will flash in sequential order
Colorloop - Selected lights will slowly cycle through all the colors
Randomize Hues - Randomize the hues (colors) of your selected lights
"},{element:"#active-lights",intro:"These icons represent the hue lights in your system. Active lights will be controlled by the application while the inactive lights will have a red X over them and will not be controlled.
You may toggle a light's state by clicking on it."},{element:p("#navigation .ember-basic-dropdown-trigger")[0],intro:"A few miscellaneous settings can be found here.

WARNING: clearing application settings will restore the application to its original state. This will even delete your playlist and any saved song beat preferences."},{intro:"And that's it...Hope you enjoy the application. ;)"}]}),t.onexit(function(){p("body").velocity("scroll",{duration:200})}),t.onchange(function(e){""===e.id||"music-tab"===e.id||"playlist"===e.id||"player-area"===e.id||"beat-option-row"===e.id||"beat-option-button-group"===e.id||"beat-container"===e.id||"using-mic-audio-tooltip"===e.id||"MD-MENU"===e.nodeName?p(".navigation-item").eq(1).click():p(".navigation-item").eq(0).click(),"music-tab"===e.id||"playlist"===e.id||"player-area"===e.id?n.hide():"beat-option-row"===e.id||"beat-option-button-group"===e.id||"beat-container"===e.id?n.show():"dimmer"===e.id&&p(document).click()}),t.onafterchange(function(t){"\x3c!----\x3e"===p(t).html()&&p(".introjs-nextbutton").click(),""===t.id?r(e,function(){p("body").velocity("scroll")},500):r(e,function(){p(".introjs-tooltip").velocity("scroll",{offset:-100})},500)}).start()},closeNotificationModal:function(){this.set("firstVisitApp",!1),this.get("storage").set("huegasm.firstVisitApp1",!1)}}})}),define("huegasm/pods/components/hue-controls/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"DqQ4EK6t",block:'{"symbols":["menu","content","tab"],"statements":[[4,"if",[[20,["ready"]]],null,{"statements":[[0," "],[6,"div"],[9,"id","navigation"],[9,"class","row"],[7],[0,"\\n "],[6,"div"],[9,"class","col-sm-10 col-sm-offset-1 col-xs-12"],[7],[0,"\\n"],[4,"each",[[20,["tabData"]]],null,{"statements":[[0," "],[6,"span"],[10,"class",[26,["navigation-item pointer text-uppercase ",[25,"if",[[19,3,["selected"]],"active"],null]]]],[3,"action",[[19,0,[]],"changeTab",[19,3,["name"]]]],[7],[1,[19,3,["name"]],false],[8],[0,"\\n"]],"parameters":[3]},null],[0,"\\n"],[4,"paper-menu",null,null,{"statements":[[4,"component",[[19,1,["trigger"]]],null,{"statements":[[4,"paper-button",null,[["iconButton"],[true]],{"statements":[[0," "],[1,[25,"paper-icon",["settings-icon"],[["class","size"],[[25,"concat",[[20,["dimmerOnClass"]]," no-blue-shadow"],null],28]]],false],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null],[0," \\n"],[4,"component",[[19,1,["content"]]],[["width"],[3]],{"statements":[[4,"if",[[20,["canTryChrome"]]],null,{"statements":[[4,"component",[[19,2,["menu-item"]]],[["class","onClick"],["hidden-xs","tryExtension"]],{"statements":[[0," "],[1,[25,"paper-icon",["extension"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Try the Chrome Extension\\n"]],"parameters":[]},null]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["class","onClick"],["visible-xs","tryAndroid"]],{"statements":[[0," "],[1,[25,"paper-icon",["extension"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Try the Android Extension\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["toggleDimmer"]],{"statements":[[0," "],[1,[25,"paper-icon",["highlight"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Dark Mode: "],[6,"strong"],[7],[1,[25,"if",[[20,["dimmerOn"]],"On","Off"],null],false],[8],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["toggleLightsIcons"]],{"statements":[[0," "],[1,[25,"paper-icon",["lightbulb outline"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Active Lights: "],[6,"strong"],[7],[1,[25,"if",[[20,["lightsIconsOn"]],"Icons","Text"],null],false],[8],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["startIntro"]],{"statements":[[0," "],[1,[25,"paper-icon",["cached"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Restart Tutorial\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["clearAllSettings"]],{"statements":[[0," "],[1,[25,"paper-icon",["settings backup restore"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Reset Settings\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["email"]],{"statements":[[0," "],[1,[25,"paper-icon",["email"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Contact\\n"]],"parameters":[]},null]],"parameters":[2]},null]],"parameters":[1]},null],[0," "],[8],[0,"\\n "],[8],[0,"\\n\\n "],[1,[25,"light-group",null,[["lightsData","activeLights","syncLight","apiURL","dimmerOn","lightsIconsOn","storage","pauseLightUpdates"],[[20,["lightsData"]],[20,["activeLights"]],[20,["syncLight"]],[20,["apiURL"]],[20,["dimmerOn"]],[20,["lightsIconsOn"]],[20,["storage"]],[20,["pauseLightUpdates"]]]]],false],[0,"\\n\\n "],[6,"div"],[9,"id","huegasm-content"],[9,"class","row"],[7],[0,"\\n "],[1,[25,"lights-tab",null,[["active","apiURL","lightsData","activeLights","syncLight","trial","colorLoopOn","dimmerOn","playing","pauseLightUpdates"],[[25,"eq",[[20,["selectedTab"]],0],null],[20,["apiURL"]],[20,["lightsData"]],[20,["activeLights"]],[20,["syncLight"]],[20,["trial"]],[20,["colorLoopOn"]],[20,["dimmerOn"]],[20,["playing"]],[20,["pauseLightUpdates"]]]]],false],[0,"\\n\\n "],[1,[25,"music-tab",null,[["active","apiURL","lightsData","activeLights","pauseLightUpdates","dimmerOn","storage","colorLoopOn","playing","action"],[[25,"eq",[[20,["selectedTab"]],1],null],[20,["apiURL"]],[20,["lightsData"]],[20,["activeLights"]],[20,["pauseLightUpdates"]],[20,["dimmerOn"]],[20,["storage"]],[20,["colorLoopOn"]],[20,["playing"]],"startIntro"]]],false],[0,"\\n "],[8],[0,"\\n\\n"],[4,"if",[[20,["firstVisitApp"]]],null,{"statements":[[4,"paper-dialog",null,[["fullscreen","onClose","origin","clickOutsideToClose"],[[20,["fullscreen"]],[25,"action",[[19,0,[]],"closeNotificationModal"],null],[20,["dialogOrigin"]],true]],{"statements":[[4,"paper-dialog-content",null,null,{"statements":[[0," "],[6,"p"],[9,"class","promo-title"],[7],[0,"\\n Check out the "],[6,"a"],[9,"href","https://chrome.google.com/webstore/detail/huegasm-for-philips-hue-l/mbjanbdhcpohhfecjgbdpcfhnnbofooj"],[9,"target","_blank"],[7],[0,"Huegasm Chrome extension"],[8],[0,"\\n "],[8],[0,"\\n "],[6,"p"],[9,"class","promo-text"],[7],[0,"\\n "],[6,"a"],[9,"href","https://chrome.google.com/webstore/detail/huegasm-for-philips-hue-l/mbjanbdhcpohhfecjgbdpcfhnnbofooj"],[9,"target","_blank"],[7],[0,"\\n Huegasm Chrome"],[8],[0," allows for listening for music from either a Chrome tab, microphone or your entire system.\\n "],[6,"br"],[7],[8],[0,"In addition, you will be able to sync the color of your screen to your lights.\\n\\n "],[6,"a"],[9,"href","https://chrome.google.com/webstore/detail/huegasm-for-philips-hue-l/mbjanbdhcpohhfecjgbdpcfhnnbofooj"],[9,"target","_blank"],[7],[0,"\\n "],[6,"img"],[9,"class","promo-img hidden-xs"],[9,"src","assets/images/promo-c0e47948d528375db1ee3a1f6c91dd8d.png"],[7],[8],[0,"\\n "],[8],[0,"\\n "],[8],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-dialog-actions",null,[["class"],["layout-row"]],{"statements":[[0," "],[6,"span"],[9,"class","flex"],[7],[8],[0,"\\n "],[4,"paper-button",null,[["primary","onClick"],[true,[25,"action",[[19,0,[]],"closeNotificationModal"],null]]],{"statements":[[0,"OK"]],"parameters":[]},null],[0,"\\n"]],"parameters":[]},null],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null]],"parameters":[]},{"statements":[[0," "],[1,[25,"paper-progress-circular",null,[["diameter"],[100]]],false],[0,"\\n"]],"parameters":[]}],[0,"\\n"],[1,[25,"ember-notify",null,[["messageStyle","closeAfter"],["bootstrap",5000]]],false]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/hue-controls/template.hbs"}})}),define("huegasm/pods/components/huegasm-app/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) +this.get("dimmerOn")&&this.send("toggleDimmer"),t.setOptions({steps:[{intro:"Welcome! This short tutorial will introduce you to Huegasm."},{element:"#music-tab",intro:"This is the music player. You'll use this to play music and synchronize it with your active lights.

TIP: Control which lights are active through the Lights tab."},{element:"#playlist",intro:"You can add and select music to play from your playlist here. You may listen to local audio files, online audio streams or stream music from SoundCloud.

TIP: Songs added through Soundcloud or direct URLs will be saved for when you visit this page again."},{element:p("#playlist md-menu")[0],intro:'You can add songs from SoundCloud by copy and pasting the URL shown here'},{element:"#player-area",intro:"The audio playback may be controlled with the controls here. Basic music visualization effects may be shown here by selecting them from the menu (eyeball icon in the bottom right)."},{element:"#beat-option-row",intro:"Sensitivity - The sensitivity of the beat detector (higher sensitivity results in more registered beats)
Color Range - The color range that the lights may change to on beat.
Brightness Range - The minimum (off-beat) and maximum (on-beat) brightness of the lights.
Flashing Transitions - Quickly flash the lights on beat
Colorloop - Slowly cycle the lights through all the colors while the music is playing
Ambience - When turned on, your lights will sporadically change color.
Blackout - When turned on, your lghts will turn off after flashing on a detected beat.

TIP: Your sensitivity settings are saved per song as indicated by the red star icon in the top left corner.",position:"top"},{element:"#beat-container",intro:"An interactive speaker that will bump when a beat is registered.

TIP: Click on the center of the speaker to simulate a beat.",position:"top"},{element:"#lights-tab",intro:"This is the lights tab. Here you'll be able to change various light properties:
Power - Turn the selected lights on/off
Brightness - The brightness level of the selected lights
Color - The color of the selected lights
Strobe - Selected lights will flash in sequential order
Colorloop - Selected lights will slowly cycle through all the colors
Randomize Hues - Randomize the hues (colors) of your selected lights
"},{element:"#active-lights",intro:"These icons represent the hue lights in your system. Active lights will be controlled by the application while the inactive lights will have a red X over them and will not be controlled.
You may toggle a light's state by clicking on it."},{element:p("#navigation .ember-basic-dropdown-trigger")[0],intro:"A few miscellaneous settings can be found here.

WARNING: clearing application settings will restore the application to its original state. This will even delete your playlist and any saved song beat preferences."},{intro:"And that's it...Hope you enjoy the application. ;)"}]}),t.onexit(function(){p("body").velocity("scroll",{duration:200})}),t.onchange(function(e){""===e.id||"music-tab"===e.id||"playlist"===e.id||"player-area"===e.id||"beat-option-row"===e.id||"beat-option-button-group"===e.id||"beat-container"===e.id||"using-mic-audio-tooltip"===e.id||"MD-MENU"===e.nodeName?p(".navigation-item").eq(1).click():p(".navigation-item").eq(0).click(),"music-tab"===e.id||"playlist"===e.id||"player-area"===e.id?n.hide():"beat-option-row"===e.id||"beat-option-button-group"===e.id||"beat-container"===e.id?n.show():"dimmer"===e.id&&p(document).click()}),t.onafterchange(function(t){"\x3c!----\x3e"===p(t).html()&&p(".introjs-nextbutton").click(),""===t.id?r(e,function(){p("body").velocity("scroll")},500):r(e,function(){p(".introjs-tooltip").velocity("scroll",{offset:-100})},500)}).start()},closeNotificationModal:function(){this.set("firstVisitApp",!1),this.get("storage").set("huegasm.firstVisitApp1",!1)}}})}),define("huegasm/pods/components/hue-controls/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"DqQ4EK6t",block:'{"symbols":["menu","content","tab"],"statements":[[4,"if",[[20,["ready"]]],null,{"statements":[[0," "],[6,"div"],[9,"id","navigation"],[9,"class","row"],[7],[0,"\\n "],[6,"div"],[9,"class","col-sm-10 col-sm-offset-1 col-xs-12"],[7],[0,"\\n"],[4,"each",[[20,["tabData"]]],null,{"statements":[[0," "],[6,"span"],[10,"class",[26,["navigation-item pointer text-uppercase ",[25,"if",[[19,3,["selected"]],"active"],null]]]],[3,"action",[[19,0,[]],"changeTab",[19,3,["name"]]]],[7],[1,[19,3,["name"]],false],[8],[0,"\\n"]],"parameters":[3]},null],[0,"\\n"],[4,"paper-menu",null,null,{"statements":[[4,"component",[[19,1,["trigger"]]],null,{"statements":[[4,"paper-button",null,[["iconButton"],[true]],{"statements":[[0," "],[1,[25,"paper-icon",["settings-icon"],[["class","size"],[[25,"concat",[[20,["dimmerOnClass"]]," no-blue-shadow"],null],28]]],false],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null],[0," \\n"],[4,"component",[[19,1,["content"]]],[["width"],[3]],{"statements":[[4,"if",[[20,["canTryChrome"]]],null,{"statements":[[4,"component",[[19,2,["menu-item"]]],[["class","onClick"],["hidden-xs","tryExtension"]],{"statements":[[0," "],[1,[25,"paper-icon",["extension"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Try the Chrome Extension\\n"]],"parameters":[]},null]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["class","onClick"],["visible-xs","tryAndroid"]],{"statements":[[0," "],[1,[25,"paper-icon",["extension"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Try the Android Extension\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["toggleDimmer"]],{"statements":[[0," "],[1,[25,"paper-icon",["highlight"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Dark Mode: "],[6,"strong"],[7],[1,[25,"if",[[20,["dimmerOn"]],"On","Off"],null],false],[8],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["toggleLightsIcons"]],{"statements":[[0," "],[1,[25,"paper-icon",["lightbulb outline"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Active Lights: "],[6,"strong"],[7],[1,[25,"if",[[20,["lightsIconsOn"]],"Icons","Text"],null],false],[8],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["startIntro"]],{"statements":[[0," "],[1,[25,"paper-icon",["cached"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Restart Tutorial\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["clearAllSettings"]],{"statements":[[0," "],[1,[25,"paper-icon",["settings backup restore"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Reset Settings\\n"]],"parameters":[]},null],[0,"\\n"],[4,"component",[[19,2,["menu-item"]]],[["onClick"],["email"]],{"statements":[[0," "],[1,[25,"paper-icon",["email"],[["class"],[[20,["dimmerOnClass"]]]]],false],[0," Contact\\n"]],"parameters":[]},null]],"parameters":[2]},null]],"parameters":[1]},null],[0," "],[8],[0,"\\n "],[8],[0,"\\n\\n "],[1,[25,"light-group",null,[["lightsData","activeLights","syncLight","apiURL","dimmerOn","lightsIconsOn","storage","pauseLightUpdates"],[[20,["lightsData"]],[20,["activeLights"]],[20,["syncLight"]],[20,["apiURL"]],[20,["dimmerOn"]],[20,["lightsIconsOn"]],[20,["storage"]],[20,["pauseLightUpdates"]]]]],false],[0,"\\n\\n "],[6,"div"],[9,"id","huegasm-content"],[9,"class","row"],[7],[0,"\\n "],[1,[25,"lights-tab",null,[["active","apiURL","lightsData","activeLights","syncLight","trial","colorLoopOn","dimmerOn","playing","pauseLightUpdates"],[[25,"eq",[[20,["selectedTab"]],0],null],[20,["apiURL"]],[20,["lightsData"]],[20,["activeLights"]],[20,["syncLight"]],[20,["trial"]],[20,["colorLoopOn"]],[20,["dimmerOn"]],[20,["playing"]],[20,["pauseLightUpdates"]]]]],false],[0,"\\n\\n "],[1,[25,"music-tab",null,[["active","apiURL","lightsData","activeLights","pauseLightUpdates","dimmerOn","storage","colorLoopOn","playing","action"],[[25,"eq",[[20,["selectedTab"]],1],null],[20,["apiURL"]],[20,["lightsData"]],[20,["activeLights"]],[20,["pauseLightUpdates"]],[20,["dimmerOn"]],[20,["storage"]],[20,["colorLoopOn"]],[20,["playing"]],"startIntro"]]],false],[0,"\\n "],[8],[0,"\\n\\n"],[4,"if",[[20,["firstVisitApp"]]],null,{"statements":[[4,"paper-dialog",null,[["fullscreen","onClose","origin","clickOutsideToClose"],[[20,["fullscreen"]],[25,"action",[[19,0,[]],"closeNotificationModal"],null],[20,["dialogOrigin"]],true]],{"statements":[[4,"paper-dialog-content",null,null,{"statements":[[0," "],[6,"p"],[9,"class","promo-title"],[7],[0,"\\n Check out the "],[6,"a"],[9,"href","https://chrome.google.com/webstore/detail/huegasm-for-philips-hue-l/mbjanbdhcpohhfecjgbdpcfhnnbofooj"],[9,"target","_blank"],[7],[0,"Huegasm Chrome extension"],[8],[0,"\\n "],[8],[0,"\\n "],[6,"p"],[9,"class","promo-text"],[7],[0,"\\n "],[6,"a"],[9,"href","https://chrome.google.com/webstore/detail/huegasm-for-philips-hue-l/mbjanbdhcpohhfecjgbdpcfhnnbofooj"],[9,"target","_blank"],[7],[0,"\\n Huegasm Chrome"],[8],[0," allows for listening for music from either a Chrome tab, microphone or your entire system.\\n "],[6,"br"],[7],[8],[0,"In addition, you will be able to sync the color of your screen to your lights.\\n\\n "],[6,"a"],[9,"href","https://chrome.google.com/webstore/detail/huegasm-for-philips-hue-l/mbjanbdhcpohhfecjgbdpcfhnnbofooj"],[9,"target","_blank"],[7],[0,"\\n "],[6,"img"],[9,"class","promo-img hidden-xs"],[9,"src","assets/images/promo-c0e47948d528375db1ee3a1f6c91dd8d.png"],[7],[8],[0,"\\n "],[8],[0,"\\n "],[8],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"paper-dialog-actions",null,[["class"],["layout-row"]],{"statements":[[0," "],[6,"span"],[9,"class","flex"],[7],[8],[0,"\\n "],[4,"paper-button",null,[["primary","onClick"],[true,[25,"action",[[19,0,[]],"closeNotificationModal"],null]]],{"statements":[[0,"OK"]],"parameters":[]},null],[0,"\\n"]],"parameters":[]},null],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null]],"parameters":[]},{"statements":[[0," "],[1,[25,"paper-progress-circular",null,[["diameter"],[100]]],false],[0,"\\n"]],"parameters":[]}],[0,"\\n"],[1,[25,"ember-notify",null,[["messageStyle","closeAfter"],["bootstrap",5000]]],false]],"hasEval":false}',meta:{moduleName:"huegasm/pods/components/hue-controls/template.hbs"}})}),define("huegasm/pods/components/huegasm-app/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}) var t=Ember.Component,n=Ember.isEmpty,o=Ember.$ e.default=t.extend({bridgeIp:null,bridgeUsername:null,trial:!1,ready:!1,elementId:"huegasm",classNameBindings:["bridgeUsername::display-flex"],init:function(){this._super.apply(this,arguments) var e=this.get("storage") @@ -208,7 +208,7 @@ e instanceof Array?e.forEach(n):n(e),o.length>0&&t.get("notify").alert({html:t.g e.velocity(e.is(":visible")?"slideUp":"slideDown",{duration:300}),this.changePlayerControl("playerBottomDisplayed",!this.get("playerBottomDisplayed"))},goToSong:function(e,t,n){var o=this,s=this.get("dancer"),i=this.get("playQueue") if(s.audio&&this.clearCurrentAudio(!0),!a(i[e])){var l=new Audio l.src=this.get("playQueue")[e].url,l.crossOrigin="anonymous",l.oncanplay=function(){o.set("timeTotal",Math.floor(l.duration)),o.set("soundCloudFuckUps",0)},l.onerror=function(e){var t=o.get("playQueuePointer"),n=o.get("playQueue")[t] -o.get("soundCloudFuckUps")>=o.get("maxSoundCloudFuckUps")?(o.get("notify").alert({html:o.get("tooManySoundCloudFuckUps")}),o.send("play"),o.set("soundCloudFuckUps",0)):(n.local?o.send("removeAudio",t):o.send("next",!0),2===e.target.error.code?o.get("notify").alert({html:o.get("failedToDecodeFileHtml")(n.fileName)}):o.get("notify").alert({html:o.get("failedToPlayFileHtml")(n.fileName)}),o.set("usingBeatPreferences",!1),o.incrementProperty("soundCloudFuckUps"))},l.ontimeupdate=function(){o.set("timeElapsed",Math.floor(l.currentTime))},l.onended=function(){o.send("next")},s.load(l,1),this.set("playQueuePointer",e),this.loadSongBeatPreferences(),t&&this.send("play"),n&&p(this,function(){r(".track"+e).velocity("scroll",{container:r("#play-list-area"),duration:200})})}},removeAudio:function(e){this.get("playQueue").removeAt(e),r("body .tooltip").remove(),this.get("dancer").audio&&this.clearCurrentAudio(!0)},playerAreaPlay:function(){i(r("#player-controls:hover"))&&-1!==this.get("playQueuePointer")&&(this.send("play"),r("#play-notification").velocity({opacity:.8,scale:1},0).velocity({opacity:0,scale:3},500))},play:function(e){var t=this,n=this.get("dancer"),o=this.get("playQueuePointer"),s=this.get("playing"),i=this.get("lightsData") +o.get("soundCloudFuckUps")>=o.get("maxSoundCloudFuckUps")?(o.get("notify").alert({html:o.get("tooManySoundCloudFuckUps")}),o.send("play"),o.set("soundCloudFuckUps",0)):(n.local?o.send("removeAudio",t):o.send("next",!0),2===e.target.error.code?o.get("notify").alert({html:o.get("failedToDecodeFileHtml")(n.fileName)}):o.get("notify").alert({html:o.get("failedToPlayFileHtml")(n.fileName)}),o.set("usingBeatPreferences",!1),o.incrementProperty("soundCloudFuckUps"))},l.ontimeupdate=function(){o.set("timeElapsed",Math.floor(l.currentTime))},l.onended=function(){o.send("next")},s.load(l,1),this.set("playQueuePointer",e),this.loadSongBeatPreferences(),t&&this.send("play"),n&&p(this,function(){r("#play-list-area div div:first").scrollTop(62*e)})}},removeAudio:function(e){this.get("playQueue").removeAt(e),r("body .tooltip").remove(),this.get("dancer").audio&&this.clearCurrentAudio(!0)},playerAreaPlay:function(){i(r("#player-controls:hover"))&&-1!==this.get("playQueuePointer")&&(this.send("play"),r("#play-notification").velocity({opacity:.8,scale:1},0).velocity({opacity:0,scale:3},500))},play:function(e){var t=this,n=this.get("dancer"),o=this.get("playQueuePointer"),s=this.get("playing"),i=this.get("lightsData") if(-1!==o){if(s){n.pause() var a=this.get("preMusicLightsDataCache"),l=function(e){r.ajax(t.get("apiURL")+"/lights/"+e+"/state",{data:JSON.stringify({on:a[e].state.on,hue:a[e].state.hue,bri:a[e].state.bri}),contentType:"application/json",type:"PUT"})} for(var p in i)i.hasOwnProperty(p)&&c(this,l,p,1e3) @@ -231,7 +231,7 @@ if(e.picture){for(var s="",i=0;iSoundCloud user URLs are not supported.',tooManySoundCloudFuckUps:'',notStreamableHtml:function(e){return'"},urlNotFoundHtml:function(e){return'"},failedToPlayFileHtml:function(e){return'"},failedToDecodeFileHtml:function(e){return'"},scUrl:o("playQueuePointer","playQueue.[]",function(){var e=null,t=this.get("playQueue")[this.get("playQueuePointer")] +e.default=t.create({classNames:["col-sm-10","col-sm-offset-1","col-xs-12"],classNameBindings:["active::hidden"],elementId:"music-tab",dancer:null,notify:r.service(),beatOptions:{threshold:{range:{min:0,max:.5},step:.01,defaultValue:.3,pips:{mode:"values",values:[0,.5],density:10,format:{to:function(e){return e=0===e?"High":"Low"},from:function(e){return e}}}},hueRange:{range:{min:0,max:65535},step:1,defaultValue:.3,pips:{mode:"values",values:[0,25500,46920,65535],density:10,format:{to:function(e){return e=0===e||65535===e?"Red":25500===e?"Green":"Blue"},from:function(e){return e}}}},brightnessRange:{range:{min:1,max:254},step:1,defaultValue:0,pips:{mode:"values",values:[1,63,127,190,254],density:10,format:{to:function(e){return 63===e?e=25:127===e?e=50:190===e?e=75:254===e&&(e=100),e},from:function(e){return e}}}}},beatDelay:0,threshold:.2,hueRange:[0,65535],brightnessRange:[1,254],oldThreshold:null,playlistColumns:[100],playQueuePointer:-1,playQueue:c(),timeElapsed:0,timeTotal:0,lastLightBopIndex:0,colorLoopOn:!1,ambienceMode:!1,blackoutMode:!1,playerBottomDisplayed:!0,dragging:!1,draggingOverPlayListArea:!1,dragLeaveTimeoutHandle:null,isShowingAddSoundCloudModal:!1,isShowingUrlModal:!1,flashingTransitions:!1,repeat:0,shuffle:!1,volumeMuted:!1,volume:100,paused:!1,playing:!1,songBeatPreferences:{},usingBeatPreferences:!1,oldBeatPrefCache:null,storage:null,firstVisit:!0,soundCloudFuckUps:0,maxSoundCloudFuckUps:3,shufflePlayed:[],filledConnect:[!0,!1],hueRangeConnect:[!1,!0,!1],SC_CLIENT_ID:"aeec0034f58ecd85c2bd1deaecc41594",scUserNotSupportedHtml:'',tooManySoundCloudFuckUps:'',notStreamableHtml:function(e){return'"},urlNotFoundHtml:function(e){return'"},failedToPlayFileHtml:function(e){return'"},failedToDecodeFileHtml:function(e){return'"},scUrl:o("playQueuePointer","playQueue.[]",function(){var e=null,t=this.get("playQueue")[this.get("playQueuePointer")] return t&&t.scUrl&&(e=t.scUrl),e}),playQueueEmpty:o.empty("playQueue"),playQueueNotEmpty:o.notEmpty("playQueue"),playQueueMultiple:o("playQueue.[]",function(){return this.get("playQueue").length>1}),seekPosition:o("timeElapsed","timeTotal",function(){var e=this.get("timeTotal"),t=this.get("timeElapsed") return 0===e?0:t/e*100}),largeArtworkPic:o("playQueuePointer","currentVisName",function(){var e="",t=this.get("currentVisName"),n=this.get("playQueuePointer"),o=this.get("playQueue") if(-1!==n&&"None"===t){var i=o[n] @@ -291,4 +291,4 @@ e&&e()},supplant:function(e,t,n){return n=n||/\{([^\{\}]*)\}/g,e.replace(n,funct try{for(var i in o)o.hasOwnProperty(i)&&(s=s[o[i]])}catch(t){s=e}return"string"==typeof s||"number"==typeof s?s:e})},nextTick:function(e,t,n,o,s){for(;!s&&n',beyond_ceiling_pendant_table:'',bloom:'',br30:'',br30_slim:'',bridge_v1:'',bridge_v2:'',ceiling_round:'',ceiling_square:'',entity:'',floor:'',go:'',gu10:'',gu10_perfectfit:'',hds:'',impulse:'',iris:'',lightstrip:'',motion_sensor:'',pendant_oval:'',pendant_round:'',pendant_square:'',phoenix_ceiling:'',phoenix_down:'',recessed:'',storylight:'',table:'',tap:'',white_and_color_e27:'',white_e27:''},outline:{aura:'',beyond_ceiling_pendant_table:'',bloom:'',br30:'',br30_slim:'',bridge_v1:'',bridge_v2:'',ceiling_round:'',ceiling_square:'',entity:'',floor:'',go:'',gu10:'',gu10_perfectfit:'',hds:'',impulse:'',iris:'',lightstrip:'',motion_sensor:'',par16:'',pendant_oval:'',pendant_round:'',pendant_square:'',phoenix_ceiling:'',phoenix_ceiling_2:'',phoenix_down:'',phoenix_pendant:'',phoenix_table:'',phoenix_wall:'',recessed:'',storylight:'',table:'',tap:'',white_and_color_e27:'',white_e27:''}}}},"safari-pinned-tab":''}}),define("huegasm/templates/application",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"sESP0Z+T",block:'{"symbols":[],"statements":[[1,[18,"welcome-page"],false],[0,"\\n"],[0,"\\n"],[1,[18,"outlet"],false]],"hasEval":false}',meta:{moduleName:"huegasm/templates/application.hbs"}})}),define("huegasm/templates/components/transition-group",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.HTMLBars.template({id:"Z/BMdkzA",block:'{"symbols":["&default"],"statements":[[11,1],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"huegasm/templates/components/transition-group.hbs"}})}),define("huegasm/utils/clamp",["exports","ember-paper/utils/clamp"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("huegasm/config/environment",[],function(){try{var e="huegasm/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n={default:JSON.parse(unescape(t))} -return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(t){throw new Error('Could not read config from meta tag with name "'+e+'".')}}),runningTests||require("huegasm/app").default.create({name:"huegasm",version:"1.0.0+4cc00639"}) +return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(t){throw new Error('Could not read config from meta tag with name "'+e+'".')}}),runningTests||require("huegasm/app").default.create({name:"huegasm",version:"1.0.0+2895d491"}) diff --git a/index.html b/index.html index 605108a..075683b 100644 --- a/index.html +++ b/index.html @@ -27,7 +27,7 @@ - + @@ -63,7 +63,7 @@ - +