Skip to content

Commit 76cdd42

Browse files
committed
Added more books.
1 parent dccb129 commit 76cdd42

File tree

6 files changed

+23
-3
lines changed

6 files changed

+23
-3
lines changed
16.1 KB
Loading
15.1 KB
Loading

files/books/threejs-cookbook.png

17.1 KB
Loading

files/books/threejs-essentials.png

18.4 KB
Loading
File renamed without changes.

index.html

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
text-decoration: underline;
5858
}
5959

60-
#panel {
60+
#panel {
6161
position: fixed;
6262

6363
left: 0px;
@@ -69,6 +69,14 @@
6969
padding: 20px 20px 0 20px;
7070
}
7171

72+
#panel #book {
73+
margin-top: 15px;
74+
}
75+
76+
#panel #book img {
77+
border: 1px solid #ccc;
78+
}
79+
7280
#content {
7381
position: absolute;
7482
left: 180px;
@@ -131,9 +139,21 @@ <h1>three.js<span style="font-size: 50%; vertical-align: super;"> <a href="http:
131139
<hr />
132140

133141
<center>
134-
<a href="http://www.udacity.com/overview/Course/cs291/" target="_blank"><img src="files/udacity.png" width="121" height="152" style="border:1px solid #ccc" /></a><br /><br />
142+
<a href="http://www.udacity.com/overview/Course/cs291/" target="_blank"><img src="files/udacity.png" width="121" height="152" style="border:1px solid #ccc" /></a>
143+
144+
<div id="book">
145+
<script>
146+
var books = [
147+
'<a href="http://shop.oreilly.com/product/0636920024729.do" target="_blank"><img src="files/books/webgl.png" width="100" height="132" /></a>',
148+
'<a href="https://www.packtpub.com/web-development/learning-threejs-javascript-3d-library-webgl" target="_blank"><img src="files/books/learning-threejs-javascript-3d-library-webgl.png" width="100" height="123" /></a>',
149+
'<a href="https://www.packtpub.com/game-development/game-development-threejs" target="_blank"><img src="files/books/game-development-threejs.png" width="100" height="123" /></a>',
150+
'<a href="https://www.packtpub.com/web-development/threejs-essentials" target="_blank"><img src="files/books/threejs-essentials.png" width="100" height="124" /></a>',
151+
'<a href="https://www.packtpub.com/web-development/threejs-cookbook" target="_blank"><img src="files/books/threejs-cookbook.png" width="100" height="123" /></a>',
152+
];
153+
document.write( books[ Math.floor( Math.random() * books.length ) ] );
154+
</script>
155+
</div>
135156

136-
<a href="http://shop.oreilly.com/product/0636920024729.do" target="_blank"><img src="files/webglbook.png" width="100" height="132" style="border:1px solid #ccc" /></a>
137157
</center>
138158

139159
</div>

0 commit comments

Comments
 (0)