-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakemake.html
58 lines (52 loc) · 3.25 KB
/
makemake.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/examples/js/controls/OrbitControls.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu&display=swap" rel="stylesheet">
<link rel="shortcut icon" href="https://www.svgrepo.com/show/187801/solar-system-space.svg" type="image/x-icon" />
<title>Makemake</title>
</head>
<body>
<button class="back-button" onclick="goHome()">
←
</button>
<div class="info-box" id="infoBox">
<h3 id="makemakeTitle">Makemake</h3>
<p id="makemakeInfo">
Makemake is a dwarf planet located in the Kuiper Belt, discovered in 2005. It is known for its reddish color and is one of the brightest objects in the Kuiper Belt. Makemake has a diameter of about 1,430 kilometers (890 miles) and has no known moons. It is classified as a dwarf planet due to its size and shape, and it orbits the Sun every 305 years.
</p>
</div>
<div class="nav-bar">
<button class="nav-button" onclick="switchLanguage('english')">English</button>
<button class="nav-button" onclick="switchLanguage('urdu')">Urdu</button>
</div>
<script src="script.js"></script>
<script>
function goHome() {
window.location.href = '../index.html';
}
function switchLanguage(language) {
const makemakeTitle = document.getElementById('makemakeTitle');
const makemakeInfo = document.getElementById('makemakeInfo');
if (language === 'english') {
makemakeTitle.textContent = 'Makemake';
makemakeInfo.innerHTML = `
Makemake is a dwarf planet located in the Kuiper Belt, discovered in 2005. It is known for its reddish color and is one of the brightest objects in the Kuiper Belt. Makemake has a diameter of about 1,430 kilometers (890 miles) and has no known moons. It is classified as a dwarf planet due to its size and shape, and it orbits the Sun every 305 years.
`;
} else if (language === 'urdu') {
makemakeTitle.textContent = 'میکمیک';
makemakeInfo.innerHTML = `
میکمیک ایک بونا سیارہ ہے جو کوپر بیلٹ میں واقع ہے، جس کی دریافت 2005 میں ہوئی۔ یہ اپنی سرخی مائل رنگ کے لیے جانا جاتا ہے اور یہ کوپر بیلٹ میں سب سے روشن اشیاء میں سے ایک ہے۔ میکمیک کا قطر تقریباً 1,430 کلومیٹر (890 میل) ہے اور اس کے پاس کوئی معروف چاند نہیں ہے۔ اسے اس کے حجم اور شکل کی وجہ سے ایک بونا سیارہ کے طور پر درجہ بند کیا گیا ہے، اور یہ سورج کے گرد ہر 305 سال میں گردش کرتا ہے۔
`;
}
}
window.onload = function() {
switchLanguage('english');
};
</script>
</body>
</html>