From bf3bf92221cb7c06bcd93683db53b54b28ec31b5 Mon Sep 17 00:00:00 2001 From: rvbglas Date: Thu, 28 Dec 2017 14:06:55 +0300 Subject: [PATCH] =?utf8?q?=D0=9A=D0=BE=D1=81=D0=BC=D0=B5=D1=82=D0=B8=D1=87?= =?utf8?q?=D0=B5=D1=81=D0=BA=D0=B8=D0=B5=20=D0=B4=D0=BE=D1=80=D0=B0=D0=B1?= =?utf8?q?=D0=BE=D1=82=D0=BA=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- index.html | 20 +++++++++---------- mpd.css | 21 +++++++++++++++++++- mpd.js | 56 +++++++++++++++++++++++++++--------------------------- 3 files changed, 58 insertions(+), 39 deletions(-) diff --git a/index.html b/index.html index 608a4a2..a80c421 100644 --- a/index.html +++ b/index.html @@ -16,7 +16,7 @@ Now playing - + @@ -30,13 +30,13 @@
- - - - - - - + + + + + + +
@@ -44,9 +44,9 @@
- + - +
Volume:
diff --git a/mpd.css b/mpd.css index 597f527..27e2150 100644 --- a/mpd.css +++ b/mpd.css @@ -33,6 +33,24 @@ button } .button +{ + cursor: pointer; + width: 30px; +} + +.medium-button +{ + cursor: pointer; + width: 20px; +} + +.small-button +{ + cursor: pointer; + width: 15px; +} + +.link { cursor: pointer; } @@ -191,4 +209,5 @@ button #credits { font-size: 0.6em; background-color: Black; -} \ No newline at end of file +} + diff --git a/mpd.js b/mpd.js index f1c60cf..c23c316 100644 --- a/mpd.js +++ b/mpd.js @@ -98,19 +98,19 @@ function RefreshPageStatus() { document.getElementById('nowplaying_trackname').innerHTML=nowPlayingName; RefreshTime() if (currentState=="play") { - document.getElementById('playpausebutton').innerHTML=""; + document.getElementById('playpausebutton').innerHTML=""; } else { - document.getElementById('playpausebutton').innerHTML=""; + document.getElementById('playpausebutton').innerHTML=""; } if (currentState=="stop") { - document.getElementById('stopbutton').innerHTML=""; + document.getElementById('stopbutton').innerHTML=""; } else { - document.getElementById('stopbutton').innerHTML=""; + document.getElementById('stopbutton').innerHTML=""; } if (returnedData["repeat"]=="1") { - document.getElementById('repeatstate').innerHTML=""; + document.getElementById('repeatstate').innerHTML=""; } else { - document.getElementById('repeatstate').innerHTML=""; + document.getElementById('repeatstate').innerHTML=""; } document.getElementById('volume_total').innerHTML="
"; @@ -142,16 +142,16 @@ req.onreadystatechange = function () { var playlistMenuText = "\ \ - \
\ - \ - \ - \ + \ + \ + \ + \
"; var itemsText="\ \ - \ + \ "; var even = 0; @@ -173,16 +173,16 @@ req.onreadystatechange = function () { "+(Number(id)+1)+"\ \ \ \ \ \ "; } @@ -209,14 +209,14 @@ req.onreadystatechange = function () { var playlistMenuText = "
TitleControlsTitleControls
\ - "+name+"\ + "+name+"\ \ - \ + \ \ - \ + \ \ - \ + \
\ \ - \
\ - \ + \ + \
"; var itemsText= "\ \ - \ + \ "; var even = 0; @@ -230,7 +230,7 @@ req.onreadystatechange = function () { even = ! even; var itemsText = itemsText + "\ \ - \ + \ "; } @@ -263,14 +263,14 @@ req.onreadystatechange = function () { if (type == "directory") { itemsText = itemsText + ""; + "+tailName+""; }; if (type == "file") { itemsText = itemsText + ""; + "+tailName+""; }; itemsText = itemsText + ""; @@ -301,13 +301,13 @@ req.onreadystatechange = function () { var returnedData = JSON.parse(this.responseText); playlistMenuText="
TitleControlsTitleControls
....\ - "+tailName+"\ - \ + \ - "+tailName+"\ - \ +
\ \ - \
\ - \ + \ + \
"; itemsText="\ \ - \ + \ "; var even = 0; @@ -324,8 +324,8 @@ req.onreadystatechange = function () { itemsText = itemsText + "\ \ - \ - \ + \ + \ "; } -- 2.34.1
NameControlsNameControls
"+name+""+name+"