Skip to content

Commit 8cc4b39

Browse files
author
Kwantae Kim
committed
aalto
1 parent 366f0ae commit 8cc4b39

File tree

4 files changed

+82
-17
lines changed

4 files changed

+82
-17
lines changed

_includes/header.html

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,36 @@
3636
<!-- Real Time Clock -->
3737
<div style="display: flex; align-items: center;">
3838

39-
<table style="border-collapse: collapse; border: none;">
40-
<thead style="display: none;"><tr><th>.</th></tr></thead><tbody>
41-
<tr><td style="display: flex; justify-content: center; align-items: center;">
42-
<img src="{{ site.base_url }}{{ site.image_dir }}/icons/flag-switzerland.svg" style="height:40px;">
43-
</td></tr>
44-
</tbody></table>
45-
46-
<div style="margin-left: 0.2em;"></div>
47-
<div style="width: 70px; text-align: center;"> <!-- Adjust width as needed -->
48-
<div class="blog-clock-CHE"></div>
49-
</div>
50-
<script src = "{{ site.base_url }}/clock.js"></script>
39+
<!-- Finland -->
40+
<table style="border-collapse: collapse; border: none;">
41+
<thead style="display: none;"><tr><th>.</th></tr></thead><tbody>
42+
<tr><td style="display: flex; justify-content: center; align-items: center;">
43+
<img src="{{ site.base_url }}{{ site.image_dir }}/icons/flag-finland.png" style="height:40px;">
44+
</td></tr>
45+
</tbody></table>
46+
47+
<div style="margin-left: 0.2em;"></div>
48+
<div style="width: 70px; text-align: center;"> <!-- Adjust width as needed -->
49+
<div class="blog-clock-FIN"></div>
50+
</div>
51+
<script src = "{{ site.base_url }}/clock-fin.js"></script>
52+
53+
<!-- Space -->
54+
<div style="margin-left: 1em;"></div>
55+
56+
<!-- Switzerland -->
57+
<table style="border-collapse: collapse; border: none;">
58+
<thead style="display: none;"><tr><th>.</th></tr></thead><tbody>
59+
<tr><td style="display: flex; justify-content: center; align-items: center;">
60+
<img src="{{ site.base_url }}{{ site.image_dir }}/icons/flag-switzerland.svg" style="height:40px;">
61+
</td></tr>
62+
</tbody></table>
63+
64+
<div style="margin-left: 0.2em;"></div>
65+
<div style="width: 70px; text-align: center;"> <!-- Adjust width as needed -->
66+
<div class="blog-clock-CHE"></div>
67+
</div>
68+
<script src = "{{ site.base_url }}/clock-che.js"></script>
5169

5270
</div>
5371

clock.js renamed to clock-che.js

File renamed without changes.

clock-fin.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
var clock_FIN = document.querySelector('.blog-clock-FIN');
2+
3+
function getTime() {
4+
const time = new Date();
5+
const time_UTC = time.getTime() + (time.getTimezoneOffset() * 60 * 1000);
6+
7+
// Determine if DST is in effect for EET timezone (March to October)
8+
const date = new Date();
9+
const year = date.getFullYear();
10+
const dstStart = new Date(year, 2, lastSundayOfMarch(year), 3, 0, 0); // Last Sunday of March, 03:00 UTC
11+
const dstEnd = new Date(year, 9, lastSundayOfOctober(year), 4, 0, 0); // Last Sunday of October, 04:00 UTC
12+
const isDST = time_UTC >= dstStart && time_UTC < dstEnd;
13+
14+
// Adjust time difference based on DST
15+
const EET_time_diff = isDST ? 3 * 60 * 60 * 1000 : 2 * 60 * 60 * 1000;
16+
const FIN_time = new Date(time_UTC + EET_time_diff);
17+
18+
const FIN_hour = FIN_time.getHours();
19+
const FIN_min = FIN_time.getMinutes();
20+
const FIN_sec = FIN_time.getSeconds();
21+
const FIN_time_all = `${formatTime(FIN_hour)}:${formatTime(FIN_min)}:${formatTime(FIN_sec)}`;
22+
23+
clock_FIN.innerHTML = FIN_time_all;
24+
}
25+
26+
function init() {
27+
setInterval(getTime, 1000);
28+
}
29+
30+
function formatTime(timeValue) {
31+
return timeValue < 10 ? `0${timeValue}` : timeValue;
32+
}
33+
34+
function lastSundayOfMarch(year) {
35+
const lastDayOfMonth = new Date(year, 2 + 1, 0);
36+
const dayOfWeek = lastDayOfMonth.getDay();
37+
return lastDayOfMonth.getDate() - dayOfWeek;
38+
}
39+
40+
function lastSundayOfOctober(year) {
41+
const lastDayOfMonth = new Date(year, 9 + 1, 0);
42+
const dayOfWeek = lastDayOfMonth.getDay();
43+
return lastDayOfMonth.getDate() - dayOfWeek;
44+
}
45+
46+
init();

index.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: Kwantae Kim
33
subtitle: |-
4-
Established Researcher <br><br>
5-
ETH Zurich <br>
6-
desc: kimkwa (at) ethz (dot) ch
4+
Incoming Assistant Professor <br><br>
5+
Aalto University <br>
6+
desc: kwantaekim429 (at) gmail (dot) com
77
layout: page
88
hero_darken: true
99
hero_image: /img/tutto/20200902_141209.jpg
@@ -43,12 +43,13 @@ home_page: true
4343
<span style="margin-right: 3em;"></span>
4444

4545
<img src="./img/icons/icon--home.svg" style="width: auto; height: 30px;">
46-
<div style="margin-left: 5px;"><a href="https://circuit.ee.ethz.ch" target="_blank">Group Webpage</a><br></div>
46+
<div style="margin-left: 5px;"><a href="https://circuit.ee.ethz.ch" target="_blank">Webpage (ETH Zurich)</a><br></div>
4747
</div>
4848

4949
## Employment
5050

51-
<i class="fa-solid fa-school-flag"></i> ETH Zurich | Switzerland <span class='emoji'>🇨🇭</span> | Establisehd Researcher<br> in Electrical Engineering (D-ITET) | 2023~Present | <br>
51+
<i class="fa-solid fa-school-flag"></i> Aalto University | Finland <span class='emoji'>🇫🇮</span> | Incoming Assistant Professor<br> in Electrical Engineering | Aug 2024~ | <br>
52+
<i class="fa-solid fa-school-flag"></i> ETH Zurich | Switzerland <span class='emoji'>🇨🇭</span> | Establisehd Researcher<br> in Electrical Engineering (D-ITET) | 2023~July 2024 | <br>
5253
<i class="fa-solid fa-school-flag"></i> UZH/ETH Zurich | Switzerland <span class='emoji'>🇨🇭</span> | Postdoctoral Researcher<br>in Institute of Neuroinformatics | 2021~2023 | <br>
5354
<span style="margin-right: 0.2em;"></span><i class="fa-solid fa-building"></i><span style="margin-right: 0.2em;"></span> Healthrian Co., Ltd. | South Korea <span class='emoji'>🇰🇷</span> | R&D Researcher | 2015~2017 |
5455

0 commit comments

Comments
 (0)