update framwork of HTML to introduce more tab pages

This commit is contained in:
wixette 2020-03-08 17:07:44 +08:00
parent af9abdaf4f
commit 0382229f54
3 changed files with 561 additions and 526 deletions

View File

@ -71,3 +71,9 @@ main {
-ms-user-select: none;
-webkit-user-select: none;
}
footer {
font-size: 11px;
margin-top: 30px;
text-align: center;
}

1058
index.html

File diff suppressed because it is too large Load Diff

View File

@ -64,6 +64,16 @@ l10n.MESSAGES = {
'en': 'Soft Switch Board',
'zh': '辅助开关面板',
},
'back-home': {
'en': 'Home',
'zh': '首页',
},
'source-code': {
'en': 'Source code',
'zh': '源代码',
},
};
/**
@ -92,12 +102,13 @@ l10n.nextLocale = function() {
*/
l10n.restoreLocale = function() {
var val = localStorage.getItem(l10n.localStorageKey);
if (val) {
var index = parseInt(val);
if (!isNaN(index)) {
l10n.current = index % l10n.LOCALES.length;
l10n.updateMessages();
}
if (!val) {
val = '0';
}
var index = parseInt(val);
if (!isNaN(index)) {
l10n.current = index % l10n.LOCALES.length;
l10n.updateMessages();
}
};