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');