Browse Source

完善切换觉醒面板的不同语言

tags/v7.5
枫谷剑仙 5 years ago
parent
commit
bebe1ebd72
8 changed files with 19 additions and 3 deletions
  1. +3
    -0
      languages/en.css
  2. +3
    -0
      languages/ja.css
  3. +3
    -0
      languages/ko.css
  4. +3
    -0
      languages/zh-TW.css
  5. +1
    -0
      multi.html
  6. +3
    -1
      script.js
  7. +1
    -1
      solo.html
  8. +2
    -1
      triple.html

+ 3
- 0
languages/en.css View File

@@ -312,6 +312,9 @@
.search-box .include-super-awoken-label::after{
content: "Including Super Awoken";
}
.search-box .show-official-awoken-sorting-label::after{
content: "Use the official Awoken sorting";
}
.search-box .sort-div::before{
content: "Sort by:";
}


+ 3
- 0
languages/ja.css View File

@@ -304,6 +304,9 @@
.search-box .include-super-awoken-label::after{
content: "超覚醒を含む";
}
.search-box .show-official-awoken-sorting-label::after{
content: "公式の覚醒ソートを使用";
}
.search-box .sort-div::before{
content: "並べ替え:";
}


+ 3
- 0
languages/ko.css View File

@@ -301,6 +301,9 @@
.search-box .include-super-awoken-label::after{
content: "슈퍼 각성 포함";
}
.search-box .show-official-awoken-sorting-label::after{
content: "공식 각성 순서를 사용합니다";
}
.search-box .sort-div::before{
content: "정렬:";
}


+ 3
- 0
languages/zh-TW.css View File

@@ -307,6 +307,9 @@
.search-box .include-super-awoken-label::after{
content: "包括超覺醒";
}
.search-box .show-official-awoken-sorting-label::after{
content: "使用官方覺醒排序";
}
.search-box .sort-div::before{
content: "排序:";
}


+ 1
- 0
multi.html View File

@@ -517,6 +517,7 @@ var formation = new Formation(teamsCount,5);
<div class="awoken-option">
<input type="checkbox" class="config-checkbox-ipt" name="consider-equivalent-awoken" id="consider-equivalent-awoken" checked><label class="config-checkbox-lbl consider-equivalent-awoken-label" for="consider-equivalent-awoken"><div class="config-checkbox-lbl-cicle"></div></label>
<input type="checkbox" class="config-checkbox-ipt" name="include-super-awoken" id="include-super-awoken"><label class="config-checkbox-lbl include-super-awoken-label" for="include-super-awoken"><div class="config-checkbox-lbl-cicle"></div></label>
<input type="checkbox" class="config-checkbox-ipt" name="show-official-awoken-sorting" id="show-official-awoken-sorting"><label class="config-checkbox-lbl show-official-awoken-sorting-label" for="show-official-awoken-sorting"><div class="config-checkbox-lbl-cicle"></div></label>
</div>
<ul class="awoken-ul">
<li class="awoken-count zero"><button class="awoken-icon" data-awoken-icon="43"></button><label class="count-symbol"><input type="button" class="count" value="0" /></label></li><!--7c-->


+ 3
- 1
script.js View File

@@ -772,11 +772,13 @@ function creatNewUrl(arg) {
if (!!(window.history && history.pushState)) { // 支持History API
const language_i18n = arg.language || getQueryString("l") || getQueryString("lang"); //获取参数指定的语言
const datasource = arg.datasource || getQueryString("s");
const outObj = formation.outObj();
const outObj = getQueryString("d") ? formation.outObj() : null;

const newSearch = new URLSearchParams();
if (language_i18n) newSearch.set("l", language_i18n);
if (datasource && datasource != "ja") newSearch.set("s", datasource);
if (getQueryString("guide")) newSearch.set("guide", getQueryString("guide"));
if (getQueryString("id")) newSearch.set("id", getQueryString("id"));
if (outObj)
{
const dataJsonStr = JSON.stringify(outObj); //数据部分的字符串


+ 1
- 1
solo.html View File

@@ -466,7 +466,7 @@ var formation = new Formation(teamsCount,6);
<button class="awoken-clear"></button>
<div class="awoken-option">
<input type="checkbox" class="config-checkbox-ipt" name="consider-equivalent-awoken" id="consider-equivalent-awoken" checked><label class="config-checkbox-lbl consider-equivalent-awoken-label" for="consider-equivalent-awoken"><div class="config-checkbox-lbl-cicle"></div></label>
<input type="checkbox" class="config-checkbox-ipt" name="include-super-awoken" id="include-super-awoken"><label class="config-checkbox-lbl include-super-awoken-label" for="include-super-awoken"><div class="config-checkbox-lbl-cicle"></div></label>
<input type="checkbox" class="config-checkbox-ipt" name="include-super-awoken" id="include-super-awoken" checked><label class="config-checkbox-lbl include-super-awoken-label" for="include-super-awoken"><div class="config-checkbox-lbl-cicle"></div></label>
<input type="checkbox" class="config-checkbox-ipt" name="show-official-awoken-sorting" id="show-official-awoken-sorting"><label class="config-checkbox-lbl show-official-awoken-sorting-label" for="show-official-awoken-sorting"><div class="config-checkbox-lbl-cicle"></div></label>
</div>
<ul class="awoken-ul">


+ 2
- 1
triple.html View File

@@ -1161,7 +1161,8 @@ var formation = new Formation(teamsCount,6);
<button class="awoken-clear"></button>
<div class="awoken-option">
<input type="checkbox" class="config-checkbox-ipt" name="consider-equivalent-awoken" id="consider-equivalent-awoken" checked><label class="config-checkbox-lbl consider-equivalent-awoken-label" for="consider-equivalent-awoken"><div class="config-checkbox-lbl-cicle"></div></label>
<input type="checkbox" class="config-checkbox-ipt" name="include-super-awoken" id="include-super-awoken"><label class="config-checkbox-lbl include-super-awoken-label" for="include-super-awoken"><div class="config-checkbox-lbl-cicle"></div></label>
<input type="checkbox" class="config-checkbox-ipt" name="include-super-awoken" id="include-super-awoken" checked><label class="config-checkbox-lbl include-super-awoken-label" for="include-super-awoken"><div class="config-checkbox-lbl-cicle"></div></label>
<input type="checkbox" class="config-checkbox-ipt" name="show-official-awoken-sorting" id="show-official-awoken-sorting"><label class="config-checkbox-lbl show-official-awoken-sorting-label" for="show-official-awoken-sorting"><div class="config-checkbox-lbl-cicle"></div></label>
</div>
<ul class="awoken-ul">
<li class="awoken-count zero"><button class="awoken-icon" data-awoken-icon="43"></button><label class="count-symbol"><input type="button" class="count" value="0" /></label></li><!--7c-->


Loading…
Cancel
Save