-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathupload.html
More file actions
76 lines (76 loc) · 3.03 KB
/
upload.html
File metadata and controls
76 lines (76 loc) · 3.03 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="upload.css">
<title>Donation Page</title>
</head>
<body>
<div class="contianer">
<div class="title">Donator Information</div>
<form action="#">
<div class="user-details">
<div class="input-box">
<span class="detail">Full Name</span>
<input type="text" placeholder="Enter you Name" required>
</div>
<div class="input-box">
<span class="detail">Email</span>
<input type="email" placeholder="Enter you Email" required>
</div>
<div class="input-box">
<span class="detail">Phone Number</span>
<input type="text" placeholder="Enter you Phone Number" required>
</div>
<div class="input-box">
<span class="detail">Address</span>
<input type="text" placeholder="Enter you Address" required>
</div>
<!-- <div class="input-box">
<span class="detail">Full Name</span>
<input type="text" placeholder="Enter you Name" required>
</div> -->
<div class="gender-details">
<input type="radio" name="gender" id="dot-1">
<input type="radio" name="gender" id="dot-2">
<input type="radio" name="gender" id="dot-3">
<span class="gender-title">Gender</span>
<div class="category">
<label for="">
<span class="dot one"></span>
<span class="gender">Male</span>
</label>
<label for="">
<span class="dot two"></span>
<span class="gender">Female</span>
</label>
<label for="">
<span class="dot three"></span>
<span class="gender">Prefer not to say</span>
</label>
</div>
</div>
</div>
<div class="button">
<input type="submit" value="Register" onclick="getLocation()">
</div>
</form>
</div>
<script>
var x = document.getElementById("write");
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
}
else {
x.innerHTML = "Geolocation is not supported by this browser.";
}
}
function showPosition(position) {
console.log("Latitude: " + position.coords.latitude + "<br>Longitude: " + position.coords.longitude);
}
</script>
</body>
</html>