Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ mockVisible
Function
mockVisible
examples/mraid/mraid.js:44–49 ·
view source on GitHub ↗
(callback, ratio, time)
Source
from the content-addressed store, hash-verified
42
};
43
44
function
mockVisible(callback, ratio, time) {
45
window.setTimeout(() => {
46
console.log(
'fire new visbility change event after %s ms'
, time);
47
callback(ratio, visibleRect, null);
48
}, time);
49
}
Callers
1
mraid.js
File · 0.85
Calls
2
callback
Function · 0.50
log
Method · 0.45
Tested by
no test coverage detected