Skip to content

Commit f3f0b17

Browse files
committed
Initial commit
0 parents  commit f3f0b17

30 files changed

+1514
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

README.MD

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Push Workshop PhoneGap App
2+
PhoneGap Day US workshop - Simple mobile application built showing how to handle various push notification services.
3+
4+
### [Workshop Guide with Step by Step Modules](http://macdonst.github.io/push-workshop)
5+
6+
Requirements
7+
============
8+
- jQuery.js
9+
- Materialize
10+
- fontawesome (icons)
11+
12+
Required Plugins
13+
================
14+
**NOTE:** These plugins will automatically get added into your projects when a platform is added if you use the config.xml located within the
15+
project repo. Simply create a PhoneGap project then replace the config.xml and www folder with this one. ` $ phonegap create myPushApp`
16+
17+
- cordova-plugin-console 1.0.2 "Console"
18+
19+
$ phonegap plugin add cordova-plugin-console
20+
21+
- cordova-plugin-statusbar 2.0.0 "StatusBar"
22+
23+
$ phonegap plugin add cordova-plugin-statusbar
24+
25+
- phonegap-plugin-push 1.5.3 "PushPlugin"
26+
27+
$ phonegap plugin add phonegap-plugin-push

config.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<widget id="com.pgday.workshop.push" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3+
<name>PushWorkshop</name>
4+
<description>
5+
A sample app for PhoneGap Day Push Workshop 2015.
6+
</description>
7+
<author email="[email protected]" href="http://phonegap.com">
8+
Simon MacDonald
9+
</author>
10+
<content src="index.html" />
11+
<plugin name="cordova-plugin-whitelist" spec="1" />
12+
<access origin="*" />
13+
<allow-intent href="http://*/*" />
14+
<allow-intent href="https://*/*" />
15+
<allow-intent href="tel:*" />
16+
<allow-intent href="sms:*" />
17+
<allow-intent href="mailto:*" />
18+
<allow-intent href="geo:*" />
19+
<platform name="android">
20+
<allow-intent href="market:*" />
21+
</platform>
22+
<platform name="ios">
23+
<allow-intent href="itms:*" />
24+
<allow-intent href="itms-apps:*" />
25+
</platform>
26+
<plugin name="cordova-plugin-statusbar" spec="~2.0.0" />
27+
<plugin name="phonegap-plugin-push" spec="~1.5.3" />
28+
<plugin name="cordova-plugin-console" spec="~1.0.2" />
29+
</widget>

www/css/index.css

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
* {
20+
-webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
21+
}
22+
23+
body {
24+
-webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
25+
-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
26+
-webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
27+
background-color:#E4E4E4;
28+
background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
29+
background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
30+
background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
31+
background-image:-webkit-gradient(
32+
linear,
33+
left top,
34+
left bottom,
35+
color-stop(0, #A7A7A7),
36+
color-stop(0.51, #E4E4E4)
37+
);
38+
background-attachment:fixed;
39+
font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
40+
font-size:12px;
41+
height:100%;
42+
margin:0px;
43+
padding:0px;
44+
text-transform:uppercase;
45+
width:100%;
46+
}
47+
48+
/* Portrait layout (default) */
49+
.app {
50+
background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
51+
position:absolute; /* position in the center of the screen */
52+
left:50%;
53+
top:50%;
54+
height:50px; /* text area height */
55+
width:225px; /* text area width */
56+
text-align:center;
57+
padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */
58+
margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */
59+
/* offset horizontal: half of text area width */
60+
}
61+
62+
/* Landscape layout (with min-width) */
63+
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
64+
.app {
65+
background-position:left center;
66+
padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */
67+
margin:-90px 0px 0px -198px; /* offset vertical: half of image height */
68+
/* offset horizontal: half of image width and text area width */
69+
}
70+
}
71+
72+
h1 {
73+
font-size:24px;
74+
font-weight:normal;
75+
margin:0px;
76+
overflow:visible;
77+
padding:0px;
78+
text-align:center;
79+
}
80+
81+
.event {
82+
border-radius:4px;
83+
-webkit-border-radius:4px;
84+
color:#FFFFFF;
85+
font-size:12px;
86+
margin:0px 30px;
87+
padding:2px 0px;
88+
}
89+
90+
.event.listening {
91+
background-color:#333333;
92+
display:block;
93+
}
94+
95+
.event.received {
96+
background-color:#4B946A;
97+
display:none;
98+
}
99+
100+
@keyframes fade {
101+
from { opacity: 1.0; }
102+
50% { opacity: 0.4; }
103+
to { opacity: 1.0; }
104+
}
105+
106+
@-webkit-keyframes fade {
107+
from { opacity: 1.0; }
108+
50% { opacity: 0.4; }
109+
to { opacity: 1.0; }
110+
}
111+
112+
.blink {
113+
animation:fade 3000ms infinite;
114+
-webkit-animation:fade 3000ms infinite;
115+
}

www/css/materialize.min.css

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)