MCPcopy 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
44function 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.jsFile · 0.85

Calls 2

callbackFunction · 0.50
logMethod · 0.45

Tested by

no test coverage detected