| OLD | NEW |
| (Empty) |
| 1 <html manifest="html5/test.appcache"> | |
| 2 <head> | |
| 3 <title>HTML5</title> | |
| 4 </head> | |
| 5 <body> | |
| 6 | |
| 7 <h3>Geolocation Test</h3> | |
| 8 <div id="status">Location unknown</div> | |
| 9 <script language="javascript" type="text/javascript" src="html5/geolocation.js">
</script> | |
| 10 | |
| 11 <h3>Web SQL Database Test</h3> | |
| 12 <div id="logs"></div> | |
| 13 <script language="javascript" type="text/javascript" src="html5/database.js"></s
cript> | |
| 14 | |
| 15 <h3>Application Cache Test</h3> | |
| 16 <div id="images"> | |
| 17 <p>Current network status: <span id="state"></span></p> | |
| 18 <script> | |
| 19 var state = document.getElementById('state') | |
| 20 setInterval(function () { | |
| 21 state.className = navigator.onLine ? 'online' : 'offline'; | |
| 22 state.innerHTML = navigator.onLine ? 'online' : 'offline'; | |
| 23 }, 250); | |
| 24 </script> | |
| 25 <img id="red" src="html5/red.jpg"> | |
| 26 <img id="blue" src="html5/blue.jpg"> | |
| 27 <img id="green" src="html5/green.jpg"> | |
| 28 <img id="yellow" src="html5/yellow.jpg"> | |
| 29 </div> | |
| 30 | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |