Created
July 17, 2013 22:50
-
-
Save eccentricpixel/6025243 to your computer and use it in GitHub Desktop.
This file contains 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
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