-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.html
69 lines (64 loc) · 2.38 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE HTML>
<html>
<head>
<!-- begin meta -->
<meta charset="utf-8">
<meta name="description" content="Polyglot is a language switcher jQuery and WordPress plugin that allows you to create a bilingual or multilingual site or blog.">
<meta name="keywords" content="Polyglot, Polyglot language switcher, language switcher, jQuery language switcher, WordPress language switcher, jQuery plugin, WordPress plugin">
<meta name="author" content="Ixtendo">
<!-- end meta -->
<!-- begin CSS -->
<link href="css/polyglot-language-switcher.css" type="text/css" rel="stylesheet">
<!-- end CSS -->
<!-- begin JS -->
<script src="js/jquery-1.7.min.js" type="text/javascript"></script>
<script src="js/jquery.polyglot.language.switcher.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#polyglotLanguageSwitcher').polyglotLanguageSwitcher({
effect: 'fade',
testMode: true,
onChange: function(evt){
alert("The selected language is: "+evt.selectedItem);
}
// ,afterLoad: function(evt){
// alert("The selected language has been loaded");
// },
// beforeOpen: function(evt){
// alert("before open");
// },
// afterOpen: function(evt){
// alert("after open");
// },
// beforeClose: function(evt){
// alert("before close");
// },
// afterClose: function(evt){
// alert("after close");
// }
});
});
</script>
<!-- end JS -->
<title>"Polyglot" Language Switcher</title>
</head>
<body>
<!-- begin container -->
<div id="container" style="width: 400px; margin: 140px auto 40px;">
<!-- begin language switcher -->
<div id="polyglotLanguageSwitcher">
<form action="#">
<select id="polyglot-language-options">
<option id="en" value="en" selected>English</option>
<option id="fr" value="fr">Français</option>
<option id="de" value="de">Deutsch</option>
<option id="it" value="it">Italiano</option>
<option id="es" value="es">Español</option>
</select>
</form>
</div>
<!-- end language switcher -->
</div>
<!-- end container -->
</body>
</html>