OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 4 |
5 // File Description: | 5 // File Description: |
6 // Contains all the necessary functions for rendering the NTP on mobile | 6 // Contains all the necessary functions for rendering the NTP on mobile |
7 // devices. | 7 // devices. |
8 | 8 |
9 /** | 9 /** |
10 * The event type used to determine when a touch starts. | 10 * The event type used to determine when a touch starts. |
(...skipping 2716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2727 // NTP Entry point. | 2727 // NTP Entry point. |
2728 ///////////////////////////////////////////////////////////////////////////// | 2728 ///////////////////////////////////////////////////////////////////////////// |
2729 | 2729 |
2730 /* | 2730 /* |
2731 * Handles initializing the UI when the page has finished loading. | 2731 * Handles initializing the UI when the page has finished loading. |
2732 */ | 2732 */ |
2733 window.addEventListener('DOMContentLoaded', function(evt) { | 2733 window.addEventListener('DOMContentLoaded', function(evt) { |
2734 ntp.init(); | 2734 ntp.init(); |
2735 $('content-area').style.display = 'block'; | 2735 $('content-area').style.display = 'block'; |
2736 }); | 2736 }); |
OLD | NEW |