byplay-inview
v1.0.1
Published
byplayの広告タグInview判定部分のリポジトリ
Downloads
4
Readme
Inview
ByPlay adtagのInview判定用のモジュールです。
module.exports(elm) ⇒ Number ⏏
playerのDOMがwindowの%Inviewになっているかを検出します(縦領域のみの判定)。
Kind: Exported function
Returns: Number - windowに対して、表示されている領域を百分率で返す。
Throws:
- String 引数がElement Object以外の場合、エラーメッセージを出力します。
| Param | Type | Description | | --- | --- | --- | | elm | object | 判定する Element object を指定します。 |