text: document.write('<body style="margin:0;">\n'),document.write("<script src='https://cdnjs.cloudflare.com/ajax/libs/matter-js/0.15.0/matter.min.js'><\/script>\n"),document.write("<canvas style='position:absolute;left:0;bottom:0;'></canvas>\n"),document.write("<script>\n"),document.write("function createRect(x,y,w,h) {\n"),document.write("setTimeout(function(){\n"),document.write('if(w=="def"&&h=="def") {\n'),document.write("   bx=Bodies.rectangle(x,y,100,50)\n"),document.write("//elems.push(new Bodies.rectangle(x,y,w,h))\n"),document.write("World.add(engine.world, new Bodies.rectangle(x,y,100,50))\n"),document.write("//setInterval(function(){qqq.innerHTML=elems[0].position.y})\n"),document.write("}\n"),document.write("else {\n"),document.write("bx=Bodies.rectangle(x,y,w,h)\n"),document.write("World.add(engine.world, new Bodies.rectangle(x,y,w,h))\n"),document.write("}\n"),document.write("},10)\n"),document.write("  }\n"),document.write("var Engine = Matter.Engine,\n"),document.write("    Render = Matter.Render,\n"),document.write("World = Matter.World,\n"),document.write("    Bodies = Matter.Bodies;\n"),document.write("var engine = Engine.create();\n"),document.write("var render = Render.create({\n"),document.write("element: document.body,\n"),document.write("                engine: engine,\n"),document.write("options: {\n"),document.write("width: window.innerWidth,\n"),document.write("height: window.innerHeight,\n"),document.write("wireframes: false\n"),document.write("}\n"),document.write("        });\n"),document.write("Engine.run(engine);\n"),document.write("Render.run(render);\n"),document.write("function createStaticRect(x,y,w,h) {\n"),document.write("setTimeout(function(){\n"),document.write('       if(w=="def"&&h=="def") {\n'),document.write("bx=Bodies.rectangle(x,y,100,50, { isStatic: true })\n"),document.write("//elems.push(new Bodies.rectangle(x,y,w,h))\n"),document.write("   World.add(engine.world, new Bodies.rectangle(x,y,100,50, { isStatic: true }))\n"),document.write("   //setInterval(function(){qqq.innerHTML=elems[0].position.y})\n"),document.write("          }\n"),document.write("else {\n"),document.write("bx=Bodies.rectangle(x,y,w,h, { isStatic: true })\n"),document.write("World.add(engine.world, new Bodies.rectangle(x,y,w,h, { isStatic: true }))\n"),document.write("}\n"),document.write("},10)\n"),document.write("  }\n"),document.write("  function setWireframe(bool) {\n"),document.write("render.options.wireframes=bool\n"),document.write("  }\n"),document.write("<\/script>");
  