This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>React app</title> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// для теста | |
// const str = 'ПГПГ ПЮОГ УГПЦ'; | |
// расшифровывается в "мама мыла раму" | |
const caesarCipher = function caesarCipher(string) { | |
const codesMap = { | |
а: 1, | |
б: 2, | |
в: 3, | |
г: 4, | |
д: 5, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if lte IE 10]> | |
<meta http-equiv="refresh" content="3; url=http://redirekt.info/article/pishem-redirekt-na-javascript-js.html"> | |
<![endif]--> | |
<!--[if lte IE 10]> | |
<div style="background-color: #3686BB; color: #fff; width: 100%; height: 100%; margin: 0; padding: 50px; box-sizing: border-box; position: fixed; top: 0; bottom: 0;left: 0; right: 0; font-size: 26px;"> | |
<p style="width: 80%; margin: auto;text-align: center;"> Приносим свои извинения. Данный сайт не может корректно работать в браузере "Internet Explorer" ниже 10(-й) версии. | |
Пожалуйста, используйте другой более современный браузер или обновите ваш "Internet Explorer" до 10-11(-й) версии.</p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function randomInteger(min, max) { | |
var rand = min + Math.random() * (max + 1 - min); | |
rand = Math.floor(rand); | |
return rand; | |
} |
NewerOlder