Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: chrome/browser/resources/contextual_search/promo.js

Issue 456833003: [Search] Make the text swoosh away off the screen when the user taps the opt-in link. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
8 * element in order to fade it out.
9 */
10 window.onload = function() {
11 $('optin-label').addEventListener('click', function() {
12 $('container').classList.add('fadeout');
pedro (no code reviews) 2014/08/11 21:38:02 Nit: if you use names describing the function (hid
Mathieu 2014/08/12 12:39:46 Done.
13 });
14 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698