Skip to content

Instantly share code, notes, and snippets.

View Lyonsclay's full-sized avatar
🎯
Focusing

Lyonsclay Lyonsclay

🎯
Focusing
View GitHub Profile
@Lyonsclay
Lyonsclay / carousel.js
Created November 8, 2013 02:35 — forked from ksolo/carousel.js
Image Carousel
@Lyonsclay
Lyonsclay / form-validator.js
Last active December 27, 2015 17:19 — forked from ksolo/form-validator.js
Form Validation
// shorthand for $(document).ready();
$(function(){
//Your code...
$("form").on("submit", function(event){
event.preventDefault();
var email = $('form input[name="email"]').val()
var password = $('form input[name="password"]').val()
var email_format = /.+@.+\..+/
var one_digit = /\d+/
var one_cap = /[A-Z]+/
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
// DRIVER CODE: Do **NOT** change anything below this point. Your task is to implement code above to make this work.
//------------------------------------------------------------------------------------------------------------------

Instructions:

  1. Download this application skeleton.
  2. Convert the app to use AJAX.
  3. Add any files you changed to your gist and submit your code.