@@ -32,12 +32,69 @@ <h1>Rohan Modi</h1>
3232 < a href ="https://thetechresearchpaper.wixsite.com/techknowledge/blog " class ="link "> Tech Blog</ a > |
3333 < a href ="https://www.github.com/RohanAltAccount " class ="link "> Github</ a >
3434 </ p >
35+ < section class ="achievements ">
36+ < h2 > achievements</ h2 >
37+ < div id ="achievement-list "> </ div >
38+ < div id ="loading "> loading up...</ div >
39+ </ section >
3540 </ section >
3641
3742 </ main >
3843< background class ="background "> </ background >
3944 < footer >
4045 < small > ©2025 Rohan.</ small >
4146 </ footer >
47+
48+
49+ < script >
50+ const achievements = [
51+ "Present・CS and ML oriented high school student" ,
52+ "2022・Founded tech blog (TecRes), publishing informative tech news" ,
53+ "2024-2025・Built multiple web apps and prototypes" ,
54+ "2025・Learned C++ and built CLI projects" ,
55+ "2025・Started competiting in coding competitions and hackathons" ,
56+ "2025・Won first hackathon" ,
57+ "2025・Built GitHub open-source tools" ,
58+ "2025-2026・Started research writing and published a paper on arXiv" ,
59+ "2025-2026・AI & Business Systems Consultant at Kumon, contributing to student tracking and marketing systems" ,
60+ "2026・Started YouTube channel sharing tech knowledge and tutorials"
61+ ] ;
62+
63+ let index = 0 ;
64+ const batchSize = 3 ;
65+
66+ function loadMore ( ) {
67+ const list = document . getElementById ( "achievement-list" ) ;
68+ const loading = document . getElementById ( "loading" ) ;
69+
70+ loading . style . display = "block" ;
71+
72+ setTimeout ( ( ) => {
73+ for ( let i = 0 ; i < batchSize ; i ++ ) {
74+ if ( index >= achievements . length ) return ;
75+
76+ const div = document . createElement ( "div" ) ;
77+ div . className = "achievement-card" ;
78+ div . textContent = achievements [ index ] ;
79+ list . appendChild ( div ) ;
80+
81+ index ++ ;
82+ }
83+
84+ loading . style . display = "none" ;
85+ } , 500 ) ;
86+ }
87+
88+ // initial load
89+ loadMore ( ) ;
90+
91+ // infinite scroll trigger
92+ window . addEventListener ( "scroll" , ( ) => {
93+ if ( window . innerHeight + window . scrollY >= document . body . offsetHeight - 100 ) {
94+ loadMore ( ) ;
95+ }
96+ } ) ;
97+ </ script >
98+
4299</ body >
43100</ html >
0 commit comments