-
Notifications
You must be signed in to change notification settings - Fork 0
/
chinese.html
108 lines (97 loc) · 2.03 KB
/
chinese.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
<!doctype html>
<html lang=en>
<input type=text id=num onkeyup="n()">
<input type=text id=chinese onkeyup="c()">
<script>
function n(){
var num = document.getElementById('num');
document.getElementById('chinese').value =
num.value.replaceAll(/0/g,'零')
.replaceAll(/1/g,'一')
.replaceAll(/2/g,'二')
.replaceAll(/3/g,'三')
.replaceAll(/4/g,'四')
.replaceAll(/5/g,'五')
.replaceAll(/6/g,'六')
.replaceAll(/7/g,'七')
.replaceAll(/8/g,'八')
.replaceAll(/9/g,'九');
}
function c(){
var chinese = document.getElementById('chinese');
document.getElementById('num').value =
chinese.value.replaceAll(/零/g,'0')
.replaceAll(/一/g,'1')
.replaceAll(/二/g,'2')
.replaceAll(/三/g,'3')
.replaceAll(/四/g,'4')
.replaceAll(/五/g,'5')
.replaceAll(/六/g,'6')
.replaceAll(/七/g,'7')
.replaceAll(/八/g,'8')
.replaceAll(/九/g,'9');
}
</script>
<!--script>
function n(i){
document.getElementById('chinese').value =
i.value.replaceAll(/0/g,'٠')
.replaceAll(/1/g,'١')
.replaceAll(/2/g,'٢')
.replaceAll(/3/g,'٣')
.replaceAll(/4/g,'٤')
.replaceAll(/5/g,'٥')
.replaceAll(/6/g,'٦')
.replaceAll(/7/g,'٧')
.replaceAll(/8/g,'٨')
.replaceAll(/9/g,'٩');
}
function c(i){
document.getElementById('num').value =
i.value.replaceAll(/٠/g,'0')
.replaceAll(/١/g,'1')
.replaceAll(/٢/g,'2')
.replaceAll(/٣/g,'3')
.replaceAll(/٤/g,'4')
.replaceAll(/٥/g,'5')
.replaceAll(/٦/g,'6')
.replaceAll(/٧/g,'7')
.replaceAll(/٨/g,'8')
.replaceAll(/٩/g,'9');
}
</script-->
<!--
#Hotstring c o
#Hotstring EndChars `t
::ling::零
::y::一
::r::二
::s::三
::c::四
::w::五
::Five::五
::woo::火
::l::六
::Six::六
::q::七
::Seven::七
::b::八
::Eight::八
::j::九
::Nine::九
::shi::十
::Ten::十
::bai::百
::qian::千
Numpad0::零
Numpad1::一
Numpad2::二
Numpad3::三
Numpad4::四
Numpad5::五
Numpad6::六
Numpad7::七
Numpad8::八
Numpad9::九
-->
0一二三V|一|二|三|V9