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