This provides support for adapting the ULs to small screens: * A mobile-specific CSS, that is only applied when the ULS uses .uls-mobile class, has been created (based on Foundation.css mobile rules + some specifics) to support mobile-specific classes. * The core HTML has been modified to include some clases that in case mobile CSS is enabled dictate which elements can behidden and the number of columns to use in the mobile grid (4-column based). * An index-mobile.html example has been set-up to illustrate the changes. Some of the changes required for a correct mobile experience are still done with JQuery modifications. Someone should probably update the ULS API to allow the inclusion of optional classes (such as uls-mobile) and overriding positioning parameters.
jQuery Universal Language Selector
Universal Language Selector
This is a Wikimedia Foundation Internationalization team project.
Quick start
git clone https://github.com/wikimedia/jquery.uls.git
Documentation
For documentation and examples please visit the wiki
How to build and test jQuery ULS
First, get a copy of the git repo by running:
git clone git://github.com/wikimedia/jquery.uls.git
Make sure you have grunt installed by testing:
grunt -version
If not, run:
npm install
To run tests locally, run grunt test. This will run the tests in PhantomJS.
You can also run the tests in a browser by navigating to the test/ directory, but first run grunt to install the submodules.
Coding style
Please follow jQuery coding guidelines
Versioning
For transparency and insight into the release cycle, and to upgrading easier, we use the Semantic Versioning guidelines as much as possible.
Releases will be numbered with the following format:
<major>.<minor>.<patch>
And constructed with the following guidelines:
- Breaking backward compatibility bumps the major (and resets the minor and patch)
- New additions without breaking backward compatibility bumps the minor (and resets the patch)
- Bug fixes and misc changes bumps the patch
For more information on SemVer, please visit http://semver.org/.

