Skip to content

Commit fa3ca79

Browse files
committed
[map-free-workshop] Countdowns
1 parent d1f9d5a commit fa3ca79

File tree

2 files changed

+133
-57
lines changed

2 files changed

+133
-57
lines changed

map-free-workshop/2024/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ p {
1313
font-size: calc(1.1* var(--bs-body-font-size));
1414
}
1515

16-
li {
16+
li:not(.list-inline-item) {
1717
font-size: calc(1.1* var(--bs-body-font-size));
1818
}
1919

map-free-workshop/2024/index.html

Lines changed: 132 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -192,31 +192,83 @@ <h3><a id="Important_Dates">Important Dates</a><!--
192192
--></h3>
193193
<hr />
194194
<dl class="row">
195-
<dt class="col-5">Challenge start</dt>
196-
<dd class="col-7">21<sup>st</sup> May, 2024</dd>
195+
<dt class="col-5">
196+
Challenge start
197+
</dt>
198+
<dd class="col-7">
199+
<ul class="list-inline">
200+
<!-- note: if you change the date, please change it at the bottom <script> as well -->
201+
<li class="list-inline-item">21<sup>st</sup> May, 2024</li>
202+
<li class="list-inline-item"><span id="day-start-countdown" class="mx-4"></span></li>
203+
</ul>
204+
</dd>
197205

198-
<dt class="col-5"><span class="workshop-paper">Workshop paper</span> and
199-
<span class="extended-abstract">extended abstracts</span> submission deadline</dt>
200-
<dd class="col-7">2<sup>nd</sup> August, 2024</dd>
206+
<dt class="col-5">
207+
<span class="workshop-paper">Workshop paper</span> and
208+
<span class="extended-abstract">extended abstracts</span> submission deadline
209+
</dt>
210+
<dd class="col-7">
211+
<ul class="list-inline">
212+
<!-- note: if you change the date, please change it at the bottom <script> as well -->
213+
<li class="list-inline-item">&nbsp;2<sup>nd</sup> August, 2024</li>
214+
<li class="list-inline-item"><span id="day-paper-submit-countdown"></span></li>
215+
</ul>
216+
</dd>
201217

202-
<dt class="col-5">Workshop paper and extended abstracts camera-ready deadline</dt>
203-
<dd class="col-7">15<sup>th</sup> August, 2024</dd>
218+
<dt class="col-5">
219+
<span class="workshop-paper">Workshop paper</span> and
220+
<span class="extended-abstract">extended abstracts</span> camera-ready deadline
221+
</dt>
222+
<dd class="col-7">
223+
<ul class="list-inline">
224+
<!-- note: if you change the date, please change it at the bottom <script> as well -->
225+
<li class="list-inline-item">15<sup>th</sup> August, 2024</li>
226+
<li class="list-inline-item"><span id="day-paper-camera-ready-countdown"></span></li>
227+
</ul>
228+
</dd>
204229

205230
<dt class="col-5">Challenge end</dt>
206-
<dd class="col-7">23<sup>rd</sup> August, 2024</dd>
231+
<dd class="col-7">
232+
<ul class="list-inline">
233+
<!-- note: if you change the date, please change it at the bottom <script> as well -->
234+
<li class="list-inline-item">23<sup>rd</sup> August, 2024</li>
235+
<li class="list-inline-item"><span id="day-end-countdown"></span></li>
236+
</ul>
237+
</dd>
207238

208-
<dt class="col-5">Challenge submission method description deadline</dt>
209-
<dd class="col-7">27<sup>th</sup> August, 2024</dd>
239+
<dt class="col-5">
240+
Challenge submission <span class="method-description">method description</span> deadline
241+
</dt>
242+
<dd class="col-7">
243+
<ul class="list-inline">
244+
<!-- note: if you change the date, please change it at the bottom <script> as well -->
245+
<li class="list-inline-item">27<sup>th</sup> August, 2024</li>
246+
<li class="list-inline-item"><span id="day-describe-countdown"></span></li>
247+
</ul>
248+
</dd>
210249

211250
<dt class="col-5">Challenge winners announcement</dt>
212-
<dd class="col-7">30<sup>th</sup> August, 2024</dd>
251+
<dd class="col-7">
252+
<ul class="list-inline">
253+
<!-- note: if you change the date, please change it at the bottom <script> as well -->
254+
<li class="list-inline-item">30<sup>th</sup> August, 2024</li>
255+
<li class="list-inline-item"><span id="day-winners-countdown"></span></li>
256+
</ul>
257+
</dd>
213258

214259
<dt class="col-5">Workshop date (ECCV'24)</dt>
215-
<dd class="col-7">30<sup>th</sup> September, 2024, AM<br/>
216-
<small><a
217-
href="http://www.google.com/calendar/event?action=TEMPLATE&dates=20240930T070000Z/20240930T110000Z&text=Map-free%20Visual%20Relocalization%20Workshop%20at%20ECCV%202024%20&location=Allianz+MiCo+%E2%80%A2+Milano+Convention+Centre&details=Map-free%20Visual%20Relocalization%20Workshop%20at%20ECCV%202024%0Ahttps%3A%2F%2Fnianticlabs.github.io%2Fmap-free-workshop%2F2024%20%0A%0AGoogle%20Maps%3A%20https%3A%2F%2Fmaps.app.goo.gl%2Fif1ooCakSvhiEPmR7"
218-
target="_blank">
219-
[Add to Google Calendar]</a></small>
260+
<dd class="col-7">
261+
<ul class="list-inline">
262+
<!-- note: if you change the date, please change it at the bottom <script> as well -->
263+
<li class="list-inline-item">30<sup>th</sup> September, 2024, AM</li>
264+
<li class="list-inline-item"><span id="day-workshop-countdown" class="mb-4"></span></li>
265+
</ul>
266+
<div style="margin-top: -1.1rem;">
267+
<small>
268+
<a href="http://www.google.com/calendar/event?action=TEMPLATE&dates=20240930T070000Z/20240930T110000Z&text=Map-free%20Visual%20Relocalization%20Workshop%20at%20ECCV%202024%20&location=Allianz+MiCo+%E2%80%A2+Milano+Convention+Centre&details=Map-free%20Visual%20Relocalization%20Workshop%20at%20ECCV%202024%0Ahttps%3A%2F%2Fnianticlabs.github.io%2Fmap-free-workshop%2F2024%20%0A%0AGoogle%20Maps%3A%20https%3A%2F%2Fmaps.app.goo.gl%2Fif1ooCakSvhiEPmR7"
269+
target="_blank">[Add to Google Calendar]</a>
270+
</small>
271+
</div>
220272
</dd>
221273
</dl>
222274
</div> <!-- col -->
@@ -318,11 +370,10 @@ <h5>
318370
href="https://research.nianticlabs.com/mapfree-reloc-benchmark/dataset">Niantic Map-free
319371
Relocalization Dataset</a> is encouraged but not required.
320372
</li>
321-
<li>Submission through this workshop's custom CMT portal (details to be announced).</li>
322373
<li> Please submit at the workshop <a
323374
href="https://cmt3.research.microsoft.com/MAPFREEWorkshop2024/Submission/Index">CMT
324375
submission portal</a>.<br />
325-
Use the "Workshop paper track" category under "Subject areas".
376+
Use the "<span class="fw-light">Workshop paper track</span>" category under "Subject areas".
326377
</li>
327378
</ul>
328379
</div>
@@ -375,7 +426,7 @@ <h5>2. <span id="Extended_abstract" class="extended-abstract">Extended abstract<
375426
Please submit at the workshop <a
376427
href="https://cmt3.research.microsoft.com/MAPFREEWorkshop2024/Submission/Index">CMT
377428
submission portal</a>. <br />
378-
Use the "Extended abstract track" category under "Subject areas".
429+
Use the "<span class="fw-light">Extended abstract track</span>" category under "Subject areas".
379430
</li>
380431
</ul>
381432
</div>
@@ -401,8 +452,8 @@ <h5>3. <span id="Method_description" class="method-description">Method descripti
401452
</li>
402453
<li>
403454
Accepted <span class="workshop-paper">workshop papers</span> or accepted
404-
<span class="extended-abstract">extended abstracts</span> also qualify as valid method
405-
descriptions, no need to submit more.
455+
<span class="extended-abstract">extended abstracts</span> also qualify as
456+
valid <span class="method-description">method descriptions</span>, no need to submit more.
406457
</li>
407458
<li>
408459
Must be publicly available on ArXiv or equivalent. <br/>
@@ -412,8 +463,8 @@ <h5>3. <span id="Method_description" class="method-description">Method descripti
412463
This can be a non-peer reviewed paper in any format (<em>e.g.</em>,
413464
<a href="https://www.overleaf.com/read/hdqrbdhdnmrv#d6ad4f">ECCV</a> or
414465
<a href="https://github.com/cvpr-org/author-kit/releases">CVPR</a>).
415-
The method description has to contain sufficient detail for replication of the leaderboard
416-
entry's results.
466+
The <span class="method-description">method description</span> has to contain sufficient
467+
detail for replication of the leaderboard entry's results.
417468
</li>
418469
</ul>
419470
</div> <!-- col -->
@@ -438,8 +489,10 @@ <h4><a id="Competition_Requirements">Competition Requirements</a><!--
438489
<li>Entries in the leaderboard that were submitted <b>before</b> the 21<sup>st</sup> May, 2024 will <b>not</b>
439490
be considered as participating in the 2024 Map-free Visual Relocalization challenge.
440491
</li>
441-
<li>Entries in the leaderboard must point to a valid <span class="method-description">method description</span> (as outlined above under "<b>3.
442-
Method description</b>").
492+
<li>
493+
Entries in the leaderboard must point to a valid
494+
<span class="method-description">method description</span>
495+
(as outlined above under "<b>3. <span class="method-description">Method description</span></b>").
443496
</li>
444497
</ul>
445498
</div>
@@ -978,6 +1031,8 @@ <h3><a id="Sponsors">Sponsors</a></h3>
9781031
integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy"
9791032
crossorigin="anonymous"></script>
9801033

1034+
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
1035+
9811036
<script type="text/javascript">
9821037
function copyLinkToClipboard(link_name) {
9831038
let parts = window.location.href.split('#');
@@ -988,15 +1043,15 @@ <h3><a id="Sponsors">Sponsors</a></h3>
9881043
window.location.href = url;
9891044
}
9901045

991-
document.addEventListener('DOMContentLoaded', function() {
992-
document.querySelectorAll('.workshop-paper').forEach(el => {
993-
el.classList.add('badge', 'rounded-pill', 'bg-success');
1046+
function setSubmissionTypePill(clsName, pillColor, linkName) {
1047+
document.querySelectorAll(clsName).forEach(el => {
1048+
el.classList.add('badge', 'rounded-pill', pillColor);
9941049

9951050
// Create a new anchor element
9961051
const link = document.createElement('a');
9971052

9981053
// Set the href attribute
999-
link.href = '#Workshop_paper';
1054+
link.href = linkName;
10001055

10011056
// Wrap the original element with the new link
10021057
el.parentNode.insertBefore(link, el);
@@ -1005,40 +1060,61 @@ <h3><a id="Sponsors">Sponsors</a></h3>
10051060
// Add text-decoration-none to the link
10061061
link.classList.add('text-decoration-none');
10071062
});
1063+
}
10081064

1009-
document.querySelectorAll('.extended-abstract').forEach(el => {
1010-
el.classList.add('badge', 'rounded-pill', 'bg-warning');
1011-
1012-
// Create a new anchor element
1013-
const link = document.createElement('a');
1014-
1015-
// Set the href attribute
1016-
link.href = '#Extended_abstract';
1017-
1018-
// Wrap the original element with the new link
1019-
el.parentNode.insertBefore(link, el);
1020-
link.appendChild(el);
1065+
document.addEventListener('DOMContentLoaded', function() {
1066+
setSubmissionTypePill('.workshop-paper', 'bg-success', '#Workshop_paper');
1067+
setSubmissionTypePill('.extended-abstract', 'bg-warning', '#Extended_abstract');
1068+
setSubmissionTypePill('.method-description', 'bg-info', '#Method_description');
1069+
});
10211070

1022-
// Add text-decoration-none to the link
1023-
link.classList.add('text-decoration-none');
1024-
});
1071+
function updateCountdown(elementId, countDownDate) {
1072+
const now = new Date().getTime();
1073+
const distance = countDownDate - now;
1074+
1075+
const days = Math.floor(distance / (86400000)); // 1000 * 60 * 60 * 24
1076+
const hours = Math.floor((distance % (86400000)) / (3600000)); // 1000 * 60 * 60
1077+
const minutes = Math.floor((distance % (3600000)) / (60000)); // 1000 * 60
1078+
const seconds = Math.floor((distance % (60000)) / 1000);
1079+
1080+
const element = document.getElementById(elementId);
1081+
if (element) {
1082+
if (distance < 0) {
1083+
element.innerHTML = "";
1084+
return false; // Indicate that the countdown has finished
1085+
} else {
1086+
element.innerHTML = `(${days}d ${hours}h ${minutes}m ${seconds}s)`;
1087+
return true; // Indicate that the countdown should continue
1088+
}
1089+
}
1090+
return false; // If element not found, stop the countdown
1091+
}
10251092

1026-
document.querySelectorAll('.method-description').forEach(el => {
1027-
el.classList.add('badge', 'rounded-pill', 'bg-info');
1093+
function addCountdown(elementId, targetDateString) {
1094+
const countDownDate = new Date(targetDateString).getTime();
10281095

1029-
// Create a new anchor element
1030-
const link = document.createElement('a');
1096+
// Initial call to set the countdown immediately
1097+
updateCountdown(elementId, countDownDate);
10311098

1032-
// Set the href attribute
1033-
link.href = '#Method_description';
1099+
// Set interval to update every second
1100+
const intervalId = setInterval(function() {
1101+
const shouldContinue = updateCountdown(elementId, countDownDate);
1102+
if (!shouldContinue) {
1103+
clearInterval(intervalId);
1104+
}
1105+
}, 1000);
10341106

1035-
// Wrap the original element with the new link
1036-
el.parentNode.insertBefore(link, el);
1037-
link.appendChild(el);
1107+
return intervalId;
1108+
}
10381109

1039-
// Add text-decoration-none to the link
1040-
link.classList.add('text-decoration-none');
1041-
});
1110+
document.addEventListener('DOMContentLoaded', function() {
1111+
addCountdown("day-start-countdown", "2024/05/21 00:00:00 UTC");
1112+
addCountdown("day-paper-submit-countdown", "2024/08/02 23:59:59 UTC-12");
1113+
addCountdown("day-paper-camera-ready-countdown", "2024/08/15 23:59:59 UTC-12");
1114+
addCountdown("day-end-countdown", "2024/08/23 23:59:59 UTC-12");
1115+
addCountdown("day-describe-countdown", "2024/08/27 23:59:59 UTC-12");
1116+
addCountdown("day-winners-countdown", "2024/08/30 23:59:59 UTC-12");
1117+
addCountdown("day-workshop-countdown", "2024/09/30 08:00:00 UTC+2");
10421118
});
10431119
</script>
10441120

0 commit comments

Comments
 (0)