-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
3,675 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"lib":{"www":{"id":"phonegap","version":"3.2.0","uri":"https://github.com/phonegap/phonegap-app-hello-world/archive/3.2.0.tar.gz"}},"id":"ca.azanka.gruntangularphonegapexample","name":"GruntAngularPhonegapExample"} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<widget id="ca.azanka.gruntangularphonegapexample" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"> | ||
<name>GruntAngularPhonegapExample</name> | ||
<description> | ||
Hello World sample application that responds to the deviceready event. | ||
</description> | ||
<author email="[email protected]" href="http://phonegap.com"> | ||
PhoneGap Team | ||
</author> | ||
<feature name="http://api.phonegap.com/1.0/device" /> | ||
<preference name="permissions" value="none" /> | ||
<preference name="orientation" value="default" /> | ||
<preference name="target-device" value="universal" /> | ||
<preference name="fullscreen" value="true" /> | ||
<preference name="webviewbounce" value="true" /> | ||
<preference name="prerendered-icon" value="true" /> | ||
<preference name="stay-in-webview" value="false" /> | ||
<preference name="ios-statusbarstyle" value="black-opaque" /> | ||
<preference name="detect-data-types" value="true" /> | ||
<preference name="exit-on-suspend" value="false" /> | ||
<preference name="show-splash-screen-spinner" value="true" /> | ||
<preference name="auto-hide-splash-screen" value="true" /> | ||
<preference name="disable-cursor" value="false" /> | ||
<preference name="android-minSdkVersion" value="7" /> | ||
<preference name="android-installLocation" value="auto" /> | ||
<icon src="icon.png" /> | ||
<icon gap:density="ldpi" gap:platform="android" src="res/icon/android/icon-36-ldpi.png" /> | ||
<icon gap:density="mdpi" gap:platform="android" src="res/icon/android/icon-48-mdpi.png" /> | ||
<icon gap:density="hdpi" gap:platform="android" src="res/icon/android/icon-72-hdpi.png" /> | ||
<icon gap:density="xhdpi" gap:platform="android" src="res/icon/android/icon-96-xhdpi.png" /> | ||
<icon gap:platform="blackberry" src="res/icon/blackberry/icon-80.png" /> | ||
<icon gap:platform="blackberry" gap:state="hover" src="res/icon/blackberry/icon-80.png" /> | ||
<icon gap:platform="ios" height="57" src="res/icon/ios/icon-57.png" width="57" /> | ||
<icon gap:platform="ios" height="72" src="res/icon/ios/icon-72.png" width="72" /> | ||
<icon gap:platform="ios" height="114" src="res/icon/ios/icon-57-2x.png" width="114" /> | ||
<icon gap:platform="ios" height="144" src="res/icon/ios/icon-72-2x.png" width="144" /> | ||
<icon gap:platform="webos" src="res/icon/webos/icon-64.png" /> | ||
<icon gap:platform="winphone" src="res/icon/windows-phone/icon-48.png" /> | ||
<icon gap:platform="winphone" gap:role="background" src="res/icon/windows-phone/icon-173.png" /> | ||
<gap:splash gap:density="ldpi" gap:platform="android" src="res/screen/android/screen-ldpi-portrait.png" /> | ||
<gap:splash gap:density="mdpi" gap:platform="android" src="res/screen/android/screen-mdpi-portrait.png" /> | ||
<gap:splash gap:density="hdpi" gap:platform="android" src="res/screen/android/screen-hdpi-portrait.png" /> | ||
<gap:splash gap:density="xhdpi" gap:platform="android" src="res/screen/android/screen-xhdpi-portrait.png" /> | ||
<gap:splash gap:platform="blackberry" src="res/screen/blackberry/screen-225.png" /> | ||
<gap:splash gap:platform="ios" height="480" src="res/screen/ios/screen-iphone-portrait.png" width="320" /> | ||
<gap:splash gap:platform="ios" height="960" src="res/screen/ios/screen-iphone-portrait-2x.png" width="640" /> | ||
<gap:splash gap:platform="ios" height="1024" src="res/screen/ios/screen-ipad-portrait.png" width="768" /> | ||
<gap:splash gap:platform="ios" height="768" src="res/screen/ios/screen-ipad-landscape.png" width="1024" /> | ||
<gap:splash gap:platform="winphone" src="res/screen/windows-phone/screen-portrait.jpg" /> | ||
<access origin="http://127.0.0.1*" /> | ||
</widget> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
* { | ||
-webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */ | ||
} | ||
|
||
body { | ||
-webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */ | ||
-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */ | ||
-webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */ | ||
background-color:#E4E4E4; | ||
background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); | ||
background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); | ||
background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); | ||
background-image:-webkit-gradient( | ||
linear, | ||
left top, | ||
left bottom, | ||
color-stop(0, #A7A7A7), | ||
color-stop(0.51, #E4E4E4) | ||
); | ||
background-attachment:fixed; | ||
font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif; | ||
font-size:12px; | ||
height:100%; | ||
margin:0px; | ||
padding:0px; | ||
text-transform:uppercase; | ||
width:100%; | ||
} | ||
|
||
/* Portrait layout (default) */ | ||
.app { | ||
background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */ | ||
position:absolute; /* position in the center of the screen */ | ||
left:50%; | ||
top:50%; | ||
height:50px; /* text area height */ | ||
width:225px; /* text area width */ | ||
text-align:center; | ||
padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */ | ||
margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */ | ||
/* offset horizontal: half of text area width */ | ||
} | ||
|
||
/* Landscape layout (with min-width) */ | ||
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) { | ||
.app { | ||
background-position:left center; | ||
padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */ | ||
margin:-90px 0px 0px -198px; /* offset vertical: half of image height */ | ||
/* offset horizontal: half of image width and text area width */ | ||
} | ||
} | ||
|
||
h1 { | ||
font-size:24px; | ||
font-weight:normal; | ||
margin:0px; | ||
overflow:visible; | ||
padding:0px; | ||
text-align:center; | ||
} | ||
|
||
.event { | ||
border-radius:4px; | ||
-webkit-border-radius:4px; | ||
color:#FFFFFF; | ||
font-size:12px; | ||
margin:0px 30px; | ||
padding:2px 0px; | ||
} | ||
|
||
.event.listening { | ||
background-color:#333333; | ||
display:block; | ||
} | ||
|
||
.event.received { | ||
background-color:#4B946A; | ||
display:none; | ||
} | ||
|
||
@keyframes fade { | ||
from { opacity: 1.0; } | ||
50% { opacity: 0.4; } | ||
to { opacity: 1.0; } | ||
} | ||
|
||
@-webkit-keyframes fade { | ||
from { opacity: 1.0; } | ||
50% { opacity: 0.4; } | ||
to { opacity: 1.0; } | ||
} | ||
|
||
.blink { | ||
animation:fade 3000ms infinite; | ||
-webkit-animation:fade 3000ms infinite; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="format-detection" content="telephone=no" /> | ||
<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" /> | ||
<link rel="stylesheet" type="text/css" href="css/index.css" /> | ||
<title>Hello World</title> | ||
</head> | ||
<body> | ||
<div class="app"> | ||
<h1>PhoneGap</h1> | ||
<div id="deviceready" class="blink"> | ||
<p class="event listening">Connecting to Device</p> | ||
<p class="event received">Device is Ready</p> | ||
</div> | ||
</div> | ||
<script type="text/javascript" src="phonegap.js"></script> | ||
<script type="text/javascript" src="js/index.js"></script> | ||
<script type="text/javascript"> | ||
app.initialize(); | ||
</script> | ||
</body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
var app = { | ||
// Application Constructor | ||
initialize: function() { | ||
this.bindEvents(); | ||
}, | ||
// Bind Event Listeners | ||
// | ||
// Bind any events that are required on startup. Common events are: | ||
// 'load', 'deviceready', 'offline', and 'online'. | ||
bindEvents: function() { | ||
document.addEventListener('deviceready', this.onDeviceReady, false); | ||
}, | ||
// deviceready Event Handler | ||
// | ||
// The scope of 'this' is the event. In order to call the 'receivedEvent' | ||
// function, we must explicity call 'app.receivedEvent(...);' | ||
onDeviceReady: function() { | ||
app.receivedEvent('deviceready'); | ||
}, | ||
// Update DOM on a Received Event | ||
receivedEvent: function(id) { | ||
var parentElement = document.getElementById(id); | ||
var listeningElement = parentElement.querySelector('.listening'); | ||
var receivedElement = parentElement.querySelector('.received'); | ||
|
||
listeningElement.setAttribute('style', 'display:none;'); | ||
receivedElement.setAttribute('style', 'display:block;'); | ||
|
||
console.log('Received Event: ' + id); | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Tizen Splash Screen | ||
|
||
Splash screens are unsupported on the Tizen platform. |
Oops, something went wrong.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
<html> | ||
<head> | ||
<title>Jasmine Spec Runner</title> | ||
|
||
<!-- jasmine source --> | ||
<link rel="shortcut icon" type="image/png" href="spec/lib/jasmine-1.2.0/jasmine_favicon.png"> | ||
<link rel="stylesheet" type="text/css" href="spec/lib/jasmine-1.2.0/jasmine.css"> | ||
<script type="text/javascript" src="spec/lib/jasmine-1.2.0/jasmine.js"></script> | ||
<script type="text/javascript" src="spec/lib/jasmine-1.2.0/jasmine-html.js"></script> | ||
|
||
<!-- include source files here... --> | ||
<script type="text/javascript" src="js/index.js"></script> | ||
|
||
<!-- include spec files here... --> | ||
<script type="text/javascript" src="spec/helper.js"></script> | ||
<script type="text/javascript" src="spec/index.js"></script> | ||
|
||
<script type="text/javascript"> | ||
(function() { | ||
var jasmineEnv = jasmine.getEnv(); | ||
jasmineEnv.updateInterval = 1000; | ||
|
||
var htmlReporter = new jasmine.HtmlReporter(); | ||
|
||
jasmineEnv.addReporter(htmlReporter); | ||
|
||
jasmineEnv.specFilter = function(spec) { | ||
return htmlReporter.specFilter(spec); | ||
}; | ||
|
||
var currentWindowOnload = window.onload; | ||
|
||
window.onload = function() { | ||
if (currentWindowOnload) { | ||
currentWindowOnload(); | ||
} | ||
execJasmine(); | ||
}; | ||
|
||
function execJasmine() { | ||
jasmineEnv.execute(); | ||
} | ||
})(); | ||
</script> | ||
</head> | ||
<body> | ||
<div id="stage" style="display:none;"></div> | ||
</body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
afterEach(function() { | ||
document.getElementById('stage').innerHTML = ''; | ||
}); | ||
|
||
var helper = { | ||
trigger: function(obj, name) { | ||
var e = document.createEvent('Event'); | ||
e.initEvent(name, true, true); | ||
obj.dispatchEvent(e); | ||
}, | ||
getComputedStyle: function(querySelector, property) { | ||
var element = document.querySelector(querySelector); | ||
return window.getComputedStyle(element).getPropertyValue(property); | ||
} | ||
}; |
Oops, something went wrong.