-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuranus.html
More file actions
91 lines (86 loc) · 2.85 KB
/
uranus.html
File metadata and controls
91 lines (86 loc) · 2.85 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Uranus</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<script src="script.js"></script>
</head>
<body class="uranus">
<audio src="uranus.mp3" autoplay loop></audio>
<header>
<h1>Uranus</h1>
</header>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="mercury.html">Mercury</a></li>
<li><a href="venus.html">Venus</a></li>
<li><a href="earth.html">Earth</a></li>
<li><a href="mars.html">Mars</a></li>
<li><a href="jupiter.html">Jupiter</a></li>
<li><a href="saturn.html">Saturn</a></li>
<li><a href="uranus.html">Uranus</a></li>
<li><a href="neptune.html">Neptune</a></li>
<!-- Add more navigation links for other pages -->
</ul>
</nav>
<main>
<h2>About Uranus</h2>
<div class="planet-info">
<div class="planet-info-box">
<h3>Rotation Time</h3>
<p>17.2 hours</p>
</div>
<div class="planet-info-box">
<h3>Revolution Time</h3>
<p>84 years</p>
</div>
<div class="planet-info-box">
<h3>Radius</h3>
<p>25,362 km</p>
</div>
<div class="planet-info-box">
<h3>Average Temperature</h3>
<p>-195 °C</p>
</div>
</div>
<div class="planet-content">
<button class="content-button" onclick="toggleContent('overview')">Overview</button>
<button class="content-button" onclick="toggleContent('structure')">Internal Structure</button>
<button class="content-button" onclick="toggleContent('geology')">Surface Geology</button>
<div id="overview" class="content-section">
<h3>Overview</h3>
<p>Uranus is an ice giant with a pale blue color due to its atmosphere primarily composed of methane.</p>
</div>
<div id="structure" class="content-section">
<h3>Internal Structure</h3>
<p>Uranus has a rocky core surrounded by layers of ice and a hydrogen-helium atmosphere.</p>
</div>
<div id="geology" class="content-section">
<h3>Surface Geology</h3>
<p>Uranus has a relatively featureless atmosphere and lacks notable surface features.</p>
</div>
</div>
<div class="references">
<h3>References</h3>
<p>Information sourced from <a href="https://en.wikipedia.org/wiki/Uranus" target="_blank">Wikipedia</a>.</p>
</div>
<div class="center">
<button id="start-button">Start Audio</button>
</div>
</main>
<script>
const audio = document.querySelector('audio'); // Select the audio element using its tag name
const startButton = document.getElementById('start-button');
startButton.addEventListener('click', () => {
if (audio.paused) {
audio.play();
startButton.textContent = 'Pause Audio';
} else {
audio.pause();
startButton.textContent = 'Start Audio';
}
});
</script>
</body>
</html>