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
$('textarea, input:text').bind('focus click', function(){ | |
if (this.value == this.defaultValue) { | |
this.value = ''; | |
} | |
}).bind('blur', function(){ | |
if (this.value == '') { | |
this.value = this.defaultValue; | |
} | |
}); |
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
$('#topScroll').hide(); | |
$(window).scroll(function(){ | |
if ( document.body.scrollHeight - $(this).scrollTop() <= $(this).height() ){ | |
$('#topScroll').show(); | |
} else { | |
$('#topScroll').hide(); | |
} | |
}); |
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
/* | |
* Property prefix hacks | |
*/ | |
/* IE6 only - any combination of these characters */ | |
_ - £ ¬ ¦ | |
/* IE6/7 only - any combination of these characters */ |
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
http://code.jquery.com/jquery-latest.js |
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
$(document).ready(function(){ | |
$('.img-responsive').each(function() { | |
var maxWidth = 180; // Max width for the image | |
var maxHeight = 3000; // Max height for the image | |
var ratio = 0; // Used for aspect ratio | |
var width = $(this).width(); // Current image width | |
var height = $(this).height(); // Current image height | |
// Check if the current width is larger than the max |
NewerOlder