-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from NYPD/feature-remove-zepto
Removed ritsu-zepto and related code Closes #15
- Loading branch information
Showing
11 changed files
with
110 additions
and
617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
# ritsu.js | ||
HTML form validation | ||
HTML form validation and utilities. | ||
|
||
## What is this? | ||
A dumb and simple little HTML form validator. It relies heavily on HTML classes to make it very simple to validate input fields. | ||
|
||
## Why? | ||
This all started as a need to easily validate my own forms without being able to use someone else's validation plug-in. The result was a mini validation library that has worked pretty well for my projects. | ||
This all started as a need to easily validate my own forms fields without being able to use someone else's validation plug-in. The result was a mini validation library that has worked pretty well for my projects. | ||
|
||
Perhaps someone else will find this useful. | ||
|
||
## Which? | ||
The ritsu.js will assume you are using jQuery in your projects. Works with jQuery 1.7.2 + and I think should work with jQuery 1.6 as well. | ||
## Dependencies? | ||
ritsu.js requires jQuery `v1.2.3` or greater to be included in your project. It also will try to with jQuery-compatible API's like [Zepto.js](http://zeptojs.com/). | ||
|
||
The ritsu-zepto.js will use the [Zepto.js](http://zeptojs.com/) JavaScript library as substitution for jQuery if you do not have that in your project. Keep in mind the Zepto.js [supported browsers.](http://zeptojs.com/#browsers) | ||
|
||
Ritsu.js uses [Bootstrap ](http://getbootstrap.com/) default styling class names. If Bootstrap is not being used in your project, include the ritsu.min.css / ritsu.css file in your page or copy the styles in there. Feel free to adapt your own styles. | ||
As far as styling is concerned, ritsu.js uses [Bootstrap](http://getbootstrap.com/) default styling class names. If Bootstrap is not being used in your project, include the ritsu.min.css / ritsu.css file in your page. Feel free to adapt your own styles if you want by implementing the CSS styles used in ritsu.js. | ||
|
||
## Documentation | ||
Read the [wiki.](https://github.com/NYPD/ritsu.js/wiki) | ||
|
||
## Anything else? | ||
Down the road I am planning to remove the jQuery dependency and go with a pure JavaScript approach. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
.has-error{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.error-label{color:#a94442} | ||
/* ritsu.js v0.1.1 | ||
* Created 2016-09-29 | ||
* Licensed under the MIT license | ||
* Source code can be found here: https://github.com/NYPD/ritsu | ||
*/ | ||
|
||
.has-error{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.error-label{color:#a94442} |
Oops, something went wrong.