mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-01-25 19:05:37 +00:00
Added duration to songs
This commit is contained in:
@@ -154,6 +154,13 @@ var Helper = {
|
||||
return Math.floor(Math.random() * (max - min)) + min;
|
||||
},
|
||||
|
||||
secondsToOther: function(seconds){
|
||||
var time = seconds;
|
||||
var minutes = Math.floor(time/60);
|
||||
time = time - (minutes * 60);
|
||||
return [minutes, time];
|
||||
},
|
||||
|
||||
rgbToHsl: function(arr, light){
|
||||
r = arr[0];
|
||||
g = arr[1];
|
||||
|
||||
Reference in New Issue
Block a user