Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!--
- 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.
- -->
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta name="format-detection" content="telephone=no" />
- <meta name="viewport" content="initial-scale=1, width=device-width">
- <link rel="stylesheet" type="text/css" href="lib/jquery-mobile/jquery.mobile-1.2.0.css" />
- <link rel="stylesheet" type="text/css" href="css/index.css" />
- <title>PoolMeUp</title>
- <script>
- var callingNumber = "";
- var myFriends = [];
- var savedCO2 = 0;
- //constructor
- var MyPhoneNumberPlugin = {
- getMyPhoneNumber: function(onSuccess, onError) {
- console.log("at getMyPhoneNumber");
- return PhoneGap.exec(onSuccess, onError, "MyPhoneNumberPlugin", "getMyPhoneNumber", []);
- }
- };
- </script>
- </head>
- <body>
- <div data-role="page" id="index" style="background-image: url(img/bg.png);">
- <div data-role="header">
- <h1>PoolMeUp!</h1>
- </div>
- <div data-role="content">
- <p><a href="#find" data-role="button">Find a ride!</a></p>
- <p><a href="#offer" data-role="button">Offer a ride!</a></p>
- </div>
- </div>
- <div data-role="page" id="rideFound" style="background-image: url(img/bg_ok.png);">
- <div data-role="header">
- <h1>PoolMeUp!</h1>
- </div>
- <div data-role="content">
- <h1>Congratulations!</h1>
- <br /><br /><br /><br /><br /><br />
- <h2>You found a ride!</h2>
- <p>With this ride, you earned <span id="earnedPoints" style="font-size: 10pt;"></span> points!</p>
- </div>
- </div>
- <!-- Elenco di quelli che offrono un passaggio -->
- <div data-role="page" id="driversListPage" style="background-image: url(img/bg.png);">
- <div data-role="header">
- <h1>PoolMeUp!</h1>
- </div>
- <div data-role="content">
- <h2>These friends are elegible for give you a ride.<br />>Choose your ride:</h2>
- <ul id="driversListUl" data-inset="true" data-filter="true">
- </ul>
- </div>
- </div>
- <div data-role="dialog" id="popupMyPhone">
- <div data-role="header" data-theme="d">
- <h1>Phone number</h1>
- </div>
- <div data-role="content" data-theme="c">
- <p>Please insert your phone number (without +39)</p>
- <input type="tel" name="user" id="myphoneinput" value="" placeholder="phone" data-theme="a" />
- <button type="submit" data-theme="b" id="setMyIp">Sign in</button>
- </div>
- </div>
- <div data-role="page" id="find" style="background-image: url(img/bg.png);">
- <div data-role="header">
- <h1>PoolMeUp! Find a ride</h1>
- </div>
- <div data-role="content">
- <label for="find-origine">Origin:</label>
- <input type="text" name="origine" id="find-origine">
- <label for="find-destinazione">Destination:</label>
- <input type="text" name="destinazione" id="find-destinazione">
- <label for="data">Date:</label>
- <input type="text" name="data" id="find-data">
- <label for="find-persons">We are in:</label>
- <input type="range" name="persons" id="find-persons" value="1" min="1" max="10" />
- <button id="findride">Find a ride!</button>
- </div>
- </div>
- <div data-role="page" id="offer" style="background-image: url(img/bg.png);">
- <div data-role="header">
- <h1>PoolMeUp! Offer a ride!</h1>
- </div>
- <div data-role="content">
- <label for="offer-origine">Origin:</label>
- <input type="text" name="origine" id="offer-origine">
- <label for="offer-destinazione">Destination:</label>
- <input type="text" name="destinazione" id="offer-destinazione">
- <label for="offer-data">When:</label>
- <input type="text" name="data" id="offer-data" placeholder="dd/mm/yyyy hh:mm">
- <label for="offer-persons">Available seats:</label>
- <input type="range" name="persons" id="offer-persons" value="1" min="1" max="10" />
- <label for="maxtreshold">Max. delay (minutes):</label>
- <input type="range" name="maxtreshold" id="maxtreshold" value="30" min="0" max="500" />
- <fieldset id="veicolo" data-role="controlgroup" data-type="horizontal">
- <legend>Vehicle:</legend>
- <input type="radio" name="veicolo" id="auto" value="AUTO" checked="checked">
- <label for="auto">Car</label>
- <input type="radio" name="veicolo" id="scooter" value="SCOOTER">
- <label for="scooter">Scooter</label>
- </fieldset>
- <button id="offerride">Get your path and wait for a friend!</button>
- </div>
- </div>
- <div data-role="dialog" id="dialog">
- <div data-role="header" data-theme="d">
- <h1 id="dialogtitle">Title</h1>
- </div>
- <div data-role="content" data-theme="c">
- <p id="dialogmessage">Message</p>
- <a href="#" data-role="button" data-rel="back" data-theme="b">Ok</a>
- </div>
- </div>
- <div data-role="page" id="viewpath" style="background-image: url(img/bg.png);">
- <div data-role="header">
- <h1>PoolMeUp! MyTrip</h1>
- </div>
- <div data-role="content">
- <ul id="actionlist" data-role="listview" data-inset="true" data-filter="true">
- </ul>
- </div>
- </div>
- <script type="text/javascript" src="cordova-2.2.0.js"></script>
- <script type="text/javascript" src="lib/jquery.min.js"></script>
- <script type="text/javascript" src="lib/jquery-mobile/jquery.mobile-1.2.0.min.js"></script>
- <script type="text/javascript" src="js/index.js"></script>
- <script type="text/javascript">
- $(document).ready(function () {
- app.initialize();
- $("#find-origine").val("Via della vasca navale");
- $("#find-destinazione").val("viale marconi");
- $("#find-data").val("23/10/1991 23:23");
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment