From dd2afb7609350f147100f2f76e230ed347d02588 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 11 Dec 2021 11:52:02 +0900 Subject: [PATCH] =?UTF-8?q?misc:=20main=EC=9D=98=20=EC=99=B8=EB=B6=80=20?= =?UTF-8?q?=EC=B4=88=EA=B8=B0=ED=99=94=20=EC=BD=94=EB=93=9C=EB=A5=BC=20?= =?UTF-8?q?=EB=82=B4=EB=B6=80=EB=A1=9C=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/index.php | 18 +++--------------- hwe/ts/legacy/main.ts | 14 +++++++++++--- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/hwe/index.php b/hwe/index.php index 95596879..8a08cdec 100644 --- a/hwe/index.php +++ b/hwe/index.php @@ -118,6 +118,9 @@ if (!$otherTextInfo) { + + + @@ -397,21 +400,6 @@ if (!$otherTextInfo) { - - - - \ No newline at end of file diff --git a/hwe/ts/legacy/main.ts b/hwe/ts/legacy/main.ts index e3a5782f..e147d5ef 100644 --- a/hwe/ts/legacy/main.ts +++ b/hwe/ts/legacy/main.ts @@ -4,9 +4,8 @@ import { unwrap } from '@util/unwrap'; import { htmlReady } from '@util/htmlReady'; import { initTooltip } from './initTooltip'; import { exportWindow } from '@/util/exportWindow'; - -import '@/msg.ts'; -import '@/map.ts'; +import { reloadWorldMap } from '@/map'; +import { refreshMsg } from '@/msg'; exportWindow(jQuery, '$'); @@ -43,6 +42,15 @@ htmlReady(() => { activateFlip(); initTooltip(); + void reloadWorldMap({ + hrefTemplate: 'b_currentCity.php?citylist={0}', + useCachedMap: true + }); + + setInterval(function() { + void refreshMsg(); + }, 5000); + const customCSS = localStorage.getItem('sam_customCSS'); if (customCSS) { const styleEl = document.createElement('style');