-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (49 loc) · 2.32 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>MSKey</title>
<meta name="keywords" content="Meetei Script, Meetei Mayek, Keyboard, Copy-Paste, Meetei Mayek Keyboard, Meetei Script Keyboard, Manipuri, Meiteilon">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!DOCTYPE html>
<head>
<title>MSKey</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<link rel="shortcut icon" href="/assets/favicon.ico">
<link rel="stylesheet" href="/assets/dcode.css">
<link rel="stylesheet" href="keyboard/Keyboard.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<h2>MSKey: A Virtual Meetei Script Keyboard</h2>
<p>Type Meetei Script on the go, any device, everywhere. No external app nor installation required.</p>
<p>Enter text below. <u>Drag the dashed wedge in the bottom-right of the text box to change the size of the text box</u>.</p>
<textarea class="use-keyboard-input" rows="6" column="240" id="text"></textarea>
<p>
<button id="copyButton" onclick="copyText()">Copy</button>
<button id="clearButton" onclick="clearText()">Clear</button>
</p>
<p>Click on "Copy" button to copy the text you have typed. Now you can paste it to anywhere you like!</p>
<p>This functionality is most useful on desktop devices when you have no access to physical (or app) Meetei Script keyboard. <br/>To know more or contribute, visit its GitHub repository <a href="https://github.com/ronaldhuidrom/mskey" style="text-decoration: none;">here</a>.</p>
<p>© 2022 <a href="https://ronaldhuidrom.github.io" style="text-decoration: none;">Ronald Huidrom</a>.<br/>Follow him on <a href="https://github.com/huidr/" style="text-decoration: none;">GitHub</a>.</p>
<script>
function copyText() {
/* Get the text field */
var textScript = document.getElementById("text");
/* Select the text field */
textScript.select();
textScript.setSelectionRange(0, 99999); /* For mobile devices */
/* Copy the text inside the text field */
navigator.clipboard.writeText(textScript.value);
/* Alert the copied text */
alert("The text is copied");
}
</script>
<script src="keyboard/Keyboard.js"></script>
</body>
<script src="./script.js"></script>
</body>
</html>