Update eslint and other devDependencies (#391)

* Update eslint and other devDependencies

* Lint JS in examples/ using eslint-plugin-html (#392)
This commit is contained in:
Ed S
2021-05-14 10:48:37 +01:00
committed by GitHub
parent ab929b81d8
commit 7a6e559fe5
17 changed files with 10287 additions and 12114 deletions

View File

@@ -29,20 +29,21 @@
<script src="../src/jquery.uls.languagefilter.js"></script>
<script src="../src/jquery.uls.core.js"></script>
<script>
$( document ).ready( function () {
$( function () {
$( '.uls-trigger' ).uls( {
onSelect: function( language ) {
onSelect: function ( language ) {
var languageName = $.uls.data.getAutonym( language );
$( '.uls-trigger' ).text( languageName );
},
quickList: ['en', 'hi', 'he', 'ml', 'ta', 'fr'] //FIXME
quickList: [ 'en', 'hi', 'he', 'ml', 'ta', 'fr' ] // FIXME
} );
$( '.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-trigger' ).on( 'click', function () {
// Hacks I need to make afterwards. ULS API should be probably modified
// to allow optional classes and not force position:
$( '.uls-menu' )
.addClass( 'uls-mobile' )
.css( 'left', '2.5%' );
});
} );
} );
</script>
</head>