-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (63 loc) · 1.37 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Fact of the Day</title>
<link rel="icon" type="image/x-icon" href="favicon.png">
<style>
div, nav, ul, li, a {
display: inline-block;
position: relative;
box-sizing: border-box;
}
div, nav, footer {
width: 100%;
}
nav {
background: black;
height: 60px;
}
nav ul li a {
color: white;
padding: 10px;
}
main {
margin: 30px;
}
footer {
position: fixed;
bottom: 0px;
height: 25%;
background: black;
color: white;
}
</style>
</head>
<body>
<div>
<nav>
<ul>
<li><a href="javascript:void(0)">Link 1</a></li>
<li><a href="javascript:void(0)">Link 2</a></li>
<li><a href="javascript:void(0)">Link 3</a></li>
<li><a href="javascript:void(0)">Link 4</a></li>
</ul>
</nav>
</div>
<main>
<div>
<h1>Sample Page</h1>
<p>
Add a html tag with <code>id="factOfTheDay"</code> and add the below script somewhere beneath that html tag: <br>
<code><script src="https://isocialPractice.github.io/factOfTheDay/js/factOfTheDay.js"></script></code> <br><br>
Below is a working sample:
</p><br>
<div id="factOfTheDay"></div>
</div>
</main>
<footer>
<p>Footer message.</p>
</footer>
<script src="js/factOfTheDay.js"></script>
</body>
</html>