-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
165 lines (144 loc) · 4.83 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!Doctype html>
<html>
<header>
<style>
.navbar {
overflow: hidden;
background-color: white;
font-family: Arial, Helvetica, sans-serif;
}
.navbar a {
float: left;
font-size: 16px;
color: black;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.dropdown {
float: left;
overflow: hidden;
}
.dropdown .dropbtn {
cursor: pointer;
font-size: 16px;
border: none;
outline: none;
color: white;
padding: 14px 16px;
background-color: inherit;
font-family: inherit;
margin: 0;
color: black;
}
.navbar a:hover, .dropdown:hover .dropbtn, .dropbtn:focus {
background-color: plum;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
float: none;
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
.dropdown-content a:hover {
background-color: white;
}
.show {
display: block;
}
</style>
</head>
<body>
<link rel="stylesheet" href="stylesheet.css">
<div class="navbar">
<a href="index.html">Home</a>
<a href="sun-features.html">Feautures Of The Sun</a>
<a href="sources-cited.html"> Sources Cited</a>
<a href="meteors.html"> Meteors</a>
<a href="comets.html"> Comets</a>
<a href="asteroids.html"> Asteroids</a>
<div class="dropdown">
<button class="dropbtn" onclick="myFunction()">All Planets
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content" id="myDropdown">
<a href="mercury.html">Mercury</a>
<a href="venus.html">Venus</a>
<a href="earth.html">Earth</a>
<a href="mars.html">Mars </a>
<a href="jupiter.html">Jupiter </a>
<a href="saturn.html">Saturn </a>
<a href="uranus.html">Uranus </a>
<a href="neptune.html">Neptune</a>
</div>
</div>
</div>
<style>
html{
text-align: center;
font-family: Karla;
background-image: url(Skelitin-JS/PhysicalScience-Project/backround.png);
}
</style>
<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(e) {
if (!e.target.matches('.dropbtn')) {
var myDropdown = document.getElementById("myDropdown");
if (myDropdown.classList.contains('show')) {
myDropdown.classList.remove('show');
}
}
}
</script>
<title>Planet Booklet|Home Page</title>
<h1>Planet Booklet|Home Page</h1>
<link rel="icon" type="image/x-icon" href="https://pbs.twimg.com/media/FAAZEKCWEA4dH1e.jpg">
</header>
<body>
<h3> Welcome to my Planet Booklet.</h3>
<h3> As you can see, this Planet Booklet is in the form of a website.</h3>
<h3> To navigate to the other pages, just go to the left (or top!) of the screen and switch the page.</h3>
<h3> If you would like to view the code, or see each new addition go to </h3>
<a href="https://github.com/Skelitin-JS/PhysicalScience-Project">Github Code</a>
<h3>If you have any problems, email me at </h3>
<a href="https://mail.google.com/mail/u/0/?fs=1&tf=cm&source=mailto&[email protected]">[email protected] (school)</a> <br>
<h3> or</h3>
<a href="https://mail.google.com/mail/u/0/?fs=1&tf=cm&source=mailto&[email protected]">[email protected] (personal)</a><br>
<h3> (also, the version changes everytime I "commit" new code. so, everytime I change anything or even many things that is called a commit)</h3>
<style>
a{
color: white;
}
</style>
</body>
</html>
<style>
@import url(https://fonts.googleapis.com/css?family=Karla:400,700&display=swap);
html{
text-align: center;
font-family: Karla;
background-image: url(backround.png);
}
</style>
<style>
html{
color: #f9f9f9;
}
</style>
<p class="bottom">Version 1.11</p>