-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
103 lines (78 loc) · 4.11 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!-- Set the viewport width to match phone and tablet device widths -->
<meta name="viewport" content="width=device-width,user-scalable=no" />
<!-- Allow KeymanWeb to be saved to the iPhone home screen -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<!-- Enable IE9 Standards mode -->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>KeymanWeb образец веб-страницы</title>
<link href="./style/main.css" rel="stylesheet" type="text/css" />
<!-- KeymanWeb script -->
<script src="https://s.keyman.com/kmw/engine/14.0.293/keymanweb.js"></script>
<!--
For desktop browsers, a script for the user interface must be inserted here.
Standard UIs are toggle, button, float and toolbar.
The toolbar UI is best for any page designed to support keyboards for
a large number of languages.
-->
<script src="https://s.keyman.com/kmw/engine/14.0.293/kmwuitoggle.js"></script>
<!-- Initialization: set paths to keyboards, resources and fonts as required -->
<script>
</script>
<!-- Add keyboard management script for local selection of keyboards to use -->
<script src="./js/main.js"></script>
</head>
<!-- Sample page HTML -->
<body onload="SetupDocument()">
<div id="character-grid" class="cursor">
<div class="">
<div class="char-char keymanweb-font">-</div>
<div class="char-code">empty</div>
</div>
</div>
<h2><a href="https://keymanweb.com/">KeymanWeb</a> образец веб-страницы</h2>
<div>
<!--
The following DIV is used to position the Button or Toolbar User Interfaces on the page.
If omitted, those User Interfaces will appear at the top of the document body.
(It is ignored by other User Interfaces.)
-->
<div id='KeymanWebControl'></div>
<h4>Введите выбранным языком в эту текстовую область:</h4>
<textarea id='ta1' class='test' placeholder='введите здесь'></textarea>
<h4>или в этом поле ввода:</h4>
<input id="i1" class='test' value='' placeholder='или здесь'/>
<br />
<br />
<!-- The following elements show how the language menu can be dynamically extended at any time -->
<h3><a href="https://keyman.com/developer/keymanweb/keyboards">В этом каталоге</a> перечислены все клавиатуры, доступные в Keyman Cloud.</h3>
<h4>Добавьте клавиатуру по имени клавиатуры:</h4>
<input type='input' id='kbd_id1' class='kmw-disabled' onkeypress="clickOnEnter(event,1);"/>
<input type='button' id='btn1' onclick='addKeyboard(1);' value='Add' />
<h4>Добавьте клавиатуру по коду языка BCP-47:</h4>
<input type='input' id='kbd_id2' class='kmw-disabled' onkeypress="clickOnEnter(event,2);"/>
<input type='button' id='btn2' onclick='addKeyboard(2);' value='Add' />
<h4>Добавьте клавиатуру по названию языка:</h4>
<input type='input' id='kbd_id3' class='kmw-disabled' onkeypress="clickOnEnter(event,3);"/>
<input type='button' id='btn3' onclick='addKeyboard(3);' value='Add' />
</div>
</body>
<!--
*** DEVELOPER NOTE -- FIREFOX CONFIGURATION FOR TESTING ***
*
* If the URL bar starts with <b>file://</b>, Firefox may not load the font used
* to display the special characters used in the On-Screen Keyboard.
*
* To work around this Firefox bug, navigate to <b>about:config</b>
* and set <b>security.fileuri.strict_origin_policy</b> to <b>false</b>
* while testing.
*
* Firefox resolves website-based CSS URI references correctly without needing
* any configuration change, so this change should only be made for file-based testing.
*
***
-->
</html>