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;

没有窗口。警告,画廊不会渲染-我不知道为什么。

任何建议将不胜感激!

结果,我并没有在渲染之前等待google表单JSON加载…

…我的坏。

相关内容

最新更新