Skip to content

Instantly share code, notes, and snippets.

@eccentricpixel
Created July 17, 2013 22:50
Show Gist options
  • Save eccentricpixel/6025243 to your computer and use it in GitHub Desktop.
Save eccentricpixel/6025243 to your computer and use it in GitHub Desktop.
jQuery(document).ready(function ($) {
resizeDiv();
function resizeDiv() {
vpw = $(window).width();
vph = $(window).height();
$('#homeFeatured').css({'height': vph + 'px'});
$('#featuredScrollTo').css({'height': vph + 'px'});
callback: resizeSlides();
}
function resizeSlides() {
vpw = $(window).width();
vph = $(window).height();
$('#homeFeatured .orbit-container').delay(1000).css({'height': vph + 'px', 'display':'block'});
}
window.onresize = function(event) {
resizeDiv();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment