6 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
Ben Keen
0c49dba088 delete old file 2014-04-27 20:15:34 -07:00
Ben Keen
b4471306cf Update for bower 2014-04-27 20:15:28 -07:00
Ben Keen
9e59806f38 version update / added to bower 2014-04-24 22:54:25 -07:00
Ben Keen
f0ed253b30 bower update 2014-04-24 22:44:11 -07:00
5 changed files with 411 additions and 403 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

@@ -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"
] ]
} }

View File

@@ -1,5 +0,0 @@
<html>
<body>
<script src="source/crs.js"></script>
</body>
</html>

View File

@@ -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": {

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);
}
})(); })();