Skip to content

Commit ffce6ee

Browse files
committed
whip app
1 parent cfce76f commit ffce6ee

File tree

6 files changed

+107
-0
lines changed

6 files changed

+107
-0
lines changed

index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html manifest="manifest.appcache">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta http-equiv="pragma" content="no-cache">
7+
<title>Whip</title>
8+
<link rel="stylesheet" type="text/css" href="style/base.css">
9+
<script type="text/javascript" src="js/whip.js"></script>
10+
11+
</head>
12+
13+
<body>
14+
<audio id="sound">
15+
<source src="media/sound.ogg" type="audio/ogg"/>
16+
</audio>
17+
18+
<img src="media/indi.jpg" alt="whip" id="button" >
19+
20+
</body>
21+
22+
</html>

js/whip.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
function playWhip(){
3+
document.getElementById("sound").play();
4+
}
5+
6+
function addClick(){
7+
document.getElementById("button").addEventListener("click", playWhip);
8+
}
9+
10+
document.addEventListener("DOMContentLoaded", addClick)

manifest.appcache

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
CACHE MANIFEST
2+
# Version 7ee69291b14f219a8a50a9993f4999cd
3+
Blank.png
4+
index.html
5+
6+
manifest.webapp
7+
style/icons/Blank.png
8+
test/unit/_proxy.html
9+
test/unit/_sandbox.html
10+
http://gaiamobile.org:8080/webapi.js
11+
NETWORK:
12+
http://*
13+
https://*

manifest.webapp

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"name": "Template",
3+
"description": "Web app template",
4+
"launch_path": "/",
5+
"developer": {
6+
"name": "The Gaia Team",
7+
"url": "https://github.com/mozilla-b2g/gaia"
8+
},
9+
"permissions": [
10+
11+
],
12+
"locales": {
13+
"ar": {
14+
"name": "Template",
15+
"description": "Web app template"
16+
},
17+
"de": {
18+
"name": "Template",
19+
"description": "Web app template"
20+
},
21+
"el": {
22+
"name": "Template",
23+
"description": "Web app template"
24+
},
25+
"en-US": {
26+
"name": "Template",
27+
"description": "Web app template"
28+
},
29+
"es": {
30+
"name": "Template",
31+
"description": "Web app template"
32+
},
33+
"fr": {
34+
"name": "Template",
35+
"description": "Web app template"
36+
},
37+
"it": {
38+
"name": "Template",
39+
"description": "Web app template"
40+
},
41+
"pt-BR": {
42+
"name": "Template",
43+
"description": "Web app template"
44+
},
45+
"ru": {
46+
"name": "Template",
47+
"description": "Web app template"
48+
},
49+
"tr": {
50+
"name": "Template",
51+
"description": "Web app template"
52+
},
53+
"zh-TW": {
54+
"name": "Template",
55+
"description": "Web app template"
56+
}
57+
},
58+
"default_locale": "en-US",
59+
"icons": {
60+
"128": "/style/icons/Blank.png"
61+
}
62+
}

media/indi.jpg

139 KB
Loading

media/sound.ogg

34.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)