Created
April 8, 2019 11:26
-
-
Save ambrosiora/d959c30e51540926831aa16ce96af24b 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
function scroll(speed) { | |
$('html').animate({ scrollTop: $(document).height() - $(window).height() }, speed, function() { | |
window.print(); | |
}); | |
} | |
$(document).ready(function(){ | |
scroll(2000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment