| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <title>orientation test</title> | 2 <title>orientation test</title> |
| 3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 <script type="text/javascript"> | 6 <script type="text/javascript"> |
| 7 | |
| 8 var testnumber = 1; | 7 var testnumber = 1; |
| 9 | 8 |
| 10 window.addEventListener('orientationchange', function() { | 9 window.addEventListener('orientationchange', function() { |
| 11 var elt = document.getElementById('orientation'); | 10 var elt = document.getElementById('orientation'); |
| 12 elt.innerHTML = 'orientation change ' + testnumber; | 11 elt.innerHTML = 'orientation change ' + testnumber; |
| 13 testnumber++; | 12 testnumber++; |
| 14 }); | 13 }); |
| 15 | 14 |
| 16 </script> | 15 </script> |
| 17 <div id='orientation'> | 16 <div id='orientation'> |
| 18 </div> | 17 </div> |
| 19 </body> | 18 </body> |
| 20 </html> | 19 </html> |
| OLD | NEW |