Есть ответ 👍

Опишите oc windows кратко

145
341
Посмотреть ответы 1

Ответы на вопрос:


< ! doctype html> < html>   < head>       < style>           body {             text-align: center;           }           form {             display: inline-block;             width: 40%;           }           label {             display: block;           }           textarea {             width: 100%;             height: 300px;           }           button {             width: 45%;           }       < /style>       < script>           function deshifr()           {               let text    = document.getelementbyid("shifr").value;               let l          = text.length;               let nechet = text.substr(0,l/2+l%2);               let chet    = text.substr(l/2+l%2,l/2);               let deshifr = "";               for (let i = 0, c = 0, n = 0; i < l; i++)               {                   deshifr += (i%2? chet[c++]: nechet[n++]);               }               document.getelementbyid("deshifr").innerhtml = deshifr;           }       < /script>   < /head>   < body>       < form>           < label for="shifr"> введите зашифрованный тест сообщения: < /label>           < textarea id="shifr"> < /textarea>           < button type="button" onclick="deshifr()"> расшифровать< /button>           < div id="deshifr"> < /div>       < /form>   < /body> < /html>

Популярно: Информатика