aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api
diff options
context:
space:
mode:
authort7yang <t7yang@gmail.com>2021-06-22 23:06:54 +0800
committerIrvin <irvinfly@gmail.com>2021-06-23 01:24:08 +0800
commitd62c8afe56395e9e793dab0f629b2a1694449c82 (patch)
treed138619dfe111df18054728788297d807f62dc89 /files/zh-cn/web/api
parentffedcd031d0e1b0bb8b473cabde5dcd7e7d7b646 (diff)
downloadtranslated-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/web/api')
-rw-r--r--files/zh-cn/web/api/datatransfer/getdata/index.html2
-rw-r--r--files/zh-cn/web/api/document/readystatechange_event/index.html2
-rw-r--r--files/zh-cn/web/api/domtokenlist/index.html4
-rw-r--r--files/zh-cn/web/api/element/mouseout_event/index.html2
-rw-r--r--files/zh-cn/web/api/htmlelement/beforeinput_event/index.html2
-rw-r--r--files/zh-cn/web/api/htmlelement/input_event/index.html2
-rw-r--r--files/zh-cn/web/api/htmlinputelement/setselectionrange/index.html2
-rw-r--r--files/zh-cn/web/api/htmlselectelement/selectedindex/index.html2
-rw-r--r--files/zh-cn/web/api/mouseevent/screenx/index.html2
-rw-r--r--files/zh-cn/web/api/mouseevent/screeny/index.html2
-rw-r--r--files/zh-cn/web/api/range/selectnodecontents/index.html2
-rw-r--r--files/zh-cn/web/api/range/surroundcontents/index.html2
12 files changed, 13 insertions, 13 deletions
diff --git a/files/zh-cn/web/api/datatransfer/getdata/index.html b/files/zh-cn/web/api/datatransfer/getdata/index.html
index 6e8916bb16..49de150341 100644
--- a/files/zh-cn/web/api/datatransfer/getdata/index.html
+++ b/files/zh-cn/web/api/datatransfer/getdata/index.html
@@ -78,7 +78,7 @@ function drop(dropevent) {
<h3 id="结果">结果</h3>
-<p id="EmbedLiveSample('Example'_''_''_''_'WebAPIDataTransfergetData')"><iframe class="live-sample-frame sample-code-frame" frameborder="0" id="frame_Example" src="https://mdn.mozillademos.org/en-US/docs/Web/API/DataTransfer/getData$samples/Example?revision=1539300" width="600"></iframe></p>
+<p id="EmbedLiveSample('Example'_''_''_''_'WebAPIDataTransfergetData')">{{ EmbedLiveSample('Example', 600) }}</p>
<h2 id="说明">说明</h2>
diff --git a/files/zh-cn/web/api/document/readystatechange_event/index.html b/files/zh-cn/web/api/document/readystatechange_event/index.html
index 769a0cd3c5..7a79b32769 100644
--- a/files/zh-cn/web/api/document/readystatechange_event/index.html
+++ b/files/zh-cn/web/api/document/readystatechange_event/index.html
@@ -111,7 +111,7 @@ document.addEventListener('DOMContentLoaded', (event) =&gt; {
<h4 id="结果">结果</h4>
-<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" height="160px" id="frame_Live_example" src="https://mdn.mozillademos.org/en-US/docs/Web/API/Document/readystatechange_event$samples/Live_example?revision=1607037" width="100%"></iframe></p>
+<p>{{ EmbedLiveSample('Live_example', '100%', '160px') }}</p>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/api/domtokenlist/index.html b/files/zh-cn/web/api/domtokenlist/index.html
index e67bee5432..2b3fc0f336 100644
--- a/files/zh-cn/web/api/domtokenlist/index.html
+++ b/files/zh-cn/web/api/domtokenlist/index.html
@@ -66,7 +66,7 @@ para.textContent = `paragraph classList is "${classes}"`;</pre>
<p>输出类似这样:</p>
-<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" height="60" id="frame_Examples" src="https://mdn.mozillademos.org/en-US/docs/Web/API/DOMTokenList$samples/Examples?revision=1600968" width="100%"></iframe></p>
+<p>{{ EmbedLiveSample('Examples', '100%', 60) }}</p>
<h2 id="去除空格和重复项目">去除空格和重复项目</h2>
@@ -81,7 +81,7 @@ span.textContent = `span classList is "${classes}"`;</pre>
<p>输出类似这样:</p>
-<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" height="60" id="frame_Trimming_of_whitespace_and_removal_of_duplicates" src="https://mdn.mozillademos.org/en-US/docs/Web/API/DOMTokenList$samples/Trimming_of_whitespace_and_removal_of_duplicates?revision=1600968" width="100%"></iframe></p>
+<p>{{ EmbedLiveSample('Trimming_of_whitespace_and_removal_of_duplicates', '100%', 60) }}</p>
<dl>
<dt></dt>
diff --git a/files/zh-cn/web/api/element/mouseout_event/index.html b/files/zh-cn/web/api/element/mouseout_event/index.html
index f77a4e8162..c964492f39 100644
--- a/files/zh-cn/web/api/element/mouseout_event/index.html
+++ b/files/zh-cn/web/api/element/mouseout_event/index.html
@@ -85,7 +85,7 @@ test.addEventListener("mouseout", function( event ) {
<h4 id="结果">结果</h4>
-<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" height="200" id="frame_mouseout_and_mouseleave" src="https://mdn.mozillademos.org/en-US/docs/Web/API/Element/mouseout_event$samples/mouseout_and_mouseleave?revision=1552558" width="640"></iframe></p>
+<p>{{EmbedLiveSample("mouseout_and_mouseleave", 640, 200)}}</p>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/api/htmlelement/beforeinput_event/index.html b/files/zh-cn/web/api/htmlelement/beforeinput_event/index.html
index fa11a7588c..c67e364cb9 100644
--- a/files/zh-cn/web/api/htmlelement/beforeinput_event/index.html
+++ b/files/zh-cn/web/api/htmlelement/beforeinput_event/index.html
@@ -71,7 +71,7 @@ function updateValue(e) {
<h3 id="结果">结果</h3>
-<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" id="frame_Examples" src="https://mdn.mozillademos.org/en-US/docs/Web/API/HTMLElement/beforeinput_event$samples/Examples?revision=1609140"></iframe></p>
+<p>{{EmbedLiveSample("Simple_logger")}}</p>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/api/htmlelement/input_event/index.html b/files/zh-cn/web/api/htmlelement/input_event/index.html
index f2921d53e2..3108ca825d 100644
--- a/files/zh-cn/web/api/htmlelement/input_event/index.html
+++ b/files/zh-cn/web/api/htmlelement/input_event/index.html
@@ -68,7 +68,7 @@ function updateValue(e) {
<h3 id="结果">结果</h3>
-<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" id="frame_Examples" src="https://mdn.mozillademos.org/en-US/docs/Web/API/HTMLElement/input_event$samples/Examples?revision=1609143"></iframe></p>
+<p>{{EmbedLiveSample("Examples")}}</p>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/api/htmlinputelement/setselectionrange/index.html b/files/zh-cn/web/api/htmlinputelement/setselectionrange/index.html
index 1dfc53223b..0d7070858d 100644
--- a/files/zh-cn/web/api/htmlinputelement/setselectionrange/index.html
+++ b/files/zh-cn/web/api/htmlinputelement/setselectionrange/index.html
@@ -65,7 +65,7 @@ translation_of: Web/API/HTMLInputElement/setSelectionRange
<h3 id="结果">结果</h3>
-<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" id="frame_Example" src="https://mdn.mozillademos.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange$samples/Example?revision=1557137"></iframe></p>
+<p>{{EmbedLiveSample("Example")}}</p>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/api/htmlselectelement/selectedindex/index.html b/files/zh-cn/web/api/htmlselectelement/selectedindex/index.html
index 90217f241b..6e720db9b0 100644
--- a/files/zh-cn/web/api/htmlselectelement/selectedindex/index.html
+++ b/files/zh-cn/web/api/htmlselectelement/selectedindex/index.html
@@ -47,7 +47,7 @@ selectElem.addEventListener('change', function() {
pElem.innerHTML = 'selectedIndex: ' + index;
})</pre>
-<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" height="80px" id="frame_Example" src="https://mdn.mozillademos.org/en-US/docs/Web/API/HTMLSelectElement/selectedIndex$samples/Example?revision=1546597" width="200px"></iframe></p>
+<p>{{EmbedLiveSample("Example", "200px", "80px")}}</p>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/api/mouseevent/screenx/index.html b/files/zh-cn/web/api/mouseevent/screenx/index.html
index 1f3f484d14..05a83f9ba0 100644
--- a/files/zh-cn/web/api/mouseevent/screenx/index.html
+++ b/files/zh-cn/web/api/mouseevent/screenx/index.html
@@ -48,7 +48,7 @@ function logKey(e) {
<h4 id="结果">结果</h4>
-<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" id="frame_Example" src="https://mdn.mozillademos.org/en-US/docs/Web/API/MouseEvent/screenX$samples/Example?revision=1510648"></iframe></p>
+<p>{{EmbedLiveSample("Example")}}</p>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/api/mouseevent/screeny/index.html b/files/zh-cn/web/api/mouseevent/screeny/index.html
index 4ae5210e23..4286534635 100644
--- a/files/zh-cn/web/api/mouseevent/screeny/index.html
+++ b/files/zh-cn/web/api/mouseevent/screeny/index.html
@@ -44,7 +44,7 @@ function logKey(e) {
<h3 id="结果">结果</h3>
-<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" id="frame_Example" src="https://mdn.mozillademos.org/en-US/docs/Web/API/MouseEvent/screenY$samples/Example?revision=1510695"></iframe></p>
+<p>{{EmbedLiveSample("Example")}}</p>
<h2 id="规范">规范</h2>
diff --git a/files/zh-cn/web/api/range/selectnodecontents/index.html b/files/zh-cn/web/api/range/selectnodecontents/index.html
index 6192db8697..fa583e3bb7 100644
--- a/files/zh-cn/web/api/range/selectnodecontents/index.html
+++ b/files/zh-cn/web/api/range/selectnodecontents/index.html
@@ -68,7 +68,7 @@ deselectButton.addEventListener('click', e =&gt; {
<h4 id="结果">结果</h4>
-<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" id="frame_Live_sample" src="https://mdn.mozillademos.org/en-US/docs/Web/API/Range/selectNodeContents$samples/Live_sample?revision=1566740"></iframe></p>
+<p>{{EmbedLiveSample("Live_sample")}}</p>
<h2 id="Specification" name="Specification">规范</h2>
diff --git a/files/zh-cn/web/api/range/surroundcontents/index.html b/files/zh-cn/web/api/range/surroundcontents/index.html
index 58695a43f4..61304bd40b 100644
--- a/files/zh-cn/web/api/range/surroundcontents/index.html
+++ b/files/zh-cn/web/api/range/surroundcontents/index.html
@@ -45,7 +45,7 @@ range.surroundContents(newParent);</pre>
<h3 id="结果">结果</h3>
-<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" id="frame_Example" src="https://mdn.mozillademos.org/en-US/docs/Web/API/Range/surroundContents$samples/Example?revision=1549261"></iframe></p>
+<p>{{EmbedLiveSample("Example")}}</p>
<h2 id="Specification" name="Specification">规范</h2>