diff --git a/hwe/index.php b/hwe/index.php index b93aaa7b..c68d238f 100644 --- a/hwe/index.php +++ b/hwe/index.php @@ -115,7 +115,7 @@ if (!$otherTextInfo) { <?= $serverName ?>: 메인 - + diff --git a/hwe/ts/main.ts b/hwe/ts/main.ts index f1dbe419..cea2ffbd 100644 --- a/hwe/ts/main.ts +++ b/hwe/ts/main.ts @@ -12,6 +12,7 @@ exportWindow($, '$'); import '../scss/main.scss'; import { unwrap } from './util/unwrap'; +import { auto500px } from './util/auto500px'; import { htmlReady } from './util/htmlReady'; $(function ($) { @@ -123,4 +124,6 @@ $(function ($) { window.addEventListener('scroll', onScroll, true); window.addEventListener('orientationchange', onScroll, true); }); -})(); \ No newline at end of file +})(); + +auto500px(); \ No newline at end of file diff --git a/hwe/ts/util/auto500px.ts b/hwe/ts/util/auto500px.ts index 2f69ba31..aebc890d 100644 --- a/hwe/ts/util/auto500px.ts +++ b/hwe/ts/util/auto500px.ts @@ -16,7 +16,7 @@ export function auto500px(targetHeight = 700): void { const htmlTag = unwrap(document.querySelector("head")); _viewPortMeta = document.createElement("meta"); _viewPortMeta.name = 'viewport'; - _viewPortMeta.content = 'width=device-width, initial-scale=0.72, maximum-scale=5.0, minimum-scale=0.72'; + _viewPortMeta.content = 'width=500, initial-scale=1'; htmlTag.appendChild(_viewPortMeta); viewportMeta = _viewPortMeta; } @@ -30,7 +30,7 @@ export function auto500px(targetHeight = 700): void { const selectorHeight = targetHeight; if (deviceWidth < 500) { - viewportMeta.content = 'width=device-width, initial-scale=0.72, maximum-scale=5.0, minimum-scale=0.72'; + viewportMeta.content = 'width=500, initial-scale=1'; return; }