瀏覽代碼

Googlebot crawler doesn't see the content revealed by wow.js

https://github.com/matthieua/WOW/issues/196
tags/v1.0.0
hawkeye116477 6 年之前
父節點
當前提交
5a6221f50c
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 9 行新增1 行删除
  1. 9
    1
      assets/js/script.js

+ 9
- 1
assets/js/script.js 查看文件

@@ -164,7 +164,15 @@ var wow = new WOW({
offset: 100, // distance to the element when triggering the animation (default is 0)
mobile: false // trigger animations on mobile devices (default is true)
});
wow.init();

//https://github.com/matthieua/WOW/issues/196#issuecomment-348734401
var scrolled = false;
$(window).on('scroll', function() {
if (!scrolled) {
scrolled = true;
wow.init();
}
})

/* ========================================================================= */
/* Google Map Customization

Loading…
取消
儲存