-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (90 loc) · 3.58 KB
/
index.html
File metadata and controls
92 lines (90 loc) · 3.58 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
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>cvrunmin's OpenSpace</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script>
/*
From https://stackoverflow.com/questions/19491336/get-url-parameter-jquery-or-how-to-get-query-string-values-in-js
*/
function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] === sParam) {
return sParameterName[1] === undefined ? true : sParameterName[1];
}
}
};
let lang = getUrlParameter("lang");
if(lang !== null){
if(lang === "en" || lang === "zh-Hant" || lang === "zh-Hans"){
window.location = window.location.origin + "/" + lang + "/index.html";
}
}
</script>
</head>
<body style="background-color: black">
<div class="container-fluid">
<nav class="navbar navbar-expand-md navbar-light fixed-top"
style=" background: transparent">
<div class="navbar-collapse">
</div>
<form class="form-inline">
<select class="custom-select" id="selectLang" onchange="onLocaleChange(this)">
<option value="en" selected>English</option>
<option value="zh-Hans">简体中文</option>
<option value="zh-Hant">繁體中文</option>
</select>
</form>
</nav>
</div>
<div id="actualBody" style="display: none;height: 100%">
<header class="header">
<div class="vertical-center" style="display: none">
<h1>cvrunmin.GitHub.io</h1>
<h3>Welcome to cvrunmin's OpenSpace</h3>
<div id="butLinks" style="top: 50px;opacity: 0; position: relative">
<a href="#" class="btn btn-dark btn-lg disabled" role="button" aria-disabled="true">About me</a>
<a href="#" class="btn btn-dark btn-lg dropdown-toggle" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Pieces</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
<a class="dropdown-item" href="/en/mtmcl/main.html">MTMCL</a>
<a class="dropdown-item" href="#">Minecraft Mods</a>
<a class="dropdown-item" href="en/utau.html">UTAUloid</a>
</div>
<a href="en/links.html" class="btn btn-dark btn-lg" role="button">Links</a>
</div>
</div>
</header>
<footer id="landing">
<div class="container">
<div class="row">
<div class="col-2 mx-auto text-center">
<p class="text-muted">Copyright © cvrunmin</p>
</div>
</div>
</div>
</footer>
</div>
<script src="jquery/jquery-3.2.1.min.js"></script>
<script src="bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="js/scripts.js"></script>
<script>
$(function () {
$("#actualBody").fadeIn(750, function(){
$("#actualBody").find("div.vertical-center").fadeIn(750, function(){
$("#butLinks").animate({
top: '0px',
opacity: '1.0'
});
});
});
})
</script>
</body>
</html>