File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -512,7 +512,7 @@ \section{Modules}\label{s:basics-modules}
512
512
\end {aside}
513
513
514
514
Since we're going to build command-line programs before doing anything in the browser,
515
- we will introduce Node's module system first.
515
+ we will introduce Node's module system first ( \figref {f:basics-require}) .
516
516
We start by putting this code in a file called \texttt {utilities.js}:
517
517
518
518
\begin {minted}{js}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ \section{Formatting}\label{s:htmlcss-formatting}
15
15
and a corresponding closing tag \texttt {\htmltag {/tagname} } (with a leading slash) shows where it ends.
16
16
If there's nothing between the two, we can write \texttt {\htmltag {tagname/} } (with a trailing slash).
17
17
18
- A document's elements must form a \gref {g:tree }{tree},
18
+ A document's elements must form a \gref {g:tree }{tree} ( \figref { f:htmlcss-tree }) ,
19
19
i.e.,
20
20
they must be strictly nested.
21
21
This means that if Y starts inside X,
@@ -306,7 +306,7 @@ \section{Tables}\label{s:htmlcss-tables}
306
306
307
307
\section {Links }\label {s:htmlcss-links }
308
308
309
- Links to other pages are what make HTML hypertext.\index {link!in HTML page}
309
+ Links to other pages are what make HTML hypertext ( \figref { f:htmlcss-links }) .\index {link!in HTML page}
310
310
Confusingly,
311
311
the element used to show a link is called \texttt {a }.
312
312
The text inside the element is displayed and (usually) highlighted for clicking.
@@ -542,7 +542,7 @@ \section{Bootstrap}\label{s:htmlcss-bootstrap}
542
542
One of the most popular is \hreffoot {https://getbootstrap.com/}{Bootstrap}\index {Bootstrap}
543
543
(which is what we're using to style this website).
544
544
Here's the entire source of a page that uses Bootstrap
545
- to create a two-column layout with a banner at the top:
545
+ to create a two-column layout with a banner at the top ( \figref { f:htmlcss-bootstrap }) :
546
546
547
547
\begin {minted }{html}
548
548
<html>
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ \section{Classes}\label{s:oop-classes}
103
103
Building every object by hand and calling \texttt {thing.function(thing)} is clumsy.
104
104
JavaScript solved these problems using \grefdex {g:prototype}{prototypes}{prototype},
105
105
which also turned out to be almost as clumsy as our hand-rolled solution (\secref {s:legacy-prototypes}).
106
- Most object-oriented languages use \grefdex {g:class}{classes}{class!in JavaScript} instead;
106
+ Most object-oriented languages use \grefdex {g:class}{classes}{class!in JavaScript} instead ( \figref {f:oop-memory}) ;
107
107
these were added to JavaScript in ES6 ,
108
108
and we will use them instead of prototypes throughout.
109
109
Here's how we create a class that defines the properties of a square,
You can’t perform that action at this time.
0 commit comments