OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <!-- | 3 <!-- |
4 | 4 |
5 Copyright 2016 The Chromium Authors. All rights reserved. | 5 Copyright 2016 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> |
11 <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"> | 11 <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"> |
12 <style> | 12 <style> |
13 #first { | 13 #first { |
14 position: absolute; | 14 position: absolute; |
15 width: 100%; | 15 width: 100%; |
16 height: 100%; | 16 height: 100%; |
17 top: 0px; | 17 top: 0px; |
18 left: 0px; | 18 left: 0px; |
19 background-color: green; | 19 background-color: green; |
20 -webkit-transform: translate3d(0, 0, 0); | 20 -webkit-transform: translate3d(0, 0, 0); |
21 } | 21 } |
22 </style> | 22 </style> |
23 <script> | 23 <script> |
24 function openIFrameContainerPage(e) { | 24 function openIFrameContainerPage(e) { |
25 window.location = 'iframe_container_page.html'; | 25 window.location = 'iframe_container_page.html'; |
26 e.preventDefault(); | 26 e.preventDefault(); |
27 }; | 27 }; |
28 | 28 |
29 function setup() { | 29 function setup() { |
30 first.ontouchstart = openIFrameContainerPage; | 30 first.ontouchend = openIFrameContainerPage; |
31 first.onclick = openIFrameContainerPage; | 31 first.onclick = openIFrameContainerPage; |
32 }; | 32 }; |
33 </script> | 33 </script> |
34 </head> | 34 </head> |
35 <body onload='setup();'> | 35 <body onload='setup();'> |
36 <div id='first'></div> | 36 <div id='first'></div> |
37 </body> | 37 </body> |
38 </html> | 38 </html> |
OLD | NEW |