OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013 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. | |
4 | |
5 /** | |
6 * @fileoverview App install/launch splash screen. | |
7 */ | |
8 | |
9 /** | |
10 * Initializes the click handler. | |
11 */ | |
12 initialize = function() { | |
13 var params = parseQueryParams(window.location); | |
14 var appId = params['app'] || ''; | |
15 | |
16 chrome.send('initialize', [appId]); | |
17 | |
18 $('shortcut-info').hidden = !loadTimeData.getBoolean('shortcutEnabled'); | |
19 $('page').style.opacity = 1; | |
20 window.webkitRequestAnimationFrame(function() {}); | |
21 }; | |
22 | |
23 updateApp = function(app) { | |
24 $('header').textContent = app.name; | |
25 $('header').style.backgroundImage = 'url(' + app.iconURL + ')'; | |
26 }; | |
27 | |
28 updateMessage = function(message) { | |
29 $('launch-text').textContent = message; | |
30 }; | |
31 | |
32 disableTextSelectAndDrag(); | |
33 document.addEventListener('DOMContentLoaded', initialize); | |
OLD | NEW |