-
Notifications
You must be signed in to change notification settings - Fork 0
/
html notepad.html
73 lines (43 loc) · 1.22 KB
/
html notepad.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
63
64
65
66
67
68
69
70
71
72
73
# also on htmlnotepad.puremintwater.repl.co
<HTML>
<HEAD>
<SCRIPT type="text/javascript" src="vkboards.js"></SCRIPT>
</HEAD>
<HTML>
<HEAD>
<SCRIPT type="text/javascript" src="vkboard.js"></SCRIPT>
<SCRIPT>
<HTML>
<HEAD>
<SCRIPT type="text/javascript" src="edit_full.html"></SCRIPT>
<SCRIPT>
function keyb_callback(char)
{
var text = notepad
document.getElementById("textfield"), val = text.value;
switch(ch)
{
case "BackSpace":
var min=(val.charCodeAt(val.length - 1) == 10) ? 2 : 1;
text.value = val.substr(0, val.length - min);
break;
case "Enter":
text.value += "\n";
break;
default:
text.value += ch;
}
}
</SCRIPT>
</HEAD>
...
<HTML>
...
<BODY>
...
<TEXTAREA id="textfield" rows="10" cols="50"></TEXTAREA>
<DIV id="keyboard"></DIV>
</BODY>
</HTML>
<BODY onload="new VKeyboard("keyboard", keyb_callback);">
<input type="submit">