diff --git a/node_modules/normalize.css/CHANGELOG.md b/node_modules/normalize.css/CHANGELOG.md new file mode 100644 index 0000000..aaa7a8f --- /dev/null +++ b/node_modules/normalize.css/CHANGELOG.md @@ -0,0 +1,86 @@ +=== HEAD + +=== 3.0.3 (March 30, 2015) + +* Remove unnecessary vendor prefixes. +* Add `main` property. + +=== 3.0.2 (October 4, 2014) + +* Only alter `background-color` of links in IE 10. +* Add `menu` element to HTML5 display definitions. + +=== 3.0.1 (March 27, 2014) + +* Add package.json for npm support. + +=== 3.0.0 (January 28, 2014) + +=== 3.0.0-rc.1 (January 26, 2014) + +* Explicit tests for each normalization. +* Fix i18n for `q` element. +* Fix `pre` text formatting and overflow. +* Fix vertical alignment of `progress`. +* Address `button` overflow in IE 8/9/10. +* Revert `textarea` alignment modification. +* Fix number input button cursor in Chrome on OS X. +* Remove `a:focus` outline normalization. +* Fix `figure` margin normalization. +* Normalize `optgroup`. +* Remove default table cell padding. +* Set correct display for `progress` in IE 8/9. +* Fix `font` and `color` inheritance for forms. + +=== 2.1.3 (August 26, 2013) + +* Fix component.json. +* Remove the gray background color from active links in IE 10. + +=== 2.1.2 (May 11, 2013) + +* Revert root `color` and `background` normalizations. + +=== 2.1.1 (April 8, 2013) + +* Normalize root `color` and `background` to counter the effects of system + color schemes. + +=== 2.1.0 (January 21, 2013) + +* Normalize `text-transform` for `button` and `select`. +* Normalize `h1` margin when within HTML5 sectioning elements. +* Normalize `hr` element. +* Remove unnecessary `pre` styles. +* Add `main` element to HTML5 display definitions. +* Fix cursor style for disabled button `input`. + +=== 2.0.1 (August 20, 2012) + +* Remove stray IE 6/7 `inline-block` hack from HTML5 display settings. + +=== 2.0.0 (August 19, 2012) + +* Remove legacy browser form normalizations. +* Remove all list normalizations. +* Add `quotes` normalizations. +* Remove all heading normalizations except `h1` font size. +* Form elements automatically inherit `font-family` from ancestor. +* Drop support for IE 6/7, Firefox < 4, and Safari < 5. + +=== 1.0.1 (August 19, 2012) + +* Adjust `small` font size normalization. + +=== 1.0.0 (August 14, 2012) + +(Only the notable changes since public release) + +* Add MIT License. +* Hide `audio` elements without controls in iOS 5 (#69). +* Normalize heading margins and font size. +* Move font-family normalization from `body` to `html` (#62). +* Remove scrollbar normalization (#64 #65). +* Remove excess padding from checkbox and radio inputs in IE 7 (#42). +* Add IE9 correction for SVG overflow (#16). +* Add fix for legend not inheriting color in IE 6/7/8/9. diff --git a/node_modules/normalize.css/LICENSE.md b/node_modules/normalize.css/LICENSE.md new file mode 100644 index 0000000..c6bcc9b --- /dev/null +++ b/node_modules/normalize.css/LICENSE.md @@ -0,0 +1,19 @@ +Copyright (c) Nicolas Gallagher and Jonathan Neal + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/normalize.css/README.md b/node_modules/normalize.css/README.md index 5518f30..cccbf96 100644 --- a/node_modules/normalize.css/README.md +++ b/node_modules/normalize.css/README.md @@ -14,6 +14,7 @@ normalizing. * [npm](http://npmjs.org/): `npm install --save normalize.css` * [Component(1)](https://github.com/component/component/): `component install necolas/normalize.css` * [Bower](http://bower.io/): `bower install --save normalize.css` +* [cdnjs](https://cdnjs.com/libraries/normalize) * [Download](http://necolas.github.io/normalize.css/latest/normalize.css). No other styles should come before Normalize.css. @@ -33,7 +34,7 @@ library code. * Google Chrome (latest) * Mozilla Firefox (latest) -* Mozilla Firefox 4 +* Mozilla Firefox ESR * Opera (latest) * Apple Safari 6+ * Internet Explorer 8+ diff --git a/node_modules/normalize.css/normalize.css b/node_modules/normalize.css/normalize.css index 458eea1..5e5e3c8 100644 --- a/node_modules/normalize.css/normalize.css +++ b/node_modules/normalize.css/normalize.css @@ -1,9 +1,9 @@ -/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ +/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ /** * 1. Set default font family to sans-serif. - * 2. Prevent iOS text size adjust after orientation change, without disabling - * user zoom. + * 2. Prevent iOS and IE text size adjust after device orientation change, + * without disabling user zoom. */ html { @@ -71,7 +71,7 @@ audio:not([controls]) { /** * Address `[hidden]` styling not present in IE 8/9/10. - * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. + * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22. */ [hidden], @@ -91,7 +91,8 @@ a { } /** - * Improve readability when focused and also mouse hovered in all browsers. + * Improve readability of focused elements when they are also in an + * active/hover state. */ a:active, @@ -209,7 +210,6 @@ figure { */ hr { - -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } @@ -350,15 +350,12 @@ input[type="number"]::-webkit-outer-spin-button { /** * 1. Address `appearance` set to `searchfield` in Safari and Chrome. - * 2. Address `box-sizing` set to `border-box` in Safari and Chrome - * (include `-moz` to future-proof). + * 2. Address `box-sizing` set to `border-box` in Safari and Chrome. */ input[type="search"] { -webkit-appearance: textfield; /* 1 */ - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; /* 2 */ - box-sizing: content-box; + box-sizing: content-box; /* 2 */ } /** diff --git a/node_modules/normalize.css/package.json b/node_modules/normalize.css/package.json index 122f627..1376806 100644 --- a/node_modules/normalize.css/package.json +++ b/node_modules/normalize.css/package.json @@ -1,9 +1,10 @@ { "name": "normalize.css", - "version": "3.0.2", + "version": "3.0.3", "description": "Normalize.css as a node packaged module", "style": "normalize.css", "files": [ + "LICENSE.md", "normalize.css" ], "homepage": "http://necolas.github.io/normalize.css", @@ -11,19 +12,39 @@ "type": "git", "url": "git://github.com/necolas/normalize.css.git" }, + "main": "normalize.css", "author": { "name": "Nicolas Gallagher" }, "license": "MIT", - "readme": "# normalize.css v3\n\nNormalize.css is a customisable CSS file that makes browsers render all\nelements more consistently and in line with modern standards.\n\nThe project relies on researching the differences between default browser\nstyles in order to precisely target only the styles that need or benefit from\nnormalizing.\n\n[View the test file](http://necolas.github.io/normalize.css/latest/test.html)\n\n## Install\n\n* [npm](http://npmjs.org/): `npm install --save normalize.css`\n* [Component(1)](https://github.com/component/component/): `component install necolas/normalize.css`\n* [Bower](http://bower.io/): `bower install --save normalize.css`\n* [Download](http://necolas.github.io/normalize.css/latest/normalize.css).\n\nNo other styles should come before Normalize.css.\n\nIt is recommended that you include the `normalize.css` file as untouched\nlibrary code.\n\n## What does it do?\n\n* Preserves useful defaults, unlike many CSS resets.\n* Normalizes styles for a wide range of elements.\n* Corrects bugs and common browser inconsistencies.\n* Improves usability with subtle improvements.\n* Explains what code does using detailed comments.\n\n## Browser support\n\n* Google Chrome (latest)\n* Mozilla Firefox (latest)\n* Mozilla Firefox 4\n* Opera (latest)\n* Apple Safari 6+\n* Internet Explorer 8+\n\n[Normalize.css v1 provides legacy browser\nsupport](https://github.com/necolas/normalize.css/tree/v1) (IE 6+, Safari 4+),\nbut is no longer actively developed.\n\n## Extended details\n\nAdditional detail and explanation of the esoteric parts of normalize.css.\n\n#### `pre, code, kbd, samp`\n\nThe `font-family: monospace, monospace` hack fixes the inheritance and scaling\nof font-size for preformated text. The duplication of `monospace` is\nintentional. [Source](http://en.wikipedia.org/wiki/User:Davidgothberg/Test59).\n\n#### `sub, sup`\n\nNormally, using `sub` or `sup` affects the line-box height of text in all\nbrowsers. [Source](http://gist.github.com/413930).\n\n#### `svg:not(:root)`\n\nAdding `overflow: hidden` fixes IE9's SVG rendering. Earlier versions of IE\ndon't support SVG, so we can safely use the `:not()` and `:root` selectors that\nmodern browsers use in the default UA stylesheets to apply this style. [SVG\nMailing List discussion](http://lists.w3.org/Archives/Public/public-svg-wg/2008JulSep/0339.html)\n\n#### `input[type=\"search\"]`\n\nThe search input is not fully stylable by default. In Chrome and Safari on\nOSX/iOS you can't control `font`, `padding`, `border`, or `background`. In\nChrome and Safari on Windows you can't control `border` properly. It will apply\n`border-width` but will only show a border color (which cannot be controlled)\nfor the outer 1px of that border. Applying `-webkit-appearance: textfield`\naddresses these issues without removing the benefits of search inputs (e.g.\nshowing past searches).\n\n#### `legend`\n\nAdding `border: 0` corrects an IE 8–11 bug where `color` (yes, `color`) is not\ninherited by `legend`.\n\n## Contributing\n\nPlease read the CONTRIBUTING.md\n\n## Acknowledgements\n\nNormalize.css is a project by [Nicolas Gallagher](https://github.com/necolas),\nco-created with [Jonathan Neal](https://github.com/jonathantneal).\n", - "readmeFilename": "README.md", + "gitHead": "2bdda84272650aedfb45d8abe11a6d177933a803", "bugs": { "url": "https://github.com/necolas/normalize.css/issues" }, - "_id": "normalize.css@3.0.2", + "_id": "normalize.css@3.0.3", + "scripts": {}, + "_shasum": "acc00262e235a2caa91363a2e5e3bfa4f8ad05c6", + "_from": "normalize.css@*", + "_npmVersion": "2.7.0", + "_nodeVersion": "0.10.35", + "_npmUser": { + "name": "necolas", + "email": "nicolasgallagher@gmail.com" + }, + "maintainers": [ + { + "name": "tjholowaychuk", + "email": "tj@vision-media.ca" + }, + { + "name": "necolas", + "email": "nicolasgallagher@gmail.com" + } + ], "dist": { - "shasum": "060310d24f5e0394f3a42672edb6e80956e8efd4" + "shasum": "acc00262e235a2caa91363a2e5e3bfa4f8ad05c6", + "tarball": "http://registry.npmjs.org/normalize.css/-/normalize.css-3.0.3.tgz" }, - "_from": "normalize.css@", - "_resolved": "https://registry.npmjs.org/normalize.css/-/normalize.css-3.0.2.tgz" + "directories": {}, + "_resolved": "https://registry.npmjs.org/normalize.css/-/normalize.css-3.0.3.tgz" } diff --git a/validator.js b/validator.js index 860dab4..16dd2ef 100644 --- a/validator.js +++ b/validator.js @@ -3,5 +3,39 @@ $(function(){ - //insert your code here + $(".errors li").hide(); + + $("form").on("submit", function(event){ + + // password needs to be 8 chars long + if ($("input[type=password]").val().length < 8) { + $(".errors li:nth-child(2)").show(); + } else { + $(".errors li:nth-child(2)").hide(); + }; + + // password needs to have a capital letter + if ($("input[type=password]").val().match(/[A-Z]/) == null) { + $(".errors li:nth-child(3)").show(); + } else { + $(".errors li:nth-child(3)").hide(); + }; + + // password needs to have digit in it + if ($("input[type=password]").val().match(/[0-9]/) == null) { + $(".errors li:nth-child(4)").show(); + } else { + $(".errors li:nth-child(4)").hide(); + }; + + // simple validation regex for email + if ($("input[type=text]").val().match(/\S+@\S+\.\S+/) == null) { + $(".errors li:nth-child(1)").show(); + } else { + $(".errors li:nth-child(1)").hide(); + }; + + + }); + });