Co-authored-by: Panos Triantafyllidis <panostriantafyllidis@users.noreply.github.com> Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
117 lines
2.6 KiB
HTML
117 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Simple Solar System</title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
canvas {
|
|
display: block;
|
|
}
|
|
|
|
img {
|
|
border-radius: 10px;
|
|
width: 100%;
|
|
}
|
|
|
|
.control-item {
|
|
margin-bottom: 5px;
|
|
color: #fff;
|
|
background-color: #222;
|
|
border: none;
|
|
outline: none;
|
|
}
|
|
|
|
#controls {
|
|
background-color: #222;
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 10px;
|
|
z-index: 100;
|
|
font-family: Arial, sans-serif;
|
|
font-size: 14px;
|
|
}
|
|
|
|
#speedControls {
|
|
display: flex;
|
|
padding: 5px;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
|
|
#infoWindow {
|
|
display: none;
|
|
position: fixed;
|
|
overflow: scroll;
|
|
top: 10px;
|
|
bottom: 10px;
|
|
right: 10px;
|
|
width: 300px;
|
|
height: auto;
|
|
max-width: 100%;
|
|
background-color: #222;
|
|
border-radius: 5px;
|
|
color: #fff;
|
|
padding: 10px;
|
|
z-index: 100;
|
|
font-family: Arial, sans-serif;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.apod-button {
|
|
background-color: #333;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 5px;
|
|
padding: 15px 30px;
|
|
}
|
|
|
|
#tipOfTheDayBox {
|
|
position: fixed;
|
|
bottom: 10px;
|
|
left: 10px;
|
|
background-color: #222;
|
|
color: white;
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
z-index: 100;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="controls">
|
|
<div id="speedControls">
|
|
<label for="speedSlider" class="control-item">Simulation Speed:</label>
|
|
<input type="range" id="speedSlider" class="control-item" min="0" max="100" step="0.1" value="1" />
|
|
<span id="speedValue" class="control-item">1x</span>
|
|
</div>
|
|
<select id="dropdown" class="control-item">
|
|
<option value="">Select an object to focus on</option>
|
|
</select>
|
|
</div>
|
|
<div id="infoWindow">
|
|
<h1 id="infoTitle">Title</h1>
|
|
<p id="infoContent">Content</p>
|
|
<button onclick="document.getElementById('infoWindow').style.display='none'">
|
|
Close
|
|
</button>
|
|
</div>
|
|
<div id="tipOfTheDayBox">
|
|
<p style="text-align: center">View the tip of the day by NASA!</p>
|
|
<button id="apodButton" class="apod-button">Get Picture</button>
|
|
<button id="downloadApodButton" class="apod-button">Download Picture</button>
|
|
</div>
|
|
<audio id="backgroundMusic" preload="auto" playsinline></audio>
|
|
<script type="module" src="js/main.js"></script>
|
|
</body>
|
|
|
|
</html>
|