-
Notifications
You must be signed in to change notification settings - Fork 33
/
demo.html
57 lines (48 loc) · 1.41 KB
/
demo.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
<!DOCTYPE html>
<html lang="en-gb">
<head>
<meta charset="utf-8">
<title>On Screen Keyboard demo</title>
<link rel="stylesheet" type="text/css" href="onScreenKeyboard.css">
<style>
html {
font-family: Calibri, Arial, sans-serif;
}
#input_container {
width: 50%;
margin: 2% auto;
display: block;
}
#input_container > input,
#input_container > textarea {
font-family: inherit;
font-size: 3em;
width: 98%;
display: block;
resize: none;
margin-bottom: 1em;
border: 1px solid #333;
padding: 0.25em;
background: #FEFEFE;
}
</style>
</head>
<body>
<form id="input_container" action="demo.html">
<input type="text" id="input1" class="osk-trigger" placeholder="disable return" data-osk-options="disableReturn">
<input type="text" id="input2" class="osk-trigger" placeholder="disable symbols" data-osk-options="disableSymbols">
<input type="text" id="input3" class="osk-trigger" placeholder="enable everything">
<textarea id="input4" class="osk-trigger" placeholder="enable everything"></textarea>
</form>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="jquery.onScreenKeyboard.js"></script>
<script>
$(function () {
$('#input_container').children('.osk-trigger').onScreenKeyboard({
rewireReturn : 'submit',
rewireTab : true
});
});
</script>
</body>
</html>