forked from mingchoi/Multi-Language
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (36 loc) · 1.33 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title id="ml-title"></title>
<meta content='text/html; charset=UTF-8' http-equiv='Content-type' />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<script src="jquery.MultiLanguage.min.js"></script>
<script>
$(document).ready(function(){
$.MultiLanguage('language.json');
})
</script>
<style>
body{padding-left: 20px;}
</style>
</head>
<body>
<h1 id="ml-pluginName"></h1>
<p>
<h3 id="ml-howToUse"> </h3>
<div><code>$.MultiLanguage('language.json') <span id="ml-defaultLangCode"> </span></code></div>
<div><code>$.MultiLanguage('language.json', 'en') <span id="ml-enLangCode"> </span></code></div>
</p>
<p>
<h3 id="ml-demo"> </h3>
<button onclick="$.MultiLanguage('language.json', 'chi')" class="btn">中文</button><span> </span>
<button onclick="$.MultiLanguage('language.json', 'en')" class="btn">English</button>
</p>
<p id="ml-msg1"></p>
<p class="ml-classA"></p>
<p id="ml-msg2"></p>
<p class="ml-classA"></p>
</body>
</html>