Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 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 TODO(mathp): Add some JS here. | |
| 5 */ | 4 */ |
| 5 | |
| 6 /** | |
| 7 * On load, registers the handler to add the 'fadeout' class to the container | |
|
huangs
2014/08/12 15:17:28
Update comment re. 'fadeout', and implementation?
Mathieu
2014/08/12 15:19:06
Done.
| |
| 8 * element in order to fade it out. | |
| 9 */ | |
| 10 window.onload = function() { | |
| 11 $('optin-label').addEventListener('click', function() { | |
| 12 $('container').classList.add('hide'); | |
| 13 }); | |
| 14 }; | |
| OLD | NEW |