Skip to content

Commit c61338c

Browse files
committed
Add highlight container for improved content visibility
1 parent e2920b3 commit c61338c

File tree

4 files changed

+50
-21
lines changed

4 files changed

+50
-21
lines changed

FEAScript-website.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ p {
6363
max-width: 1000px;
6464
}
6565

66+
.highlight-container {
67+
background-color: #fff0b3;
68+
border-radius: 5px;
69+
max-width: 1000px;
70+
padding: 10px;
71+
}
72+
6673
a {
6774
text-decoration: none;
6875
}

FiniteElementMethodNotes.html

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,13 @@ <h1>Finite Element Method Notes</h1>
5454
<li><a href="#residualscomputation">Residuals Computation</a></li>
5555
<li><a href="#references">References</a></li>
5656
</ul>
57-
58-
<p>
59-
The finite element method is a discretization technique that can utilize a computational mesh to
60-
approximate the solution of a partial differential equation. Basic concepts of the finite element method
61-
are described below.
62-
</p>
57+
<div class="highlight-container">
58+
<p>
59+
The finite element method is a discretization technique that can utilize a computational mesh to
60+
approximate the solution of a partial differential equation. Basic concepts of the finite element
61+
method are described below.
62+
</p>
63+
</div>
6364
<h2 id="galerkinresiduals"><a name="Galerkin Residuals"></a>Galerkin Residuals</h2>
6465
<p>
6566
Consider a typical formulation of a boundary value problem (BVP): $$\begin{eqnarray} Lu &= f \quad
@@ -187,5 +188,11 @@ <h2 id="references"><a name="References"> </a>References</h2>
187188
<ul id="menu">
188189
<li><a href="https://feascript.com/index.html">Return</a></li>
189190
</ul>
191+
192+
<p>&#169; 2023-<span id="currentYear"></span> FEAScript</p>
193+
<script>
194+
document.getElementById("currentYear").innerHTML = new Date().getFullYear();
195+
</script>
196+
190197
</body>
191198
</html>

index.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,14 @@ <h1>A JavaScript Finite Element Simulation Library</h1>
6161
</li>
6262
</ul>
6363

64-
<p>
65-
FEAScript is a lightweight finite element simulation library built in JavaScript. It enables the
66-
creation and running of client-side, browser-based simulations for physics and engineering problems
67-
without the need for additional installations. FEAScript can be an excellent tool for building
68-
interactive web applications as well as performing hands-on learning of computational mechanics.
69-
</p>
64+
<div class="highlight-container">
65+
<p>
66+
FEAScript is a lightweight finite element simulation library built in JavaScript. It enables the
67+
creation and running of client-side, browser-based simulations for physics and engineering problems
68+
without the need for additional installations. FEAScript can be an excellent tool for building
69+
interactive web applications as well as performing hands-on learning of computational mechanics.
70+
</p>
71+
</div>
7072

7173
<h2 id="gettingstarted"><a name="Getting Started"></a>Getting Started</h2>
7274
<p>
@@ -149,16 +151,17 @@ <h3>Tutorials</h3>
149151
<h2 id="licensing"><a name="Licensing"></a>Licensing</h2>
150152
<p>
151153
FEAScript is distributed under the terms of the
152-
<a href="https://github.com/FEAScript/FEAScript-core/blob/main/LICENSE" target="_blank">MIT license</a>. This website is licensed
153-
under a
154+
<a href="https://github.com/FEAScript/FEAScript-core/blob/main/LICENSE" target="_blank">MIT license</a>.
155+
This website is licensed under a
154156
<a href="https://github.com/FEAScript/FEAScript-website/blob/main/LICENSE" target="_blank"
155157
>Creative Commons Attribution 4.0 license</a
156158
>.
157159
</p>
158-
<p>&#169; 2023-<span id="currentYear"></span> FEAScript.</p>
159160

161+
<p>&#169; 2023-<span id="currentYear"></span> FEAScript</p>
160162
<script>
161163
document.getElementById("currentYear").innerHTML = new Date().getFullYear();
162164
</script>
165+
163166
</body>
164167
</html>

tutorials/HeatConduction2DFin.html

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ <h1>Heat Conduction in a Two-Dimensional Fin Tutorial</h1>
6969
<li><a href="#results">Results</a></li>
7070
</ul>
7171

72-
<p>
73-
In this tutorial, we address a stationary heat transfer problem within a 2D rectangular domain. This is
74-
a typical cooling fin problem. Cooling fins are commonly used to increase the area available for heat
75-
transfer between metal walls and poorly conducting fluids such as air.
76-
</p>
72+
<div class="highlight-container">
73+
<p>
74+
In this tutorial, we address a stationary heat transfer problem within a 2D rectangular domain. This
75+
is a typical cooling fin problem. Cooling fins are commonly used to increase the area available for
76+
heat transfer between metal walls and poorly conducting fluids such as air.
77+
</p>
78+
</div>
7779

7880
<h2 id="mathematicalformulation"><a name="Mathematical formulation"></a>Mathematical Formulation</h2>
7981
<p>
@@ -211,7 +213,11 @@ <h2 id="results"><a name="Results"></a>Results</h2>
211213

212214
<script type="module">
213215
//Load FEAScript from GitHub
214-
import { FEAScriptModel, plotSolution, printVersion } from "https://feascript.github.io/FEAScript-core/src/index.js";
216+
import {
217+
FEAScriptModel,
218+
plotSolution,
219+
printVersion,
220+
} from "https://feascript.github.io/FEAScript-core/src/index.js";
215221
//Load FEAScript from a local directory
216222
//import { FEAScriptModel, plotSolution, printVersion } from "../../FEAScript-core/src/index.js";
217223

@@ -311,5 +317,11 @@ <h2 id="results"><a name="Results"></a>Results</h2>
311317
}
312318
});
313319
</script>
320+
321+
<p>&#169; 2023-<span id="currentYear"></span> FEAScript</p>
322+
<script>
323+
document.getElementById("currentYear").innerHTML = new Date().getFullYear();
324+
</script>
325+
314326
</body>
315327
</html>

0 commit comments

Comments
 (0)