Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0af74ffcc3 | ||
|
|
ca30d770e5 | ||
|
|
0c49dba088 | ||
|
|
b4471306cf | ||
|
|
9e59806f38 | ||
|
|
f0ed253b30 |
@@ -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.
|
||||||
|
|
||||||
|
|||||||
14
bower.json
14
bower.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "country-region-selector",
|
"name": "country-region-selector",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"main": "source/crs.min.js",
|
"main": "source/crs.min.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"ignore": [
|
"ignore": [
|
||||||
@@ -8,12 +8,20 @@
|
|||||||
"*.md",
|
"*.md",
|
||||||
"gruntfile.js",
|
"gruntfile.js",
|
||||||
"LICENSE",
|
"LICENSE",
|
||||||
"package.json"
|
"package.json",
|
||||||
|
"bower.json"
|
||||||
],
|
],
|
||||||
"devDependencies": { },
|
"devDependencies": { },
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"country",
|
"country",
|
||||||
|
"countries",
|
||||||
"regions",
|
"regions",
|
||||||
"forms"
|
"states",
|
||||||
|
"provinces",
|
||||||
|
"counties",
|
||||||
|
"territories",
|
||||||
|
"forms",
|
||||||
|
"dropdowns",
|
||||||
|
"select boxes"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<html>
|
|
||||||
<body>
|
|
||||||
<script src="source/crs.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "country-region-dropdowns",
|
"name": "country-region-dropdowns",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"description": "A simple, configurable JS script that lets you add a country dropdown that automatically updates a corresponding region dropdown in your forms.",
|
"description": "A simple, configurable JS script that lets you add a country dropdown that automatically updates a corresponding region dropdown in your forms.",
|
||||||
"main": "example.html",
|
"main": "example.html",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
Reference in New Issue
Block a user