r19141: add a reasonable subset of the qooxdoo runtime environment, and example appli...
[samba.git] / swat / apps / qooxdoo-examples / test / CanvasLayout_5.html
1 <html>
2 <head>
3   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4   <title>qooxdoo &raquo; Demo</title>
5   <link type="text/css" rel="stylesheet" href="../../resource/css/layout.css"/>
6   <!--[if IE]>
7   <link type="text/css" rel="stylesheet" href="../../resource/css/layout_ie.css"/>
8   <![endif]-->
9   <script type="text/javascript" src="../../script/qx.js"></script>
10 </head>
11 <body>
12   <script type="text/javascript" src="../../script/layout.js"></script>
13
14   <div id="demoDescription">
15     <p>This test is using multiple div-Elements</p>
16   <p>Added to the document using the "innerHTML" property.</p>
17   </div>
18
19   <script type="text/javascript">
20   qx.core.Init.getInstance().defineMain(function()
21   {
22     var d = qx.ui.core.ClientDocument.getInstance();
23     var w;
24     var v;
25     var h = [];
26
27     for (var i=1; i<=20; i++)
28     {
29       for (var j=1; j<=20; j++)
30       {
31         h.push("<div style='width:12px;height:12px;position:absolute;");
32         h.push("left:" + (20+(12*i)) + "px;");
33         h.push("top:" + (48+(12*j)) + "px;");
34
35         v = Math.round(20+(i*j)/2);
36         h.push("background-color:" + "rgb(" + v + "," + v + "," + v + ")");
37         h.push("' class='qx_ui_core_Widget_QxWidgetCore' id='Auto" + i + "|" + j + "'></div>");
38       };
39     };
40
41     document.body.innerHTML += h.join("");
42   });
43   </script>
44 </body>
45 </html>