Virtual Keyboard With Typing Sound

Category: Javascript | November 1, 2021
Author:mykkarp
Views Total:596 views
Official Page:Go to website
Last Update:November 1, 2021
License:MIT

Preview:

Virtual Keyboard With Typing Sound

Description:

A multi-language virtual keyboard with a sound effect while typing.

How to use it:

1. Load the needed Material Icons.

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

2. Load the virtual keyboard’s JavaScript and CSS files.

<link rel="stylesheet" href="css/style.css">
<script defer src="js/script.js"></script>

3. Add the sound effect to the keyboard wrapper. That’s it.

<div class="wrapper">
  <audio src="sound/click.mp3"></audio>
</div>

4. Add more languages to the virtual keyboard.

keyLayoutRus: [
 "ё", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-", "=", "backspace",
 "Tab", "й", "ц", "у", "к", "е", "н", "г", "ш", "щ", "з", "х", "ъ", '\\',
 "caps", "ф", "ы", "в", "а", "п", "р", "о", "л", "д", "ж", "э", "enter",
 "r. shift", "я", "ч", "с", "м", "и", "т", "ь", "б", "ю", ".", "l. shift",
 "lang", "", "", "space", "", "", "", ""
],
keyLayoutShiftRus: [
 "Ё", "!", '"', "№", ";", "%", ":", "?", "*", "(", ")", "_", "+", "backspace",
 "Tab", "Й", "Ц", "У", "К", "Е", "Н", "Г", "Ш", "Щ", "З", "Х", "Ъ", '/',
 "caps", "Ф", "Ы", "В", "А", "П", "Р", "О", "Л", "Д", "Ж", 'Э', "enter",
 "r. shift", "Я", "Ч", "С", "М", "И", "Т", "Ь", "Б", "Ю", ",", "l. shift",
 "space"
]

You Might Be Interested In:


Leave a Reply