环球免税店:在没有窗户干预的情况下赢得奖励?

时间:2016-10-07 05:58:48

标签: galleria

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,画廊不会渲染 - 我不知道为什么。

非常感谢任何建议!

1 个答案:

答案 0 :(得分:0)

原来,我没有等待谷歌表格JSON在渲染之前加载......

......我的坏。

相关问题