4,092
edits
No edit summary |
No edit summary |
||
Line 533: | Line 533: | ||
//location.reload(); | //location.reload(); | ||
}); | }); | ||
// Teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeest | |||
// Handle List View Button | |||
$(".test-list-view-button").click(function() { | |||
// Show list view and hide block view | |||
$(".test-list-view").show(); | |||
$(".test-block-view").hide(); | |||
// Hide all list items and show the default chronicle list | |||
$(".test-list-view > div").hide(); | |||
$(".test-chronicle-list").show(); | |||
}); | |||
// Handle Block View Button | |||
$(".test-block-view-button").click(function() { | |||
// Show block view and hide list view | |||
$(".test-block-view").show(); | |||
$(".test-list-view").hide(); | |||
// Hide all block items and show the default chronicle block | |||
$(".test-block-view > div").hide(); | |||
$(".test-chronicle-block").show(); | |||
}); | |||
// Handle List Sorting Buttons | |||
$(".test-chronicle-list-button").click(function() { | |||
// Show only the chronicle list | |||
$(".test-list-view > div").hide(); | |||
$(".test-chronicle-list").show(); | |||
}); | |||
$(".test-random-list-button").click(function() { | |||
// Show only the random list | |||
$(".test-list-view > div").hide(); | |||
$(".test-random-list").show(); | |||
}); | |||
$(".test-alphabetical-list-button").click(function() { | |||
// Show only the alphabetical list | |||
$(".test-list-view > div").hide(); | |||
$(".test-alphabetical-list").show(); | |||
}); | |||
// Similar event handlers can be added for block view buttons if needed | |||
}); | }); |