4,090
edits
No edit summary Tag: Manual revert |
No edit summary |
||
Line 121: | Line 121: | ||
} | } | ||
}); | }); | ||
} | |||
function processEventCards() { | function processEventCards() { | ||
Line 215: | Line 169: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.home-list-view-button').click(function() { | $('.home-list-view-button').click(function() { | ||
Line 231: | Line 184: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
// Remove active class from block view button and add to list view button | // Remove active class from block view button and add to list view button | ||
$('.home-block-view-button').removeClass('active-view-button'); | $('.home-block-view-button').removeClass('active-view-button'); | ||
Line 261: | Line 213: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.home-list-view-button').removeClass('active-view-button'); | $('.home-list-view-button').removeClass('active-view-button'); | ||
$('.home-block-view-button').addClass('active-view-button'); | $('.home-block-view-button').addClass('active-view-button'); | ||
Line 286: | Line 237: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.home-chronicle-block-button').addClass('active-view-button'); | $('.home-chronicle-block-button').addClass('active-view-button'); | ||
$('.home-random-block-button').removeClass('active-view-button'); | $('.home-random-block-button').removeClass('active-view-button'); | ||
Line 299: | Line 249: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.home-random-block-button').addClass('active-view-button'); | $('.home-random-block-button').addClass('active-view-button'); | ||
$('.home-chronicle-block-button').removeClass('active-view-button'); | $('.home-chronicle-block-button').removeClass('active-view-button'); | ||
Line 312: | Line 261: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.home-alphabetical-block-button').addClass('active-view-button'); | $('.home-alphabetical-block-button').addClass('active-view-button'); | ||
$('.home-chronicle-block-button').removeClass('active-view-button'); | $('.home-chronicle-block-button').removeClass('active-view-button'); | ||
Line 326: | Line 274: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.home-chronicle-list-button').addClass('active-view-button'); | $('.home-chronicle-list-button').addClass('active-view-button'); | ||
$('.home-random-list-button').removeClass('active-view-button'); | $('.home-random-list-button').removeClass('active-view-button'); | ||
Line 339: | Line 286: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.home-random-list-button').addClass('active-view-button'); | $('.home-random-list-button').addClass('active-view-button'); | ||
$('.home-chronicle-list-button').removeClass('active-view-button'); | $('.home-chronicle-list-button').removeClass('active-view-button'); | ||
Line 352: | Line 298: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.home-alphabetical-list-button').addClass('active-view-button'); | $('.home-alphabetical-list-button').addClass('active-view-button'); | ||
$('.home-chronicle-list-button').removeClass('active-view-button'); | $('.home-chronicle-list-button').removeClass('active-view-button'); | ||
Line 370: | Line 315: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.list-view-button').click(function() { | $('.list-view-button').click(function() { | ||
Line 387: | Line 331: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
// Remove active class from block view button and add to list view button | // Remove active class from block view button and add to list view button | ||
Line 418: | Line 361: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.list-view-button').removeClass('active-view-button'); | $('.list-view-button').removeClass('active-view-button'); | ||
$('.block-view-button').addClass('active-view-button'); | $('.block-view-button').addClass('active-view-button'); | ||
Line 443: | Line 385: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.chronicle-block-button').addClass('active-view-button'); | $('.chronicle-block-button').addClass('active-view-button'); | ||
$('.random-block-button').removeClass('active-view-button'); | $('.random-block-button').removeClass('active-view-button'); | ||
Line 456: | Line 397: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.random-block-button').addClass('active-view-button'); | $('.random-block-button').addClass('active-view-button'); | ||
$('.chronicle-block-button').removeClass('active-view-button'); | $('.chronicle-block-button').removeClass('active-view-button'); | ||
Line 469: | Line 409: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.alphabetical-block-button').addClass('active-view-button'); | $('.alphabetical-block-button').addClass('active-view-button'); | ||
$('.chronicle-block-button').removeClass('active-view-button'); | $('.chronicle-block-button').removeClass('active-view-button'); | ||
Line 483: | Line 422: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.chronicle-list-button').addClass('active-view-button'); | $('.chronicle-list-button').addClass('active-view-button'); | ||
$('.random-list-button').removeClass('active-view-button'); | $('.random-list-button').removeClass('active-view-button'); | ||
Line 496: | Line 434: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.random-list-button').addClass('active-view-button'); | $('.random-list-button').addClass('active-view-button'); | ||
$('.chronicle-list-button').removeClass('active-view-button'); | $('.chronicle-list-button').removeClass('active-view-button'); | ||
Line 509: | Line 446: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
$('.alphabetical-list-button').addClass('active-view-button'); | $('.alphabetical-list-button').addClass('active-view-button'); | ||
$('.chronicle-list-button').removeClass('active-view-button'); | $('.chronicle-list-button').removeClass('active-view-button'); | ||
Line 541: | Line 477: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
}); | }); | ||
Line 679: | Line 614: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
}); | }); | ||
Line 691: | Line 625: | ||
processEventCards(); | processEventCards(); | ||
updateViews(); | updateViews(); | ||
}); | }); | ||