aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/manifest/scope/index.html
blob: ddf72d7f6dcac59e9febd056560e92b2c16df003 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
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>

<p>{{Compat("html.manifest.scope")}}</p>