-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (40 loc) · 1.87 KB
/
index.html
File metadata and controls
41 lines (40 loc) · 1.87 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Arabic Breakdown</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/x-icon" href="https://guyotjs.github.io/duckclear2.png"/>
<link rel="stylesheet" href="https://guyotjs.github.io/bcss/bc.css"/>
</head>
<body data="{val:'',final:''}">
<div class="true-center text-center">
<form>
<input class="p-m r border-gray gray m" type="text" bind="val" placeholder="Write your Arabic here!"/>
<button type="submit" class="r p-m border-gray bg-white gray" onclick="$$()"> א </button>
</form>
<br/><br/><p class="text-center true-sans gray f-m" react>{{final}}</p>
</div>
<script>
let word = [];
let arabic = [['ء', 'Hamza'],['أ','Hamza \'Ala Alif'],['ة','Ta\' Marbuta'],['إ','Hamza Taht Alif'],['ئ','Hamza \' Ala Nabra'],['ا', 'Alif'],['ب', 'Bā'],['ت', 'Tā'],['ث', 'Thā'],['ج', 'Jīm'],['ح', 'Hā'],['خ', 'Khā'],['د', 'Dāl'],['ذ', 'Dhāl'],['ر', 'Rā'],['ز', 'Zāy'],['س', 'Sīn'],['ش', 'Shīn'],['ص', 'Ṣād'],['ض', 'Ḍād'],['ط', 'Ṭā'],['ظ', 'Ẓā'],['ع', 'ʿayn'],['غ', 'Ghayn'],['ف', 'Fā'],['ق', 'Qāf'],['ك', 'Kāf'],['ل', 'Lām'],['م', 'Mīm'],['ن', 'Nūn'],['ه', 'Hā'],['و', 'Waw'],['ي', 'Yā']];
function $$(){
event.preventDefault();
word = [];
data.final = "";
for(let i=0;i<data.val.length;i++){
word.push(data.val[i]);
}
for(let i=0;i<word.length;i++){
for(let z=0;z<arabic.length;z++){
if(word[i]==arabic[z][0]){
data.final+=`${arabic[z][0]} : ${arabic[z][1]}<br/>`
}
}
}
}
</script>
</body>
<script src='https://snojs.github.io/sno/crystal.js'></script>
</html>