-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add shuffle #61
base: master
Are you sure you want to change the base?
add shuffle #61
Conversation
ngSoundManager.directive('shuffleMusic', ['angularPlayer', function (angularPlayer) { | ||
return { | ||
restrict: "EA", | ||
link: function (scope, element, attrs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'attrs' is defined but never used.
ngSoundManager.directive('shuffleMusic', ['angularPlayer', function (angularPlayer) { | ||
return { | ||
restrict: "EA", | ||
link: function (scope, element, attrs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'attrs' is defined but never used.
restrict: "EA", | ||
link: function (scope, element, attrs) { | ||
|
||
element.bind('click', function (event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'event' is defined but never used.
restrict: "EA", | ||
link: function (scope, element, attrs) { | ||
|
||
element.bind('click', function (event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'event' is defined but never used.
@@ -0,0 +1,18 @@ | |||
ngSoundManager.directive('shuffleMusic', ['angularPlayer', function (angularPlayer) { | |||
return { | |||
restrict: "EA", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mixed double and single quotes.
@@ -0,0 +1,18 @@ | |||
ngSoundManager.directive('shuffleMusic', ['angularPlayer', function (angularPlayer) { | |||
return { | |||
restrict: "EA", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mixed double and single quotes.
@@ -0,0 +1,18 @@ | |||
ngSoundManager.directive('shuffleMusic', ['angularPlayer', function (angularPlayer) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
'ngSoundManager' is not defined.
@@ -0,0 +1,18 @@ | |||
ngSoundManager.directive('shuffleMusic', ['angularPlayer', function (angularPlayer) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
'ngSoundManager' is not defined.
src/03-factory-angularPlayer.js
Outdated
} else { | ||
shuffle = true; | ||
tempTrack = angular.copy(soundManager.soundIDs); | ||
tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random() }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
Missing semicolon.
src/03-factory-angularPlayer.js
Outdated
} else { | ||
shuffle = true; | ||
tempTrack = angular.copy(soundManager.soundIDs); | ||
tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random() }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
Missing semicolon.
useTrack = tempTrack; | ||
} | ||
|
||
var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
useTrack = tempTrack; | ||
} | ||
|
||
var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
src/03-factory-angularPlayer.js
Outdated
// generate shuffle track list | ||
if(shuffle === true && isPlaying === true){ | ||
tempTrack = angular.copy(soundManager.soundIDs); | ||
tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random() }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
Missing semicolon.
src/03-factory-angularPlayer.js
Outdated
// generate shuffle track list | ||
if(shuffle === true && isPlaying === true){ | ||
tempTrack = angular.copy(soundManager.soundIDs); | ||
tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random() }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
Missing semicolon.
src/03-factory-angularPlayer.js
Outdated
console.log(soundManager.soundIDs); | ||
console.log(tempTrack); | ||
|
||
var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
src/03-factory-angularPlayer.js
Outdated
console.log(soundManager.soundIDs); | ||
console.log(tempTrack); | ||
|
||
var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
useTrack = tempTrack; | ||
} | ||
|
||
var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
useTrack = tempTrack; | ||
} | ||
|
||
var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
useTrack = tempTrack; | ||
} | ||
|
||
var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
ngSoundManager.directive('shuffleAllMusic', ['angularPlayer', function (angularPlayer) { | ||
return { | ||
restrict: "EA", | ||
link: function (scope, element, attrs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'attrs' is defined but never used.
restrict: "EA", | ||
link: function (scope, element, attrs) { | ||
|
||
element.bind('click', function (event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'event' is defined but never used.
@@ -0,0 +1,13 @@ | |||
ngSoundManager.directive('shuffleAllMusic', ['angularPlayer', function (angularPlayer) { | |||
return { | |||
restrict: "EA", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mixed double and single quotes.
@@ -0,0 +1,13 @@ | |||
ngSoundManager.directive('shuffleAllMusic', ['angularPlayer', function (angularPlayer) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
'ngSoundManager' is not defined.
var trackToPlay = null; | ||
shuffle = true; | ||
tempTrack = angular.copy(soundManager.soundIDs); | ||
tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random(); }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
} else { | ||
shuffle = true; | ||
tempTrack = angular.copy(soundManager.soundIDs); | ||
tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random(); }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
useTrack = tempTrack; | ||
} | ||
|
||
var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
// generate shuffle track list | ||
if(shuffle === true && isPlaying === true){ | ||
tempTrack = angular.copy(soundManager.soundIDs); | ||
tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random(); }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
ngSoundManager.directive('shuffleAllMusic', ['angularPlayer', function (angularPlayer) { | ||
return { | ||
restrict: "EA", | ||
link: function (scope, element, attrs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'attrs' is defined but never used.
restrict: "EA", | ||
link: function (scope, element, attrs) { | ||
|
||
element.bind('click', function (event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'event' is defined but never used.
@@ -0,0 +1,13 @@ | |||
ngSoundManager.directive('shuffleAllMusic', ['angularPlayer', function (angularPlayer) { | |||
return { | |||
restrict: "EA", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mixed double and single quotes.
@@ -0,0 +1,13 @@ | |||
ngSoundManager.directive('shuffleAllMusic', ['angularPlayer', function (angularPlayer) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
'ngSoundManager' is not defined.
var trackToPlay = null; | ||
shuffle = true; | ||
tempTrack = angular.copy(soundManager.soundIDs); | ||
tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random(); }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
} else { | ||
shuffle = true; | ||
tempTrack = angular.copy(soundManager.soundIDs); | ||
tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random(); }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
useTrack = tempTrack; | ||
} | ||
|
||
var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
// generate shuffle track list | ||
if(shuffle === true && isPlaying === true){ | ||
tempTrack = angular.copy(soundManager.soundIDs); | ||
tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random(); }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
add feature Shuffle