| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <!-- | 3 <!-- |
| 4 | 4 |
| 5 Copyright (c) 2015 The Chromium Authors. All rights reserved. | 5 Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 6 Use of this source code is governed by a BSD-style license that can be | 6 Use of this source code is governed by a BSD-style license that can be |
| 7 found in the LICENSE file. | 7 found in the LICENSE file. |
| 8 | 8 |
| 9 --> | 9 --> |
| 10 <head> | 10 <head> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 function xhrAndOpenHello(e) { | 36 function xhrAndOpenHello(e) { |
| 37 xmlhttp.onreadystatechange = xhrOnReadyStateChange; | 37 xmlhttp.onreadystatechange = xhrOnReadyStateChange; |
| 38 xmlhttp.open("GET", 'hello.html' , true); | 38 xmlhttp.open("GET", 'hello.html' , true); |
| 39 xmlhttp.send(); | 39 xmlhttp.send(); |
| 40 | 40 |
| 41 e.preventDefault(); | 41 e.preventDefault(); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 function setup() { | 44 function setup() { |
| 45 first.ontouchstart = xhrAndOpenHello; | 45 first.ontouchend = xhrAndOpenHello; |
| 46 }; | 46 }; |
| 47 </script> | 47 </script> |
| 48 </head> | 48 </head> |
| 49 <body onload='setup();'> | 49 <body onload='setup();'> |
| 50 <div id='first'></div> | 50 <div id='first'></div> |
| 51 </body> | 51 </body> |
| 52 </html> | 52 </html> |
| OLD | NEW |