Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions en/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">

<head>
<meta charset="UTF-8">
Expand Down Expand Up @@ -30,7 +30,7 @@ <h1 class="title">sibermerdeka - the tropical cyberspace!</h1>
<a href="https://wiki.sibermerdeka.net">Wiki↪</a>
</li>
<li>
<a href="#" onclick="switchLanguage('en')"><u>EN</u></a> / <a href="#" onclick="switchLanguage('bm')">BM</a>
<a href="#" onclick="switchLanguage('en')"><u>EN</u></a> / <a href="#" onclick="switchLanguage('ms')">BM</a>
</li>
</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
if (browserLang.startsWith('en')) {
window.location.href = '/en/';
} else {
window.location.href = '/bm/';
window.location.href = '/ms/';
}
}
</script>
Expand All @@ -25,6 +25,6 @@
</head>
<body>
<a href="/en/">English</a>
<a href="/bm/">Bahasa Malaysia</a>
<a href="/ms/">Bahasa Malaysia</a>
</body>
</html>
6 changes: 3 additions & 3 deletions bm/index.html → ms/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="ms">

<head>
<meta charset="UTF-8">
Expand All @@ -8,7 +8,7 @@
<link href="../css/style.css" rel="stylesheet" type="text/css" media="all">
<link rel="icon" type="image/png" href="https://neothemes.neocities.org/images/favicon.gif" />
<script>
localStorage.setItem('preferredLang', 'bm');
localStorage.setItem('preferredLang', 'ms');

function switchLanguage(lang) {
localStorage.setItem('preferredLang', lang);
Expand All @@ -31,7 +31,7 @@ <h1 class="title">sibermerdeka - alam siber tropika!</h1>
<a href="https://wiki.vitails.dev">Wiki↪</a>
</li>
<li>
<a href="#" onclick="switchLanguage('en')">EN</a> / <a href="#" onclick="switchLanguage('bm')"><u>BM</u></a>
<a href="#" onclick="switchLanguage('en')">EN</a> / <a href="#" onclick="switchLanguage('ms')"><u>BM</u></a>
</li>
</div>
<div class="wrapper">
Expand Down