-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
163 lines (149 loc) · 7.44 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<html>
<head>
<title>Receiptify</title>
<meta name="author" content="Receipt">
<meta name="description" content="Converts your top tracks to a receipt. Currently supports Spotify with a limit of 50 tracks and Last.FM with no limit">
<meta property="og:title" content="Receipt">
<meta property="og:type" content="website">
<meta property="og:url" content="https://receiptify.stefdp.lol">
<meta property="og:description" content="Converts your top tracks to a receipt. Currently supports Spotify with a limit of 50 tracks and Last.FM with no limit">
<meta name="theme-color" content="#FFFFFF">
<meta property="og:image" content="/assets/images/exampleReceipt.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="/assets/images/exampleReceipt.webp">
<link rel="stylesheet" href="/assets/css/index.css" async>
<script defer data-domain="receiptify.stefdp.lol" src="https://analytics.is-a.dev/js/script.js"></script>
<script async defer src="https://tianji.stefdp.lol/getData.js" data-website-id="cm0worr9r1rv7vwsfsvwtgsy8"></script>
</head>
<body>
<div class="receipt" id="receipt">
<h1 class="align-center" id="receiptTitle">
receipt
</h1>
<h2 class="align-center bold" id="timePeriod">
IN THE LAST MONTH
</h2>
<br />
<p class="date align-center" id="orderFor">
</p>
<p class="align-center" id="dateGenerated">
</p>
<br />
<p id="totalTracks">
TOTAL TRACKS:
</p>
<table>
<thead>
<tr class="divider">
<td class="divider align-right" colspan="4">---------------------------------------------------</td>
</tr>
<tr>
<td>AMT</td>
<td>
TRACK
</td>
<td class="align-right time">
TIME
</td>
<td class="align-right tot-time">
TOT TIME
</td>
</tr>
<tr class="divider">
<td class="divider align-right" colspan="4">---------------------------------------------------</td>
</tr>
</thead>
<tbody id="tracks">
</tbody>
</table>
<table>
<tbody>
<tr class="divider">
<td></td>
<td></td>
<td><br /></td>
</tr>
<tr class="divider">
<td></td>
<td></td>
<td class="align-right" colspan="4">SUBTOTAL:</td>
</tr>
<tr class="divider">
<td class="divider align-right" colspan="4">---------------------------------------------------</td>
</tr>
<tr>
<td id="subtotalAmount"></td>
<td class="align-right" id="subtotalTime" colspan="3"></td>
</tr>
<tr class="divider">
<td></td>
<td></td>
<td><br /></td>
</tr>
<tr class="divider">
<td></td>
<td></td>
<td class="align-right" colspan="4">TOTAL:</td>
</tr>
<tr class="divider">
<td class="divider align-right" colspan="4">---------------------------------------------------</td>
</tr>
<tr>
<td id="totalAmount"></td><td></td>
<td></td>
<td class="align-right" id="totalTime"></td>
</tr>
</tbody>
</table>
<br />
<br />
<p class="date" id="cardYear">
CARD #: **** **** ****
</p>
<p class="date" id="authCode">
AUTH CODE:
</p>
<p class="date" id="cardHolder">
CARDHOLDER:
</p>
<br />
<p class="align-center" id="thanks">
</p>
<button type="button" class="download" id="downloadButton">Download</button>
</div>
<div id="inputs">
<form id="inputData">
<label for="userInput">Last.FM Username:</label>
<input type="text" name="user" id="userInput" oninput="validate('username', this)" placeholder="Your Last.FM username" required>
<label for="trackCountInput">Track Count (optional):</label>
<input type="number" name="trackCount" id="trackCountInput" value="20">
<label for="period">Period (optional):</label>
<select name="period" id="period">
<option value="overall">Overall</option>
<option value="7day">1 Week</option>
<option value="1month">1 Month</option>
<option value="3month">3 Months</option>
<option value="6month">6 Months</option>
<option value="12month">1 Year</option>
</select>
<label for="cardHolderInput">Card Holder (optional):</label>
<input type="text" name="cardHolder" id="cardHolderInput" placeholder="Name shown on top and next to card holder">
<label for="orderInput">Order Number (optional):</label>
<input type="number" name="order" id="orderInput" oninput="validate('order', this)" placeholder="4316 (Any 4 digit number)">
<label for="authCodeInput">Auth Code (optional):</label>
<input type="number" name="authCode" id="authCodeInput" oninput="validate('authCode', this)" placeholder="702403 (Any 6 digit number)">
<label for="thanksInput">Bottom Text (optional):</label>
<input type="text" name="thanks" id="thanksInput" placeholder="Thank you for using stef's website">
<button type="submit" id="inputData">Submit</button>
<button type="button" id="spotifyLogin" class="spotify">Login with spotify</button>
<p class="note">note: spotify login ignores all of the inputs above</p>
</form>
</div>
<footer>
<p>© <span id="copyrightYear">2024</span> Stefano Del Prete. All rights reserved.</p>
</footer>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/luxon/3.4.3/luxon.min.js"></script>
<script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>
<script src="/assets/js/index.js"></script>
</html>