Skip to content

Commit 689a919

Browse files
committed
Followed Google Lighthouse Suggestions
1 parent 9cf7e08 commit 689a919

21 files changed

+75
-35
lines changed

.DS_Store

2 KB
Binary file not shown.

docs/.DS_Store

4 KB
Binary file not shown.

docs/activation.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta name="Description" content="Building neural networks from scratch using Java.">
7+
68
<title>Activation Functions & Derivatives</title>
79

810
<!-- Math -->
@@ -142,8 +144,8 @@ <h3 id="derivatives">Derivatives</h3>
142144
function \(f(x)\). It is not exactly necessary for you to have a very deep understanding of derivatives until we get to the topic of <em>backpropagation</em>, but I have explained it
143145
now in case you were curious. If you are a middle school or high school student, you probably won’t have been in contact with derivatives or calculus as a whole, and it is not
144146
necessary for you to learn these topics before being taught in school. Instead, just follow my explanations and see if you can understand it. If not, please submit a
145-
<a href="https://docs.google.com/forms/d/e/1FAIpQLSc-JrIBxMqlcOyLN6rgmhH5AVhNEj7LlJPhQTQk9zrbYG4Uhg/viewform" target="_blank">feedback form</a> or ask/learn about the topics online,
146-
on platforms like <a href="https://khanacademy.org/" target="_blank">Khan Academy</a> if you are curious.</p>
147+
<a rel="noopener" href="https://docs.google.com/forms/d/e/1FAIpQLSc-JrIBxMqlcOyLN6rgmhH5AVhNEj7LlJPhQTQk9zrbYG4Uhg/viewform" target="_blank">feedback form</a> or ask/learn about the topics online,
148+
on platforms like <a rel="noopener" href="https://khanacademy.org/" target="_blank">Khan Academy</a> if you are curious.</p>
147149
<p>It is almost time to start training our own neural network, so head on to the next chapter!</p>
148150

149151
<h3 id="summary">Chapter Summary</h3>

docs/book.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,63 @@
33
src: url("fonts/Amiri/Amiri-Regular.ttf") format("truetype");
44
font-weight: normal;
55
font-style: normal;
6+
font-display: swap;
67
}
78

89
@font-face {
910
font-family: "Amiri";
1011
src: url("fonts/Amiri/Amiri-Italic.ttf") format("truetype");
1112
font-weight: normal;
1213
font-style: italic;
14+
font-display: swap;
1315
}
1416

1517
@font-face {
1618
font-family: "Amiri";
1719
src: url("fonts/Amiri/Amiri-Bold.ttf") format("truetype");
1820
font-weight: bold;
1921
font-style: normal;
22+
font-display: swap;
2023
}
2124

2225
@font-face {
2326
font-family: "Amiri";
2427
src: url("fonts/Amiri/Amiri-BoldItalic.ttf") format("truetype");
2528
font-weight: bold;
2629
font-style: italic;
30+
font-display: swap;
2731
}
2832

2933
@font-face {
3034
font-family: "Source Code Pro";
3135
src: url("fonts/SourceCodePro/SourceCodePro-Regular.ttf") format("truetype");
3236
font-weight: normal;
3337
font-style: normal;
38+
font-display: swap;
3439
}
3540

3641
@font-face {
3742
font-family: "Source Code Pro";
3843
src: url("fonts/SourceCodePro/SourceCodePro-Italic.ttf") format("truetype");
3944
font-weight: normal;
4045
font-style: italic;
46+
font-display: swap;
4147
}
4248

4349
@font-face {
4450
font-family: "Source Code Pro";
4551
src: url("fonts/SourceCodePro/SourceCodePro-Bold.ttf") format("truetype");
4652
font-weight: bold;
4753
font-style: normal;
54+
font-display: swap;
4855
}
4956

5057
@font-face {
5158
font-family: "Source Code Pro";
5259
src: url("fonts/SourceCodePro/SourceCodePro-BoldItalic.ttf") format("truetype");
5360
font-weight: bold;
5461
font-style: italic;
62+
font-display: swap;
5563
}
5664

