File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
6765const batchSize = 3 ;
68-
6966function 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
9285loadMore ( ) ;
9386
94- // infinite scroll trigger
9587window . addEventListener ( "scroll" , ( ) => {
9688 if ( window . innerHeight + window . scrollY >= document . body . offsetHeight - 100 ) {
9789 loadMore ( ) ;
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments