diff --git a/website/artist.html b/website/artist.html index 6c54f63..6ca0ef4 100644 --- a/website/artist.html +++ b/website/artist.html @@ -14,7 +14,7 @@
The current database wasn't built with all current rules in effect. Any problem below might be a false alarm and fixing it could create redundant rules. | " diff --git a/website/maloja.css b/website/maloja.css index 94b8901..0d482b8 100644 --- a/website/maloja.css +++ b/website/maloja.css @@ -39,22 +39,61 @@ table.top_info td.text h1 { display:inline; padding-right:5px; } - +/* table.top_info td.text .stats { color:grey; } +*/ +.stats { + color:grey; +} +.rank { + text-align:right; + color:grey; +} + +table.list { + border-collapse:collapse; +} + +table.list tr { + border-bottom:2px solid; + border-color:rgba(0,0,0,0) + +} table tr:nth-child(even) { background-color:#37373B; } +table tr:nth-child(5n) { + border-color:rgba(120,120,120,0.2); + +} + table td.time { width:200px; - color:lightgray; + color:gray; } -table td.artists,td.artist,td.title,td.amount { +table td.artists,td.artist,td.title { width:350px; } +table td.amount { + width:50px; + text-align:right; +} +table td.bar { + width:300px; +} +table td.bar div { + background-color:beige; + height:20px; /* can only do this absolute apparently */ + position:relative; +} +table tr:hover td.bar div { + background-color:yellow; + cursor:pointer; +} table td.button { width:200px; diff --git a/website/scrobbles.py b/website/scrobbles.py index 696c7f9..78b8176 100644 --- a/website/scrobbles.py +++ b/website/scrobbles.py @@ -24,7 +24,7 @@ def replacedict(keys,dbport): db_data = json.loads(response.read()) scrobbles = db_data["list"] - html = "
" timestring = getTimeDesc(s["time"]) diff --git a/website/topartists.html b/website/topartists.html index 6290139..cf941c3 100644 --- a/website/topartists.html +++ b/website/topartists.html @@ -14,7 +14,7 @@ |
- Top Artists+ Top Artistsin KEY_RANGE KEY_SCROBBLES Scrobbles diff --git a/website/topartists.py b/website/topartists.py index a961cf8..17ddf95 100644 --- a/website/topartists.py +++ b/website/topartists.py @@ -23,13 +23,18 @@ def replacedict(keys,dbport): scrobbles = len(scrobblelist) + maxbar = charts[0]["scrobbles"] - - html = "
|