new progress slider

This commit is contained in:
booploops 2021-12-08 18:10:00 -08:00
parent ee2ea8c4cf
commit 43a50625a1
3 changed files with 47 additions and 28 deletions

View file

@ -288,6 +288,15 @@ const app = new Vue({
this.artistPage.data = artistData.data[0]
this.page = "artist-page"
},
progressBarStyle () {
let val = this.playerLCD.playbackDuration
let min = 0
let max = this.mk.currentPlaybackDuration
let value = (val-min)/(max-min)*100
return {
'background': ('linear-gradient(to right, var(--keyColor) 0%, var(--keyColor) ' + value + '%, #333 ' + value + '%, #333 100%)')
}
},
hashCode(str) {
var hash = 0, i, chr;
if (str.length === 0) return hash;