﻿"use strict";

var footer = {

    init: function () {
        base.subscribe('resize', footer.resize);
    },

    resize: function () {
        var b = $('.footer .bar').css({ padding: '' }).html('|');
        var s = $('.footer .stack');
        for (var a = 0; a < s.length - 1; a++) {
            if (Math.round($(s[a]).offset().top) < Math.round($(s[a + 1]).offset().top)) {
                $(b[a]).css({ padding: 0 }).html('<br />');
            }
        }
    }
};

$(footer.init);
 