{"size": 1071, "ext": "js", "max_stars_repo_path": "asset/bootstrap/js/script.js", "max_stars_repo_name": "asepmulyadi011/SistemRumahSakit", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "asset/bootstrap/js/script.js", "max_issues_repo_name": "asepmulyadi011/SistemRumahSakit", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "asset/bootstrap/js/script.js", "max_forks_repo_name": "asepmulyadi011/SistemRumahSakit", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.2826086957, "max_line_length": 66, "alphanum_fraction": 0.6106442577}
//
//	jQuery Validate example script
//
//	Prepared by David Cochran
//
//	Free for your use -- No warranties, no guarantees!
//

$(document).ready(function(){

	// Validate
	// http://bassistance.de/jquery-plugins/jquery-plugin-validation/
	// http://docs.jquery.com/Plugins/Validation/
	// http://docs.jquery.com/Plugins/Validation/validate#toptions

		$('form').validate({
				rules: {
					username: {
						minlength: 4,
						maxlength: 30,
						required: true
					},
					password: {
						minlength: 4,
						maxlength: 50,
						required: true
					}
				},
				highlight: function(element) {
					$(element).closest('.form-group').addClass('has-error');
				},
				unhighlight: function(element) {
					$(element).closest('.form-group').removeClass('has-error');
				},
				errorElement: 'span',
				errorClass: 'help-block',
				errorPlacement: function(error, element) {
					if(element.parent('.input-group').length) {
						error.insertAfter(element.parent());
					} else {
						error.insertAfter(element);
					}
				}
			});

}); // end document.ready