Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added manifest for Mozilla apps

  • Loading branch information...
commit bf800f13813e26a03b9a75a706ebd255a6605ddb 1 parent 390591b
@BlackScorp authored
View
BIN  assets/img/icons/icon-128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  assets/img/icons/icon-48.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
12 assets/js/loader.js
@@ -55,11 +55,11 @@ Crafty.extend({
//Progress function
function pro(){
-
-
- var src = this.currentSrc || this.src;
+ var src = this.src;
if (this.removeEventListener) {
this.removeEventListener('canplaythrough', pro, true);
+ }else{
+ this.detachEvent('canplaythrough',pro);
}
this.onload=null;
++j;
@@ -110,8 +110,12 @@ Crafty.extend({
}
if (obj.addEventListener) {
obj.addEventListener('canplaythrough', pro, true);
+ }else if(obj.attachEvent){
+ obj.attachEvent('oncanplaythrough',pro);
+ }else{
+ obj.oncanplaythrough=pro;
}
-
+ //
} else if (ext === "jpg" || ext === "jpeg" || ext === "gif" || ext === "png") {
if(!obj) {
obj = new Image();
View
30 cron.manifest
@@ -0,0 +1,30 @@
+{
+ "version": "0.1",
+ "name": "Cron",
+ "description": "Small Space Shooter",
+ "icons": {
+ "48": "/assets/img/icons/icon-48.png",
+ "128": "/assets/img/icons/icon-128.png"
+ },
+ "widget": {
+ "path": "/widget.html",
+ "width": 100,
+ "height": 200
+ },
+ "developer": {
+ "name": "Witali Mik",
+ "url": "https://twitter.com/#!/xBlackScorpx"
+ },
+ "installs_allowed_from": [
+ "https://appstore.mozillalabs.com"
+ ],
+ "locales": {
+ "de": {
+ "description": "Kleiner Schooter mit Raumschiffen",
+ "developer": {
+ "url": "https://twitter.com/#!/xBlackScorpx"
+ }
+ }
+ },
+ "default_locale": "en"
+}
View
1  widget.html
@@ -0,0 +1 @@
+Test here!!
Please sign in to comment.
Something went wrong with that request. Please try again.