-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
57 lines (57 loc) · 1.78 KB
/
demo.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
<!doctype html>
<html>
<head>
<title>jQuery saral i18n example</title>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" defer></script>
<script type="text/javascript" src="js/saral-i18n.js" defer></script>
</head>
<body>
<div id="main">
<div class="lng">
<span>Change Language</span>
<select id="lang">
<option value="en">English</option>
<option value="hn">Hindi</option>
<option value="zh">Chinese</option>
<option value="ru">Russian</option>
<option value="de">German</option>
</select>
</div>
<br />
<table cellpadding="2" cellspacing="0">
<tr><td><div i18n="divTxt">text from english</div></td></tr>
<tr><td><span i18n="spanTxt">text from english</span></td></tr>
<tr><td><h3 i18n="headingTxt"></h3></td></tr>
<tr><td><p i18n="pTxt"></p></td></tr>
<tr><td><button id="btn1" i18n="buttonTxt"></button></td></tr>
<tr><td><input type="text" value="" i18n_placeholder="inputPlchdr" /></td></tr>
<tr><td>
<span>Translation in options</span>
<select>
<option selected i18n="location1"></option>
<option i18n="location2"></option>
</select>
</td>
</tr>
<tr><td><input type="radio" name="gender" value="male" checked> Male<br></td></tr>
<tr><td>
<textarea i18n="textArea" rows="4" cols="45"></textarea>
</td></tr>
<tr><td>
<input type="checkbox" value="Bike"> I have a bike<br>
</td></tr>
<tr>
<td>
<div style="color:blue" i18n="successTxt"></div>
<div style="color:red" i18n="errorTxt"></div>
</td>
</tr>
</table>
</div>
<form>
<br /><br /><input type="text" i18n="tdTxt" i18n_placeholder="inputPlchdr" />
<br /><br /><input type="text" i18n_placeholder="inputPlchdr" />
<br /><br /><input type="text" i18n="spanTxt" />
</form>
</body>
</html>