Pascal Gloor 5年前
コミット
e780579deb
1個のファイルの変更3行の追加0行の削除
  1. 3
    0
      www/js/autodoc.js

+ 3
- 0
www/js/autodoc.js ファイルの表示

@@ -57,6 +57,9 @@ function isvisible(obj) {
var bottom_of_screen = $(window).scrollTop() + $(window).innerHeight();
var top_of_screen = $(window).scrollTop();

console.log("screen: " + top_of_screen + " " + bottom_of_screen);
console.log("elem: " + top_of_element + " " + bottom_of_element);

if (bottom_of_screen > top_of_element && top_of_screen < bottom_of_element) {
return true;
}

読み込み中…
キャンセル
保存