Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | <html> |
michael@0 | 2 | <head> |
michael@0 | 3 | <script type="text/javascript"> |
michael@0 | 4 | var w_inc = 1; |
michael@0 | 5 | var h_inc = 1; |
michael@0 | 6 | function resizeContainer(id) { |
michael@0 | 7 | var e = document.getElementById(id); |
michael@0 | 8 | var w = e.clientWidth; |
michael@0 | 9 | if (w > 800 && w_inc==1) |
michael@0 | 10 | w_inc=-1; |
michael@0 | 11 | if (w < 100 && w_inc==-1) |
michael@0 | 12 | w_inc=1; |
michael@0 | 13 | e.style.width=(w+w_inc)+'px'; |
michael@0 | 14 | |
michael@0 | 15 | var h = e.clientHeight; |
michael@0 | 16 | if (h > 800 && h_inc==1) |
michael@0 | 17 | h_inc=-1; |
michael@0 | 18 | if (h < 100 && h_inc==-1) |
michael@0 | 19 | h_inc=1; |
michael@0 | 20 | e.style.height=(h+h_inc)+'px'; |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | function boom() { |
michael@0 | 24 | var table = document.getElementById('table'); |
michael@0 | 25 | var newNode = document.createElement('caption'); |
michael@0 | 26 | table.appendChild(newNode); |
michael@0 | 27 | resizeContainer('test'); |
michael@0 | 28 | |
michael@0 | 29 | newNode = document.createElement('caption'); |
michael@0 | 30 | table.appendChild(newNode); |
michael@0 | 31 | } |
michael@0 | 32 | |
michael@0 | 33 | </script> |
michael@0 | 34 | <title></title> |
michael@0 | 35 | </head> |
michael@0 | 36 | |
michael@0 | 37 | |
michael@0 | 38 | <body onload="boom()"> |
michael@0 | 39 | |
michael@0 | 40 | <div id="test"> |
michael@0 | 41 | <table id="table" width="100%" height="100%"><tbody><tr><td></td></tr></tbody></table> |
michael@0 | 42 | </div> |
michael@0 | 43 | |
michael@0 | 44 | </body> |
michael@0 | 45 | </html> |