1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 </head> 5 <script> 6 screen.orientation.onchange = function() { 7 document.location.hash = '#' + screen.orientation.angle; 8 }; 9 10 document.location.hash = '#ready'; 11 </script> 12 <body> 13 <div>Starting...</div> 14 </body> 15 </html> 16