Added convertToMins function and time in app-chrome

This commit is contained in:
Core 2021-12-14 17:57:56 +00:00
parent 042229ea90
commit 6143266965
3 changed files with 18 additions and 1 deletions

View file

@ -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;