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
3 found in the LICENSE file.
7 * On load, registers the handler to add the 'hide' class to the container
8 * element in order to hide it.
10 window
.onload = function() {
11 $('optin-label').addEventListener('click', function() {
12 $('container').classList
.add('hide');
17 * Returns the height of the content. Method called from Chrome to properly size
18 * the view embedding it.
19 * @return {number} The height of the content, in pixels.
21 function getContentHeight() {
22 return $('container').clientHeight
;