Permalink
Browse files

initial import

  • Loading branch information...
1 parent 25b0766 commit e4093b03c6eb2b8891943b88a6f0a35be66c40d9 @pwalczyszyn committed Oct 12, 2012
Showing with 43,696 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +78 −0 config.xml
  3. +68 −0 css/jquery-mobile-custom-buttons.css
  4. +77 −0 css/style.less
  5. BIN icon.png
  6. BIN icons/android/hdpi.png
  7. BIN icons/android/ldpi.png
  8. BIN icons/android/mdpi.png
  9. BIN icons/android/xhdpi.png
  10. BIN icons/ios/icon-72.png
  11. BIN icons/ios/icon.png
  12. BIN icons/ios/icon@2x.png
  13. BIN images/ajax-loader.gif
  14. BIN images/avatar-dark.png
  15. BIN images/avatar-light.png
  16. BIN images/facebook-logo.png
  17. BIN images/geek.png
  18. BIN images/linkedIn-logo.png
  19. BIN images/twitter-logo.png
  20. +25 −0 index-android.html
  21. +31 −0 index-ios.html
  22. +30 −0 index.html
  23. +30 −0 scripts/jqm-config.js
  24. +1,431 −0 scripts/libs/backbone/backbone.js
  25. +87 −0 scripts/libs/cordova/ChildBrowser-ios.js
  26. +5,724 −0 scripts/libs/cordova/cordova-android-2.0.0.js
  27. +5,252 −0 scripts/libs/cordova/cordova-ios-2.0.0.js
  28. BIN scripts/libs/jquery.mobile/images/ajax-loader.gif
  29. BIN scripts/libs/jquery.mobile/images/ajax-loader.png
  30. BIN scripts/libs/jquery.mobile/images/icons-18-black.png
  31. BIN scripts/libs/jquery.mobile/images/icons-18-white.png
  32. BIN scripts/libs/jquery.mobile/images/icons-36-black.png
  33. BIN scripts/libs/jquery.mobile/images/icons-36-white.png
  34. +260 −0 scripts/libs/jquery.mobile/jqmNavigator.js
  35. +2,140 −0 scripts/libs/jquery.mobile/jquery.mobile-1.1.1.css
  36. +7,690 −0 scripts/libs/jquery.mobile/jquery.mobile-1.1.1.js
  37. +9,266 −0 scripts/libs/jquery/jquery-1.7.1.js
  38. +9 −0 scripts/libs/less/less-1.3.0.min.js
  39. +918 −0 scripts/libs/moment/moment.js
  40. +366 −0 scripts/libs/overthrow/overthrow.js
  41. +5,572 −0 scripts/libs/parse/parse-1.0.8.js
  42. +125 −0 scripts/libs/require/domReady.js
  43. +2,037 −0 scripts/libs/require/require.js
  44. +303 −0 scripts/libs/require/text.js
  45. +1,059 −0 scripts/libs/underscore/underscore.js
  46. +78 −0 scripts/main.js
  47. +12 −0 scripts/models/UserLocation.js
  48. +159 −0 scripts/views/HomeView.js
  49. +15 −0 scripts/views/HomeView.tpl
  50. +85 −0 scripts/views/LoginView.js
  51. +18 −0 scripts/views/LoginView.tpl
  52. +217 −0 scripts/views/ProfileView.js
  53. +62 −0 scripts/views/ProfileView.tpl
  54. +225 −0 scripts/views/SignUpView.js
  55. +47 −0 scripts/views/SignUpView.tpl
  56. +105 −0 scripts/views/UserInfoView.js
  57. +93 −0 scripts/views/UserInfoView.tpl
  58. BIN splash.png
  59. BIN splash/android/hdpi.png
  60. BIN splash/android/ldpi.png
  61. BIN splash/android/mdpi.png
  62. BIN splash/android/xhdpi.png
  63. BIN splash/ios/Default.png
  64. BIN splash/ios/Default@2x.png
