| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html id="t"> | 2 <html id="t"> |
| 3 <head> | 3 <head> |
| 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 5 <title>Register your computer with Google</title> | 5 <title>Register your computer with Google</title> |
| 6 <script> |
| 7 |
| 8 document.addEventListener('DOMContentLoaded', load); |
| 9 |
| 10 function load() { |
| 11 chrome.send('getRegistrationUrl', []); |
| 12 } |
| 13 |
| 14 function $(o) { |
| 15 return document.getElementById(o); |
| 16 } |
| 17 |
| 18 function setRegistrationUrl(url) { |
| 19 // TODO(nkostylev): Load URL in iframe. |
| 20 } |
| 21 |
| 22 // Called when document has been loaded in an iframe. |
| 23 function onFormLoaded() { |
| 24 chrome.send('getUserInfo', []); |
| 25 } |
| 26 |
| 27 function setUserInfo(data) { |
| 28 // TODO(nkostylev): Pass system/user data to registration iframe. |
| 29 } |
| 30 |
| 31 </script> |
| 6 </head> | 32 </head> |
| 7 <body> | 33 <body> |
| 8 <!-- TODO(nkostylev): Redirect to cros://register/[success|skipped]. --> | 34 <!-- TODO(nkostylev): Redirect to cros://register/[success|skipped]. --> |
| 9 <!-- TODO(nkostylev): Add an iframe with an actual registration page. --> | 35 <!-- TODO(nkostylev): Add an iframe with an actual registration page. --> |
| 10 </body> | 36 </body> |
| 11 </html> | 37 </html> |
| OLD | NEW |