Move the autonym font to example instead of making part of jquery.uls
Change-Id: I1fa119ef3a89f34e1fde18712d4e267d174869c8
This commit is contained in:
67
examples/index-autonymfont.html
Normal file
67
examples/index-autonymfont.html
Normal file
@@ -0,0 +1,67 @@
|
||||
s<!DOCTYPE html>
|
||||
<html lang="en" dir="ltr">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
|
||||
<!--
|
||||
Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
||||
Remove this if you use the .htaccess
|
||||
-->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||||
|
||||
<title>Universal Language Selector</title>
|
||||
<!-- <link rel="shortcut icon" href="/favicon.ico"/> -->
|
||||
<!-- <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> -->
|
||||
<!-- <meta name="description" content=""/> -->
|
||||
<meta name="author" content="Santhosh Thottingal"/>
|
||||
<link href="../css/jquery.uls.css" rel="stylesheet"/>
|
||||
<link href="../css/jquery.uls.grid.css" rel="stylesheet"/>
|
||||
<link href="../css/jquery.uls.lcd.css" rel="stylesheet"/>
|
||||
<!-- demo -->
|
||||
<link href="resources/demo.css" rel="stylesheet"/>
|
||||
<!-- Libs -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" ></script>
|
||||
<!-- Source -->
|
||||
<script src="../src/jquery.uls.data.js"></script>
|
||||
<script src="../src/jquery.uls.data.utils.js"></script>
|
||||
<script src="../src/jquery.uls.lcd.js"></script>
|
||||
<script src="../src/jquery.uls.languagefilter.js"></script>
|
||||
<script src="../src/jquery.uls.regionfilter.js"></script>
|
||||
<script src="../src/jquery.uls.core.js"></script>
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'Autonym';
|
||||
src: url('resources/font/Autonym.eot');
|
||||
src: local('Autonym'),
|
||||
url('resources/font/Autonym.woff') format('woff'),
|
||||
url('resources/font/Autonym.ttf') format('truetype');
|
||||
font-style: normal;
|
||||
}
|
||||
.autonym {
|
||||
font-family: 'Autonym', sans-serif;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$( document ).ready( function() {
|
||||
$( '.uls-trigger' ).uls( {
|
||||
onSelect : function( language ) {
|
||||
var languageName = $.uls.data.getAutonym( language );
|
||||
$( '.uls-trigger' ).text( languageName );
|
||||
},
|
||||
quickList: ['en', 'hi', 'he', 'ml', 'ta', 'fr'] //FIXME
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="navbar navbar-fixed-top">
|
||||
<span class="active uls-trigger">Select Language</span>
|
||||
<h1>Universal Language Selector</h1>
|
||||
<p>
|
||||
Demonstration of jQuery plugin
|
||||
</p>
|
||||
</div>
|
||||
<div class="container"></div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
examples/resources/font/Autonym.eot
Normal file
BIN
examples/resources/font/Autonym.eot
Normal file
Binary file not shown.
BIN
examples/resources/font/Autonym.ttf
Normal file
BIN
examples/resources/font/Autonym.ttf
Normal file
Binary file not shown.
BIN
examples/resources/font/Autonym.woff
Normal file
BIN
examples/resources/font/Autonym.woff
Normal file
Binary file not shown.
Reference in New Issue
Block a user