Merged from main

This commit is contained in:
2022-11-03 12:54:08 +01:00
3 changed files with 18 additions and 1 deletions

View File

@@ -110,7 +110,7 @@
</ul>
</div>
</div>
<!-- <div class="button">BLOCKED WORDS</div> -->
<span class="material-symbols-outlined order-btn">arrow_downward</span>
</div>
<div class="popchart column">
<span class="colheader chartheader">Sports Popularity Chart</span>

View File

@@ -79,3 +79,14 @@ $(window).on("filter", function() {
parent.append(tweetCell(tweets[i]));
}
})
$(".order-btn").on("click", function() {
if($(this).html() == "arrow_downward") { // Descending to ascending
$(this).html("arrow_upward")
// trigger an event called ascending
$(window).trigger("ascending")
} else { // Ascending to descending
$(this).html("arrow_downward")
// trigger an event called descending
$(window).trigger("descending")
}
})

View File

@@ -242,6 +242,12 @@ body {
border: none;
}
.material-symbols-outlined.order-btn {
line-height: 52px;
font-weight: 600;
user-select: none;
}
.sort-btn {
user-select: none;
position: relative;