-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
139 lines (123 loc) · 3.34 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html lang="en">
<head>
<title>GEORGIAN KEYBOARD Demonstration</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
html,body,div,table {
margin: 0;
padding: 0;
}
body{
margin: 0 auto;
background-color: silver;
}
.welcome{
text-align: center;
color: white;
}
.welcome span{
font-size: 1.2em;
}
.cont {
margin: 50px auto;
padding: 20px;
width: 550px;
background-color: #AFAFAD;
border-radius: 10px;
}
.tb {
margin: 0 auto;
width: 470px;
background-color: silver;
border-radius: 8px;
}
.tb td:first-child {
vertical-align: top;
width: 20px;
}
.tb_conv{
margin: 0 auto;
width: 450px;
background-color: silver;
border-radius: 8px;
}
.tb_conv td{
width: 150px;
text-align: center;
}
span.title{
position: relative;
left: 12px;
font-size: small;
color: white;
}
</style>
</head>
<body>
<div class="cont">
<div class="welcome">
<span>Georgian Keyboard / ქართული კლავიატურა</span>
</div>
<br>
<span class="title">Georgian ( მხედრული / Mkhedruli )</span>
<br><br>
<table class="tb">
<tr>
<td><input type="checkbox" id="a" checked="checked"></td>
<td><textarea cols="60" rows="8" id="a_txt"></textarea></td>
</tr>
</table>
<br>
<span class="title">Georgian ( ასომთავრული / Asomtavruli )</span>
<br><br>
<table class="tb">
<tr>
<td><input type="checkbox" id="b" checked="checked"></td>
<td><textarea cols="60" rows="8" id="b_txt"></textarea></td>
</tr>
</table>
<br>
<span class="title">Georgian ( ნუსხური / Nuskhuri )</span>
<br><br>
<table class="tb">
<tr>
<td><input type="checkbox" id="c" checked="checked"></td>
<td><textarea cols="60" rows="8" id="c_txt"></textarea></td>
</tr>
</table>
<br>
<table class="tb_conv">
<tr>
<td><select id="from"><option value="1">მხედრული</option><option value="2">ႠႱႭႫႧႠႥႰႳႪႨ</option><option value="3">ⴌⴓⴑⴞⴓⴐⴈ</option><option value="0">English(Characters)</option></select></td>
<td><input type="button" id="butt" value="Transcript"></td>
<td><select id="to"><option value="1">მხედრული</option><option value="2">ႠႱႭႫႧႠႥႰႳႪႨ</option><option value="3">ⴌⴓⴑⴞⴓⴐⴈ</option></select></td>
</tr>
<tr>
<td colspan="3"><textarea cols="60" rows="5" id="convert"></textarea></td>
</tr>
<tr>
<td colspan="3"><br></td>
</tr>
<tr>
<td colspan="3"><div id="result" style="color: white;"></div></td>
</tr>
<tr>
<td colspan="3"><br></td>
</tr>
</table>
</div>
<script type="text/javascript" src="./GEOKEY_MIN.js"></script>
<script type="text/javascript">
var instance = new GEOKEY({"check" : true , "chbox" : "a", "field" : "a_txt" , "type" : 1});
new GEOKEY({"check" : true , "chbox" : "b" , "field" : "b_txt" , "type" : 2});
new GEOKEY({"check" : true , "chbox" : "c" , "field" : "c_txt" , "type" : 3});
instance.on(document.getElementById("butt"),"click",function(){
this.transcript(document.getElementById("convert").value,parseInt(document.getElementById("from").value),parseInt(document.getElementById("to").value),function(result){
document.getElementById("result").innerHTML = result;
});
});
console.log(instance.info());
</script>
</body>
</html>