Skip to content

Commit 8f3fc54

Browse files
committed
basic structure
1 parent 88baaec commit 8f3fc54

File tree

5 files changed

+67
-0
lines changed

5 files changed

+67
-0
lines changed

Diff for: build.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coffee -o ./lib -wc ./src/app.coffee

Diff for: config.xml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<widget xmlns = "http://www.w3.org/ns/widgets"
3+
xmlns:gap = "http://phonegap.com/ns/1.0"
4+
id = "com.jainlabs.pigeonlogger"
5+
version = "2.2.0">
6+
<name>Pigeon Logger</name>
7+
8+
<description>
9+
Logs photos and GPS coordinates for AR Drone research project
10+
</description>
11+
12+
<author href="http://jainlabs.com" email="[email protected]">
13+
JainLabs
14+
</author>
15+
16+
<feature name="http://api.phonegap.com/1.0/device" />
17+
18+
<preference name="phonegap-version" value="2.2.0" />
19+
<preference name="orientation" value="default" />
20+
<preference name="target-device" value="universal" />
21+
<preference name="fullscreen" value="false" />
22+
</widget>

Diff for: index.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5+
<meta name="format-detection" content="telephone=no" />
6+
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
7+
<link rel="stylesheet" type="text/css" href="css/index.css" />
8+
<title>Pigeon Logger</title>
9+
</head>
10+
<body>
11+
<h1>Pigeon Logger</h1>
12+
<script type="text/javascript" src="phonegap.js"></script>
13+
<script type="text/javascript" src="lib/app.js"></script>
14+
</body>
15+
</html>

Diff for: lib/app.js

+21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/app.coffee

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class PigeonLogger
2+
constructor: ->
3+
document.addEventListener('deviceready', this.deviceready, false);
4+
5+
deviceready: (e) ->
6+
alert "deviceready"
7+
8+
window.app = new PigeonLogger()

0 commit comments

Comments
 (0)