diff --git a/languages/en.css b/languages/en.css index 3ec1d57c..54935795 100644 --- a/languages/en.css +++ b/languages/en.css @@ -202,6 +202,9 @@ .control-box .datasource-label::before{ content: "Data source:"; } +.control-box .datasource-updatetime::before{ + content: "Update Time:"; +} .control-box .btn-solo-link::before{ content: "🧑Jump To Solo Mode"; } diff --git a/languages/ja.css b/languages/ja.css index 8ddd67a2..8934fae9 100644 --- a/languages/ja.css +++ b/languages/ja.css @@ -195,6 +195,9 @@ .control-box .datasource-label::before{ content: "データ ソース:"; } +.control-box .datasource-updatetime::before{ + content: "更新時刻:"; +} .control-box .btn-solo-link::before{ content: "🧑ソロゲームに移動"; } diff --git a/languages/ko.css b/languages/ko.css index 6cb17c64..9eb17067 100644 --- a/languages/ko.css +++ b/languages/ko.css @@ -195,6 +195,9 @@ .control-box .datasource-label::before{ content: "데이터 소스:"; } +.control-box .datasource-updatetime::before{ + content: "업데이트 시간:"; +} .control-box .btn-solo-link::before{ content: "🧑싱글 플레이어 게임으로 이동"; } diff --git a/languages/zh-TW.css b/languages/zh-TW.css index 2af50354..55dd3ae9 100644 --- a/languages/zh-TW.css +++ b/languages/zh-TW.css @@ -201,6 +201,9 @@ .control-box .datasource-label::before{ content: "數據來源:"; } +.control-box .datasource-updatetime::before{ + content: "更新時間:"; +} .control-box .btn-solo-link::before{ content: "🧑轉到單人遊戲"; } diff --git a/languages/zh.css b/languages/zh.css index d3ba8820..6847c565 100644 --- a/languages/zh.css +++ b/languages/zh.css @@ -201,6 +201,9 @@ .control-box .datasource-label::before{ content: "数据来源:"; } +.control-box .datasource-updatetime::before{ + content: "更新时间:"; +} .control-box .btn-solo-link::before{ content: "🧑转到单人游戏"; } diff --git a/multi.html b/multi.html index ba8caf8e..1d126162 100644 --- a/multi.html +++ b/multi.html @@ -26,7 +26,7 @@ var formation = new Formation(teamsCount,5);
- +
@@ -35,6 +35,7 @@ var formation = new Formation(teamsCount,5); +
diff --git a/script.js b/script.js index dc837056..cfd60aa2 100644 --- a/script.js +++ b/script.js @@ -407,8 +407,9 @@ window.onload = function() if (!lastCurrentCkeys) { //如果未找到上个ckey,则添加个新的 lastCurrentCkeys = { - code:currentDataSource.code, - ckey:{} + code: currentDataSource.code, + ckey: {}, + updateTime: null } lastCkeys.push(lastCurrentCkeys); } @@ -437,6 +438,7 @@ window.onload = function() console.log("Cards ckey变化,储存新数据",currentCkey.ckey.card); localforage.setItem(`PADDF-${currentDataSource.code}-cards`, response.response).then(function(){ lastCurrentCkeys.ckey.card = currentCkey.ckey.card; + lastCurrentCkeys.updateTime = currentCkey.updateTime; GM_setValue("PADDF-ckey", JSON.stringify(lastCkeys)); dealCardsData(response.response); }).catch(function(err) { @@ -495,6 +497,7 @@ window.onload = function() console.log("Skills ckey变化,储存新数据",currentCkey.ckey.skill); localforage.setItem(`PADDF-${currentDataSource.code}-skills`, response.response).then(function(){ lastCurrentCkeys.ckey.skill = currentCkey.ckey.skill; + lastCurrentCkeys.updateTime = currentCkey.updateTime; GM_setValue("PADDF-ckey", JSON.stringify(lastCkeys)); dealSkillData(response.response); }).catch(function(err) { @@ -526,6 +529,10 @@ window.onload = function() console.log("Skills数据JSON解码出错",e); return; } + const currentCkey = newCkeys.find(ckey=>ckey.code == currentDataSource.code); + const updateTime = controlBox.querySelector(".datasource-updatetime"); + updateTime.innerHTML = new Date(currentCkey.updateTime).toLocaleString(); + initialize();//初始化 statusLine.classList.remove("loading-skill-info"); //如果通过的话就载入URL中的怪物数据 diff --git a/solo.html b/solo.html index cd9f8a19..4fd835fc 100644 --- a/solo.html +++ b/solo.html @@ -26,7 +26,7 @@ var formation = new Formation(teamsCount,6);
- +
@@ -34,6 +34,7 @@ var formation = new Formation(teamsCount,6); +
diff --git a/triple.html b/triple.html index dd13ba8e..8d038232 100644 --- a/triple.html +++ b/triple.html @@ -39,7 +39,7 @@ var formation = new Formation(teamsCount,6);
- +
@@ -48,6 +48,7 @@ var formation = new Formation(teamsCount,6); +