Skip to content

Commit 4ad3d00

Browse files
authored
Update Example.html
1 parent f7656a4 commit 4ad3d00

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Example.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ <h1>Example FixLanguageType.js</h1>
1010
<br><br>
1111
Enter Text :
1212
<input type="text" name="text" id="text">
13-
<button onclick="en_to_fa();">Check</button>
13+
<button onclick="en_to_fa();">Convert to fa</button>
14+
<button onclick="fa_to_en();">Convert to en</button>
1415
<br>
1516
<div id="result"></div>
1617
<script type="text/javascript">
@@ -20,6 +21,10 @@ <h1>Example FixLanguageType.js</h1>
2021
{
2122
result.innerHTML=fixtype.en_fa( text.value );
2223
}
24+
function fa_to_en()
25+
{
26+
result.innerHTML=fixtype.fa_en( text.value );
27+
}
2328
</script>
2429
</body>
2530
</html>

0 commit comments

Comments
 (0)