-
Notifications
You must be signed in to change notification settings - Fork 0
/
location.php
48 lines (35 loc) · 1.44 KB
/
location.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
<?php
$ROOT_PREFIX = '';
require($ROOT_PREFIX.'inc/config.inc.php');
require($ROOT_PREFIX.'inc/function.inc.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>DormDecor</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.js"></script>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport"/>
<script language="javascript">
function successHandler(location) {
window.location = 'home.php?longitude=' + location.coords.longitude + '&latitude=' + location.coords.latitude + '&accuracy = ' + location.coords.accuracy;
}
function errorHandler(error) {
window.location = 'home.php';
}
window.location = 'home.php';
//navigator.geolocation.getCurrentPosition(successHandler, errorHandler);
</script>
</head>
<body>
<div data-role="page" data-theme="e">
<div data-role="content">
<img src="images/logo_large.png" />
<hr />
<center>Welcome to DormDecor, your one-stop shop for planning, furnishing, and decorating your college dorm room!</center>
</div>
</div>
</body>
</html>