misc: main의 외부 초기화 코드를 내부로 이동
This commit is contained in:
+3
-15
@@ -118,6 +118,9 @@ if (!$otherTextInfo) {
|
|||||||
<meta name="viewport" content="width=500" />
|
<meta name="viewport" content="width=500" />
|
||||||
<?= WebUtil::printJS('../d_shared/common_path.js') ?>
|
<?= WebUtil::printJS('../d_shared/common_path.js') ?>
|
||||||
<?= WebUtil::printJS('d_shared/base_map.js') ?>
|
<?= WebUtil::printJS('d_shared/base_map.js') ?>
|
||||||
|
<?= WebUtil::printJS('dist_js/vendors_vue.js', true) ?>
|
||||||
|
<?= WebUtil::printJS('dist_js/common_vue.js', true) ?>
|
||||||
|
<?= WebUtil::printJS('dist_js/v_main.js', true) ?>
|
||||||
|
|
||||||
<?= WebUtil::printCSS('../d_shared/common.css') ?>
|
<?= WebUtil::printCSS('../d_shared/common.css') ?>
|
||||||
<?= WebUtil::printCSS('dist_css/common.css') ?>
|
<?= WebUtil::printCSS('dist_css/common.css') ?>
|
||||||
@@ -397,21 +400,6 @@ if (!$otherTextInfo) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<?= WebUtil::printJS('dist_js/vendors_vue.js') ?>
|
|
||||||
<?= WebUtil::printJS('dist_js/common_vue.js') ?>
|
|
||||||
<?= WebUtil::printJS('dist_js/v_main.js') ?>
|
|
||||||
<script>
|
|
||||||
(function() {
|
|
||||||
reloadWorldMap({
|
|
||||||
hrefTemplate: 'b_currentCity.php?citylist={0}',
|
|
||||||
useCachedMap: true
|
|
||||||
});
|
|
||||||
|
|
||||||
setInterval(function() {
|
|
||||||
refreshMsg();
|
|
||||||
}, 5000);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
+11
-3
@@ -4,9 +4,8 @@ import { unwrap } from '@util/unwrap';
|
|||||||
import { htmlReady } from '@util/htmlReady';
|
import { htmlReady } from '@util/htmlReady';
|
||||||
import { initTooltip } from './initTooltip';
|
import { initTooltip } from './initTooltip';
|
||||||
import { exportWindow } from '@/util/exportWindow';
|
import { exportWindow } from '@/util/exportWindow';
|
||||||
|
import { reloadWorldMap } from '@/map';
|
||||||
import '@/msg.ts';
|
import { refreshMsg } from '@/msg';
|
||||||
import '@/map.ts';
|
|
||||||
|
|
||||||
exportWindow(jQuery, '$');
|
exportWindow(jQuery, '$');
|
||||||
|
|
||||||
@@ -43,6 +42,15 @@ htmlReady(() => {
|
|||||||
activateFlip();
|
activateFlip();
|
||||||
initTooltip();
|
initTooltip();
|
||||||
|
|
||||||
|
void reloadWorldMap({
|
||||||
|
hrefTemplate: 'b_currentCity.php?citylist={0}',
|
||||||
|
useCachedMap: true
|
||||||
|
});
|
||||||
|
|
||||||
|
setInterval(function() {
|
||||||
|
void refreshMsg();
|
||||||
|
}, 5000);
|
||||||
|
|
||||||
const customCSS = localStorage.getItem('sam_customCSS');
|
const customCSS = localStorage.getItem('sam_customCSS');
|
||||||
if (customCSS) {
|
if (customCSS) {
|
||||||
const styleEl = document.createElement('style');
|
const styleEl = document.createElement('style');
|
||||||
|
|||||||
Reference in New Issue
Block a user