-
Notifications
You must be signed in to change notification settings - Fork 13
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
62 changed files
with
7,131 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,18 @@ | ||
phonegap-workshop | ||
================= | ||
|
||
A sample conference application to manage sessions and speakers built with PhoneGap. | ||
|
||
> See the phonegap workshop tutorial located at http://hollyschinsky.github.io/phonegap-workshop/ for a detailed walkthru. | ||
**Note: The final version of this app uses the following plugins:** | ||
|
||
1. org.apache.cordova.console 0.2.11 "Console" | ||
2. org.apache.cordova.device 0.2.12 "Device" | ||
3. org.apache.cordova.dialogs 0.2.10 "Notification" | ||
4. org.apache.cordova.statusbar 0.1.8 "StatusBar" | ||
5. com.ionic.keyboard 1.0.3 "Keyboard" | ||
6. nl.x-services.plugins.calendar 4.2.6 "Calendar" | ||
7. nl.x-services.plugins.socialsharing 4.3.8 "SocialSharing" | ||
|
||
|
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,86 @@ | ||
<!-- | ||
# | ||
# 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. | ||
# | ||
--> | ||
# Cordova Hooks | ||
|
||
This directory may contain scripts used to customize cordova commands. This | ||
directory used to exist at `.cordova/hooks`, but has now been moved to the | ||
project root. Any scripts you add to these directories will be executed before | ||
and after the commands corresponding to the directory name. Useful for | ||
integrating your own build systems or integrating with version control systems. | ||
|
||
__Remember__: Make your scripts executable. | ||
|
||
## Hook Directories | ||
The following subdirectories will be used for hooks: | ||
|
||
after_build/ | ||
after_compile/ | ||
after_docs/ | ||
after_emulate/ | ||
after_platform_add/ | ||
after_platform_rm/ | ||
after_platform_ls/ | ||
after_plugin_add/ | ||
after_plugin_ls/ | ||
after_plugin_rm/ | ||
after_plugin_search/ | ||
after_prepare/ | ||
after_run/ | ||
after_serve/ | ||
before_build/ | ||
before_compile/ | ||
before_docs/ | ||
before_emulate/ | ||
before_platform_add/ | ||
before_platform_rm/ | ||
before_platform_ls/ | ||
before_plugin_add/ | ||
before_plugin_ls/ | ||
before_plugin_rm/ | ||
before_plugin_search/ | ||
before_prepare/ | ||
before_run/ | ||
before_serve/ | ||
pre_package/ <-- Windows 8 and Windows Phone only. | ||
|
||
## Script Interface | ||
|
||
All scripts are run from the project's root directory and have the root directory passes as the first argument. All other options are passed to the script using environment variables: | ||
|
||
* CORDOVA_VERSION - The version of the Cordova-CLI. | ||
* CORDOVA_PLATFORMS - Comma separated list of platforms that the command applies to (e.g.: android, ios). | ||
* CORDOVA_PLUGINS - Comma separated list of plugin IDs that the command applies to (e.g.: org.apache.cordova.file, org.apache.cordova.file-transfer) | ||
* CORDOVA_HOOK - Path to the hook that is being executed. | ||
* CORDOVA_CMDLINE - The exact command-line arguments passed to cordova (e.g.: cordova run ios --emulate) | ||
|
||
If a script returns a non-zero exit code, then the parent cordova command will be aborted. | ||
|
||
## Writing hooks | ||
|
||
We highly recommend writting your hooks using Node.js so that they are | ||
cross-platform. Some good examples are shown here: | ||
|
||
[http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/](http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/) | ||
|
||
Also, note that even if you are working on Windows, and in case your hook scripts aren't bat files (which is recommended, if you want your scripts to work in non-Windows operating systems) Cordova CLI will expect a shebang line as the first line for it to know the interpreter it needs to use to launch the script. The shebang line should match the following example: | ||
|
||
#!/usr/bin/env [name_of_interpreter_executable] | ||
|
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.
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,36 @@ | ||
#container { | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
overflow: hidden; | ||
} | ||
|
||
.page { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
-webkit-transform: translate3d(0, 0, 1px); | ||
transform: translate3d(0, 0, 0); | ||
} | ||
|
||
.page.left { | ||
-webkit-transform: translate3d(-100%, 0, 1px); | ||
transform: translate3d(-100%, 0, 0); | ||
} | ||
|
||
.page.center { | ||
-webkit-transform: translate3d(0, 0, 1px); | ||
transform: translate3d(0, 0, 0); | ||
} | ||
|
||
.page.right { | ||
-webkit-transform: translate3d(100%, 0, 1px); | ||
transform: translate3d(100%, 0, 0); | ||
} | ||
|
||
.page.transition { | ||
-webkit-transition-duration: .25s; | ||
transition-duration: .25s; | ||
} |
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,36 @@ | ||
#container { | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
overflow: hidden; | ||
} | ||
|
||
.page { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
-webkit-transform: translate3d(0, 0, 1px); | ||
transform: translate3d(0, 0, 0); | ||
} | ||
|
||
.page.left { | ||
-webkit-transform: translate3d(-100%, 0, 1px); | ||
transform: translate3d(-100%, 0, 0); | ||
} | ||
|
||
.page.center { | ||
-webkit-transform: translate3d(0, 0, 1px); | ||
transform: translate3d(0, 0, 0); | ||
} | ||
|
||
.page.right { | ||
-webkit-transform: translate3d(100%, 0, 1px); | ||
transform: translate3d(100%, 0, 0); | ||
} | ||
|
||
.page.transition { | ||
-webkit-transition-duration: .25s; | ||
transition-duration: .25s; | ||
} |
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,60 @@ | ||
/* Notes: | ||
* - History management is currently done using window.location.hash. This could easily be changed to use Push State instead. | ||
* - jQuery dependency for now. This could also be easily removed. | ||
*/ | ||
|
||
function PageSlider(container) { | ||
|
||
var container = container, | ||
currentPage, | ||
stateHistory = []; | ||
|
||
// Use this function if you want PageSlider to automatically determine the sliding direction based on the state history | ||
this.slidePage = function(page) { | ||
|
||
var l = stateHistory.length, | ||
state = window.location.hash; | ||
|
||
if (l === 0) { | ||
stateHistory.push(state); | ||
this.slidePageFrom(page); | ||
return; | ||
} | ||
if (state === stateHistory[l-2]) { | ||
stateHistory.pop(); | ||
this.slidePageFrom(page, 'left'); | ||
} else { | ||
stateHistory.push(state); | ||
this.slidePageFrom(page, 'right'); | ||
} | ||
|
||
} | ||
|
||
// Use this function directly if you want to control the sliding direction outside PageSlider | ||
this.slidePageFrom = function(page, from) { | ||
|
||
container.append(page); | ||
|
||
if (!currentPage || !from) { | ||
page.attr("class", "page center"); | ||
currentPage = page; | ||
return; | ||
} | ||
|
||
// Position the page at the starting position of the animation | ||
page.attr("class", "page " + from); | ||
|
||
currentPage.one('webkitTransitionEnd', function(e) { | ||
$(e.target).remove(); | ||
}); | ||
|
||
// Force reflow. More information here: http://www.phpied.com/rendering-repaint-reflowrelayout-restyle/ | ||
container[0].offsetWidth; | ||
|
||
// Position the new page and the current page at the ending position of their animation with a transition class indicating the duration of the animation | ||
page.attr("class", "page transition center"); | ||
currentPage.attr("class", "page transition " + (from === "left" ? "right" : "left")); | ||
currentPage = page; | ||
} | ||
|
||
} |
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,52 @@ | ||
ul { | ||
clear: both; | ||
} | ||
|
||
.bar-header-secondary>input { | ||
margin-top: 6px; | ||
height: 31px; | ||
} | ||
|
||
.table-view { | ||
margin: 0 !important; | ||
border: none; | ||
} | ||
|
||
.details h1 { | ||
padding-top: 16px; | ||
font-size: 18px; | ||
} | ||
|
||
.media-object { | ||
width: 42px; | ||
height: 42px; | ||
border-radius: 25px; | ||
} | ||
.icon-call { | ||
background: transparent url(images/ic_action_phone_outgoing.png); | ||
background-repeat: no-repeat; | ||
} | ||
/*.tabbar {*/ | ||
/*position: absolute;*/ | ||
/*bottom: 0;*/ | ||
/*z-index: 99999;*/ | ||
/*}*/ | ||
/*.desc {*/ | ||
/*minheight: 220px;*/ | ||
/*}*/ | ||
.media>p { | ||
color: #444; | ||
} | ||
.bar-nav { | ||
background-color: #209dc2; | ||
color: #ffffff; | ||
} | ||
.title { | ||
color: #ffffff; | ||
} | ||
.bar-nav .icon { | ||
color: #ffffff; | ||
} | ||
.bar-header-secondary { | ||
background-color: #eeeeee; | ||
} |
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.