Update index.html

This commit is contained in:
钟进 2018-07-23 13:14:06 +08:00
parent 6149d88690
commit 1c4deca3ae

View File

@ -198,19 +198,19 @@
document.getElementById("origin").value = window.location.search.replace('&error', '');
var userLang = navigator.language || navigator.userLanguage;
if (window.location.search.indexOf('error') != -1) {
if (userLang == 'cn') {
if (userLang == 'zh-CN') {
document.getElementById('error').innerHTML = '无效的用户名或密码';
} else {
document.getElementById('error').innerHTML = 'Invalid username or password';
}
document.getElementById('error').style.display = '';
}
if (userLang == 'cn') {
if (userLang == 'zh-CN') {
document.getElementById('login_header').innerHTML = '登录新空间云控平台';
} else {
document.getElementById('login_header').innerHTML = 'Please enter user name and password';
}
if (userLang == 'cn') {
if (userLang == 'zh-CN') {
if (document.getElementById('username').placeholder) {
document.getElementById('username').placeholder = '用户名';
document.getElementById('password').placeholder = '密码';