OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <!-- | 3 <!-- |
4 This page is a simple testing environment for gaia_login.html to help | 4 This page is a simple testing environment for gaia_login.html to help |
5 iterate on the design without having to compile and launch the | 5 iterate on the design without having to compile and launch the |
6 browser. Note that you must supply the "--allow-file-access-from-files" | 6 browser. Note that you must supply the "--allow-file-access-from-files" |
7 for the chrome you are using to load this page for this to work. | 7 for the chrome you are using to load this page for this to work. |
8 --> | 8 --> |
9 <style> | 9 <style> |
10 body { | 10 body { |
(...skipping 28 matching lines...) Expand all Loading... |
39 var win = window.frames[0]; | 39 var win = window.frames[0]; |
40 var doc = win.document; | 40 var doc = win.document; |
41 var form = gel("form"); | 41 var form = gel("form"); |
42 form.addEventListener("change", function() { update(); }, true); | 42 form.addEventListener("change", function() { update(); }, true); |
43 | 43 |
44 win.JSON = {}; | 44 win.JSON = {}; |
45 win.JSON.parse = function() { | 45 win.JSON.parse = function() { |
46 return { | 46 return { |
47 error: get_selected_value(form.error), | 47 error: get_selected_value(form.error), |
48 user: "homer@gmail.com", | 48 user: "homer@gmail.com", |
49 captchaUrl: "https://www.google.com/accounts/Captcha" | 49 captchaUrl: "https://accounts.google.com/Captcha" |
50 }; | 50 }; |
51 }; | 51 }; |
52 | 52 |
53 console.log(win.JSON.parse()); | 53 console.log(win.JSON.parse()); |
54 | 54 |
55 set_text("introduction", | 55 set_text("introduction", |
56 "Chromium sync makes it easy to share your data (such as " + | 56 "Chromium sync makes it easy to share your data (such as " + |
57 "bookmarks and preferences) between your computers. Chromium " + | 57 "bookmarks and preferences) between your computers. Chromium " + |
58 "synchronizes your data by storing it online with Google when " + | 58 "synchronizes your data by storing it online with Google when " + |
59 "you login with your Google Account."); | 59 "you login with your Google Account."); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 <input type="radio" name="error" value="" checked> No Error | 114 <input type="radio" name="error" value="" checked> No Error |
115 <input type="radio" name="error" value="1"> Bad Password | 115 <input type="radio" name="error" value="1"> Bad Password |
116 <input type="radio" name="error" value="3"> Lost Connection | 116 <input type="radio" name="error" value="3"> Lost Connection |
117 <input type="radio" name="error" value="4"> Captcha | 117 <input type="radio" name="error" value="4"> Captcha |
118 </p> | 118 </p> |
119 </form> | 119 </form> |
120 </div> | 120 </div> |
121 </div> | 121 </div> |
122 </body> | 122 </body> |
123 </html> | 123 </html> |
OLD | NEW |