var functionOne = function(){};
vs
// shorthand for $(document).ready(); | |
$(function(){ | |
$("form").on("submit", function(e){ | |
e.preventDefault(); | |
$("#errors").empty(); | |
var errors = [] | |
var email = $("form input:first").val(); | |
var password = $("form input:last").val(); |
// Shorthand for $(document).ready(); | |
$(function(){ | |
// Your code goes here... | |
}); |
// Shorthand for $(document).ready(); | |
$(function(){ | |
$("#previous_frame").on("click", function(e){ | |
e.preventDefault(); | |
var li = $(".frames > li"); | |
if (li.css("right") === "720px") { | |
li.animate({right: '0px'}) | |
} else { | |
li.animate({right: '+=360'}) | |
} |
//------------------------------------------------------------------------------------------------------------------ | |
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here. | |
//------------------------------------------------------------------------------------------------------------------ | |
var bi = [] | |
var qu = [] | |
var Animal = function(name, legs) { | |
this.name = name, | |
this.legs = legs |
<!doctype html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css"> | |
<link rel="stylesheet" href="main.css"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900"> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css"> | |
</head> |
/* Here is your chance to take over Socrates! | |
Spend 10 minutes on each of the following hacks to the Socrates website. | |
Enter them in the console to make sure it works and then save | |
your results here. | |
Choose a new pair for each. Add your names to the section you complete. | |
*/ |
<?xml version="1.0" encoding="utf-8" ?> | |
<!-- SQL XML created by WWW SQL Designer, http://code.google.com/p/wwwsqldesigner/ --> | |
<!-- Active URL: https://socrates.devbootcamp.com/sql --> | |
<sql> | |
<datatypes db="mysql"> | |
<group label="Numeric" color="rgb(238,238,170)"> | |
<type label="Integer" length="0" sql="INTEGER" re="INT" quote=""/> | |
<type label="Decimal" length="1" sql="DECIMAL" re="DEC" quote=""/> | |
<type label="Single precision" length="0" sql="FLOAT" quote=""/> | |
<type label="Double precision" length="0" sql="DOUBLE" re="DOUBLE" quote=""/> |