-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample.html
More file actions
30 lines (30 loc) · 793 Bytes
/
Example.html
File metadata and controls
30 lines (30 loc) · 793 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<title>Example FixLanguageType.js</title>
<meta charset="utf-8">
<script type="text/javascript" src="FixLanguageType.min.js"></script>
</head>
<body>
<h1>Example FixLanguageType.js</h1>
<br><br>
Enter Text :
<input type="text" name="text" id="text">
<button onclick="en_to_fa();">Convert to fa</button>
<button onclick="fa_to_en();">Convert to en</button>
<br>
<div id="result"></div>
<script type="text/javascript">
var text=document.querySelector("input#text");
var result=document.querySelector("#result");
function en_to_fa()
{
result.innerHTML=fixtype.en_fa( text.value.toLowerCase() );
}
function fa_to_en()
{
result.innerHTML=fixtype.fa_en( text.value );
}
</script>
</body>
</html>