function layoutFooter() {
    // We need the image to be loaded.
    var logo = $('logo-img');
    var logoImg = logo.querySelector('img');
    if (!logoImg.complete) {
      logoImg.onload = layoutFooter;
      return;
    }

    var menu = $('footer-menu-container');
    if (menu.clientWidth > logoImg.width)
      logo.style.WebkitFlex = '0 1 ' + menu.clientWidth + 'px';
    else
      menu.style.WebkitFlex = '0 1 ' + logoImg.width + 'px';
  }
/**
   * Layout the footer so that the nav dots stay centered.
   */
Layout the footer so that the nav dots stay centered.
Layout the footer so that the nav dots stay centered .
function layoutFooter() {
    var logo = $('logo-img');
    var logoImg = logo.querySelector('img');
    if (!logoImg.complete) {
      logoImg.onload = layoutFooter;
      return;
    }
    var menu = $('footer-menu-container');
    if (menu.clientWidth > logoImg.width)
      logo.style.WebkitFlex = '0 1 ' + menu.clientWidth + 'px';
    else
      menu.style.WebkitFlex = '0 1 ' + logoImg.width + 'px';
  }
function layoutFooter ( ) { var logo = $ ( 'logo-img' ) ; var logoImg = logo . querySelector ( 'img' ) ; if ( ! logoImg . complete ) { logoImg . onload = layoutFooter ; return ; } var menu = $ ( 'footer-menu-container' ) ; if ( menu . clientWidth > logoImg . width ) logo . style . WebkitFlex = '0 1 ' + menu . clientWidth + 'px' ; else menu . style . WebkitFlex = '0 1 ' + logoImg . width + 'px' ; }
Layout the footer so that the nav dots stay centered.
Layout the footer so that the nav dots stay centered .
// We need the image to be loaded.