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 * Adds the 'slide' class to two elements in order to slide them off the screen. | |
| 8 */ | |
| 9 function addSlideClass() { | |
| 10 $('container').className += ' slide'; | |
|
huangs
2014/08/11 16:10:51
Is it standard to use $()?
Use .classList.add('sl
Mathieu
2014/08/11 21:11:03
In Chrome files yes, there is a presubmit to use $
| |
| 11 $('button-container').className += ' slide'; | |
| 12 } | |
| OLD | NEW |