diff options
author | t7yang <t7yang@gmail.com> | 2021-06-22 23:06:54 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2021-06-23 01:24:08 +0800 |
commit | d62c8afe56395e9e793dab0f629b2a1694449c82 (patch) | |
tree | d138619dfe111df18054728788297d807f62dc89 /files/zh-cn/orphaned | |
parent | ffedcd031d0e1b0bb8b473cabde5dcd7e7d7b646 (diff) | |
download | translated-content-d62c8afe56395e9e793dab0f629b2a1694449c82.tar.gz translated-content-d62c8afe56395e9e793dab0f629b2a1694449c82.tar.bz2 translated-content-d62c8afe56395e9e793dab0f629b2a1694449c82.zip |
remove deprecated $sample URLs for zh
Diffstat (limited to 'files/zh-cn/orphaned')
-rw-r--r-- | files/zh-cn/orphaned/web/api/detecting_device_orientation/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/orphaned/web/api/detecting_device_orientation/index.html b/files/zh-cn/orphaned/web/api/detecting_device_orientation/index.html index 84bf547bc9..ac781aa185 100644 --- a/files/zh-cn/orphaned/web/api/detecting_device_orientation/index.html +++ b/files/zh-cn/orphaned/web/api/detecting_device_orientation/index.html @@ -230,9 +230,9 @@ window<span class="punctuation token" style="color: #999999;">.</span><span clas <p>输出结果:</p> -<p>在<a class="external" href="https://mdn.mozillademos.org/en-US/docs/Web/API/Detecting_device_orientation$samples/Orientation_example?revision=1587910" rel="noopener">这里</a>以新窗口打开此示例;因为有些浏览器中的 {{event("deviceorientation")}} 事件不支持跨域。</p> +<p>在{{LiveSampleLink("Orientation_example", "这里")}}以新窗口打开此示例;因为有些浏览器中的 {{event("deviceorientation")}} 事件不支持跨域。</p> -<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" height="260" id="frame_Orientation_example" src="https://mdn.mozillademos.org/en-US/docs/Web/API/Detecting_device_orientation$samples/Orientation_example?revision=1587910" width="230"></iframe></p> +<div>{{EmbedLiveSample('Orientation_example', '230', '260')}}</div> <div class="warning" style="font-size: 14px;"> <p><strong>警告:</strong> Chrome 和 Firefox 处理角度的机制不同,所以某些轴上的方向是相反的。</p> |