Added convertToMins function and time in app-chrome
This commit is contained in:
parent
042229ea90
commit
6143266965
3 changed files with 18 additions and 1 deletions
|
@ -429,6 +429,11 @@ const app = new Vue({
|
|||
return this.playerLCD.playbackDuration
|
||||
}
|
||||
},
|
||||
convertToMins(time) {
|
||||
let mins = Math.floor(time/60)
|
||||
let seconds = (Math.floor(time%60) / 100).toFixed(2)
|
||||
return `${mins}:${seconds.replace("0.","")}`
|
||||
},
|
||||
hashCode(str) {
|
||||
var hash = 0, i, chr;
|
||||
if (str.length === 0) return hash;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue