From 6f16d9413cc575492db985bfe184f93079ffa1cb Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 7 Dec 2021 01:44:36 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"misc:=20auto500px=20=ED=95=84?= =?UTF-8?q?=EC=9A=94=EC=97=86=EC=9D=8C."?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 2b5f38ca529cb8f7854e71b24d0e3ef7b84a00aa. --- hwe/index.php | 2 +- hwe/ts/main.ts | 5 ++++- hwe/ts/util/auto500px.ts | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) 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; }