Skip to content

Commit

Permalink
Reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
JesperDramsch committed Dec 20, 2023
1 parent 61aa6e6 commit 335d0d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ <h1 id="archive-link">Visit the <a href="/archive/">Archive</a></h1>
$('#{{conf.title | slugify}}-{{conf.year}}').attr("cfpDiff", cfpDiff.toMillis());
$('#{{conf.title | slugify}}-{{conf.year}}').attr("confDiff", confDiff.toMillis());

if (cfpDiff > 0 && confDiff < 0) {
if (cfpDiff < 0) {
$('#{{conf.title | slugify}}-{{conf.year}}').addClass('pastcfp');
$('#{{conf.title | slugify}}-{{conf.year}}').appendTo($("#past_cfps"));
$('#{{conf.title | slugify}}-{{conf.year}} .timer').replaceWith($('#{{conf.title | slugify}}-{{conf.year}} .deadline'));
$('#{{conf.title | slugify}}-{{conf.year}} .timer-small').replaceWith($('#{{conf.title | slugify}}-{{conf.year}} .deadline'));
$('#{{conf.title | slugify}}-{{conf.year}} .calendar').remove();
}

if (confDiff > 0) {
if (confDiff < 0) {
$('#{{conf.title | slugify}}-{{conf.year}}').addClass('pastconf');
$('#{{conf.title | slugify}}-{{conf.year}}').appendTo($("#past_confs"));
$('#{{conf.title | slugify}}-{{conf.year}} .timer').replaceWith($('#{{conf.title | slugify}}-{{conf.year}} .deadline'));
Expand Down

0 comments on commit 335d0d9

Please sign in to comment.