From a08a3372254a1c68fe87c855cdc157cc786b7aa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Wed, 18 Nov 2020 15:08:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=82=A8=E5=AD=98=E5=AE=98=E6=96=B9=E8=A7=89?= =?UTF-8?q?=E9=86=92=E6=8E=92=E5=BA=8F=E5=BC=80=E5=85=B3=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- multi.html | 6 +++--- script.js | 5 ++++- solo.html | 6 +++--- style.css | 1 + triple.html | 6 +++--- 5 files changed, 14 insertions(+), 10 deletions(-) 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);
  • +
  • +
  • +