From 157c8e0f86caf3582a78db3743447a2afacb6012 Mon Sep 17 00:00:00 2001 From: Maxim Postautov <54762420+mpstv@users.noreply.github.com> Date: Sat, 15 May 2021 20:18:35 +0300 Subject: fixed incorect links (#870) --- .../first_steps/useful_string_methods/index.html | 110 +-------------------- 1 file changed, 1 insertion(+), 109 deletions(-) (limited to 'files/ru/learn/javascript/first_steps/useful_string_methods') diff --git a/files/ru/learn/javascript/first_steps/useful_string_methods/index.html b/files/ru/learn/javascript/first_steps/useful_string_methods/index.html index 9e461e9da7..e76c6f1ccf 100644 --- a/files/ru/learn/javascript/first_steps/useful_string_methods/index.html +++ b/files/ru/learn/javascript/first_steps/useful_string_methods/index.html @@ -45,115 +45,7 @@ original_slug: Learn/JavaScript/Первые_шаги/Useful_string_methods
Только не волнуйтесь! Большинство из них вам не нужно знать сейчас на ранней стадии вашего обучения. Но некоторые из них вы, возможно, будете использовать довольно часто. Их мы и рассмотрим.
-Приведём несколько примеров в новой консоли. Ниже вы можете открыть данную консоль в отдельной вкладке или окне, или, если вам так удобней, использовать браузер консоли разработчика.
- -<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
- <title>Консоль JavaScript</title>
- <style>
- * {
- box-sizing: border-box;
- }
-
- html {
- background-color: #0C323D;
- color: #809089;
- font-family: monospace;
- }
-
- body {
- max-width: 700px;
- }
-
- p {
- margin: 0;
- width: 1%;
- padding: 0 1%;
- font-size: 16px;
- line-height: 1.5;
- float: left;
- }
-
- .input p {
- margin-right: 1%;
- }
-
- .output p {
- width: 100%;
- }
-
- .input input {
- width: 96%;
- float: left;
- border: none;
- font-size: 16px;
- line-height: 1.5;
- font-family: monospace;
- padding: 0;
- background: #0C323D;
- color: #809089;
- }
-
- div {
- clear: both;
- }
-
- </style>
- </head>
- <body>
-
-
- </body>
-
- <script>
- var geval = eval;
- function createInput() {
- var inputDiv = document.createElement('div');
- var inputPara = document.createElement('p');
- var inputForm = document.createElement('input');
-
- inputDiv.setAttribute('class', 'input');
- inputPara.textContent = '>';
- inputDiv.appendChild(inputPara);
- inputDiv.appendChild(inputForm);
- document.body.appendChild(inputDiv);
-
- inputForm.addEventListener('change', executeCode);
- }
-
- function executeCode(e) {
- try {
- var result = geval(e.target.value);
- } catch(e) {
- var result = 'error — ' + e.message;
- }
-
- var outputDiv = document.createElement('div');
- var outputPara = document.createElement('p');
-
- outputDiv.setAttribute('class','output');
- outputPara.textContent = 'Result: ' + result;
- outputDiv.appendChild(outputPara);
- document.body.appendChild(outputDiv);
-
- e.target.disabled = true;
- e.target.parentNode.style.opacity = '0.5';
-
- createInput()
- }
-
- createInput();
-
- </script>
-</html>
-{{ EmbedLiveSample('Hidden_code', '100%', 300, "", "", "hide-codepen-jsfiddle") }}
+Введем несколько примеров в консоль разработчика.