From: rvbglas Date: Thu, 28 Dec 2017 11:06:55 +0000 (+0300) Subject: Косметические доработки. X-Git-Url: https://git.rvb.name/mpd-lua.git/commitdiff_plain/bf3bf92221cb7c06bcd93683db53b54b28ec31b5?ds=inline;hp=58b2d1c3e2c20aaa5d177dc3f60f876534aba55f Косметические доработки. --- 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 + "\ \ - \ - \ + \ + \ "; }
NameControlsNameControls
"+name+""+name+"