From b6a887f055d45761adfb09f1e390b01e0e8f62ab Mon Sep 17 00:00:00 2001 From: jcorporation Date: Thu, 7 Jun 2018 19:59:58 +0100 Subject: [PATCH 1/2] Fixed issue #13 --- htdocs/css/mpd.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/css/mpd.css b/htdocs/css/mpd.css index e27ccd7..2bb9b6e 100644 --- a/htdocs/css/mpd.css +++ b/htdocs/css/mpd.css @@ -92,8 +92,8 @@ tbody { font-weight: 400; src: url(/assets/MaterialIcons-Regular.eot); /* For IE6-8 */ src: local('Material Icons'), - local('MaterialIcons-Regular'), - url(/assets/MaterialIcons-Regular.woff2) format('woff2'), + local('MaterialIcons-Regular'); + src: url(/assets/MaterialIcons-Regular.woff2) format('woff2'), url(/assets/MaterialIcons-Regular.woff) format('woff'), url(/assets/MaterialIcons-Regular.ttf) format('truetype'); } From 9ffa3c17bdf6ba0950a9f048284cac95737deb4b Mon Sep 17 00:00:00 2001 From: jcorporation Date: Sun, 10 Jun 2018 18:54:57 +0200 Subject: [PATCH 2/2] Added Stop button, issue #14 --- htdocs/index.html | 3 +++ htdocs/js/mpd.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/htdocs/index.html b/htdocs/index.html index 0d5ead1..316d793 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -41,6 +41,9 @@ + diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index bae5073..72f194c 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -907,6 +907,10 @@ function clickPlay() { socket.send('MPD_API_SET_PAUSE'); } +function clickStop() { + socket.send('MPD_API_SET_STOP'); +} + function setLocalStream(mpdhost,streamport) { var mpdstream = 'http://'; if ( mpdhost == '127.0.0.1' || mpdhost == 'localhost')