【问题标题】:Galleria: Won't render without a window intervention?Galleria:没有窗口干预就不会渲染?
【发布时间】:2016-10-07 05:58:47
【问题描述】:

Galleria 的新手 - 并尝试评估它的角度系统,从谷歌电子表格中提取其图像数据..

http://codepen.io/kylane/pen/amqWPw

function readytogo() {
  window.alert('This is just a prototype');
  Galleria.configure({
    transition: 'fade',
    imageCrop: true,
    fullscreenDoubleTap: true,
    responsive: true,
    trueFullscreen: true,
    autoplay: 10000,
    lightbox: true,
    swipe: 'auto',
    showCounter: false,
    showInfo: true
  });
  Galleria.run('#galleria');
  $('#galleria').fadeIn('slow');
}

window.onload = readytogo;

没有 window.alert,画廊将无法呈现 - 我不确定为什么。

任何建议将不胜感激!

【问题讨论】:

    标签: galleria


    【解决方案1】:

    原来,我并没有在渲染之前等待 google sheet JSON 加载...

    ...我的错。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-08-06
      • 2014-11-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多