We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var flashHeight = $('.flash_message').css("height");
Should be
var flashHeight = $('.flash_message').innerHeight();
I've also changed the bulk of the js to -
var fm = $('.flash_message'); if ( fm.length>0 ) { // Grab height of Flash Message fm.each( function() { var flashHeight = $(this).innerHeight(); // Calculate closed position of flash message // Negate height, parse to integer, add CSS shadow height var closePos = "-" + (parseInt(flashHeight) + boxShadowOffset) + "px"; // On Document load, slide down flashes then slide up after delay of 3 seconds $(this).animate({ marginTop: 0 }).delay(delayTime).animate({ marginTop: closePos }); // Dissmiss Flash Messages $('#flash_close').click(function(){ $(this).stop(); //Stop Animation $(this).animate({ marginTop: closePos }); // Slide up }); } ); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
var flashHeight = $('.flash_message').css("height");
Should be
var flashHeight = $('.flash_message').innerHeight();
I've also changed the bulk of the js to -
The text was updated successfully, but these errors were encountered: