aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/manifest/scope/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:52 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:52 -0500
commit074785cea106179cb3305637055ab0a009ca74f2 (patch)
treee6ae371cccd642aa2b67f39752a2cdf1fd4eb040 /files/ru/web/manifest/scope/index.html
parentda78a9e329e272dedb2400b79a3bdeebff387d47 (diff)
downloadtranslated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.gz
translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.bz2
translated-content-074785cea106179cb3305637055ab0a009ca74f2.zip
initial commit
Diffstat (limited to 'files/ru/web/manifest/scope/index.html')
-rw-r--r--files/ru/web/manifest/scope/index.html88
1 files changed, 88 insertions, 0 deletions
diff --git a/files/ru/web/manifest/scope/index.html b/files/ru/web/manifest/scope/index.html
new file mode 100644
index 0000000000..fc23de8adc
--- /dev/null
+++ b/files/ru/web/manifest/scope/index.html
@@ -0,0 +1,88 @@
+---
+title: scope
+slug: Web/Manifest/scope
+tags:
+ - Manifest
+ - Web
+ - scope
+translation_of: Web/Manifest/scope
+---
+<div>{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}</div>
+
+<table class="properties">
+ <tbody>
+ <tr>
+ <th scope="row">Type</th>
+ <td><code>String</code></td>
+ </tr>
+ <tr>
+ <th scope="row">Mandatory</th>
+ <td>No</td>
+ </tr>
+ <tr>
+ <th scope="row">Example</th>
+ <td>
+ <pre class="brush: json no-line-numbers">
+"scope": "/app/"</pre>
+ </td>
+ </tr>
+ </tbody>
+</table>
+
+<p>Определяет область навигации контекста веб-приложения. Обычно ограничивается тем, какая веб-страница может быть просмотрена, пока манифест загружается. Если пользователь выходит за пределы области, приложение возвращается к нормальному виду веб-страницы.</p>
+
+<p>Если область относительный URL, базовым URL будет URL манифеста.</p>
+
+<h2 id="Примеры">Примеры</h2>
+
+<p>Если область относительная, URL манифеста используется как базовый URL:</p>
+
+<pre class="brush: json">"scope": "/app/"
+</pre>
+
+<p>Следующая область ограничивает навигацию текущим сайтом:</p>
+
+<pre class="brush: json">"scope": "https://example.com/"
+</pre>
+
+<p>Наконец, в следующем примере навигация ограничена подкаталогом текущего сайта:</p>
+
+<pre class="brush: json">"scope": "https://example.com/subdirectory/"
+</pre>
+
+<h2 id="Specification">Specification</h2>
+
+<table class="fullwidth-table standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ <th scope="col">Feedback</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ <p>{{SpecName('Manifest', '#scope-member', 'scope')}}</p>
+ </td>
+ <td>
+ <p>{{Spec2('Manifest')}}</p>
+ </td>
+ <td>
+ <p>Initial definition.</p>
+ </td>
+ <td>
+ <p><a href="https://github.com/w3c/manifest/issues/">Web App Manifest Working Group drafts</a></p>
+ </td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility">Browser compatibility</h2>
+
+<div class="hidden">
+<p>The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
+</div>
+
+<p>{{Compat("html.manifest.scope")}}</p>