Line 31: | Line 31: | ||
$(document).ready( function(){ | $(document).ready( function(){ | ||
var whight = $(window).height(); | var whight = $(window).height(); | ||
− | var dhight = $( | + | var dhight = $("#footer").offset().bottom; |
var bre = "<br>" | var bre = "<br>" | ||
while (whight > dhight) { | while (whight > dhight) { | ||
document.getElementById("foot-comp").innerHTML = bre | document.getElementById("foot-comp").innerHTML = bre | ||
− | var | + | var dhight = $("#footer").offset().bottom; |
− | + | ||
bre = bre.concat("<br>") | bre = bre.concat("<br>") | ||
console.log(bre) | console.log(bre) |
Revision as of 17:15, 17 October 2016