-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
79 lines (74 loc) · 2.13 KB
/
main.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
<!DOCTYPE html>
<html>
<head>
<title>
Calculation of roof's area
</title>
<script src="script.js"></script>
<style>
body{
width:100%;
}
#all{
width: 600px;
margin:auto;
}
h1{
text-align: center;
margin:20px;
}
#map{
position: relative;
left:-24px;
height:600px;
width:600px;
margin-bottom: 20px;
display: none;
}
.n{
display: inline-block;
margin: 20px;
}
#e{
margin: 20px;
}
#e input{
width:445px;
}
#a{
margin: 20px;
}
#address{
width:247px;
}
#area{
display: none;
}
#result{
display: none;
text-align: center;
}
</style>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=<YOUR-GOOGLE-API-KEY>&callback=initialize">
</script>
<script type="text/javascript">
</script>
</head>
<body>
<div id="all">
<h1>My Google Map</h1>
<div class="n"><label>Name:</label><input type="text" name="name"></div>
<div class="n"><label>Surname:</label><input type="text" name="surname"></div>
<div id="e"><label>Email:</label><input type="email" name="email" ></div>
<div id="a">
<label>Your address:</label>
<input id="address" type="text" placeholder="Example: Via Goito 27, Ancona" value="">
<input id="geocode-button" type="button" value="Visualize" onclick="initialize()">
</div>
<div id="map"></div>
<input id="area" type="button" value="Conferma area"/>
<p id="result"></p>
</div>
</body>
</html>