feature(language): Change language to Chinese
This commit is contained in:
parent
f99ef325ae
commit
0dda7d9f8c
@ -6,7 +6,7 @@ function date() {
|
|||||||
month: "long",
|
month: "long",
|
||||||
day: "numeric"
|
day: "numeric"
|
||||||
};
|
};
|
||||||
let date = currentDate.toLocaleDateString("en-GB", dateOptions);
|
let date = currentDate.toLocaleDateString("zh-cn", dateOptions);
|
||||||
document.getElementById("header_date").innerHTML = date;
|
document.getElementById("header_date").innerHTML = date;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -15,16 +15,16 @@ function greet() {
|
|||||||
let greet = Math.floor(currentTime.getHours() / 6);
|
let greet = Math.floor(currentTime.getHours() / 6);
|
||||||
switch (greet) {
|
switch (greet) {
|
||||||
case 0:
|
case 0:
|
||||||
document.getElementById("header_greet").innerHTML = "Good night!";
|
document.getElementById("header_greet").innerHTML = "晚上好!";
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
document.getElementById("header_greet").innerHTML = "Good morning!";
|
document.getElementById("header_greet").innerHTML = "早上好!";
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
document.getElementById("header_greet").innerHTML = "Good afternoon!";
|
document.getElementById("header_greet").innerHTML = "下午好!";
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
document.getElementById("header_greet").innerHTML = "Good evening!";
|
document.getElementById("header_greet").innerHTML = "傍晚好!";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
16
index.html
16
index.html
@ -1,9 +1,9 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="zh-Hans">
|
||||||
<head>
|
<head>
|
||||||
<title>SUI</title>
|
<title>7Wate's Nav</title>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="description" content="a startpage for your server and / or new tab page">
|
<meta name="description" content="7Wate,导航网站">
|
||||||
<meta http-equiv="Default-Style" content="">
|
<meta http-equiv="Default-Style" content="">
|
||||||
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
|
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
|
||||||
<link type="text/css" rel="stylesheet" href="./assets/css/styles.css" media="screen,projection"/>
|
<link type="text/css" rel="stylesheet" href="./assets/css/styles.css" media="screen,projection"/>
|
||||||
@ -17,13 +17,13 @@
|
|||||||
<section id="modal">
|
<section id="modal">
|
||||||
<div>
|
<div>
|
||||||
<header id="modal-header">
|
<header id="modal-header">
|
||||||
<h1>Options</h1>
|
<h1>设置</h1>
|
||||||
<a href="#" title="Close" class="modal-close">
|
<a href="#" title="Close" class="modal-close">
|
||||||
<span class="iconify" data-icon="mdi-close"></span>
|
<span class="iconify" data-icon="mdi-close"></span>
|
||||||
</a>
|
</a>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<h2>Color themes</h2>
|
<h2>主题</h2>
|
||||||
|
|
||||||
<div id="modal-theme">
|
<div id="modal-theme">
|
||||||
<button data-theme="blackboard" class="theme-button theme-blackboard">Blackboard</button>
|
<button data-theme="blackboard" class="theme-button theme-blackboard">Blackboard</button>
|
||||||
@ -39,14 +39,14 @@
|
|||||||
<button data-theme="paper" class="theme-button theme-paper">Paper</button>
|
<button data-theme="paper" class="theme-button theme-paper">Paper</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Search options</h2>
|
<h2>搜索</h2>
|
||||||
|
|
||||||
<section id="providers">
|
<section id="providers">
|
||||||
<script type="text/handlebars-template" id="providers-template">
|
<script type="text/handlebars-template" id="providers-template">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Website</th>
|
<th>站点</th>
|
||||||
<th>Prefix</th>
|
<th>关键字</th>
|
||||||
</tr>
|
</tr>
|
||||||
{{#providers}}
|
{{#providers}}
|
||||||
<tr>
|
<tr>
|
||||||
|
Reference in New Issue
Block a user