diff --git a/multi.html b/multi.html index 5d1ac19d..c21f303f 100644 --- a/multi.html +++ b/multi.html @@ -816,9 +816,6 @@ var formation = new Formation(teamsCount,5);
  • -
  • -
  • -
  • @@ -840,6 +837,9 @@ var formation = new Formation(teamsCount,5);
  • +
  • +
  • +
  • diff --git a/script.js b/script.js index 2117be20..59c29529 100644 --- a/script.js +++ b/script.js @@ -1183,8 +1183,10 @@ function initialize() { }; - const s_showOfficialAwokenSorting = searchBox.querySelector("#show-official-awoken-sorting"); //显示官方排序的觉醒 + const officialSortingClassName = 'show-official-awoken-sorting'; + const s_showOfficialAwokenSorting = searchBox.querySelector(`#${officialSortingClassName}`); //显示官方排序的觉醒 s_showOfficialAwokenSorting.onchange = function(){ + localStorage.setItem("PADDF-" + officialSortingClassName, this.checked ? 1 : 0); let fragmentAwoken = document.createDocumentFragment(); let fragmentSawoken = document.createDocumentFragment(); const awokenSorting = this.checked ? official_awoken_sorting : s_awokensUl.originalSorting; @@ -1209,6 +1211,7 @@ function initialize() { s_awokensUl.appendChild(fragmentAwoken); s_sawokensUl.appendChild(fragmentSawoken); }; + s_showOfficialAwokenSorting.checked = Boolean(parseInt(localStorage.getItem("PADDF-" + officialSortingClassName))); s_showOfficialAwokenSorting.onchange(); diff --git a/solo.html b/solo.html index ac73f0a1..74b54352 100644 --- a/solo.html +++ b/solo.html @@ -766,9 +766,6 @@ var formation = new Formation(teamsCount,6);
  • -
  • -
  • -
  • @@ -790,6 +787,9 @@ var formation = new Formation(teamsCount,6);
  • +
  • +
  • +
  • diff --git a/style.css b/style.css index 1a4cc066..6a07cebe 100644 --- a/style.css +++ b/style.css @@ -998,6 +998,7 @@ ul{ content: "类型"; }*/ .types-div .type-list, +.types-div .latent-list, .rare-div .rare-list { display: inline-block; diff --git a/triple.html b/triple.html index 307621a6..1722ead8 100644 --- a/triple.html +++ b/triple.html @@ -1461,9 +1461,6 @@ var formation = new Formation(teamsCount,6);
  • -
  • -
  • -
  • @@ -1485,6 +1482,9 @@ var formation = new Formation(teamsCount,6);
  • +
  • +
  • +