Permalink
Browse files

added sticky footer

  • Loading branch information...
yimingzhaomath committed May 20, 2018
1 parent 5e4d37c commit 71e2fe24b910b497aba8f682181fa20d87ca80cd
Showing with 16 additions and 0 deletions.
  1. +16 −0 assets/js/_main.js
@@ -3,7 +3,23 @@
========================================================================== */
$(document).ready(function(){
// Sticky footer
var bumpIt = function() {
$("body").css("margin-bottom", $(".page__footer").outerHeight(true));
},
didResize = false;
bumpIt();
$(window).resize(function() {
didResize = true;
});
setInterval(function() {
if (didResize) {
didResize = false;
bumpIt();
}
}, 250);
// FitVids init
$("#main").fitVids();

0 comments on commit 71e2fe2

Please sign in to comment.