Created
February 22, 2013 17:08
-
-
Save stevoPerisic/5014998 to your computer and use it in GitHub Desktop.
Chrome Packaged App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrome.app.runtime.onLaunched.addListener(function() { | |
chrome.app.window.create('window.html', { | |
'width': 400, | |
'height': 500 | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Hello World!", | |
"description": "My first packaged app.", | |
"version": "2", | |
"app": { | |
"background": { | |
"scripts": ["background.js"] | |
} | |
}, | |
"icons": { "16": "appIcon_16.png", "128": "appIcon.png" } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gotta have these images available in the same folder | |
- 1355775031_Desktop.png | |
- appIcon_16.png | |
- appIcon.png | |
Link for more info | |
- http://developer.chrome.com/apps/about_apps.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body{ | |
background:#093; | |
color:#FFF; | |
} | |
</style> | |
</head> | |
<body> | |
<div>Hello, world!</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment