This removes inconsistencies with MediaWiki's Names.php's changes in the
past 8 months, where it comes to languages codes present in MediaWiki but
not in langdb, and inconsistencies in autonyms.
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.
* Sort jshintrc a-z and section it.
* Remove grunt.js from jshintignore (file no longer exists).
* Simplify jshint config by using globstar. The jshintignore
file still applies (to skip jquery.uls.data.js).
* Update jshint config to also validate Gruntfile.js
* Update listed dependency on 'grunt' and 'grunt-cli' to the
versions they currently expand to already. We don't know if
we're compatible with older versions. '^x.y' means, equal or
higher (within the same major release). Similar to '~x.y',
except that tilde tolerates older versions.
* Update grunt-contrib-jshint and grunt-contrib-qunit to their
latest versions.
* Remove obsolete jshintrc parsing hack, use built-in 'jshintrc'
option as of v0.8.0.
* Remove unused 'pgk' property in grunt config.
* Remove unused grunt-contrib-jasmine and grunt-contrib-copy
from devDependencies (unused as of ab9b01444f).
Protocol-relative urls don't work when using the file from the
file system directly in a browser (they require the file being
served from a http web server).
This is why the Grunt run has been broken since 426ccf0131, as
can be seen on https://travis-ci.org/wikimedia/jquery.uls/builds.
Follows-up 2ce74db801.
This is not a node.js project. There are no references to
node_modules/jquery in file paths anywhere, and also no usage
of "require('jquery')".
Currently it just delays 'npm install'.
This repository is mainly about client-side javascript, the version
of Node.js used for the build scripts doesn't really matter.
One of the dependencies in package.json uses the '^x.x' syntax in
its sub-dependencies and isn't supporteed on Node.js 0.8, which
is why the Travis CI build is currently erroring on the install step.
Callback function to be called when a language link is prepared
Can be used for custom decoration.
Arguments:
(a) the $language - the language link jQuery object
(b) languageCode
The function can do any styling, changing properites etc on the passed link.
See examples/decorator.html for example usage.
Change-Id: I5a67654440a07cf7dfac683e22dcb5000ded0bfe
* Maps removed from UI
* From no-results UI, removed the links to navigate by clicking region names
* Removed the $.fn.regionSelctor plugin, Retained the RegionSelector class
* Removed all related css for the removed UI parts
* Reduced the padding for main ULS title so that the top header takes less height
* And a dozen of related changes
Change-Id: I8ac89ebe380047ca267e5c7720c2eaa3da080e9d
Remove the spaces in the beginning of html template strings.
$( html ) require html to start with '<'
See https://bugzilla.wikimedia.org/show_bug.cgi?id=65400
Change-Id: I93eaf41390ab72fcae1b8d4015585bc4f82e6f8a
The border on top is white and therefore not visible. It's simply the wrong element hidden.
The border at the bottom was gray and visible. It looked like a misplaced 2px border.