tyrion

index.html

Dec 2nd, 2012
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <!--
  3.    Licensed to the Apache Software Foundation (ASF) under one
  4.    or more contributor license agreements.  See the NOTICE file
  5.    distributed with this work for additional information
  6.    regarding copyright ownership.  The ASF licenses this file
  7.    to you under the Apache License, Version 2.0 (the
  8.    "License"); you may not use this file except in compliance
  9.    with the License.  You may obtain a copy of the License at
  10.  
  11.    http://www.apache.org/licenses/LICENSE-2.0
  12.  
  13.    Unless required by applicable law or agreed to in writing,
  14.    software distributed under the License is distributed on an
  15.    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16.     KIND, either express or implied.  See the License for the
  17.    specific language governing permissions and limitations
  18.    under the License.
  19. -->
  20. <html>
  21.     <head>
  22.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  23.         <meta name="format-detection" content="telephone=no" />
  24.         <meta name="viewport" content="initial-scale=1, width=device-width">
  25.         <link rel="stylesheet" type="text/css" href="lib/jquery-mobile/jquery.mobile-1.2.0.css" />
  26.         <link rel="stylesheet" type="text/css" href="css/index.css" />
  27.         <title>PoolMeUp</title>
  28.         <script>
  29.             var callingNumber = "";
  30.             var myFriends = [];
  31.             var savedCO2 = 0;
  32.  
  33.             //constructor
  34.             var MyPhoneNumberPlugin = {
  35.                 getMyPhoneNumber: function(onSuccess, onError) {
  36.                     console.log("at getMyPhoneNumber");
  37.                     return PhoneGap.exec(onSuccess, onError, "MyPhoneNumberPlugin", "getMyPhoneNumber", []);
  38.                 }
  39.             };
  40.         </script>
  41.  
  42.     </head>
  43.     <body>
  44.  
  45.     <div data-role="page" id="index" style="background-image: url(img/bg.png);">
  46.  
  47.         <div data-role="header">
  48.             <h1>PoolMeUp!</h1>
  49.         </div>
  50.  
  51.         <div data-role="content">
  52.             <p><a href="#find" data-role="button">Find a ride!</a></p>
  53.             <p><a href="#offer" data-role="button">Offer a ride!</a></p>
  54.         </div>
  55.  
  56.     </div>
  57.  
  58.     <div data-role="page" id="rideFound" style="background-image: url(img/bg_ok.png);">
  59.  
  60.         <div data-role="header">
  61.             <h1>PoolMeUp!</h1>
  62.         </div>
  63.  
  64.         <div data-role="content">
  65.             <h1>Congratulations!</h1>
  66.             <br /><br /><br /><br /><br /><br />
  67.             <h2>You found a ride!</h2>
  68.             <p>With this ride, you earned <span id="earnedPoints" style="font-size: 10pt;"></span> points!</p>
  69.         </div>
  70.  
  71.     </div>
  72.  
  73.  
  74.     <!-- Elenco di quelli che offrono un passaggio -->
  75.     <div data-role="page" id="driversListPage" style="background-image: url(img/bg.png);">
  76.         <div data-role="header">
  77.             <h1>PoolMeUp!</h1>
  78.         </div>
  79.  
  80.         <div data-role="content">
  81.             <h2>These friends are elegible for give you a ride.<br />>Choose your ride:</h2>
  82.             <ul id="driversListUl" data-inset="true" data-filter="true">
  83.  
  84.             </ul>
  85.         </div>
  86.     </div>
  87.  
  88.     <div data-role="dialog" id="popupMyPhone">
  89.  
  90.         <div data-role="header" data-theme="d">
  91.             <h1>Phone number</h1>
  92.         </div>
  93.         <div data-role="content" data-theme="c">
  94.             <p>Please insert your phone number (without +39)</p>
  95.             <input type="tel" name="user" id="myphoneinput" value="" placeholder="phone" data-theme="a" />
  96.             <button type="submit" data-theme="b" id="setMyIp">Sign in</button>
  97.         </div>
  98.     </div>
  99.  
  100.     <div data-role="page" id="find" style="background-image: url(img/bg.png);">
  101.         <div data-role="header">
  102.             <h1>PoolMeUp! Find a ride</h1>
  103.         </div>
  104.  
  105.         <div data-role="content">
  106.             <label for="find-origine">Origin:</label>
  107.             <input type="text" name="origine" id="find-origine">
  108.             <label for="find-destinazione">Destination:</label>
  109.             <input type="text" name="destinazione" id="find-destinazione">
  110.             <label for="data">Date:</label>
  111.             <input type="text" name="data" id="find-data">
  112.             <label for="find-persons">We are in:</label>
  113.             <input type="range" name="persons" id="find-persons" value="1" min="1" max="10" />
  114.             <button id="findride">Find a ride!</button>
  115.         </div>
  116.     </div>
  117.     <div data-role="page" id="offer" style="background-image: url(img/bg.png);">
  118.         <div data-role="header">
  119.             <h1>PoolMeUp! Offer a ride!</h1>
  120.         </div>
  121.  
  122.         <div data-role="content">
  123.             <label for="offer-origine">Origin:</label>
  124.             <input type="text" name="origine" id="offer-origine">
  125.             <label for="offer-destinazione">Destination:</label>
  126.             <input type="text" name="destinazione" id="offer-destinazione">
  127.             <label for="offer-data">When:</label>
  128.             <input type="text" name="data" id="offer-data" placeholder="dd/mm/yyyy hh:mm">
  129.             <label for="offer-persons">Available seats:</label>
  130.             <input type="range" name="persons" id="offer-persons" value="1" min="1" max="10" />
  131.             <label for="maxtreshold">Max. delay (minutes):</label>
  132.             <input type="range" name="maxtreshold" id="maxtreshold" value="30" min="0" max="500" />
  133.             <fieldset id="veicolo" data-role="controlgroup" data-type="horizontal">
  134.                 <legend>Vehicle:</legend>
  135.                 <input type="radio" name="veicolo" id="auto" value="AUTO" checked="checked">
  136.                 <label for="auto">Car</label>
  137.                 <input type="radio" name="veicolo" id="scooter" value="SCOOTER">
  138.                 <label for="scooter">Scooter</label>
  139.             </fieldset>
  140.             <button id="offerride">Get your path and wait for a friend!</button>
  141.         </div>
  142.     </div>
  143.  
  144.     <div data-role="dialog" id="dialog">
  145.         <div data-role="header" data-theme="d">
  146.             <h1 id="dialogtitle">Title</h1>
  147.         </div>
  148.         <div data-role="content" data-theme="c">
  149.             <p id="dialogmessage">Message</p>
  150.             <a href="#" data-role="button" data-rel="back" data-theme="b">Ok</a>
  151.         </div>
  152.     </div>
  153.  
  154.     <div data-role="page" id="viewpath" style="background-image: url(img/bg.png);">
  155.         <div data-role="header">
  156.             <h1>PoolMeUp! MyTrip</h1>
  157.         </div>
  158.  
  159.         <div data-role="content">
  160.             <ul id="actionlist" data-role="listview" data-inset="true" data-filter="true">
  161.  
  162.             </ul>
  163.         </div>
  164.  
  165.     </div>
  166.  
  167.         <script type="text/javascript" src="cordova-2.2.0.js"></script>
  168.         <script type="text/javascript" src="lib/jquery.min.js"></script>
  169.         <script type="text/javascript" src="lib/jquery-mobile/jquery.mobile-1.2.0.min.js"></script>
  170.         <script type="text/javascript" src="js/index.js"></script>
  171.         <script type="text/javascript">
  172.  
  173.             $(document).ready(function () {
  174.                 app.initialize();
  175.  
  176.                 $("#find-origine").val("Via della vasca navale");
  177.                 $("#find-destinazione").val("viale marconi");
  178.                 $("#find-data").val("23/10/1991 23:23");
  179.             });
  180.  
  181.  
  182.  
  183.         </script>
  184.     </body>
  185. </html>
Advertisement
Add Comment
Please, Sign In to add comment