diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:17 -0500 |
commit | da78a9e329e272dedb2400b79a3bdeebff387d47 (patch) | |
tree | e6ef8aa7c43556f55ddfe031a01cf0a8fa271bfe /files/ko/web/api/screen | |
parent | 1109132f09d75da9a28b649c7677bb6ce07c40c0 (diff) | |
download | translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.tar.gz translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.tar.bz2 translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.zip |
initial commit
Diffstat (limited to 'files/ko/web/api/screen')
-rw-r--r-- | files/ko/web/api/screen/index.html | 76 | ||||
-rw-r--r-- | files/ko/web/api/screen/lockorientation/index.html | 92 | ||||
-rw-r--r-- | files/ko/web/api/screen/orientation/index.html | 120 | ||||
-rw-r--r-- | files/ko/web/api/screen/unlockorientation/index.html | 62 |
4 files changed, 350 insertions, 0 deletions
diff --git a/files/ko/web/api/screen/index.html b/files/ko/web/api/screen/index.html new file mode 100644 index 0000000000..74772f16d3 --- /dev/null +++ b/files/ko/web/api/screen/index.html @@ -0,0 +1,76 @@ +--- +title: Screen +slug: Web/API/Screen +tags: + - API +translation_of: Web/API/Screen +--- +<div>{{APIRef("CSSOM View")}}</div> + +<p>The <code>Screen</code> interface represents a screen, usually the one on which the current window is being rendered.</p> + +<p>Usually it is the one on which the current window is being rendered, obtained using <code>window.screen</code>.</p> + +<h2 id="Example" name="Example">Properties</h2> + +<dl> + <dt>{{domxref("Screen.availTop")}}</dt> + <dd>Specifies the y-coordinate of the first pixel that is not allocated to permanent or semipermanent user interface features.</dd> + <dt>{{domxref("Screen.availLeft")}}</dt> + <dd>Returns the first available pixel available from the left side of the screen.</dd> + <dt>{{domxref("Screen.availHeight")}}</dt> + <dd>Specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows.</dd> + <dt>{{domxref("Screen.availWidth")}}</dt> + <dd>Returns the amount of horizontal space in pixels available to the window.</dd> + <dt>{{domxref("Screen.colorDepth")}}</dt> + <dd>Returns the color depth of the screen.</dd> + <dt>{{domxref("Screen.height")}}</dt> + <dd>Returns the height of the screen in pixels.</dd> + <dt>{{domxref("Screen.left")}}</dt> + <dd>Returns the distance in pixels from the left side of the main screen to the left side of the current screen.</dd> + <dt>{{domxref("Screen.orientation")}}</dt> + <dd>Returns the current orientation of the screen.</dd> + <dt>{{domxref("Screen.pixelDepth")}}</dt> + <dd>Gets the bit depth of the screen.</dd> + <dt>{{domxref("Screen.top")}}</dt> + <dd>Returns the distance in pixels from the top side of the current screen.</dd> + <dt>{{domxref("Screen.width")}}</dt> + <dd>Returns the width of the screen.</dd> + <dt>{{domxref("Screen.mozEnabled")}} {{gecko_minversion_inline("12.0")}}</dt> + <dd>Boolean. Setting to false will turn off the device's screen.</dd> + <dt>{{domxref("Screen.mozBrightness")}} {{gecko_minversion_inline("12.0")}}</dt> + <dd>Controls the brightness of a device's screen. A double between 0 and 1.0 is expected.</dd> +</dl> + +<h3 id="Events_handler">Events handler</h3> + +<dl> + <dt>{{domxref("Screen.onorientationchange")}}</dt> + <dd>A handler for the {{event("orientationchange")}} events.</dd> +</dl> + +<h2 id="Methods">Methods</h2> + +<dl> + <dt>{{domxref("Screen.lockOrientation")}}</dt> + <dd>Lock the screen orientation (only works in fullscreen or for installed apps)</dd> + <dt>{{domxref("Screen.unlockOrientation")}}</dt> + <dd>Unlock the screen orientation (only works in fullscreen or for installed apps)</dd> +</dl> + +<p>Methods inherit from {{domxref("EventTarget")}}</p> + +<p>{{page("/en-US/docs/Web/API/EventTarget","Methods")}}</p> + +<h2 id="Example" name="Example">Example</h2> + +<pre class="brush:js">if (screen.pixelDepth < 8) { + // use low-color version of page +} else { + // use regular, colorful page +} +</pre> + +<h2 id="Specification" name="Specification">Specification</h2> + +<p>CSSOM View</p> diff --git a/files/ko/web/api/screen/lockorientation/index.html b/files/ko/web/api/screen/lockorientation/index.html new file mode 100644 index 0000000000..856bfb5010 --- /dev/null +++ b/files/ko/web/api/screen/lockorientation/index.html @@ -0,0 +1,92 @@ +--- +title: Screen.lockOrientation +slug: Web/API/Screen/lockOrientation +translation_of: Web/API/Screen/lockOrientation +--- +<div>{{APIRef("CSSOM View")}}</div> + +<div>{{Deprecated_header}}</div> + +<p><code>lockOrientation</code> 함수는 지정된 방향으로 화면을 고정시킨다.</p> + +<div class="note"> +<p><strong>Note:</strong> 이 함수는 오직 설치된 웹앱 또는 <a href="/en-US/docs/Web/Guide/DOM/Using_full_screen_mode" title="/en-US/docs/Web/Guide/DOM/Using_full_screen_mode">full-screen mode</a> 의 웹페이지에서만 동작한다..</p> +</div> + +<h2 id="Syntax" name="Syntax">Syntax</h2> + +<pre class="eval">var locked = window.screen.lockOrientation(<em>orientation</em>); +</pre> + +<h3 id="Example" name="Example">Parameters</h3> + +<dl> + <dt><em>orientation</em></dt> + <dd>화면을 고정 시킬 방향. 문자열 또는 문자열의 배열이다. 여러 문자열을 지정하면 지정한 방향으로만 회전된다.</dd> +</dl> + +<p>다음의 문자열들은 당신이 지정할 수 있는 방향들을 나타낸다.</p> + +<dl> + <dt><code>portrait-primary</code></dt> + <dd>기본 세로 모드 일 때 화면의 방향을 나타낸다. 화면은 화면이 정상위치 (normal position)가 세로이고 세로로 고정 되어 있으면 기본 세로 모드 (primary portrait mode) 로 간주 된다. 만약 장치의 정상위치 (normal position)가 가로 모드 이면 장치가 시계방향으로 90° 돌렸을 때 이다. 정상 위치 (normal position) 는 장치에 의존한다.</dd> + <dt><code>portrait-secondary</code></dt> + <dd>보조 세로 모드 일 때 화면의 방향을 나타낸다. 화면은 정상위치에서 180<span style="line-height: inherit;">° 로 고정 되어 있을 때 </span><span style="line-height: inherit;">보조 세로 모드로 간주된다. 만약 정상위치가 가로 인 경우 장치가 반시계 방향으로 90° 회전 했을 때 이다. 정상 위치 (normal position) 는 장치에 의존한다.</span></dd> + <dt><code>landscape-primary</code></dt> + <dd>기본 가로 모드 일 때 화면의 방향을 나타낸다. 화면은 정상위치 (normal position)가 가로이고 가로로 고정 되어 있으면 <span style="line-height: inherit;">기본 가로 모드 (primary landscape mode) 로 </span><span style="line-height: inherit;">간주된다. 만약 장치의 정상위치 (normal position)가 세로이면 장치가 시계방향으로 90° 돌렸을 때 이다. 정상 위치 (normal position) 는 장치에 의존한다.</span></dd> + <dt><code>landscape-secondary</code></dt> + <dd>보조 가로 모드 일 때 화면의 방향을 나타낸다. 화면은 정상위치에서 180° 로 고정 되어 있을 때 보조 가로 모드 (secondary landscape mode) 로 간주된다. 또는 정상위치가 세로 인 경우 장치가 반시계 방향으로 90° 회전 했을 때 이다. 정상 위치 (normal position) 는 장치에 의존한다.</dd> + <dt><code>portrait</code></dt> + <dd><code>portrait-primary</code> 와 <code>portrait-secondary 둘 다 이다.</code></dd> + <dt><code>landscape</code></dt> + <dd><code>landscape-primary</code> 와 <code>landscape-secondary 둘 다 이다.</code></dd> +</dl> + +<div class="note"> +<p><strong>Note:</strong> 한번에 여러개의 고정 값을 가질 수 있다. 만약 한방향으로만 설정 하면 화면의 방향은 unlock 하기 전 까지는 절대로 변하지 않는다. 그렇지 않다면 (여러값을 가진 다면) 지정 된 방향들로 화면의 방향이 변할 것이다.</p> +</div> + +<h3 id="Example" name="Example">Return value</h3> + +<p>성공적으로 고정 되었을 경우 <code>true</code> 를 반환한다. 고정 될 수 없다면 <code>false</code> 를 반환한다.</p> + +<h2 id="Example" name="Example">Example</h2> + +<pre class="eval">if (window.screen.mozLockOrientation("landscape-primary")) { + // orientation was locked +} else { + // orientation lock failed +} +</pre> + +<h2 id="Specifications" name="Specifications">Specifications</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{ SpecName('Screen Orientation', '', 'Screen Orientation') }}</td> + <td>{{ Spec2('Screen Orientation') }}</td> + <td>Draft specification</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + +<p>{{Compat("api.Screen.lockOrientation")}}</p> + +<h2 id="See_also">See also</h2> + +<ul> + <li>{{domxref("window.screen.orientation")}}</li> + <li>{{domxref("window.screen.unlockOrientation()")}}</li> + <li>{{domxref("window.screen.onorientationchange")}}</li> + <li><a href="/ko/docs/Managing_screen_orientation" title="/ko/docs/Managing_screen_orientation">Managing screen orientation</a></li> +</ul> diff --git a/files/ko/web/api/screen/orientation/index.html b/files/ko/web/api/screen/orientation/index.html new file mode 100644 index 0000000000..d77c14e6cb --- /dev/null +++ b/files/ko/web/api/screen/orientation/index.html @@ -0,0 +1,120 @@ +--- +title: Screen.orientation +slug: Web/API/Screen/orientation +translation_of: Web/API/Screen/orientation +--- +<p>{{APIRef("CSSOM View")}} {{SeeCompatTable}}</p> + +<h2 id="Summary">Summary</h2> + +<p><code>orientation</code> 속성은 화면의 현재 방향을 알려 준다.</p> + +<div class="note"> +<p><strong>Note:</strong> 이 함수는 설치된 웹앱 또는 <a href="/ko/docs/Web/Guide/DOM/Using_full_screen_mode" style="line-height: 1.5em;" title="/ko/docs/Web/Guide/DOM/Using_full_screen_mode">full-screen mode</a> <span style="line-height: 1.5em;">의 웹페이지에서 동작한다.</span></p> +</div> + +<h2 id="Syntax" name="Syntax">Syntax</h2> + +<pre class="eval">var orientation = window.screen.orientation; +</pre> + +<h2 id="Example" name="Example">Return value</h2> + +<p>리턴값은 화면의 방향을 표현하는 문자열이다. portrait-primary, portrait-secondary, landscape-primary, landscape-secondary 가 될 수 있다. (각 값들에 대해 좀 더 많은 정보를 구하려면 {{domxref("window.screen.lockOrientation","lockOrientation")}} 를 보라.).</p> + +<h2 id="Example" name="Example">Example</h2> + +<pre class="brush: js">var orientation = screen.mozOrientation; + +if (orientation === "landscape-primary") { + console.log("That looks good."); +} else if (orientation === "landscape-secondary") { + console.log("Mmmh... the screen is upside down!"); +} else if (orientation === "portrait-secondary" || orientation === "portrait-secondary") { + console.log("Mmmh... you should rotate your device"); +} +</pre> + +<h2 id="Specifications" name="Specifications">Specifications</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{ SpecName('Screen Orientation', '', 'Screen Orientation') }}</td> + <td>{{ Spec2('Screen Orientation') }}</td> + <td>Draft specification</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + +<p>{{ CompatibilityTable() }}</p> + +<div id="compat-desktop"> +<table class="compat-table"> + <tbody> + <tr> + <th>Feature</th> + <th>Chrome</th> + <th>Firefox (Gecko)</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari</th> + </tr> + <tr> + <td>Basic support</td> + <td>{{ CompatNo() }}</td> + <td>{{ CompatVersionUnknown() }} {{ property_prefix("moz") }}</td> + <td>{{ CompatNo() }}</td> + <td>{{ CompatNo() }}</td> + <td>{{ CompatNo() }}</td> + </tr> + </tbody> +</table> +</div> + +<div id="compat-mobile"> +<table class="compat-table"> + <tbody> + <tr> + <th>Feature</th> + <th>Android</th> + <th>Chrome for Android</th> + <th>Firefox Mobile (Gecko)</th> + <th>IE Mobile</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>Basic support</td> + <td>{{ CompatNo() }}</td> + <td>{{ CompatNo() }}</td> + <td>{{ CompatVersionUnknown() }} {{ property_prefix("moz") }}</td> + <td>{{ CompatNo() }}</td> + <td>{{ CompatNo() }}</td> + <td>{{ CompatNo() }}</td> + </tr> + </tbody> +</table> +</div> + +<h3 id="Notes" name="Notes">Gecko notes</h3> + +<p>이 API 는 현재 초안 형태이다. 이것은 오직 <span style="line-height: inherit;">B2G 와 안드로이드용 Firefox 에서 </span><span style="line-height: inherit;">prefixed 함수인 (mozOrientation) 로만 구현된다.</span></p> + +<h2 id="See_also">See also</h2> + +<ul> + <li>{{domxref("window.screen.orientation")}}</li> + <li>{{domxref("window.screen.unlockOrientation()")}}</li> + <li>{{domxref("window.screen.onorientationchange")}}</li> + <li><a href="/ko/docs/Managing_screen_orientation" title="/ko/docs/Managing_screen_orientation">Managing screen orientation</a></li> +</ul> diff --git a/files/ko/web/api/screen/unlockorientation/index.html b/files/ko/web/api/screen/unlockorientation/index.html new file mode 100644 index 0000000000..bf4d3eb4d5 --- /dev/null +++ b/files/ko/web/api/screen/unlockorientation/index.html @@ -0,0 +1,62 @@ +--- +title: window.screen.unlockOrientation +slug: Web/API/Screen/unlockOrientation +translation_of: Web/API/Screen/unlockOrientation +--- +<div>{{APIRef("CSSOM View")}}{{Deprecated_header}}</div> + +<p><strong><code>Screen.unlockOrientation()</code></strong> 함수는 이전의 page나 앱을 통해 지정한 화면 고정 값들을 모두 제거 한다.</p> + +<div class="note"> +<p><strong>Note:</strong> 이 함수는 설치된 웹앱 또는 <a href="/en-US/docs/Web/Guide/DOM/Using_full_screen_mode" title="/en-US/docs/Web/Guide/DOM/Using_full_screen_mode">full-screen mode</a> 의 웹 페이지들에서 동작한다..</p> +</div> + +<h2 id="Syntax" name="Syntax">Syntax</h2> + +<pre class="eval">var unlocked = window.screen.unlockOrientation(); +</pre> + +<h3 id="Example" name="Example">Return value</h3> + +<p>성공적으로 unlocked 된 경우 <code>true</code> 를 반환하며, 만약 방향이 unlock 될 수 없다면 <code>false</code> 를 반환한다.</p> + +<h2 id="Example" name="Example">Example</h2> + +<pre class="eval">if (window.screen.unlockOrientation()) { + // orientation was unlocked +} else { + // orientation unlock failed +} +</pre> + +<h2 id="Specifications" name="Specifications">Specifications</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{ SpecName('Screen Orientation', '', 'Screen Orientation') }}</td> + <td>{{ Spec2('Screen Orientation') }}</td> + <td>Draft specification</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + +<p>{{Compat("api.Screen.unlockOrientation")}}</p> + +<h2 id="See_also">See also</h2> + +<ul> + <li>{{domxref("window.screen.orientation")}}</li> + <li>{{domxref("window.screen.lockOrientation()")}}</li> + <li>{{domxref("window.screen.onorientationchange")}}</li> + <li><a href="/en-US/docs/Managing_screen_orientation" title="/en-US/docs/Managing_screen_orientation">Managing screen orientation</a></li> +</ul> |