Compare commits

...

2 Commits

Author SHA1 Message Date
Benjamin Keen
0af74ffcc3 Update README.md 2014-08-29 07:16:41 -07:00
QuintinS
ca30d770e5 Named the initialising function.
Given the plugin’s function the name $.crs(), so it can now be called
on demand.
2014-08-29 12:15:40 +02:00
2 changed files with 399 additions and 394 deletions

View File

@ -82,12 +82,12 @@ If you want to edit the source code, go right ahead (pull requests welcome, of c
is found in the `/source` folder. To re-generate the minified version, just run the Grunt task. In case you're not is found in the `/source` folder. To re-generate the minified version, just run the Grunt task. In case you're not
familiar with Grunt, here's how you get that hooked up. familiar with Grunt, here's how you get that hooked up.
1. Install [Node](http://nodejs.org) on your computer. 1. Install [Node](http://nodejs.org).
2. Clone this repository to your local computer. 2. Clone this repository to your local computer.
3. In the command line, navigate to to the root of the cloned repo (i.e. the folder with this README file in it). 3. In the command line, navigate to the root of the cloned repo (i.e. the folder with this README file in it).
4. Type `npm install` to download all necessary require modules. 4. Type `npm install` to download all the necessary modules.
5. Type `npm install -g grunt-cli` to install the Grunt command line tool to run properly. 5. Type `npm install -g grunt-cli` to install the Grunt command line tool to run properly.
6. Type `grunt` 6. In the country-region-selector folder type `grunt` to run the Grunt command.
That will then re-generate the minified files in your ./source folder. That will then re-generate the minified files in your ./source folder.

View File

@ -6,7 +6,10 @@
* @url https://github.com/benkeen/country-region-dropdowns * @url https://github.com/benkeen/country-region-dropdowns
* @licence MIT * @licence MIT
*/ */
(function() { (function($) {
$.crs = function() {
"use strict"; "use strict";
var _countryClass = "crs-country"; var _countryClass = "crs-country";
@ -412,4 +415,6 @@
// when the page has loaded, run our init function // when the page has loaded, run our init function
_contentLoaded(window, _init); _contentLoaded(window, _init);
}
})(); })();