diff --git a/js/cs.js b/js/cs.js index 9009aaf..d86a012 100644 --- a/js/cs.js +++ b/js/cs.js @@ -235,11 +235,11 @@ function stickyFoot(wrapperHeight){ } } } -$(document).load(function (){ - stickyFoot(pageH); +$(document).ready(function(){ + stickyFoot(wrapperH); }); -$(document).resize(function() { - stickyFoot(pageH); +$(window).resize(function() { + stickyFoot(wrapperH); }); $('.panel').on('shown.bs.collapse', function (e) {