Skip to content

Commit ef3c3d5

Browse files
committed
Prepare for putting on eloquentjavascript.net
1 parent 3022bcb commit ef3c3d5

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

code/index.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
<script src="js/sandbox.js"></script>
2727
<script src="js/chapter_info.js"></script>
2828
<script src="js/code.js"></script>
29+
30+
<style>
31+
.control { font-size: 15px }
32+
</style>
2933
</head>
3034

3135
<article style="max-width: 50em;">
@@ -37,9 +41,9 @@ <h1>Code Sandbox<div style="font-size: 70%">Eloquent JavaScript</div></h2>
3741
to to simply play around.</p>
3842

3943
<p>
40-
Chapter: <select id="chapters"></select>
41-
<select id="per_chapter"></select>
42-
<button id="run">run code</button>
44+
Chapter: <select id="chapters" class=control></select>
45+
<select id="per_chapter" class=control></select>
46+
<button id="run" class=control>run code</button>
4347
</p>
4448

4549
<div class="editor-wrap">
@@ -54,7 +58,7 @@ <h1>Code Sandbox<div style="font-size: 70%">Eloquent JavaScript</div></h2>
5458

5559
<p id="exercise_info">If you've solved the exercise and want to compare your code with
5660
mine, or you <em>really</em> tried, but can't get your code to work,
57-
you can <button id="solution" style="color: #c22; font-size: 16px">look at the
61+
you can <button id="solution" style="color: #c22;" class=control>look at the
5862
solution</button> (or <a id="download">download it</a>).</p>
5963

6064
<p id="box_info">

html/index.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@
88
<article>
99
<h1>Eloquent JavaScript<div style="font-size: 70%">second edition</div></h2>
1010

11-
<p>A modern introduction to JavaScript, programming, and the wonders of the digital.</p>
11+
<p>This is a book about JavaScript, programming, and the wonders of
12+
the digital. You can read it online here, and
13+
a <a href="http://www.nostarch.com/ejs2">paper version</a> is being
14+
worked on.</p>
1215

13-
<p style="text-align: center"><img src="img/cover.png" alt="Cover image" style="border: 1px solid black"></p>
16+
<p style="text-align: center; margin: 1.5em 0">
17+
<a href="http://www.nostarch.com/ejs2"><img src="img/cover.png" alt="Cover image" style="border: 1px solid black"></a>
18+
</p>
1419

1520
<p>Written by Marijn Haverbeke.</p>
1621

@@ -20,7 +25,7 @@ <h1>Eloquent JavaScript<div style="font-size: 70%">second edition</div></h2>
2025
may also be considered licensed under
2126
an <a href="http://opensource.org/licenses/MIT">MIT license</a>.</p>
2227

23-
<p>Illustrations by various artists: Cover by Wasif Hyder. Computer
28+
<p style="font-size: 80%">Illustrations by various artists: Cover by Wasif Hyder. Computer
2429
(introduction) by Max Xiantu. Sea of bits (Chapter 1) and
2530
weresquirrel (Chapter 4) by Margarita Martínez and José Menor.
2631
Octopuses (Chapter 2 and 4) by Jim Tierney. Object with on/off
@@ -77,6 +82,7 @@ <h2>Other pages</h2>
7782

7883
<ul class="links">
7984
<li><a href="code">Code sandbox and exercise solutions</a></li>
85+
<li><a href="1st_edition">The first edition of the book</a></li>
8086
</ul>
8187

8288
</article>

0 commit comments

Comments
 (0)