-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·194 lines (171 loc) · 7.74 KB
/
index.html
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Material Design for Bootstrap</title>
<!-- MDB icon -->
<link rel="icon" href="img/mdb-favicon.ico" type="image/x-icon">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
<!-- Google Fonts Roboto -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- Material Design Bootstrap -->
<link rel="stylesheet" href="css/mdb.min.css">
<!-- Your custom styles (optional) -->
<link rel="stylesheet" href="css/style.css">
<link href="https://static.neshan.org/sdk/leaflet/1.4.0/leaflet.css" rel="stylesheet" type="text/css">
<script src="https://static.neshan.org/sdk/leaflet/1.4.0/leaflet.js" type="text/javascript"></script>
</head>
<body style="background-image: url('https://mdbootstrap.com/img/Photos/Others/images/91.jpg'); background-repeat: no-repeat; background-size: cover; background-position: center center;">
<header>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark fixed-top scrolling-navbar">
<div class="container">
<a class="navbar-brand" href="#">
<strong>Geogram</strong>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent-7" aria-controls="navbarSupportedContent-7" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent-7">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="login.php">Signin
<span class="sr-only">(current)</span>
</a>
</li>
</ul>
<form class="form-inline">
<div class="md-form my-0">
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
</div>
</form>
</div>
</div>
</nav>
<!-- Navbar -->
<!-- Full Page Intro -->
<!-- Mask & flexbox options-->
<div class="mask rgba-gradient align-items-center">
<!-- Content -->
<div class="container">
<!--Grid row-->
<div class="row">
<!--Grid column-->
<!--Grid column-->
<!--Grid column-->
<div class="col-md-12 col-xl-12 mb-12">
<!--Form-->
<div class="card wow fadeInRight" id="login_form" data-wow-delay="0.3s" style="margin-top:10%">
<div class="card-body">
<!--Header-->
<div class="text-center">
<h3 class="white-text">
<i class="fas fa-user white-text"></i> Register</h3>
<hr class="hr-light">
</div>
<!--Body-->
<div class="md-form">
<i class="fas fa-user prefix white-text active"></i>
<input type="text" id="form3" class="white-text form-control">
<label for="form3" class="active">Your User name</label>
</div>
<div class="md-form">
<i class="fas fa-envelope prefix white-text active"></i>
<input type="email" id="form2" class="white-text form-control">
<label for="form2" class="active">Your email</label>
</div>
<div class="md-form">
<i class="fas fa-lock prefix white-text active"></i>
<input type="password" id="form4" class="white-text form-control">
<label for="form4">Your password</label>
</div>
<div id="map" style="width:100%; height: 600px; background: #eee; border: 2px solid #aaa;"></div>
<div class="text-center mt-4">
<button class="btn btn-indigo" id="login_btn">Sign up</button>
<hr class="hr-light mb-3 mt-4">
<div class="inline-ul text-center">
</div>
</div>
</div>
</div>
<!--/.Form-->
</div>
<!--Grid column-->
</div>
<!--Grid row-->
</div>
<!-- Content -->
</div>
<!--Main Layout-->
<main>
<div class="container">
<!--Grid row-->
<div class="row py-5">
<!--Grid column-->
<!--Grid column-->
</div>
<!--Grid row-->
</div>
</main>
<!-- End your project here-->
<!-- jQuery -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="js/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="js/mdb.min.js"></script>
<script type="text/javascript">
var lat=51;
var lang=37;
</script>
<script type="text/javascript">
var myMap = new L.Map('map', {
key: 'web.xfugdP3bA5aqdROH6yNKqOs10rynGeyeu3uISyUs',
maptype: 'dreamy',
poi: true,
traffic: false,
center: [35.699739, 51.338097],
zoom: 14
});
var popup = L.popup();
function onMapClick(e) {
popup
.setLatLng(e.latlng)
.setContent("You clicked the map at " + e.latlng.toString())
.openOn(myMap);
lat = e.latlng.lat;
lang = e.latlng.lng;
}
myMap.on('click', onMapClick);
new WOW().init();
</script>
<script type="text/javascript">
$(document).ready(function(){
$("#login_btn").click(function(){
var username = document.getElementById("form3").value
var password = document.getElementById("form4").value
var email = document.getElementById("form2").value
$.post("http://127.0.0.1:8000/users/",
{
"user.username": username,
"user.email": email,
"user.password": password,
"lat": window.lat,
"lang": window.lang
},
function(data,status){
window.location = "login.php";
});
});
});
</script>
<!-- Your custom scripts (optional) -->
</body>
</html>