+2
-2
index.html
+2
-2
index.html
···
142
142
143
143
<table class="scan-result given-likes">
144
144
<thead>
145
-
<tr><th colspan="2">Given likes:</th></tr>
145
+
<tr><th colspan="3">❤️ Likes from you:</th></tr>
146
146
</thead>
147
147
<tbody></tbody>
148
148
</table>
149
149
150
150
<table class="scan-result received-likes">
151
151
<thead>
152
-
<tr><th colspan="2">Received likes:</th></tr>
152
+
<tr><th colspan="3">💛 Likes on your posts:</th></tr>
153
153
</thead>
154
154
<tbody></tbody>
155
155
</table>
+6
-5
like_stats_page.js
+6
-5
like_stats_page.js
···
210
210
return Object.entries(counts).sort(this.sortResults).map(x => x[1]).slice(0, 20);
211
211
}
212
212
213
-
/** @param {LikeStat[]} topEntries, @param {HTMLTableElement} table, @returns {Promise<void>} */
213
+
/** @param {LikeStat[]} topUsers, @param {HTMLTableElement} table, @returns {Promise<void>} */
214
214
215
-
async renderResults(topEntries, table) {
215
+
async renderResults(topUsers, table) {
216
216
let tableBody = $(table.querySelector('tbody'));
217
217
tableBody.innerHTML = '';
218
218
219
-
for (let user of topEntries) {
219
+
for (let [i, user] of topUsers.entries()) {
220
220
let tr = $tag('tr');
221
221
tr.append(
222
-
$tag('td', {
222
+
$tag('td.no', { text: i + 1 }),
223
+
$tag('td.handle', {
223
224
html: `<img class="avatar" src="${user.avatar}"> ` +
224
225
`<a href="https://bsky.app/profile/${user.handle}" target="_blank">${user.handle}</a>`
225
226
}),
226
-
$tag('td', { text: user.count })
227
+
$tag('td.count', { text: user.count })
227
228
);
228
229
229
230
tableBody.append(tr);
+35
-3
style.css
+35
-3
style.css
···
783
783
784
784
#posting_stats_page .scan-result td, #posting_stats_page .scan-result th {
785
785
border: 1px solid #333;
786
-
padding: 5px 8px;
787
786
}
788
787
789
788
#posting_stats_page .scan-result td {
790
789
text-align: right;
790
+
padding: 5px 8px;
791
791
}
792
792
793
793
#posting_stats_page .scan-result th {
···
840
840
vertical-align: middle;
841
841
}
842
842
843
+
#like_stats_page input[type="submit"] {
844
+
font-size: 12pt;
845
+
margin: 5px 0px;
846
+
padding: 5px 10px;
847
+
}
848
+
843
849
#like_stats_page progress {
844
850
width: 300px;
845
851
margin-left: 10px;
···
852
858
border-collapse: collapse;
853
859
display: none;
854
860
float: left;
861
+
margin-top: 20px;
862
+
margin-bottom: 40px;
863
+
}
864
+
865
+
#like_stats_page .given-likes {
855
866
margin-right: 100px;
856
867
}
857
868
858
869
#like_stats_page .scan-result td, #like_stats_page .scan-result th {
859
870
border: 1px solid #333;
860
-
padding: 5px 8px;
871
+
padding: 5px 10px;
861
872
}
862
873
863
874
#like_stats_page .scan-result th {
864
875
text-align: center;
865
876
background-color: hsl(207, 100%, 86%);
866
-
padding: 7px 10px;
877
+
padding: 12px 10px;
878
+
}
879
+
880
+
#like_stats_page .scan-result td.no {
881
+
font-weight: bold;
882
+
text-align: right;
883
+
}
884
+
885
+
#like_stats_page .scan-result td.handle {
886
+
width: 280px;
887
+
}
888
+
889
+
#like_stats_page .scan-result td.count {
890
+
padding: 5px 15px;
867
891
}
868
892
869
893
#like_stats_page .scan-result .avatar {
···
1056
1080
1057
1081
#posting_stats_page .scan-result tr.total td {
1058
1082
background-color: hsla(207, 90%, 25%, 0.4);
1083
+
}
1084
+
1085
+
#like_stats_page .scan-result, #like_stats_page .scan-result td, #like_stats_page .scan-result th {
1086
+
border-color: #888;
1087
+
}
1088
+
1089
+
#like_stats_page .scan-result th {
1090
+
background-color: hsl(207, 90%, 25%);
1059
1091
}
1060
1092
}