Skip to content

Commit a2c2746

Browse files
Merge branch 'main' into stable
2 parents a53e74a + d0dd059 commit a2c2746

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

public/temp/events.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@
133133
eventGroupElement.innerHTML = elements.join('');
134134
}
135135

136-
getEvent('2024');
136+
const currentDate = new Date();
137+
const currentYear = currentDate.getFullYear();
138+
139+
getEvent(currentYear);
137140
</script>
138141
</body>
139142
</html>

public/temp/header.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@
130130
tabindex="-1"
131131
>
132132
<div class="py-1" role="none">
133+
<a
134+
href="./events.html"
135+
class="block px-4 py-2 text-sm text-gray-700"
136+
role="menuitem"
137+
tabindex="-1"
138+
id="menu-item-1"
139+
>2025热点事件</a
140+
>
141+
133142
<a
134143
href="./events2024.html"
135144
class="block px-4 py-2 text-sm text-gray-700"
@@ -172,7 +181,7 @@
172181
</nav>
173182
<div class="flex flex-1 items-center justify-end md:text-xs lg:text-base">
174183
<span class="lg:-m-2.5 lg:p-2.5 text-gray-600 hover:text-gray-500">
175-
24年12月4日更新
184+
25年2月3日更新
176185
</span>
177186
</div>
178187
</div>

0 commit comments

Comments
 (0)