Skip to content

Commit 6256d13

Browse files
committed
Added intro to resources.
1 parent 1f2f6ca commit 6256d13

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

files/intro.png

4.24 KB
Loading

files/intro.xcf

17.2 KB
Binary file not shown.

index.html

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,17 @@
6969
padding: 20px 20px 0 20px;
7070
}
7171

72-
#panel #book {
73-
margin-top: 15px;
72+
#panel img {
73+
border: 1px solid #ccc;
7474
}
7575

76-
#panel #book img {
77-
border: 1px solid #ccc;
76+
#panel #resource {
77+
text-align: center;
78+
}
79+
80+
#panel #book {
81+
text-align: center;
82+
margin-top: 15px;
7883
}
7984

8085
#content {
@@ -138,8 +143,15 @@ <h1>three.js<span style="font-size: 50%; vertical-align: super;"> <a href="http:
138143

139144
<hr />
140145

141-
<center>
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>
146+
<div id="resource">
147+
<script>
148+
var resources = [
149+
'<a href="http://www.udacity.com/overview/Course/cs291/" target="_blank"><img src="files/udacity.png" width="121" height="152" /></a>',
150+
'<a href="http://davidscottlyons.com/threejs/presentations/frontporch14/" target="_blank"><img src="files/intro.png" width="121" height="106" /></a>'
151+
];
152+
document.write( resources[ Math.floor( Math.random() * resources.length ) ] );
153+
</script>
154+
</div>
143155

144156
<div id="book">
145157
<script>
@@ -154,8 +166,6 @@ <h1>three.js<span style="font-size: 50%; vertical-align: super;"> <a href="http:
154166
</script>
155167
</div>
156168

157-
</center>
158-
159169
</div>
160170

161171
<div id="content">

0 commit comments

Comments
 (0)