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:
Timo Tijhof
2014-10-09 06:55:24 +02:00
parent 89d64b7e93
commit e6ba739b1b
8 changed files with 67 additions and 67 deletions

View File

@@ -1,27 +1,27 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8"/>
<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"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=320">
<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, Pau Giner"/>
<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"/>
<link href="../css/jquery.uls.mobile.css" rel="stylesheet"/>
<!-- <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, Pau Giner">
<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">
<link href="../css/jquery.uls.mobile.css" rel="stylesheet">
<!-- demo -->
<link href="resources/demo.css" rel="stylesheet"/>
<link href="resources/demo.css" rel="stylesheet">
<!-- 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 -->
<script src="../src/jquery.uls.data.js"></script>
<script src="../src/jquery.uls.data.utils.js"></script>
@@ -40,9 +40,10 @@
} );
$( '.uls-trigger' ).click( function () {
//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' ).addClass( 'uls-mobile' );
$( '.uls-menu' ).css( 'left', '2.5%' )
$( '.uls-menu' )
.removeClass( 'uls-wide' )
.addClass( 'uls-mobile' )
.css( 'left', '2.5%' );
});
} );
</script>