ORDER ARROW

This commit is contained in:
Tim Wijma
2022-11-03 12:38:54 +01:00
parent e40a63435c
commit 876cd1569d
3 changed files with 15 additions and 1 deletions

View File

@@ -67,4 +67,12 @@ $(".logo").on("click", function() {
root.style.setProperty('--tweet-color', 'whitesmoke');
root.style.setProperty('--column-color', 'rgba(112, 128, 144, 0.388');
}
})
$(".order-btn").on("click", function() {
if($(this).html() == "arrow_downward") { // Descending to ascending
$(this).html("arrow_upward")
} else { // Ascending to descending
$(this).html("arrow_downward")
}
})