| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <title>Title: 0</title> | 2 <title>Title: 0</title> |
| 3 <style> | 3 <style> |
| 4 | 4 |
| 5 .large { | 5 .large { |
| 6 width: 300px; | 6 width: 300px; |
| 7 height: 100px; | 7 height: 100px; |
| 8 background-color: red; | 8 background-color: red; |
| 9 margin: 300px; | 9 margin: 300px; |
| 10 } | 10 } |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 function uninstall_touch_handler() { | 56 function uninstall_touch_handler() { |
| 57 document.removeEventListener('touchstart', touch_start_handler); | 57 document.removeEventListener('touchstart', touch_start_handler); |
| 58 } | 58 } |
| 59 | 59 |
| 60 function use_replace_state() { | 60 function use_replace_state() { |
| 61 window.history.replaceState({}, 'foo'); | 61 window.history.replaceState({}, 'foo'); |
| 62 } | 62 } |
| 63 | 63 |
| 64 function use_push_state() { | 64 function use_push_state() { |
| 65 window.history.pushState({}, 'foo2'); | 65 window.history.pushState({}, 'foo2', 'newpath'); |
| 66 } | 66 } |
| 67 | 67 |
| 68 onload = function() { | 68 onload = function() { |
| 69 window.onhashchange = function() { | 69 window.onhashchange = function() { |
| 70 document.title = "Title: " + location.hash; | 70 document.title = "Title: " + location.hash; |
| 71 } | 71 } |
| 72 } | 72 } |
| 73 | 73 |
| 74 </script> | 74 </script> |
| 75 | 75 |
| 76 </html> | 76 </html> |
| OLD | NEW |