├── .travis.yml ├── .gitignore ├── .github ├── ISSUE_TEMPLATE.md └── CONTRIBUTING.md ├── package.json ├── LICENSE.md ├── src ├── docs │ ├── _templates │ │ ├── _header.html │ │ └── _footer.html │ └── index.md └── js │ ├── _validityState.polyfill.js │ └── validate.js ├── static └── js │ ├── validityState-polyfill.min.js │ ├── validate.min.js │ ├── validityState-polyfill.js │ └── validate.js ├── dist ├── validate.min.js ├── validate.polyfills.min.js ├── validate.js └── validate.polyfills.js ├── docs ├── dist │ ├── validate.min.js │ ├── validate.polyfills.min.js │ ├── validate.js │ └── validate.polyfills.js └── index.html ├── gulpfile.js └── README.md /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "7" 4 | before_script: 5 | - npm install -g gulp 6 | script: gulp -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Node 2 | node_modules 3 | test/results 4 | test/coverage 5 | 6 | ## OS X 7 | .DS_Store 8 | ._* 9 | .Spotlight-V100 10 | .Trashes -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | **Test case:** https://jsfiddle.net/cferdinandi/yhqepa3x/ -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Bugs, Questions, and Feature Requests 2 | 3 | Report bugs, ask questions, and request features using [GitHub Issues](https://github.com/cferdinandi/smooth-scroll/issues). 4 | 5 | **Before posting, do a search to make sure your issue or question hasn't already been reported or discussed.** If no matching issue exists, go ahead and create one. 6 | 7 | **Please be sure to include all of the following:** 8 | 9 | 1. A clear, descriptive title (ie. "A bug" is not a good title). 10 | 2. [A reduced test case.](https://css-tricks.com/reduced-test-cases/) 11 | - Clearly demonstrate the bug or issue. 12 | - Include the bare minimum HTML, CSS, and JavaScript required to demonstrate the bug. 13 | - A link to your production site is **not** a reduced test case. 14 | - You can create one by [forking this JSFiddle](https://jsfiddle.net/cferdinandi/yhqepa3x/). 15 | 3. The browser and OS that you're using. 16 | 17 | Duplicates and issues without a reduced test case may be closed without comment. -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "validate", 3 | "version": "2.2.0", 4 | "description": "A lightweight form validation script that augments native HTML5 form validation elements and attributes.", 5 | "main": "./dist/validate.polyfills.min.js", 6 | "author": { 7 | "name": "Chris Ferdinandi", 8 | "url": "http://gomakethings.com" 9 | }, 10 | "license": "MIT", 11 | "repository": { 12 | "type": "git", 13 | "url": "http://github.com/cferdinandi/validate" 14 | }, 15 | "devDependencies": { 16 | "gulp": "^3.9.1", 17 | "node-fs": "^0.1.7", 18 | "del": "^2.2.2", 19 | "lazypipe": "^1.0.1", 20 | "gulp-plumber": "^1.1.0", 21 | "gulp-flatten": "^0.3.1", 22 | "gulp-tap": "^0.1.3", 23 | "gulp-rename": "^1.2.2", 24 | "gulp-header": "^1.8.8", 25 | "gulp-footer": "^1.0.5", 26 | "gulp-watch": "^4.3.11", 27 | "gulp-livereload": "^3.8.1", 28 | "jshint": "^2.9.4", 29 | "gulp-jshint": "^2.0.4", 30 | "jshint-stylish": "^2.2.1", 31 | "gulp-concat": "^2.6.1", 32 | "gulp-uglify": "^2.1.2", 33 | "gulp-optimize-js": "^1.1.0", 34 | "gulp-markdown": "^1.2.0", 35 | "gulp-file-include": "^0.14.0" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | # The MIT License (MIT) 2 | 3 | Copyright (c) Go Make Things, LLC 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /src/docs/_templates/_header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 |