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

@@ -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")
}
})