-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
124 lines (124 loc) · 3.91 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Spotify stats</title>
<link rel="icon" type="image/png" href="/data.png" />
<link rel="stylesheet" href="/style.css" />
<script type="module" src="src/spotifyData.js"></script>
</head>
<body>
<div class="nav-bar">
<h1>Spotify Lifetime Stats</h1>
<a href="#home" class="navopt">Home</a>
<a href="#album" class="navopt">Album</a>
<a href="#track" class="navopt">Track</a>
<a href="#artist" class="navopt">Artist</a>
<a href="#other" class="navopt">Other</a>
</div>
<div class="loader hidden-loader">
<img src="/cld.svg" alt="gear loader" />
</div>
<!-- FILE UPLOAD/HOME -->
<div class="content home-page" id="Home">
<form id="upload">
<label for="file"
><h4>Select files containing streaming history(JSON format)<br /></h4
></label>
<input type="file" multiple id="file" accept=".json" />
<button type="submit" class="button">Upload</button>
</form>
<div class="file-info"><ul class="file-list"></ul></div>
<!-- Data time result -->
<div class="data-result"></div>
<!-- Filter data via date -->
<div class="date-m hidden">
<h3>Filter data by date:</h3>
<form id="filter-date">
<label for="start">Start date:</label>
<input type="date" id="start" name="trip-start" value="2022-01-01" />
<label for="start">End date:</label>
<input type="date" id="end" name="trip-end" value="2023-01-01" />
<button type="submit" class="button">Filter</button>
</form>
</div>
</div>
<!-- ALBUMS -->
<div class="hidden content" id="Album">
<table class="common-table">
<thead>
<tr>
<th>Album</th>
<th>Artist</th>
<th>Times Listened</th>
<th>Hours Listened</th>
</tr>
</thead>
<tbody class="album-data"></tbody>
</table>
<div>
<button class="album-button button">Previous</button>
<button class="album-button button">Next</button>
</div>
<div>
<button class="sort-album button">Sort by Minutes</button>
</div>
</div>
<!-- TRACKS -->
<div class="hidden content" id="Track">
<table class="common-table">
<thead>
<tr>
<th>Track</th>
<th>Artist</th>
<th>Times Listened</th>
<th>Hours Listened</th>
</tr>
</thead>
<tbody class="track-data"></tbody>
</table>
<div>
<button class="track-button button">Previous</button>
<button class="track-button button">Next</button>
</div>
<div>
<button class="sort-track button">Sort by Minutes</button>
</div>
</div>
<!-- ARTISTS -->
<div class="hidden content" id="Artist">
<table class="common-table">
<thead>
<tr>
<th>Artist</th>
<th>Times Listened</th>
<th>Minutes Listened</th>
<th>Hours Listened</th>
</tr>
</thead>
<tbody class="artist-data"></tbody>
</table>
<div>
<button class="artist-button button">Previous</button>
<button class="artist-button button">Next</button>
</div>
<div>
<button class="sort-artist button">Sort by Minutes</button>
</div>
</div>
<!-- MISC -->
<div class="hidden content" id="Other">
<div>
<ul class="platform">
Platforms played on:
</ul>
</div>
<div>
<ul class="countries">
Countries streamed in(code):
</ul>
</div>
</div>
</body>
</html>