diff --git a/index.html b/index.html index 3074d34..0129a3c 100644 --- a/index.html +++ b/index.html @@ -22,7 +22,6 @@
{{ title }}
-
remove crop_landscape @@ -194,11 +193,13 @@

Artists

-
+
-
-
+
+ +
+
@@ -224,7 +225,7 @@
{{ song.artists.join(", ") }}
- + diff --git a/package.json b/package.json index 6921831..5ee674a 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "MJam", + "name": "mjam", "version": "0.1.3-beta", "description": "An MP3 Player", "main": "main.js", diff --git a/scripts/components/nowplaying.js b/scripts/components/nowplaying.js index b9efd4e..45c02b6 100644 --- a/scripts/components/nowplaying.js +++ b/scripts/components/nowplaying.js @@ -3,6 +3,9 @@ const { savePlaylists, saveSettings } = require("../methods") const nowplaying_frame = new Vue({ el: "#nowplaying", + data: { + tym: "" + }, computed: { loved(){ return state.playlists.loved.indexOf(this.song.src) != -1 @@ -35,6 +38,9 @@ const nowplaying_frame = new Vue({ toggleRepeat(){ state.settings.repeat = !state.settings.repeat }, + seek(){ + // state.seek(tym) + }, toggleLoved(){ let song_src = this.song.src let index = state.playlists.loved.indexOf(song_src) diff --git a/scripts/state.js b/scripts/state.js index 7062d45..4551929 100644 --- a/scripts/state.js +++ b/scripts/state.js @@ -126,6 +126,9 @@ const state = new Vue({ for(i in this.nowplaying.ids){ this.nowplaying.instance.pause(this.nowplaying.ids[i]) } + }, + seek(){ + this.nowplaying.instance.seek(duration) } } }) diff --git a/stylesheets/nowplaying.css b/stylesheets/nowplaying.css index 2542ddf..efdec19 100644 --- a/stylesheets/nowplaying.css +++ b/stylesheets/nowplaying.css @@ -74,6 +74,7 @@ display: inline-flex; align-items: center; } + .seekbar-wrapper .seekbar { height: 3px; width: 100%;