File size: 1,011 Bytes
3c50af6 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Settings</title>
<style>
body { font-family: Arial; text-align: center; padding: 40px; }
.option { margin: 20px; font-size: 20px; }
</style>
</head>
<body>
<h2>⚙️ Settings</h2>
<div class="option">
<label for="lang">🌐 Language:</label>
<select id="lang">
<option>English</option>
<option>العربية</option>
</select>
</div>
<div class="option">
<label for="theme">🌓 Theme:</label>
<select id="theme" onchange="changeTheme(this.value)">
<option value="light">Light Mode</option>
<option value="dark">Dark Mode</option>
</select>
</div>
<script>
function changeTheme(mode) {
if(mode === "dark") {
document.body.style.background = "#222";
document.body.style.color = "#fff";
} else {
document.body.style.background = "#fff";
document.body.style.color = "#000";
}
}
</script>
</body>
</html> |