public to GitHub Pages

This commit is contained in:
2021-06-08 23:44:17 +03:00
parent 17686bef88
commit 34346f32f9
4 changed files with 0 additions and 0 deletions

23
docs/js/app.js Normal file
View File

@@ -0,0 +1,23 @@
function layoutReplace()
{
keys = {
"q":"й", "w":"ц", "e":"у", "r":"к", "t":"е", "y":"н", "u":"г",
"i":"ш", "o":"щ", "p":"з", "[":"х", "]":"ъ", "a":"ф", "s":"ы",
"d":"в", "f":"а", "g":"п", "h":"р", "j":"о", "k":"л", "l":"д",
";":"ж", "'":"э", "z":"я", "x":"ч", "c":"с", "v":"м", "b":"и",
"n":"т", "m":"ь", ",":"б", ".":"ю", "/":"."
};
var dat = document.getElementById("one").value
var res = document.getElementById("two")
let text = null
console.log(dat)
text = dat.replace(/[A-z/,.;\'\]\[]/g, function(x) {
return x == x.toLowerCase() ? keys[ x ] : keys[ x.toLowerCase() ].toUpperCase();
});
res.value = text
}