Skip to content

Commit 97fc959

Browse files
committed
Add solutions
1 parent 8ccd6a7 commit 97fc959

File tree

193 files changed

+10352
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+10352
-44
lines changed

config.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<name>PushWorkshop</name>
44

55
<description>
6-
A sample app for PhoneGap Day Push Workshop 2015.
6+
A sample app for PhoneGap Day Push Workshop 2016.
77
</description>
88

99
<author email="[email protected]" href="http://phonegap.com">
@@ -22,6 +22,10 @@
2222
<allow-intent href="mailto:*" />
2323
<allow-intent href="geo:*" />
2424

25+
<preference name="StatusBarOverlaysWebView" value="false" />
26+
<preference name="StatusBarBackgroundColor" value="#ee6e73" />
27+
<preference name="StatusBarStyle" value="blacktranslucent" />
28+
2529
<platform name="android">
2630
<allow-intent href="market:*" />
2731
</platform>
@@ -32,7 +36,8 @@
3236
</platform>
3337

3438
<plugin name="cordova-plugin-whitelist" spec="1" />
35-
<plugin name="cordova-plugin-statusbar" spec="~2.0.0" />
39+
<plugin name="cordova-plugin-statusbar" spec="~2.1.0" />
3640
<plugin name="phonegap-plugin-push" spec="~1.5.3" />
3741
<plugin name="cordova-plugin-console" spec="~1.0.2" />
42+
<plugin name="cordova-plugin-dialogs" spec="~1.2.0" />
3843
</widget>

solutions/www1/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+
}

solutions/www1/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)