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
$('#submit').click(function() { | |
var info = { | |
"name": $('#name').val(), | |
"age": $('#age').val(), | |
"bio": { | |
"short": $('#bio').val(), | |
"long": $('#bioLong').val() | |
} | |
} |
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 classes = ['1', '2', '3']; | |
$('').removeClass(); | |
$('').addClass(function(){ return classes[Math.floor(Math.random() * classes.length)]; }); |
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
$(function () { | |
var $el = $(''), | |
originalTop = $el.offset().top; | |
function sticky(){ | |
if ($(this).scrollTop() > originalTop && $(window).width() > 1024){ | |
$el.css({'position': 'fixed', 'top': '20px'}); | |
} else { | |
$el.css({'position': 'absolute', 'top': '0px' }); | |
} |
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 startanimate = $(''), | |
i = 0; | |
setTimeout( function() { | |
(function() { | |
$(startanimate[i++] || []).fadeIn('slow', arguments.callee); | |
})(); | |
}, 500 ); |
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
bgSize: function(){ | |
var $background = $('#background'), | |
$bgimage = $background.find('.bgimage'), | |
$loading = $background.find('.loading'); | |
var loadPage = function() { | |
$loading.show();//show loading status image | |
$.when(showBGImage()).done(function(){ | |
//hide the loading status image |
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
/* Author: | |
*/ | |
PROJECTNAME = { | |
common: { | |
init: function(){ | |
} |
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
<script type="text/javascript" src="https://getfirebug.com/firebug-lite-beta.js"></script> | |