From ac3787e10a0637c553124e4ffa5b75401f4a1a3d Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Thu, 18 Nov 2021 01:13:18 +0300 Subject: [PATCH] fix bug in script --- docs/index.html | 2 +- docs/js/app.js | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/index.html b/docs/index.html index 18f6f6b..a006742 100644 --- a/docs/index.html +++ b/docs/index.html @@ -14,7 +14,7 @@
- +
diff --git a/docs/js/app.js b/docs/js/app.js index 7ab121c..9af49a2 100644 --- a/docs/js/app.js +++ b/docs/js/app.js @@ -2,7 +2,7 @@ function layoutReplace() { 'use strict'; - keys = { + let keys = { "q":"й", "w":"ц", "e":"у", "r":"к", "t":"е", "y":"н", "u":"г", "i":"ш", "o":"щ", "p":"з", "[":"х", "]":"ъ", "a":"ф", "s":"ы", "d":"в", "f":"а", "g":"п", "h":"р", "j":"о", "k":"л", "l":"д", @@ -14,9 +14,6 @@ function layoutReplace() let outputText = document.getElementById("two"); let text = null; - console.log(inputText); - - text = inputText.replace(/[A-z/,.;\'\]\[]/g, function(x) { return x == x.toLowerCase() ? keys[ x ] : keys[ x.toLowerCase() ].toUpperCase(); });