MCPcopy Index your code
hub / github.com/jabbany/CommentCoreLibrary / onResize

Function onResize

demo/scripting/sandbox.js:44–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 xhr.send();
43 }
44 function onResize(){
45 $("player").style.perspective = $("player").offsetWidth * Math.tan(40 * Math.PI/180) / 2 + "px";
46 $("player").webkitPerspective = $("player").offsetWidth * Math.tan(40 * Math.PI/180) / 2 + "px";
47 window.sandbox.send("Update:DimensionUpdate", window.sandbox.getContext().getDimensions());
48 }
49 $("debug-basic").addEventListener("click", function(){
50 fetchFile("../../test/scripting/manzoku.biliscript");
51 });

Callers 1

sandbox.jsFile · 0.85

Calls 3

getDimensionsMethod · 0.80
$Function · 0.70
sendMethod · 0.45

Tested by

no test coverage detected