diff --git a/app/components/controls/music-control.js b/app/components/controls/music-control.js index df02b3e..b6fecfe 100644 --- a/app/components/controls/music-control.js +++ b/app/components/controls/music-control.js @@ -8,28 +8,26 @@ export default Em.Component.extend(musicControlMixin, { onActiveChange: function(){ if(this.get('active')){ Em.$('#beatSpeakerCenter').removeClass('pop'); - Em.$('#playNotification').removeClass('fadeout'); + Em.$('#playNotification').removeClass('fadeOut'); } }.observes('active'), actions: { goToSong: function(index){ - //if(index !== this.get('playQueuePointer')) { - var dancer = this.get('dancer'), audio = new Audio(); - audio.src = this.get('playQueue')[index].url; + var dancer = this.get('dancer'), audio = new Audio(); + audio.src = this.get('playQueue')[index].url; - if(dancer.audio) { - this.clearCurrentAudio(true); - } + if(dancer.audio) { + this.clearCurrentAudio(true); + } - dancer.load(audio); - this.setProperties({ - playQueuePointer: index, - timeElapsed: 0 - }); + dancer.load(audio); + this.setProperties({ + playQueuePointer: index, + timeElapsed: 0 + }); - this.send('play'); - //} + this.send('play'); }, removeAudio: function(index){ if(index === this.get('playQueuePointer')) { @@ -58,7 +56,8 @@ export default Em.Component.extend(musicControlMixin, { playerAreaPlay: function(){ if(Em.isEmpty(Em.$('#playerControls:hover'))){ this.send('play'); - Em.$('#playNotification').removeClass('fadeout').prop('offsetWidth', Em.$('#playerArea').prop('offsetWidth')).addClass('fadeout'); + this.set('fadeOutNotification', true); + Em.$('#playNotification').removeClass('fadeOut').prop('offsetWidth', Em.$('#playNotification').prop('offsetWidth')).addClass('fadeOut'); } }, play: function () { diff --git a/app/components/mixins/music-control.js b/app/components/mixins/music-control.js index c3c03df..68503f2 100644 --- a/app/components/mixins/music-control.js +++ b/app/components/mixins/music-control.js @@ -90,6 +90,8 @@ export default Em.Mixin.create({ // audio: playing or paused playing: false, + fadeOutNotification: false, + speakerViewed: true, speakerLabel: function() { if(this.get('speakerViewed')){ diff --git a/app/styles/app.scss b/app/styles/app.scss index 3050da5..a0147b2 100644 --- a/app/styles/app.scss +++ b/app/styles/app.scss @@ -456,7 +456,7 @@ md-switch.md-default-theme.md-checked .md-thumb { opacity: 0; } -.fadeOut:before { +.fadeOut { animation-duration: 1s; animation-name: fadeOut; } @@ -529,7 +529,7 @@ md-switch.md-default-theme.md-checked .md-thumb { background: white !important; } -#playerArea * .noUi-handle:after, #playerArea * .noUi-handle:before { +#playerArea * .noUi-handle::after, #playerArea * .noUi-handle::before { content: none; } diff --git a/app/templates/components/controls/music-control.hbs b/app/templates/components/controls/music-control.hbs index a48394e..5fd67a7 100644 --- a/app/templates/components/controls/music-control.hbs +++ b/app/templates/components/controls/music-control.hbs @@ -1,7 +1,7 @@
-
+
{{range-slider start=seekPosition min=0 max=100 id="seekSlider" slide="seekChanged"}} @@ -96,7 +96,7 @@
- {{#if speakerViewed}} + {{#liquid-if speakerViewed}}
@@ -109,7 +109,7 @@

{{{item}}}

{{/each}}
- {{/if}} + {{/liquid-if}} {{#paper-switch checked=speakerViewed}} {{speakerLabel}} {{/paper-switch}}