-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharabic.html
More file actions
33 lines (32 loc) · 817 Bytes
/
arabic.html
File metadata and controls
33 lines (32 loc) · 817 Bytes
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
<!doctype html>
<html lang=en>
<input type=text id=num onkeyup="n(this)"><br>
<input type=text id=chinese onkeyup="c(this)">
<!--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-->