Permalink
Browse files

Refining date formatting

  • Loading branch information...
1 parent ea06304 commit 8969571e8239efc01276cdaa604202d8bf273d8e @jaymorrow committed Mar 17, 2013
Showing with 123 additions and 76 deletions.
  1. +2 −2 Gruntfile.js
  2. +2 −2 package.json
  3. +21 −21 src/index.html
  4. +98 −51 src/js/validatr.js
View
@@ -106,11 +106,11 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jshint');
- grunt.loadNpmTasks('grunt-contrib-qunit');
+ //grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
// Default task.
- grunt.registerTask('default', ['watch']);
+ grunt.registerTask('default', ['jshint']);
grunt.registerTask('release', ['jshint', 'qunit', 'clean', 'concat', 'uglify', 'copy']);
};
View
@@ -2,10 +2,10 @@
"name": "Validatr",
"version": "0.0.0-ignored",
"engines": {
- "node": ">= 0.8.0"
+ "node": ">= 0.10.0"
},
"devDependencies": {
- "grunt": "~0.4.0",
+ "grunt": "~0.4.1",
"grunt-contrib-clean": "~0.4.0",
"grunt-contrib-concat": "~0.1.2",
"grunt-contrib-jshint": "~0.1.1",
View
@@ -33,78 +33,78 @@
<form id="colorform" action="./">
<div class="field"><label for="color">Color</label><input type="color" id="color" name="color" required data-message="Add a color already"></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
- <div class="field"><label for="date">Date</label><input type="date" id="date" value="2013-03-19" min="2013-03-19" max="2015-03-21" step="2" name="date" required></div>
+ <div class="field"><label for="date">Date</label><input type="date" id="date" value="2013-03-19" min="2013-03-19" max="2013-03-21" step="2" name="date" required></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
<div class="field"><label for="datetime">Datetime</label><input type="datetime" id="datetime" name="datetime" required></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
<div class="field"><label for="datetime-local">Datetime-local</label><input type="datetime-local" id="datetime-local" name="datetime-local" required></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
<div class="field"><label for="month">Month</label><input type="month" id="month" name="month" required></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
<div class="field"><label for="email">Email</label><input type="email" id="email" name="email" multiple required></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
- <div class="field"><label for="number">Number</label><input type="number" id='number' step=0 name="number" required></div>
+ <div class="field"><label for="number">Number</label><input type="number" id='number' step=0 min=5 max=7 name="number" required></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
<div class="field"><label for="range">Range</label><input type="range" id="range" step="2" min="1" max="10" name="range" required></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
<div class="field"><label for="tel">Tel</label><input type="tel" id="tel" name="tel" required></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
<div class="field"><label for="text">Text</label><input type="text" id="text" name="text" required></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
- <div class="field"><label for="time">Time</label><input type="time" id="time" name="time" required></div>
+ <div class="field"><label for="time">Time</label><input type="time" id="time" name="time" required></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
- <div class="field"><label for="url">Url</label><input type="url" id="url" name="url" required></div>
+ <div class="field"><label for="url">Url</label><input type="url" id="url" name="url" required></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
- <div class="field"><label for="week">Week</label><input type="week" id="week" name="week" required></div>
+ <div class="field"><label for="week">Week</label><input type="week" id="week" name="week" required></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
<div class="field"><label for="checkbox">Checkbox</label><input type="checkbox" id="checkbox" name="checkbox" value="1" required></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
<div class="field"><label for="select">Select</label><select required name="select" id="select"><option value="">Empty</option><option value="1">First</option><option value="2">Second</option></select></div>
<div class="field"><label for="selectmultiple">Select Multiple</label><select required name="selectmultiple" id="selectmultiple" multiple><option value="1">First</option><option value="2">Second</option></select></div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
<form action="./">
<div class="field">
@@ -116,7 +116,7 @@
<label for="radio3">Radio 3</label></div>
</div>
<input type="reset">
- <input type="submit" value="Submit">
+ <input type="submit" value="Submit">
</form>
</body>
</html>
Oops, something went wrong.

0 comments on commit 8969571

Please sign in to comment.