examples: Consistent markup and no protocol-relative urls
To ensure these work locally over the file:/// protocol, simply use https instead. Straighten out inconsistencies in the markup (closing slash). Made to match the test/index.html file. Also: * index-mobile.html: Re-use jQuery object instead of executing the same query three times. * test: Remove unused qunit-fixture element.
This commit is contained in:
@@ -2,15 +2,15 @@
|
|||||||
<html lang="en" dir="ltr">
|
<html lang="en" dir="ltr">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8">
|
||||||
<title>Universal Language Selector</title>
|
<title>Universal Language Selector</title>
|
||||||
<link href="../css/jquery.uls.css" rel="stylesheet" />
|
<link href="../css/jquery.uls.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.grid.css" rel="stylesheet" />
|
<link href="../css/jquery.uls.grid.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.lcd.css" rel="stylesheet" />
|
<link href="../css/jquery.uls.lcd.css" rel="stylesheet">
|
||||||
<!-- demo -->
|
<!-- demo -->
|
||||||
<link href="resources/demo.css" rel="stylesheet" />
|
<link href="resources/demo.css" rel="stylesheet">
|
||||||
<!-- Libs -->
|
<!-- Libs -->
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||||
<!-- Source -->
|
<!-- Source -->
|
||||||
<script src="../src/jquery.uls.data.js"></script>
|
<script src="../src/jquery.uls.data.js"></script>
|
||||||
<script src="../src/jquery.uls.data.utils.js"></script>
|
<script src="../src/jquery.uls.data.utils.js"></script>
|
||||||
|
|||||||
@@ -1,26 +1,26 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" dir="ltr">
|
<html lang="en" dir="ltr">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
||||||
Remove this if you use the .htaccess
|
Remove this if you use the .htaccess
|
||||||
-->
|
-->
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
|
|
||||||
<title>Universal Language Selector</title>
|
<title>Universal Language Selector</title>
|
||||||
<!-- <link rel="shortcut icon" href="/favicon.ico"/> -->
|
<!-- <link rel="shortcut icon" href="/favicon.ico"> -->
|
||||||
<!-- <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> -->
|
<!-- <link rel="apple-touch-icon" href="/apple-touch-icon.png"> -->
|
||||||
<!-- <meta name="description" content=""/> -->
|
<!-- <meta name="description" content=""> -->
|
||||||
<meta name="author" content="Santhosh Thottingal"/>
|
<meta name="author" content="Santhosh Thottingal">
|
||||||
<link href="../css/jquery.uls.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.grid.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.grid.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.lcd.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.lcd.css" rel="stylesheet">
|
||||||
<!-- demo -->
|
<!-- demo -->
|
||||||
<link href="resources/demo.css" rel="stylesheet"/>
|
<link href="resources/demo.css" rel="stylesheet">
|
||||||
<!-- Libs -->
|
<!-- Libs -->
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||||
<!-- Source -->
|
<!-- Source -->
|
||||||
<script src="../src/jquery.uls.data.js"></script>
|
<script src="../src/jquery.uls.data.js"></script>
|
||||||
<script src="../src/jquery.uls.data.utils.js"></script>
|
<script src="../src/jquery.uls.data.utils.js"></script>
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
<script src="../src/jquery.uls.languagefilter.js"></script>
|
<script src="../src/jquery.uls.languagefilter.js"></script>
|
||||||
<script src="../src/jquery.uls.regionfilter.js"></script>
|
<script src="../src/jquery.uls.regionfilter.js"></script>
|
||||||
<script src="../src/jquery.uls.core.js"></script>
|
<script src="../src/jquery.uls.core.js"></script>
|
||||||
<style type="text/css">
|
<style>
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Autonym';
|
font-family: 'Autonym';
|
||||||
src: url('resources/font/Autonym.eot');
|
src: url('resources/font/Autonym.eot');
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" dir="ltr">
|
<html lang="en" dir="ltr">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8">
|
||||||
|
|
||||||
<title>Universal Language Selector</title>
|
<title>Universal Language Selector</title>
|
||||||
<link href="../css/jquery.uls.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.grid.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.grid.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.lcd.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.lcd.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.compact.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.compact.css" rel="stylesheet">
|
||||||
<!-- demo -->
|
<!-- demo -->
|
||||||
<link href="resources/demo.css" rel="stylesheet"/>
|
<link href="resources/demo.css" rel="stylesheet">
|
||||||
<!-- Libs -->
|
<!-- Libs -->
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||||
<!-- Source -->
|
<!-- Source -->
|
||||||
<script src="../src/jquery.uls.data.js"></script>
|
<script src="../src/jquery.uls.data.js"></script>
|
||||||
<script src="../src/jquery.uls.data.utils.js"></script>
|
<script src="../src/jquery.uls.data.utils.js"></script>
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" dir="ltr">
|
<html lang="en" dir="ltr">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8">
|
||||||
<title>Universal Language Selector</title>
|
<title>Universal Language Selector</title>
|
||||||
<meta name="author" content="Santhosh Thottingal"/>
|
<meta name="author" content="Santhosh Thottingal">
|
||||||
<link href="../css/jquery.uls.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.grid.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.grid.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.lcd.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.lcd.css" rel="stylesheet">
|
||||||
<!-- demo -->
|
<!-- demo -->
|
||||||
<link href="resources/demo.css" rel="stylesheet"/>
|
<link href="resources/demo.css" rel="stylesheet">
|
||||||
<!-- Libs -->
|
<!-- Libs -->
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||||
<!-- Source -->
|
<!-- Source -->
|
||||||
<script src="../src/jquery.uls.data.js"></script>
|
<script src="../src/jquery.uls.data.js"></script>
|
||||||
<script src="../src/jquery.uls.data.utils.js"></script>
|
<script src="../src/jquery.uls.data.utils.js"></script>
|
||||||
|
|||||||
@@ -1,27 +1,27 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" dir="ltr">
|
<html lang="en" dir="ltr">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
||||||
Remove this if you use the .htaccess
|
Remove this if you use the .htaccess
|
||||||
-->
|
-->
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
<meta name="viewport" content="width=320">
|
<meta name="viewport" content="width=320">
|
||||||
<title>Universal Language Selector</title>
|
<title>Universal Language Selector</title>
|
||||||
<!-- <link rel="shortcut icon" href="/favicon.ico"/> -->
|
<!-- <link rel="shortcut icon" href="/favicon.ico"> -->
|
||||||
<!-- <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> -->
|
<!-- <link rel="apple-touch-icon" href="/apple-touch-icon.png"> -->
|
||||||
<!-- <meta name="description" content=""/> -->
|
<!-- <meta name="description" content=""> -->
|
||||||
<meta name="author" content="Santhosh Thottingal, Pau Giner"/>
|
<meta name="author" content="Santhosh Thottingal, Pau Giner">
|
||||||
<link href="../css/jquery.uls.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.grid.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.grid.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.lcd.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.lcd.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.mobile.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.mobile.css" rel="stylesheet">
|
||||||
<!-- demo -->
|
<!-- demo -->
|
||||||
<link href="resources/demo.css" rel="stylesheet"/>
|
<link href="resources/demo.css" rel="stylesheet">
|
||||||
<!-- Libs -->
|
<!-- Libs -->
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||||
<!-- Source -->
|
<!-- Source -->
|
||||||
<script src="../src/jquery.uls.data.js"></script>
|
<script src="../src/jquery.uls.data.js"></script>
|
||||||
<script src="../src/jquery.uls.data.utils.js"></script>
|
<script src="../src/jquery.uls.data.utils.js"></script>
|
||||||
@@ -40,9 +40,10 @@
|
|||||||
} );
|
} );
|
||||||
$( '.uls-trigger' ).click( function () {
|
$( '.uls-trigger' ).click( function () {
|
||||||
//Hacks I need to make afterwards. ULS API should be probably modified to allow optional classes and not force position:
|
//Hacks I need to make afterwards. ULS API should be probably modified to allow optional classes and not force position:
|
||||||
$( '.uls-menu' ).removeClass( 'uls-wide' );
|
$( '.uls-menu' )
|
||||||
$( '.uls-menu' ).addClass( 'uls-mobile' );
|
.removeClass( 'uls-wide' )
|
||||||
$( '.uls-menu' ).css( 'left', '2.5%' )
|
.addClass( 'uls-mobile' )
|
||||||
|
.css( 'left', '2.5%' );
|
||||||
});
|
});
|
||||||
} );
|
} );
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,26 +1,26 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" dir="ltr">
|
<html lang="en" dir="ltr">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
||||||
Remove this if you use the .htaccess
|
Remove this if you use the .htaccess
|
||||||
-->
|
-->
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
|
|
||||||
<title>Universal Language Selector</title>
|
<title>Universal Language Selector</title>
|
||||||
<!-- <link rel="shortcut icon" href="/favicon.ico"/> -->
|
<!-- <link rel="shortcut icon" href="/favicon.ico"> -->
|
||||||
<!-- <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> -->
|
<!-- <link rel="apple-touch-icon" href="/apple-touch-icon.png"> -->
|
||||||
<!-- <meta name="description" content=""/> -->
|
<!-- <meta name="description" content=""> -->
|
||||||
<meta name="author" content="Santhosh Thottingal"/>
|
<meta name="author" content="Santhosh Thottingal">
|
||||||
<link href="../css/jquery.uls.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.grid.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.grid.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.lcd.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.lcd.css" rel="stylesheet">
|
||||||
<!-- demo -->
|
<!-- demo -->
|
||||||
<link href="resources/demo.css" rel="stylesheet"/>
|
<link href="resources/demo.css" rel="stylesheet">
|
||||||
<!-- Libs -->
|
<!-- Libs -->
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||||
<!-- Source -->
|
<!-- Source -->
|
||||||
<script src="../src/jquery.uls.data.js"></script>
|
<script src="../src/jquery.uls.data.js"></script>
|
||||||
<script src="../src/jquery.uls.data.utils.js"></script>
|
<script src="../src/jquery.uls.data.utils.js"></script>
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" dir="ltr">
|
<html lang="en" dir="ltr">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8">
|
||||||
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
|
|
||||||
<title>Universal Language Selector</title>
|
<title>Universal Language Selector</title>
|
||||||
<meta name="author" content="Santhosh Thottingal"/>
|
<meta name="author" content="Santhosh Thottingal">
|
||||||
<link href="../css/jquery.uls.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.grid.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.grid.css" rel="stylesheet">
|
||||||
<link href="../css/jquery.uls.lcd.css" rel="stylesheet"/>
|
<link href="../css/jquery.uls.lcd.css" rel="stylesheet">
|
||||||
<!-- demo -->
|
<!-- demo -->
|
||||||
<link href="resources/demo.css" rel="stylesheet"/>
|
<link href="resources/demo.css" rel="stylesheet">
|
||||||
<!-- Libs -->
|
<!-- Libs -->
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" ></script>
|
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||||
<!-- Source -->
|
<!-- Source -->
|
||||||
<script src="../src/jquery.uls.data.js"></script>
|
<script src="../src/jquery.uls.data.js"></script>
|
||||||
<script src="../src/jquery.uls.data.utils.js"></script>
|
<script src="../src/jquery.uls.data.utils.js"></script>
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="qunit"></div>
|
<div id="qunit"></div>
|
||||||
<div id="qunit-fixture"></div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user