@@ -73,6 +73,68 @@ <h1>Advection-Diffusion with a Gaussian Source Term Tutorial</h1>
7373 < li > < a href ="#results "> Results</ a > </ li >
7474 </ ul >
7575
76+ < div class ="social-icons-top-right ">
77+ < ul >
78+ < li >
79+ < a href ="https://blog.feascript.com/ " title ="FEAScript blog ">
80+ < img
81+ src ="../assets/blog-icon-feascript.png "
82+ alt ="Blog icon "
83+ style ="height: 18px; vertical-align: middle "
84+ />
85+ </ a >
86+ </ li >
87+ < li >
88+ < a href ="https://www.youtube.com/@FEAScript " title ="FEAScript YouTube ">
89+ < img
90+ src ="../assets/youtube-icon-feascript.svg "
91+ alt ="YouTube icon "
92+ style ="height: 18px; vertical-align: middle "
93+ />
94+ </ a >
95+ </ li >
96+ < li >
97+ < a href ="https://www.linkedin.com/company/feascript/ " title ="FEAScript LinkedIn ">
98+ < img
99+ src ="../assets/linkedin-icon-feascript.png "
100+ alt ="LinkedIn icon "
101+ style ="height: 18px; vertical-align: middle "
102+ />
103+ </ a >
104+ </ li >
105+ < li >
106+ < a href ="https://discord.gg/3DVjNcuW4f " title ="FEAScript Discord ">
107+ < img
108+ src ="../assets/discord-icon-feascript.png "
109+ alt ="Discord icon "
110+ style ="height: 18px; vertical-align: middle "
111+ />
112+ </ a >
113+ </ li >
114+ < li >
115+ < a href ="https://github.com/FEAScript/FEAScript-core " title ="FEAScript GitHub ">
116+ < img
117+ src ="../assets/github-icon-feascript.png "
118+ alt ="GitHub icon "
119+ style ="height: 20px; vertical-align: middle "
120+ />
121+ < span
122+ id ="github-stars "
123+ style ="
124+ font-size: 0.9em;
125+ margin-left: 5px;
126+ vertical-align: middle;
127+ border: 1px solid #ddd;
128+ border-radius: 4px;
129+ padding: 1px 5px;
130+ background-color: #f8f8f8;
131+ "
132+ > </ span >
133+ </ a >
134+ </ li >
135+ </ ul >
136+ </ div >
137+
76138 < div class ="highlight-container ">
77139 < p >
78140 In this tutorial, we address an advection-diffusion problem in a one-dimensional domain with a
@@ -284,6 +346,18 @@ <h2 id="results"><a name="Results"></a>Results</h2>
284346 </ footer >
285347 < script >
286348 document . getElementById ( "currentYear" ) . innerHTML = new Date ( ) . getFullYear ( ) ;
349+
350+ // Fetch GitHub stars
351+ fetch ( "https://api.github.com/repos/FEAScript/FEAScript-core" )
352+ . then ( ( response ) => response . json ( ) )
353+ . then ( ( data ) => {
354+ const starCount = data . stargazers_count ;
355+ const starsElement = document . getElementById ( "github-stars" ) ;
356+ if ( starsElement && starCount ) {
357+ starsElement . innerHTML = `★ ${ starCount } ` ;
358+ }
359+ } )
360+ . catch ( ( error ) => console . error ( "Error fetching GitHub stars:" , error ) ) ;
287361 </ script >
288362 </ body >
289363</ html >
0 commit comments