Skip to content

Commit b27cc40

Browse files
committed
icon + title + intro text front bold
1 parent 6b7b95f commit b27cc40

File tree

4 files changed

+14
-18
lines changed

4 files changed

+14
-18
lines changed

index.html

+8-6
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22
<html>
33

44
<link rel="stylesheet" href="styles.css">
5+
<link rel="shortcut icon" type="image/x-icon" href="wow.png" />
6+
7+
<script type="text/javascript" src="https://code.jquery.com/jquery-latest.js"></script>
8+
<script type="text/javascript" src="js/app.js"></script>
59

610
<body id="body_id" class="bg">
711

812
<div class="center">
913
<a id="intro" class="intro"></a>
1014
<br>
11-
<!--div class="placeholder"><img/></div-->
12-
<div id='sensation_div'>
13-
<a id="sensation" class="sensation"></a>
14-
</div>
15+
<a id="sensation" class="sensation"></a>
1516
</div>
1617

1718

18-
<script type="text/javascript" src="https://code.jquery.com/jquery-latest.js"></script>
19-
<script type="text/javascript" src="js/app.js"></script>
19+
<head>
20+
<title id="title"></title>
21+
</head>
2022

2123
</body>
2224
</html>

js/app.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function readIntroFile(file, num) {
3232
var intro = words[Math.abs(num % (words.length - 1))];
3333

3434
document.getElementById("intro").innerHTML = intro + "...";
35+
document.getElementById("title").innerHTML += intro + "... ";
3536
}
3637
}
3738
}
@@ -47,6 +48,9 @@ function readTextFile(file, num) {
4748
var allText = rawFile.responseText;
4849
var words = allText.split("\n");
4950
sensation = words[Math.abs(num % (words.length - 1))];
51+
52+
document.getElementById("sensation").innerHTML = sensation + " sensation";
53+
document.getElementById("title").innerHTML += sensation + " sensation :O";
5054
}
5155
}
5256
}
@@ -110,6 +114,5 @@ window.onload = function() {
110114
readTextFile(baseUrl + "misc/sensations.txt", num);
111115
document.body.style.backgroundColor = "grey";
112116
getImage(sensation);
113-
document.getElementById("sensation").innerHTML = sensation + " sensation";
114117

115118
}

styles.css

+2-11
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,10 @@ a {
3030
.intro{
3131
color:white;
3232
font-size: 70px;
33-
font-family: Sansation_Light;
33+
font-family: Sansation_Bold;
3434
}
3535
.sensation{
3636
color:white;
3737
font-size: 100px;
3838
font-family: Sansation_Bold;
39-
}
40-
.placeholder {
41-
display: inline-block;
42-
}
43-
.placeholder img {
44-
visibility: hidden;
45-
background: url('spinner.gif') center center transparent;
46-
vertical-align: bottom;
47-
}
48-
39+
}

wow.png

18.3 KB
Loading

0 commit comments

Comments
 (0)