diff options
Diffstat (limited to 'files/ru/mdn/structures/live_samples')
| -rw-r--r-- | files/ru/mdn/structures/live_samples/simple_live_sample_demo/index.html | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/files/ru/mdn/structures/live_samples/simple_live_sample_demo/index.html b/files/ru/mdn/structures/live_samples/simple_live_sample_demo/index.html deleted file mode 100644 index 393a20bc94..0000000000 --- a/files/ru/mdn/structures/live_samples/simple_live_sample_demo/index.html +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: A simple demo of a live code sample -slug: MDN/Structures/Live_samples/Simple_live_sample_demo -tags: - - MDN Meta - - Конструкции - - Пример -translation_of: MDN/Structures/Live_samples/Simple_live_sample_demo ---- -<div>{{MDNSidebar}}</div> - -<h2 id="Пример">Пример</h2> - -<p id="Simple_example_of_a_live_demo">Это очень простой пример показывающий вам, как сделать живой образец на MDN. Для большей информации смотрите <a href="/en-US/docs/MDN/Contribute/Structures/Live_samples">Live samples</a>.</p> - -<pre class="brush: html notranslate"><form> - <label>Try me<input type="text" name="name"></label> - <input type="submit" value="go"> -</form></pre> - -<pre class="brush: css notranslate">form { - border-radius: 10px; - background: powderblue; -}</pre> - -<pre class="brush: js notranslate">var f = document.querySelector('form'); - -f.addEventListener('submit', function(ev) { - ev.preventDefault(); - document.querySelectorAll('input')[1].value = 'sending'; -}, false);</pre> - -<p>{{ EmbedLiveSample('Пример', '', '', '') }}</p> - -<div class="blockIndicator note"> -<p>Примечание: На локализованных страницах значение первого параметра должно совпадать с ID заголовка в котором находится пример.</p> -</div> |
