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..92174d546745b709d187e94a2f492ce930f01d00 100644 |
--- a/chrome/browser/resources/contextual_search/promo.js |
+++ b/chrome/browser/resources/contextual_search/promo.js |
@@ -1,5 +1,12 @@ |
/* 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. |
*/ |
+ |
+/** |
+ * Adds the 'slide' class to two elements in order to slide them off the screen. |
+ */ |
+function addSlideClass() { |
+ $('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 $
|
+ $('button-container').className += ' slide'; |
+} |