-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
109 lines (98 loc) · 3.39 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
session_start();
if($_SESSION['Username'] != "")
header("location:loggedIn.php");
?>
<!DOCTYPE html>
<html>
<head>
<title>Pinchapp</title>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="jquery.mobile-1.2.0.css" />
<link rel="stylesheet" href="style.css" />
<link rel="apple-touch-icon" href="appicon.png" />
<link rel="apple-touch-startup-image" href="upstart.png">
<script src="jquery-1.8.2.min.js"></script>
<script src="jquery.mobile-1.2.0.js"></script>
<script src="hammer.js"></script>
<script src="jquery.hammer.js"></script>
</head>
<body>
<a name="#loginPinch"></a>
<!-- Start of first page: #logingOne -->
<div data-role="page" id="loginOne">
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script>
function getLocation()
{
if (navigator.geolocation)
{
navigator.geolocation.getCurrentPosition(showPosition,showError);
}
else{x.innerHTML="Geolocation is not supported by this browser.";}
}
function showPosition(position)
{
lat=position.coords.latitude;
lon=position.coords.longitude;
latlon=new google.maps.LatLng(lat, lon)
mapholder=document.getElementById('mapholder')
mapholder.style.height='100px';
mapholder.style.width='160px';
var myOptions={
center:latlon,zoom:14,
mapTypeId:google.maps.MapTypeId.ROADMAP,
mapTypeControl:false,
navigationControlOptions:{style:google.maps.NavigationControlStyle.SMALL}
};
var map=new google.maps.Map(document.getElementById("mapholder"),myOptions);
var marker=new google.maps.Marker({position:latlon,map:map,title:"You are here!"});
}
function showError(error)
{
switch(error.code)
{
case error.PERMISSION_DENIED:
x.innerHTML="User denied the request for Geolocation."
break;
case error.POSITION_UNAVAILABLE:
x.innerHTML="Location information is unavailable."
break;
case error.TIMEOUT:
x.innerHTML="The request to get user location timed out."
break;
case error.UNKNOWN_ERROR:
x.innerHTML="An unknown error occurred."
break;
}
}
</script>
<div data-role="header">
<h1>Pinch</h1>
</div><!-- /header -->
<div data-role="content">
<p>Please select a username.</p>
<div data-role="fieldcontain" class="ui-hide-label">
<form action="registration_check.php" method="post">
<input type="Text" name="Username" placeholder="Username"/><br>
<input type="hidden" name="Page" value="Welcome">
<input type="Submit" value="Submit"/>
</form>
</div>
</div> <!-- /content -->
<div data-role="footer" data-id="samebar" class="nav-glyphish-example" data-position="fixed" data-tap-toggle="false">
<div data-role="navbar" class="nav-glyphish-example">
<input type="file" id="imageSelect" style="display:none" onchange="handleFiles(this.files)">
<ul>
<li><a href="index.php" id="home" data-icon="custom" class="ui-btn-active">Home</a></li>
<li><a href="loginPinch.php" id="beer" data-icon="custom">Pinch</a></li>
<li><a href="loginHelp.php" id="help" data-icon="custom">Help</a></li>
</ul>
</div>
</div>
</div><!-- /page loginOne -->
</body>
</html>