Skip to content

Commit b09e8a9

Browse files
committed
update news, test count down
1 parent f455f7e commit b09e8a9

File tree

5 files changed

+65
-11
lines changed

5 files changed

+65
-11
lines changed

_data/news.yaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,22 @@ upcoming_seminar:
55
time_zones: "6 PM CET / 9 AM PT / 12 PM ET"
66
speakers:
77
- name: "Zhenyi Wang"
8-
role: "PhD student in Deep Learning and Computer Vision at the University of Trento, "
9-
link: "https://oatmealliu.github.io"
10-
image: "/images/seminar/2025s3/mingxuanliu.jpg"
8+
role: "Postdoctoral Associate at University of Maryland, College Park "
9+
link: "https://joey-wang123.github.io"
10+
image: "/images/seminar/2025s4/Zhenyi_Wang.jpg"
1111
- name: "Sijia Liu"
12-
role: "PhD student in Computer Vision and Machine Learning in the Computer Vision Lab of Warsaw University of Technology."
13-
link: "https://wysoczanska.github.io"
14-
image: "/images/seminar/2025s3/Monika.jpeg"
12+
role: "Assistant Professor at the CSE department of Michigan State University"
13+
link: "https://lsjxjtu.github.io/index.html"
14+
image: "/images/seminar/2025s4/sijia.png"
1515
- name: "Kairan Zhao"
16-
role: "PhD student in Computer Vision and Machine Learning in the Computer Vision Lab of Warsaw University of Technology."
17-
link: "https://wysoczanska.github.io"
18-
image: "/images/seminar/2025s3/Monika.jpeg"
16+
role: "PhD candidate in Machine Learning at the University of Warwick"
17+
link: "https://kairanzhao.github.io"
18+
image: "/images/seminar/2025s4/Kairan Zhao-min.png"
1919
registration_link: "https://stanford.zoom.us/meeting/register/2Iq30puITbydIGeuCtzrug"
2020

2121
latest_news:
22+
- date: "May 8, 2025"
23+
text: "Our fourth seminar, held on May 8, 2025, showcased cutting‑edge Unlearning methodologies in continual learning—highlighting strategies for models to safely discard obsolete knowledge and adapt dynamically to evolving data streams."
2224
- date: "April 3, 2025"
2325
text: "Our third seminar introduced the innovative topic of Open-Vocabulary Learning, challenging conventional boundaries and sparking new research discussions."
2426
- date: "Mar 6, 2025"

_layouts/home.html

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ <h3 class="event-subtitle">{{ seminar.subtitle }}</h3>
4545
<p><strong>Date & Time:</strong> {{ seminar.date }}</p>
4646
<p><strong>Time Zones:</strong> {{ seminar.time_zones }}</p>
4747
</div>
48+
49+
<!-- Countdown Timer -->
50+
<div class="event-countdown mb-4">
51+
<h4>Starts in:</h4>
52+
<div id="countdown-timer" class="h3"></div>
53+
<button id="restart-countdown" class="btn btn-sm btn-outline-secondary mt-2">
54+
Restart Countdown
55+
</button>
56+
</div>
57+
4858
<div class="event-speakers mb-3">
4959
<h4>Speakers:</h4>
5060
{% for speaker in seminar.speakers %}
@@ -87,8 +97,6 @@ <h3 id="latest-news-title"><strong>Latest News</strong></h3>
8797
</div>
8898
</div>
8999

90-
91-
92100
<!-- Services Strip (unchanged) -->
93101
<div class="strip">
94102
<div class="container pt-6 pb-6 pb-md-10">
@@ -145,3 +153,47 @@ <h2 class="feature-title">{{ feature.title }}</h2>
145153
</div>
146154
{% endif %}
147155

156+
<!-- Countdown Script -->
157+
<script>
158+
document.addEventListener('DOMContentLoaded', () => {
159+
// Parse seminar date and time (expects "YYYY-MM-DD HH:MM" format)
160+
const seminarDate = new Date('{{ seminar.date | date: "%Y-%m-%d %H:%M" }}').getTime();
161+
let target = seminarDate;
162+
163+
const timerEl = document.getElementById('countdown-timer');
164+
const restartBtn = document.getElementById('restart-countdown');
165+
let intervalId;
166+
167+
function updateCountdown() {
168+
const now = Date.now();
169+
const diff = target - now;
170+
171+
if (diff <= 0) {
172+
timerEl.textContent = '🟢 Seminar is live!';
173+
clearInterval(intervalId);
174+
intervalId = null;
175+
return;
176+
}
177+
178+
const days = Math.floor(diff / (1000 * 60 * 60 * 24));
179+
const hours = Math.floor((diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
180+
const minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));
181+
const seconds = Math.floor((diff % (1000 * 60)) / 1000);
182+
183+
timerEl.textContent =
184+
`${days}d ${hours}h ${minutes}m ${seconds}s`;
185+
}
186+
187+
restartBtn.addEventListener('click', () => {
188+
target = seminarDate;
189+
if (!intervalId) {
190+
updateCountdown();
191+
intervalId = setInterval(updateCountdown, 1000);
192+
}
193+
});
194+
195+
// Start ticking
196+
updateCountdown();
197+
intervalId = setInterval(updateCountdown, 1000);
198+
});
199+
</script>
4.05 MB
Loading
92.6 KB
Loading

images/seminar/2025s4/sijia.png

99.3 KB
Loading

0 commit comments

Comments
 (0)