| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview Demo login UI. | 6 * @fileoverview Demo login UI. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Handles a user clicking anywhere on the screen. This will log the demo user | 10 * Handles a user clicking anywhere on the screen. This will log the demo user |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 }); | 31 }); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 /** | 34 /** |
| 35 * Show the login spinner. | 35 * Show the login spinner. |
| 36 */ | 36 */ |
| 37 showLoginSpinner = function() { | 37 showLoginSpinner = function() { |
| 38 // We're already logging in - don't login on click. | 38 // We're already logging in - don't login on click. |
| 39 document.removeEventListener('click', onClick); | 39 document.removeEventListener('click', onClick); |
| 40 | 40 |
| 41 // Hide the "Click to start" assets. | 41 // Hide the "Click to start" and show the spinner. |
| 42 $('logo').hidden = true; | |
| 43 $('demo-login-text').hidden = true; | 42 $('demo-login-text').hidden = true; |
| 44 | |
| 45 // Show the "Logging in" assets. | |
| 46 $('logo-login').hidden = false; | |
| 47 $('login-spinner').hidden = false; | 43 $('login-spinner').hidden = false; |
| 48 }; | 44 }; |
| 49 | 45 |
| 50 disableTextSelectAndDrag(); | 46 disableTextSelectAndDrag(); |
| 51 document.addEventListener('DOMContentLoaded', initialize); | 47 document.addEventListener('DOMContentLoaded', initialize); |
| OLD | NEW |