5765
@media only screen and (min-width: 800px) {

docs/content.html

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta name="Description" content="Building neural networks from scratch using Java.">
7+
68
<title>Contents</title>
79
<style>
810
@media only screen and (max-width: 800px) {
@@ -32,55 +34,63 @@
3234
src: url("fonts/Amiri/Amiri-Regular.ttf") format("truetype");
3335
font-weight: normal;
3436
font-style: normal;
37+
font-display: swap;
3538
}
3639

3740
@font-face {
3841
font-family: "Amiri";
3942
src: url("fonts/Amiri/Amiri-Italic.ttf") format("truetype");
4043
font-weight: normal;
4144
font-style: italic;
45+
font-display: swap;
4246
}
4347

4448
@font-face {
4549
font-family: "Amiri";
4650
src: url("fonts/Amiri/Amiri-Bold.ttf") format("truetype");
4751
font-weight: bold;
4852
font-style: normal;
53+
font-display: swap;
4954
}
5055

5156
@font-face {
5257
font-family: "Amiri";
5358
src: url("fonts/Amiri/Amiri-BoldItalic.ttf") format("truetype");
5459
font-weight: bold;
5560
font-style: italic;
61+
font-display: swap;
5662
}
5763

5864
@font-face {
5965
font-family: "Source Code Pro";
6066
src: url("fonts/SourceCodePro/SourceCodePro-Regular.ttf") format("truetype");
6167
font-weight: normal;
6268
font-style: normal;
69+
font-display: swap;
6370
}
6471

6572
@font-face {
6673
font-family: "Source Code Pro";
6774
src: url("fonts/SourceCodePro/SourceCodePro-Italic.ttf") format("truetype");
6875
font-weight: normal;
6976
font-style: italic;
77+
font-display: swap;
7078
}
7179

7280
@font-face {
7381
font-family: "Source Code Pro";
7482
src: url("fonts/SourceCodePro/SourceCodePro-Bold.ttf") format("truetype");
7583
font-weight: bold;
7684
font-style: normal;
85+
font-display: swap;
7786
}
7887

7988
@font-face {
8089
font-family: "Source Code Pro";
8190
src: url("fonts/SourceCodePro/SourceCodePro-BoldItalic.ttf") format("truetype");
8291
font-weight: bold;
8392
font-style: italic;
93+
font-display: swap;
8494
}
8595

8696
nav {
@@ -153,16 +163,18 @@
153163
text-align: center;
154164
}
155165

156-
#stat h4 {
166+
#viewText {
157167
color: black;
158168
font-size: 20px;
169+
font-weight: bold;
159170
}
160171

161-
#stat p {
172+
#count {
162173
background-color: rgb(240, 240, 240);
163174
border-radius: 20px;
164175
padding: 5px 5px 5px 5px;
165176
font-family: "Source Code Pro";
177+
font-size: 20px;
166178
}
167179

168180
h1 {
@@ -204,7 +216,7 @@ <h1>Building Neural Networks from Scratch</h1>
204216
</nav>
205217

206218
<div id="stat">
207-
<h4>View count</h4>
219+
<p id="viewText">View count</p>
208220
<p id="count">-----</p>
209221
</div>
210222
<ol>
@@ -487,7 +499,7 @@ <h4>View count</h4>
487499
<script>
488500
const countEl = document.getElementById('count');
489501

490-
updateVisitCount();
502+
//updateVisitCount();
491503

492504
function updateVisitCount() {
493505
fetch('https://api.countapi.xyz/hit/buildingnnsfromscratch.com/key')
@@ -516,4 +528,4 @@ <h4>View count</h4>
516528
// Code was modified for suitability purposes
517529
// END W3SCHOOL CODE
518530
</script>
519-
</html>
531+
</html>

docs/cover.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta name="Description" content="Building neural networks from scratch using Java.">
7+
68
<title>Cover</title>
79
<style>
810
@font-face {
@@ -115,7 +117,7 @@ <h1>Building Neural Networks from Scratch</h1>
115117
</a>
116118
</nav>
117119
<div id="visible">
118-
<img src="cover/Cover.jpg">
120+
<img alt="Image couldn't load." src="cover/Cover.jpg">
119121
<br><br>
120122
<button onclick="location.href = 'preface.html';">Next</button>
121123
</div>

docs/cover/.DS_Store

6 KB
Binary file not shown.

docs/cover/Cover.jpg

-794 KB
Loading

docs/cover/image.jpeg

672 KB
Loading

docs/cover/image.png

-3.49 MB
Binary file not shown.

0 commit comments

Comments
 (0)