1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00
maloja/website/start.html

128 lines
5.5 KiB
HTML
Raw Normal View History

2019-02-02 18:54:01 +03:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Maloja</title>
2019-03-29 21:44:42 +03:00
2019-03-03 15:38:53 +03:00
<script>
function showRange(identifier,unit) {
modules = document.getElementsByClassName("stat_module_" + identifier)
2019-03-03 15:38:53 +03:00
for (var i=0;i<modules.length;i++) {
modules[i].setAttribute("style","display:none;")
}
document.getElementById(identifier + "_" + unit).setAttribute("style","")
2019-03-29 21:44:42 +03:00
selectors = document.getElementsByClassName("stat_selector_" + identifier)
2019-03-03 15:38:53 +03:00
for (var i=0;i<selectors.length;i++) {
selectors[i].setAttribute("style","")
}
document.getElementById("selector_" + identifier + "_" + unit).setAttribute("style","opacity:0.5;")
}
document.addEventListener('DOMContentLoaded',function() {KEY_JS_INIT_TILES})
2019-03-03 15:38:53 +03:00
</script>
2019-02-02 18:54:01 +03:00
</head>
2019-03-29 21:44:42 +03:00
2019-02-02 18:54:01 +03:00
<body>
2019-03-29 21:44:42 +03:00
2019-03-06 19:50:36 +03:00
<!--<div class="header"><h1>Maloja</h1>
</div>-->
2019-03-29 21:44:42 +03:00
<h1><a href="/charts_artists?max=50">Top Artists</a></h1>
<!--All Time | This Year | This Month | This Week-->
2019-03-29 21:44:42 +03:00
<span onclick="showRange('topartists','week')" class="stat_selector_topartists" id="selector_topartists_week">This Week</span>
| <span onclick="showRange('topartists','month')" class="stat_selector_topartists" id="selector_topartists_month">This Month</span>
2019-03-29 21:44:42 +03:00
| <span onclick="showRange('topartists','year')" class="stat_selector_topartists" id="selector_topartists_year">This Year</span>
| <span onclick="showRange('topartists','alltime')" class="stat_selector_topartists" id="selector_topartists_alltime" style="opacity:0.5;">All Time</span>
2019-03-29 21:44:42 +03:00
<br/><br/>
2019-03-29 21:44:42 +03:00
<span class="stat_module_topartists" id="topartists_week" style="display:none;">KEY_TOPARTISTS_WEEK</span>
<span class="stat_module_topartists" id="topartists_month" style="display:none;">KEY_TOPARTISTS_MONTH</span>
<span class="stat_module_topartists" id="topartists_year" style="display:none;">KEY_TOPARTISTS_YEAR</span>
<span class="stat_module_topartists" id="topartists_alltime">KEY_TOPARTISTS_TOTAL</span>
2019-03-29 21:44:42 +03:00
<h1><a href="/charts_tracks?max=50">Top Tracks</a></h1>
2019-03-29 21:44:42 +03:00
<span onclick="showRange('toptracks','week')" class="stat_selector_toptracks" id="selector_toptracks_week">This Week</span>
| <span onclick="showRange('toptracks','month')" class="stat_selector_toptracks" id="selector_toptracks_month">This Month</span>
2019-03-29 21:44:42 +03:00
| <span onclick="showRange('toptracks','year')" class="stat_selector_toptracks" id="selector_toptracks_year">This Year</span>
| <span onclick="showRange('toptracks','alltime')" class="stat_selector_toptracks" id="selector_toptracks_alltime" style="opacity:0.5;">All Time</span>
2019-03-29 21:44:42 +03:00
<br/><br/>
2019-03-29 21:44:42 +03:00
<span class="stat_module_toptracks" id="toptracks_week" style="display:none;">KEY_TOPTRACKS_WEEK</span>
<span class="stat_module_toptracks" id="toptracks_month" style="display:none;">KEY_TOPTRACKS_MONTH</span>
<span class="stat_module_toptracks" id="toptracks_year" style="display:none;">KEY_TOPTRACKS_YEAR</span>
<span class="stat_module_toptracks" id="toptracks_alltime">KEY_TOPTRACKS_TOTAL</span>
2019-03-29 21:44:42 +03:00
2019-02-03 18:52:37 +03:00
<div class="sidelist">
<h1><a href="/scrobbles?max=100">Last Scrobbles</a></h1>
2019-03-12 01:39:46 +03:00
<span class="stats">Today</span> KEY_SCROBBLE_NUM_TODAY
<span class="stats">This month</span> KEY_SCROBBLE_NUM_MONTH
<span class="stats">This year</span> KEY_SCROBBLE_NUM_YEAR
<span class="stats">All Time</span> KEY_SCROBBLE_NUM_TOTAL
2019-02-03 19:36:21 +03:00
<br/><br/>
2019-03-29 21:44:42 +03:00
2019-03-03 15:38:53 +03:00
<span class="stat_module">KEY_SCROBBLES</span>
2019-03-29 21:44:42 +03:00
2019-02-18 19:22:44 +03:00
<br/>
2019-03-29 21:44:42 +03:00
2019-02-20 01:18:46 +03:00
<h1><a href="/pulse?step=month&trail=1">Pulse</a></h1>
2019-03-29 21:44:42 +03:00
<!--
2019-02-20 01:18:46 +03:00
<a href="/pulse?step=day&trail=1">Days</a>
2019-03-29 21:44:42 +03:00
<a href="/pulse?step=week&trail=1">Weeks</a>
<a href="/pulse?step=month&trail=1">Months</a>
<a href="/pulse?step=year&trail=1">Years</a>
2019-02-20 01:18:46 +03:00
-->
2019-03-29 21:44:42 +03:00
<span onclick="showRange('pulse','days')" class="stat_selector_pulse" id="selector_pulse_days">7 days</span>
| <span onclick="showRange('pulse','weeks')" class="stat_selector_pulse" id="selector_pulse_weeks">12 weeks</span>
2019-03-29 21:44:42 +03:00
| <span onclick="showRange('pulse','months')" class="stat_selector_pulse" id="selector_pulse_months" style="opacity:0.5;">12 months</span>
| <span onclick="showRange('pulse','years')" class="stat_selector_pulse" id="selector_pulse_years">10 years</span>
2019-03-10 19:38:33 +03:00
<!--
### this is for extra views of the current canonical week / month / year
<br/>
<span onclick="showRange('pulse','week')" class="stat_selector_pulse" id="selector_pulse_week">This Week</span>
| <span onclick="showRange('pulse','month')" class="stat_selector_pulse" id="selector_pulse_month">This Month</span>
2019-03-29 21:44:42 +03:00
| <span onclick="showRange('pulse','year')" class="stat_selector_pulse" id="selector_pulse_year"">This Year</span>
2019-03-10 19:38:33 +03:00
-->
2019-03-03 15:38:53 +03:00
<br/><br/>
2019-03-29 21:44:42 +03:00
2019-03-03 15:38:53 +03:00
<span class="stat_module_pulse" id="pulse_months">KEY_PULSE_MONTHS</span>
<span class="stat_module_pulse" id="pulse_days" style="display:none;">KEY_PULSE_DAYS</span>
<span class="stat_module_pulse" id="pulse_years" style="display:none;">KEY_PULSE_YEARS</span>
<span class="stat_module_pulse" id="pulse_weeks" style="display:none;">KEY_PULSE_WEEKS</span>
2019-03-10 19:38:33 +03:00
<!--
<span class="stat_module_pulse" id="pulse_week" style="display:none;">KEY_PULSE_WEEK</span>
<span class="stat_module_pulse" id="pulse_month" style="display:none;">KEY_PULSE_MONTH</span>
<span class="stat_module_pulse" id="pulse_year" style="display:none;">KEY_PULSE_YEAR</span>
-->
2019-02-03 18:52:37 +03:00
</div>
2019-03-29 21:44:42 +03:00
2019-02-02 18:54:01 +03:00
</body>
2019-03-29 21:44:42 +03:00
2019-02-02 18:54:01 +03:00
</html>