4,092
edits
No edit summary |
No edit summary |
||
Line 545: | Line 545: | ||
// Handle List View Button | // Handle List View Button | ||
$(". | $(".list-view-button").click(function() { | ||
// Show list view and list sorting buttons, hide block view and block sorting buttons | // Show list view and list sorting buttons, hide block view and block sorting buttons | ||
$(". | $(".list-view").show(); | ||
$(". | $(".block-view").hide(); | ||
$(".list-sorting-buttons").show(); | $(".list-sorting-buttons").show(); | ||
$(".block-sorting-buttons").hide(); | $(".block-sorting-buttons").hide(); | ||
$(". | $(".list-view > div").hide(); | ||
$(". | $(".chronicle-list").show(); | ||
}); | }); | ||
// Handle Block View Button | // Handle Block View Button | ||
$(". | $(".block-view-button").click(function() { | ||
// Show block view and block sorting buttons, hide list view and list sorting buttons | // Show block view and block sorting buttons, hide list view and list sorting buttons | ||
$(". | $(".block-view").show(); | ||
$(". | $(".list-view").hide(); | ||
$(".block-sorting-buttons").css('display', 'flex'); | $(".block-sorting-buttons").css('display', 'flex'); | ||
$(".list-sorting-buttons").hide(); | $(".list-sorting-buttons").hide(); | ||
$(". | $(".block-view > div").hide(); | ||
$(". | $(".chronicle-block").show(); | ||
}); | }); | ||
// Handle List Sorting Buttons | // Handle List Sorting Buttons | ||
$(". | $(".chronicle-list-button").click(function() { | ||
// Show only the chronicle list | // Show only the chronicle list | ||
$(". | $(".list-view > div").hide(); | ||
$(". | $(".chronicle-list").show(); | ||
}); | }); | ||
$(". | $(".random-list-button").click(function() { | ||
// Show only the random list | // Show only the random list | ||
$(". | $(".list-view > div").hide(); | ||
$(". | $(".random-list").show(); | ||
}); | }); | ||
$(". | $(".alphabetical-list-button").click(function() { | ||
// Show only the alphabetical list | // Show only the alphabetical list | ||
$(". | $(".list-view > div").hide(); | ||
$(". | $(".alphabetical-list").show(); | ||
}); | }); | ||
Line 588: | Line 588: | ||
// Handle Block Sorting Buttons | // Handle Block Sorting Buttons | ||
$(". | $(".chronicle-block-button").click(function() { | ||
// Show only the chronicle block | // Show only the chronicle block | ||
$(". | $(".block-view > div").hide(); | ||
$(". | $(".chronicle-block").show(); | ||
}); | }); | ||
$(". | $(".random-block-button").click(function() { | ||
// Show only the random block | // Show only the random block | ||
$(". | $(".block-view > div").hide(); | ||
$(". | $(".random-block").show(); | ||
}); | }); | ||
$(". | $(".alphabetical-block-button").click(function() { | ||
// Show only the alphabetical block | // Show only the alphabetical block | ||
$(". | $(".block-view > div").hide(); | ||
$(". | $(".alphabetical-block").show(); | ||
}); | }); | ||
}); | }); |