aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/navigator
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 21:46:22 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 21:46:22 -0500
commita065e04d529da1d847b5062a12c46d916408bf32 (patch)
treefe0f8bcec1ff39a3c499a2708222dcf15224ff70 /files/zh-cn/web/api/navigator
parent218934fa2ed1c702a6d3923d2aa2cc6b43c48684 (diff)
downloadtranslated-content-a065e04d529da1d847b5062a12c46d916408bf32.tar.gz
translated-content-a065e04d529da1d847b5062a12c46d916408bf32.tar.bz2
translated-content-a065e04d529da1d847b5062a12c46d916408bf32.zip
update based on https://github.com/mdn/yari/issues/2028
Diffstat (limited to 'files/zh-cn/web/api/navigator')
-rw-r--r--files/zh-cn/web/api/navigator/id/index.html45
-rw-r--r--files/zh-cn/web/api/navigator/mozsettings/index.html32
-rw-r--r--files/zh-cn/web/api/navigator/mozsms/index.html112
3 files changed, 0 insertions, 189 deletions
diff --git a/files/zh-cn/web/api/navigator/id/index.html b/files/zh-cn/web/api/navigator/id/index.html
deleted file mode 100644
index c2d8597274..0000000000
--- a/files/zh-cn/web/api/navigator/id/index.html
+++ /dev/null
@@ -1,45 +0,0 @@
----
-title: Navigator.id
-slug: Web/API/Navigator/id
-translation_of: Archive/Navigator-id
----
-<div>{{ ApiRef("Persona") }}</div>
-
-<p>{{ non-standard_header() }}</p>
-
-<div class="note"><strong>注意:</strong> 这个功能的支持还没有构建到任何浏览器中,使用 Persona 的网站必须包含托管在 <a class="link-https" href="https://login.persona.org/include.js" title="https://login.persona.org/include.js">https://login.persona.org/include.js</a> 上的填充库。</div>
-
-<h2 id="Summary" name="Summary">概述</h2>
-
-<p><a href="https://developer.mozilla.org/en-US/docs/Persona" title="BrowserID">BrowserID 协议</a>定义了 {{ domxref ("window.navigator")}} 对象上的一个新的 <code>id</code> 属性,通过这个属性暴露 BrowserID API。这个 API 已经经历了几个重要修订。下面独立列出了每代 API。</p>
-
-<h2 id="ObserverMethods" name="ObserverMethods">观察者 API(当前)</h2>
-
-<p>观察者 API 引入了非常请求化的特性,诸如一个为新手用户改进的提交-验证体验、自动持久化登入和更简单的本地应用集成。</p>
-
-<dl>
- <dt>{{ domxref("navigator.id.watch()")}}</dt>
- <dd>登记在用户登入或登出网站时调用的回调。</dd>
- <dt>{{ domxref("navigator.id.request()")}}</dt>
- <dd>从用户请求一个签名的身份断言。</dd>
- <dt>{{ domxref("navigator.id.logout()")}}</dt>
- <dd>把用户登出网站并阻止 <code>onlogin</code> 行为在他们下次访问时触发。</dd>
-</dl>
-
-<h2 id="CallbackMethods" name="CallbackMethods">回调 API(当前)</h2>
-
-<p>回调 API 在 2011 年 11 月被引入。它通过允许传递给 <code>navigator.id.get()</code>和提供 BrowserID 管理的持久会话的实验性支持改进了初始的 API。</p>
-
-<dl>
- <dt>{{ domxref("navigator.id.get()")}}</dt>
- <dd>Gets the user's BrowserID in a signed assertion.</dd>
-</dl>
-
-<h2 id="VerifiedEmailMethods" name="VerifiedEmailMethods">VerifiedEmail API(弃用)</h2>
-
-<p>VerifiedEmail API 是 BrowserID 的第一个 API。它在 2011 年末被弃用。</p>
-
-<dl>
- <dt>{{ domxref("navigator.id.getVerifiedEmail()")}} {{ deprecated_inline() }}</dt>
- <dd>在一个签名的断言里获取用户的 BrowserID。这个方法已经弃用了;{{ domxref("navigator.id.get()")}} 是向后兼容的替代方法。</dd>
-</dl>
diff --git a/files/zh-cn/web/api/navigator/mozsettings/index.html b/files/zh-cn/web/api/navigator/mozsettings/index.html
deleted file mode 100644
index bd96466118..0000000000
--- a/files/zh-cn/web/api/navigator/mozsettings/index.html
+++ /dev/null
@@ -1,32 +0,0 @@
----
-title: Navigator.mozSettings
-slug: Web/API/Navigator/mozSettings
-translation_of: Archive/B2G_OS/API/Navigator/mozSettings
----
-<p>{{APIRef("Firefox OS")}}{{ non-standard_header() }}</p>
-
-<p>{{ B2GOnlyHeader2('certified') }}</p>
-
-<h2 id="Summary" name="Summary">概述</h2>
-
-<p>返回一个{{ domxref("SettingsManager") }}对象,你可以使用返回的对象来修改设备的各项设置.</p>
-
-<h2 id="Syntax" name="Syntax">语法</h2>
-
-<pre class="eval">var settings = window.navigator.mozSettings;
-</pre>
-
-<h2 id="Value" name="Value">值</h2>
-
-<p><code>navigator.mozSettings</code>是一个{{domxref("SettingsManager")}}对象,你可以使用该对象来修改设备的各项设置.</p>
-
-<h2 id="Specification" name="Specification">规范</h2>
-
-<p>目前还不属于任何的规范,不过这个API将作为<a class="external" href="http://www.w3.org/2012/sysapps/" rel="external" title="http://www.w3.org/2012/sysapps/">System Applications Working Group</a>规范的一部分在W3C上讨论.</p>
-
-<h2 id="相关链接">相关链接</h2>
-
-<ul>
- <li>{{domxref("SettingsManager")}}</li>
- <li>{{domxref("SettingsLock")}}</li>
-</ul>
diff --git a/files/zh-cn/web/api/navigator/mozsms/index.html b/files/zh-cn/web/api/navigator/mozsms/index.html
deleted file mode 100644
index c6c9aff864..0000000000
--- a/files/zh-cn/web/api/navigator/mozsms/index.html
+++ /dev/null
@@ -1,112 +0,0 @@
----
-title: Navigator.mozSms
-slug: Web/API/Navigator/mozSms
-translation_of: Archive/B2G_OS/API/Navigator/mozSms
----
-<p>{{APIRef("Firefox OS")}}</p>
-
-<p>{{ non-standard_header() }}</p>
-
-<p>{{ obsolete_header(25) }}</p>
-
-<p>{{ B2GOnlyHeader2('certified') }}</p>
-
-<p>返回 {{ domxref("SmsManager") }} 对象,你可以通过该对象进行短消息的收发操作。</p>
-
-<div class="note">
-<p>注意: <strong>废弃! </strong>该对象已被废弃,请参考使用: {{ domxref("window.navigator.mozMobileMessage") }}。</p>
-</div>
-
-<h2 id="Syntax" name="Syntax">语法</h2>
-
-<pre class="eval">var sms = window.navigator.mozSms;
-</pre>
-
-<h2 id="参数说明">参数说明</h2>
-
-<p>这是一个非标准接口,不过该接口有在 W3C 部分提及: <a href="http://www.w3.org/2012/sysapps/" title="http://www.w3.org/2012/sysapps/">System Application Working Group</a>.</p>
-
-<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('Messaging')}}</td>
- <td>{{Spec2('Messaging')}}</td>
- <td>Editor Draft (WIP).</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="浏览器兼容">浏览器兼容</h2>
-
-<p>For obvious reasons, support is primarily expected on mobile browsers.</p>
-
-<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>{{ CompatNo() }}</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>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>{{ CompatGeckoMobile("12.0") }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="Preferences_availability">Preferences &amp; availability</h2>
-
-<ul>
- <li>WebSMS is disabled by default and can be enabled setting the preference <code>dom.sms.enabled</code> to true.</li>
- <li>A comma-separated whitelist of allowed hostnames that are allowed to use the WebSMS API must be specified using the <code>dom.sms.whitelist</code> preference. This string is empty by default.</li>
- <li>WebSMS is only available to certified apps on Firefox OS (B2G).</li>
-</ul>
-
-<h2 id="参阅">参阅</h2>
-
-<ul>
- <li><a href="/en-US/docs/API/WebSMS" title="/en-US/docs/API/WebSMS">WebSMS API</a></li>
- <li>{{ domxref("SmsManager") }}</li>
- <li>{{ domxref("window.navigator.mozTelephony") }} for controlling telephone calls.</li>
-</ul>