diff --git a/website/maloja.css b/website/maloja.css index 47f34b8..3edab07 100644 --- a/website/maloja.css +++ b/website/maloja.css @@ -231,6 +231,13 @@ table.tiles_top td { border:0px; } +table.tiles_top:hover td div { + opacity:0.2; +} +table.tiles_top:hover td div:hover { + opacity:1; +} + table.tiles_top, table.tiles_sub { border-collapse: collapse; } @@ -247,12 +254,14 @@ table.tiles_sub { width:100%; } - -table.tiles_top td div { +table.tiles_top td { background-size:cover; background-position:center; - height:100%; - width:100%; + vertical-align:bottom; +} + +table.tiles_top td span { + background-color:rgba(0,0,0,0.7); } table.tiles_2x2 td { diff --git a/website/start.html b/website/start.html index ff3cf0d..99d356b 100644 --- a/website/start.html +++ b/website/start.html @@ -16,35 +16,35 @@

Top Artists

- +
KEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINK - - + + - - + +
KEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINKKEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINKKEY_POSITION_ARTIST KEY_ARTISTLINK
- - - + + + - - - + + + - - - + + +
KEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINKKEY_POSITION_ARTIST KEY_ARTISTLINKKEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINKKEY_POSITION_ARTIST KEY_ARTISTLINKKEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINK
KEY_POSITION_ARTIST KEY_ARTISTLINKKEY_POSITION_ARTIST KEY_ARTISTLINKKEY_POSITION_ARTIST KEY_ARTISTLINK
@@ -60,35 +60,35 @@

Top Tracks

- +
KEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINK - - + + - - + +
KEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINKKEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINKKEY_POSITION_TRACK KEY_TRACKLINK
- - - + + + - - - + + + - - - + + +
KEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINKKEY_POSITION_TRACK KEY_TRACKLINKKEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINKKEY_POSITION_TRACK KEY_TRACKLINKKEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINK
KEY_POSITION_TRACK KEY_TRACKLINKKEY_POSITION_TRACK KEY_TRACKLINKKEY_POSITION_TRACK KEY_TRACKLINK
diff --git a/website/start.py b/website/start.py index d598f1b..b97d856 100644 --- a/website/start.py +++ b/website/start.py @@ -22,7 +22,6 @@ def replacedict(keys,dbport): topartist = charts[0]["artist"] artisttitles = [c["artist"] for c in charts] - #chartslistimg = [getArtistInfo(a).get("image") for a in chartslist] artistimages = [info.get("image") for info in getArtistsInfo(artisttitles)] artistlinks = [artistLink(a) for a in artisttitles] @@ -60,8 +59,6 @@ def replacedict(keys,dbport): response = urllib.request.urlopen("http://localhost:" +str(dbport) + "/numscrobbles") stats = json.loads(response.read()) scrobbles_total = "" + str(stats["amount"]) + "" - #stats_tracks = "" + str(stats["tracks"]) + "" - #stats_artists = "" + str(stats["artists"]) + ""