Skip to content

Commit f20bcb4

Browse files
fixx
1 parent 23623d5 commit f20bcb4

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

index.html

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,12 @@ <h2>achievements</h2>
6161
"2025-2026・AI & Business Systems Consultant at local Kumon center, contributing to student tracking and marketing systems",
6262
"2026・Technology & marketing contributor for STEM nonprofit initiative, supporting marketing and web operations",
6363

64-
];
65-
66-
let index = 0;
64+
]; let index = 0;
6765
const batchSize = 3;
68-
6966
function loadMore() {
7067
const list = document.getElementById("achievement-list");
7168
const loading = document.getElementById("loading");
72-
7369
loading.style.display = "block";
74-
7570
setTimeout(() => {
7671
for (let i = 0; i < batchSize; i++) {
7772
if (index >= achievements.length) return;
@@ -83,15 +78,12 @@ <h2>achievements</h2>
8378

8479
index++;
8580
}
86-
8781
loading.style.display = "none";
8882
}, 500);
8983
}
9084

91-
// initial load
9285
loadMore();
9386

94-
// infinite scroll trigger
9587
window.addEventListener("scroll", () => {
9688
if (window.innerHeight + window.scrollY >= document.body.offsetHeight - 100) {
9789
loadMore();

styles.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ footer {
217217
margin: 32px 0 18px 0;
218218
color: #ffffff;
219219
font-size: 0.97rem;
220+
position: fixed;
220221
}
221222

222223
@media (max-width: 580px) {

0 commit comments

Comments
 (0)