View
@@ -0,0 +1,2 @@
+.idea
+.DS_Store
View
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<widget xmlns="http://www.w3.org/ns/widgets"
+ xmlns:gap="http://phonegap.com/ns/1.0"
+ id="me.outof.GeeksNearby"
+ versionCode="10"
+ version="1.0.0">
+
+ <name>GeeksNearby</name>
+
+ <description>
+ GeeksNearby application
+ </description>
+
+ <author href="https://outof.me" email="piotr@outof.me">
+ Piotr Walczyszyn
+ </author>
+
+ <preference name="phonegap-version" value="2.0.0"/>
+
+ <!-- only portrait mode is supported at this point -->
+ <preference name="orientation" value="portrait"/>
+
+ <!-- this application is for handset form factor -->
+ <preference name="target-device" value="handset"/>
+
+ <!-- we don't want to bounce -->
+ <preference name="webviewbounce" value="false"/>
+
+ <!-- splash screen will be hidden programatically -->
+ <preference name="auto-hide-splash-screen" value="false"/>
+
+ <!-- iOS icons -->
+ <icon src="icons/ios/icon.png" width="57" height="57"/>
+ <icon src="icons/ios/icon-72.png" gap:platform="ios" width="72" height="72"/>
+ <icon src="icons/ios/icon@2x.png" width="114" height="114"/>
+
+ <!-- Android icons -->
+ <icon src="icons/android/ldpi.png" gap:platform="android" gap:density="ldpi"/>
+ <icon src="icons/android/mdpi.png" gap:platform="android" gap:density="mdpi"/>
+ <icon src="icons/android/hdpi.png" gap:platform="android" gap:density="hdpi"/>
+ <icon src="icons/android/xhdpi.png" gap:platform="android" gap:density="xhdpi"/>
+
+ <!-- iOS splash screen -->
+ <gap:splash src="splash/ios/Default.png" width="320" height="480"/>
+ <gap:splash src="splash/ios/Default@2x.png" width="640" height="960"/>
+
+ <!-- Android splash screen -->
+ <gap:splash src="splash/android/ldpi.png" gap:platform="android" gap:density="ldpi"/>
+ <gap:splash src="splash/android/mdpi.png" gap:platform="android" gap:density="mdpi"/>
+ <gap:splash src="splash/android/hdpi.png" gap:platform="android" gap:density="hdpi"/>
+ <gap:splash src="splash/android/xhdpi.png" gap:platform="android" gap:density="xhdpi"/>
+
+ <!-- Android features/permissions -->
+ <feature name="http://api.phonegap.com/1.0/camera"/>
+ <feature name="http://api.phonegap.com/1.0/contacts"/>
+ <feature name="http://api.phonegap.com/1.0/file"/>
+ <feature name="http://api.phonegap.com/1.0/geolocation"/>
+ <feature name="http://api.phonegap.com/1.0/network"/>
+
+ <!-- White-list of urls available to open -->
+ <access origin="http://api.parse.com"/>
+ <access origin="http://files.parse.com"/>
+ <access origin="http://api.geeksnearby.com"/>
+
+ <access origin="http://linkedin.com" subdomains="true"/>
+ <access origin="http://licdn.com" subdomains="true"/>
+
+ <access origin="http://facebook.com" subdomains="true"/>
+ <access origin="http://fbcdn.net" subdomains="true"/>
+
+ <access origin="http://twitter.com" subdomains="true"/>
+ <access origin="http://twimg.com" subdomains="true"/>
+
+ <access origin="http://outof.me" subdomains="true"/>
+
+ <!-- Using ChildBrowser plugin -->
+ <gap:plugin name="ChildBrowser" />
+</widget>
@@ -0,0 +1,68 @@
+/* Red
+ -----------------------------------------------------------------------------------------------------------*/
+.ui-btn-up-r, .ui-btn-hover-r, .ui-btn-down-r {
+ color: white;
+ font-weight: bold;
+ text-decoration: none; }
+
+.ui-btn-up-r {
+ border: 1px solid #711414;
+ background: #ab2525;
+ text-shadow: 0 -1px 1px #711414;
+ background-image: -moz-linear-gradient(top, #c44f4f, #ab2525);
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #c45e5e), color-stop(1, #9e3939));
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#c44f4f', EndColorStr='#ab2525')"; }
+
+.ui-btn-hover-r {
+ border: 1px solid #6e0000;
+ background: #b54a4a;
+ text-shadow: 0 -1px 1px #690101;
+ background-image: -moz-linear-gradient(top, #d47272, #b54a4a);
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #d47272), color-stop(1, #b54a4a));
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#d47272', EndColorStr='#b54a4a')"; }
+
+.ui-btn-down-r {
+ border: 1px solid #782323;
+ background: #c44f4f;
+ text-shadow: 0 -1px 1px #782323;
+ background-image: -moz-linear-gradient(top, #9e3939, #c44f4f);
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #9e3939), color-stop(1, #c44f4f));
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#9e3939', EndColorStr='#c44f4f')"; }
+
+
+
+/* G
+ -----------------------------------------------------------------------------------------------------------
+ normal green: 019901
+ light green: 00bf00
+ dark green: 006b00
+
+ */
+.ui-btn-up-g, .ui-btn-hover-g, .ui-btn-down-g {
+ color: white;
+ font-weight: bold;
+ text-decoration: none; }
+
+.ui-btn-up-g {
+ border: 1px solid #006b00;
+ background: #019901;
+ text-shadow: 0 -1px 1px #006b00;
+ background-image: -moz-linear-gradient(top, #00bf00, #019901);
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #00bf00), color-stop(1, #019901));
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#00bf00', EndColorStr='#019901')"; }
+
+.ui-btn-hover-g {
+ border: 1px solid #006b00;
+ background: #00bf00;
+ text-shadow: 0 -1px 1px #690101;
+ background-image: -moz-linear-gradient(top, #019901, #006000);
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #019901), color-stop(1, #006000));
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#019901', EndColorStr='#006000')"; }
+
+.ui-btn-down-g {
+ border: 1px solid #006b00;
+ background: #006b00;
+ text-shadow: 0 -1px 1px #00592b;
+ background-image: -moz-linear-gradient(top, #006000, #00bf00);
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #006000), color-stop(1, #00bf00));
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#006000', EndColorStr='#00bf00')"; }
View
@@ -0,0 +1,77 @@
+@invalid-text-field-color: red;
+
+body {
+ margin: 0;
+}
+
+#container {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+}
+
+.invalid-text-field {
+ -moz-box-shadow: 0px 0px 12px @invalid-text-field-color;
+ -webkit-box-shadow: 0px 0px 12px @invalid-text-field-color;
+ box-shadow: 0px 0px 12px @invalid-text-field-color;
+}
+
+div.ui-header.absolute {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+}
+
+div.ui-content.absolute {
+ position: absolute;
+ top: 43px;
+ bottom: 0;
+ left: 0;
+ right: 0;
+}
+
+div.ui-content.absolute.with-bottom-bar {
+ bottom: 63px;
+}
+
+div.ui-footer.absolute {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+}
+
+.overthrow-enabled .overthrow {
+ overflow: auto;
+ -webkit-overflow-scrolling: touch;
+}
+
+#btnAddPhoto {
+ position: relative;
+ width: 80px;
+ height: 80px;
+ background-color: #d3d3d3;
+ color: #ffffff;
+ font-size: 12px;
+ text-shadow: none;
+ line-height: 80px;
+ text-align: center;
+}
+
+#btnAddPhoto img {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 80px;
+ height: 80px;
+}
+
+#lstUsersNearby a {
+ padding-left: 90px;
+ padding-right: 33px;
+}
+
+#lstUsersNearby p.ui-li-aside {
+ width: 40%;
+}
View
BIN icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>GeeksNearby.com</title>
+
+ <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
+ <meta charset="utf-8">
+
+ <link rel="stylesheet" href="scripts/libs/jquery.mobile/jquery.mobile-1.1.1.css"/>
+ <link rel="stylesheet" href="css/jquery-mobile-custom-buttons.css"/>
+
+
+ <link rel="stylesheet/less" type="text/css" href="css/style.less">
+ <script src="scripts/libs/less/less-1.3.0.min.js" type="text/javascript"></script>
+
+ <script type="text/javascript" charset="utf-8" src="scripts/libs/cordova/cordova-android-2.0.0.js"></script>
+
+ <script data-main="scripts/main" src="scripts/libs/require/require.js"></script>
+
+ <!--<script src="http://debug.phonegap.com/target/target-script-min.js#geeks"></script>-->
+</head>
+<body>
+<div id="container"/>
+</body>
+</html>
View
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>GeeksNearby.com</title>
+
+ <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
+ <meta charset="utf-8">
+
+ <link rel="stylesheet" href="scripts/libs/jquery.mobile/jquery.mobile-1.1.1.css"/>
+ <link rel="stylesheet" href="css/jquery-mobile-custom-buttons.css"/>
+
+ <link rel="stylesheet/less" type="text/css" href="css/style.less">
+ <script src="scripts/libs/less/less-1.3.0.min.js" type="text/javascript"></script>
+
+ <style type="text/css">
+ .overthrow-content > * {
+ -webkit-transform: translateZ(0px);
+ }
+ </style>
+
+ <script type="text/javascript" charset="utf-8" src="scripts/libs/cordova/cordova-ios-2.0.0.js"></script>
+ <script type="text/javascript" charset="utf-8" src="scripts/libs/cordova/ChildBrowser-ios.js"></script>
+
+ <script data-main="scripts/main" src="scripts/libs/require/require.js"></script>
+
+ <!--<script src="http://debug.phonegap.com/target/target-script-min.js#geeks"></script>-->
+</head>
+<body>
+<div id="container"/>
+</body>
+</html>
View
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>GeeksNearby.com</title>
+
+ <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
+ <meta charset="utf-8">
+
+ <link rel="stylesheet" href="scripts/libs/jquery.mobile/jquery.mobile-1.1.1.css"/>
+ <link rel="stylesheet" href="css/jquery-mobile-custom-buttons.css"/>
+
+ <link rel="stylesheet/less" type="text/css" href="css/style.less">
+ <script src="scripts/libs/less/less-1.3.0.min.js" type="text/javascript"></script>
+
+ <style type="text/css">
+ .overthrow-content > * {
+ -webkit-transform: translateZ(0px);
+ }
+ </style>
+
+ <script src="phonegap.js"></script>
+ <script src="childbrowser.js"></script>
+
+ <script data-main="scripts/main" src="scripts/libs/require/require.js"></script>
+ <!--<script src="http://debug.phonegap.com/target/target-script-min.js#geeks"></script>-->
+</head>
+<body>
+<div id="container"/>
+</body>
+</html>
View
@@ -0,0 +1,30 @@
+/**
+ * Created by Piotr Walczyszyn (outof.me | @pwalczyszyn)
+ *
+ * User: pwalczys
+ * Date: 7/11/12
+ * Time: 12:08 AM
+ */
+
+define(['jquery'], function ($) {
+
+ // Listening for mobileinit event
+ $(document).one("mobileinit", function () {
+
+ // Setting jQM pageContainer to #container div, this solves some jQM flickers & jumps
+ // I covered it here: http://outof.me/fixing-flickers-jumps-of-jquery-mobile-transitions-in-phonegap-apps/
+ $.mobile.pageContainer = $('#container');
+
+ // Setting to show message text in jQM loaders
+ $.mobile.loadingMessageTextVisible = true;
+
+ // 100ms for hoverDelay behaves better IMHO
+ $.mobile.buttonMarkup.hoverDelay = 100;
+
+ if (navigator.userAgent.match(/Android/))
+ $.mobile.defaultPageTransition = 'none'; // I wasn't happy with jQM transition on Android
+ else
+ $.mobile.defaultPageTransition = 'slide'; // On iOS slide transitions look goog
+
+ });
+});
Oops, something went wrong.

0 comments on commit e4093b0

Please sign in to comment.