This file contains hidden or 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
.inline-block { | |
display: -moz-inline-box; | |
display:inline-block; | |
zoom:1; | |
*display:inline; | |
vertical-align:top; | |
} |
This file contains hidden or 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
setTimeout(function() { | |
alert('Hey morgan its Brad! This happened 3 seconds after you called this function :)') | |
}, 3000) |
This file contains hidden or 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
var img = new Image(); | |
$(img).load(function () { | |
setTimeout(function() { | |
$('section').addClass('full'); | |
$('span').addClass('fix'); |
This file contains hidden or 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
$("#contact-form").submit(function(){ | |
var self = $(this), | |
emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/, | |
email = $('#email'), | |
message = $('#message'); | |
if( !email.val() || !emailReg.test(email.val()) ) { | |
email.parent().addClass('invalid'); | |
} else if ( !message.val() ) { | |
message.parent().addClass('invalid'); | |
email.parent().removeClass('invalid'); |
OlderNewer