Chromium Code Reviews| Index: chrome/browser/resources/contextual_search/promo.js |
| diff --git a/chrome/browser/resources/contextual_search/promo.js b/chrome/browser/resources/contextual_search/promo.js |
| index 516822f5e091ab820a4da1e692dfa2a537f0e80a..7fe409a70fa14f5c0c0941f5728b12bde68f3a7f 100644 |
| --- a/chrome/browser/resources/contextual_search/promo.js |
| +++ b/chrome/browser/resources/contextual_search/promo.js |
| @@ -1,5 +1,14 @@ |
| /* Copyright 2014 The Chromium Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style license that can be |
| found in the LICENSE file. |
| - TODO(mathp): Add some JS here. |
| */ |
| + |
| +/** |
| + * 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.
|
| + * element in order to fade it out. |
| + */ |
| +window.onload = function() { |
| + $('optin-label').addEventListener('click', function() { |
| + $('container').classList.add('hide'); |
| + }); |
| +}; |