82 lines
2.4 KiB
HTML
82 lines
2.4 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<meta charset="utf-8"/>
|
||
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
|
||
|
|
<meta name="viewport" id="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||
|
|
<link rel="stylesheet" href="styles.css" />
|
||
|
|
<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
|
||
|
|
<title>jQuery xtr.js plugin Demo</title>
|
||
|
|
<style>
|
||
|
|
body { font-family:'Roboto'; background-color:#333; color:#fafafa;}
|
||
|
|
#wrapper {
|
||
|
|
margin: 150px auto;
|
||
|
|
width: 400px;
|
||
|
|
text-align: center
|
||
|
|
}
|
||
|
|
#wrapper div {
|
||
|
|
color:#fff;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div id="jquery-script-menu">
|
||
|
|
<div class="jquery-script-center">
|
||
|
|
<ul>
|
||
|
|
<li><a href="http://www.jqueryscript.net/text/jQuery-Client-side-Translation-xtr/">Download This Plugin</a></li>
|
||
|
|
<li><a href="http://www.jqueryscript.net/">Back To jQueryScript.Net</a></li>
|
||
|
|
</ul>
|
||
|
|
<div class="jquery-script-ads"><script type="text/javascript"><!--
|
||
|
|
google_ad_client = "ca-pub-2783044520727903";
|
||
|
|
/* jQuery_demo */
|
||
|
|
google_ad_slot = "2780937993";
|
||
|
|
google_ad_width = 728;
|
||
|
|
google_ad_height = 90;
|
||
|
|
//-->
|
||
|
|
</script>
|
||
|
|
<script type="text/javascript"
|
||
|
|
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
||
|
|
</script></div>
|
||
|
|
<div class="jquery-script-clear"></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div id="wrapper">
|
||
|
|
<h1>jQuery xtr.js plugin Demo</h1>
|
||
|
|
<div xtr>Welcome</div>
|
||
|
|
<div xtr>Hello</div>
|
||
|
|
<div data-xtr-key="bye">Good Bye</div>
|
||
|
|
|
||
|
|
<label for="lang">Current language</label>
|
||
|
|
<select name="lang" id="lang">
|
||
|
|
<option value="reset">EN</option>
|
||
|
|
<option value="de">DE</option>
|
||
|
|
<option value="fr">FR</option>
|
||
|
|
<option value="es">ES</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
|
||
|
|
<script src="../jquery.xtr.min.js"></script>
|
||
|
|
<script>
|
||
|
|
$('body').xtr({t: data});
|
||
|
|
|
||
|
|
$('#lang').on('change', function() {
|
||
|
|
$('body').data('plugin_xtr').lang($(this).val());
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
<script type="text/javascript">
|
||
|
|
|
||
|
|
var _gaq = _gaq || [];
|
||
|
|
_gaq.push(['_setAccount', 'UA-36251023-1']);
|
||
|
|
_gaq.push(['_setDomainName', 'jqueryscript.net']);
|
||
|
|
_gaq.push(['_trackPageview']);
|
||
|
|
|
||
|
|
(function() {
|
||
|
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||
|
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||
|
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||
|
|
})();
|
||
|
|
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|