-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
194 lines (175 loc) · 9.86 KB
/
index.html
File metadata and controls
194 lines (175 loc) · 9.86 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
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="pt-br">
<head>
<meta charset="utf-8">
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<link rel="stylesheet" href="https://indestructibletype.com/fonts/Jost.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Josefin+Sans" />
<link rel="shortcut icon" href="imgs/logo.png">
<meta charset="UTF-8">
<title> Comer Melhor </title>
<link rel="stylesheet" href="css/mapa.css">
<link href="css/stylish-portfolio.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDB0bW9wweKavZygNsWciNLzcrotfSQKh4 "> </script>
<script type="text/javascript">
var locations = [
];
var icone = "";
function defineLoc(id){
if(id=="vegan"){
locations = [
["Purana.co", -23.561705,-46.681878,"$$",4],
["Homa", -23.566415,-46.688855,"$$$",4.5],
["Quincho",-23.557990,-46.691226,"$$",4],
["Mount Zion Vegan",-23.526294,-46.694179,"$",4.5],
["Subte Vegan",-23.543623,-46.640101,"$",4],
["Pop Vegan Food",-23.553904,-46.657664,"$",4],
["Padoca Vegan",-23.547636,-46.691948,"$",4.5],
["Prime Dog ",-23.579563,-46.639954,"$",4],
["Novos Veganos",-23.514432,-46.526202,"$",4.5],
["Boteco Ouzar ",-23.602711,-46.612822,"$",5],
["Boteco do Góis",-23.537771,-46.650262,"$",4]
];
icone = 'imgs/laranjinha.png';
}
if(id=="gluten"){
locations = [
["Tomyam", -23.565447, -46.661195, "$$$", 4],
["Dona Vitamina", -23.564563, -46.683899, "$$", 4.5],
["Le Manjue Organique - Jardins", -23.564846, -46.669558, "$$$", 4.5],
["Vila das Rosas - Pinheiros", -23.560822, -46.696360, "$$$", 4.5],
["Manai Gastronomia", -23.530190, -46.734457, "$$", 4.5],
["Supra di Mauro Maia", -23.588122, -46.679296, "$$$", 4.5],
["Recanto Vegetariano", -23.608352, -46.692249, "$$", 4.5],
["Barão Natural", -23.547352, -46.572053, "$", 4],
["Vegg's Restaurante", -23.601381, -46.636164, "$", 4.5],
["Casa Prema", -23,570964, -46.693134, "$", 4.5],
["Ají Inspiração Peruana", -23.564064, -46.683246, "$", 4.5],
["Vila Salute - Emporio & Rotisserie", -23.561583, -46.690238, "$", 4.5]
];
icone = 'imgs/amarelosmall.png';
}
if(id=="lactose"){
locations = [
["Grão Fino",-23.581292,-46.677041,"$$",4],
["Prá lá de bom",-23.608864,-46.663779,"$$",4.5],
["Isabela Akkari",-23.593131,-46.676598,"$$$",4.5],
["Casa Santa Luzia",-23.564454,-46.665782,"$$$$",5],
["Healthy Bites",-23.594583,-46.677056,"$$$$",4],
["Lilóri",-23.565121,-46.661542,"$$$",4],
["Tea Connection",-23.565512,-46.664366,"$$",5],
["Urban Remedy",-23.562511,-46.669529,"$$$",4.5]
];
icone = 'imgs/verdesmall.png';
}
if(id=="diabetes"){
locations = [
["Buttina", -23.631609, -46.737084, "$$", 4],
["B.LEM Portuguese Bakery", -23.564,033, -46.683,389, "$", 4.5],
["Amor aos pedaços", -23.594128, -46.6329654, "$$$", 5],
["Zucco Jardins", -23.565269, -46.669785, "$$$", 4],
["Suave Sabor", -23.549089, -46.560688, "$", 4.5],
["Bendito Frio", -23.602653, -46.668590, "$", 4]
];
icone = 'imgs/verdinho.png';
}
if(id=="feiras"){
locations = [
["VILA FORMOSA",-23.558733,-46.550164,"TV RUA PRETORIA"],
["PRACA SANTA HELENA",-23.584852,-46.574716,"RUA OLIVEIRA GOUVEIA"],
["CONCORDIA",-23.536131,-46.610332,"TV RUA BRESSER"],
["VILA NOVA GRANADA",-23.520880,-46.513450,"RUA OLIVIA DE OLIVEIRA"],
["PARQUE SAVOY CITY",-23.568665,-46.485000,"RUA DR CELSO PACHECO BETIM",],
["MAR PAULISTA",-23.691790,-46.659953,"ESTRADA DO ALVARENGA"],
["CRUZ DAS ALMAS",-23.481683,-46.701030,"AV ELISIO TEIXEIRA LEITE"],
["LAJEADO",-23.523125,-46.426341,"RUA JOSE MARTINS DOS SANTOS",],
["ALTO DAS PERDIZES",-23.539369,-46.673057,"PONTF.UNIVERSIDADE CATOLICA"],
["MARIA CARLOTA", -23.530784,-46.527190,"LOC AV AMADOR BUENO DA VEIGA"],
["CECILIA ITER",-23.521470,-46.434970,"P FINAL ON VILA PROGRESSO"],
["VILA SONIA",-23.592640,-46.731043,"PROXIMO DISTRITO POLICIAL"],
["COHAB FERNAO DIAS",-23.486440,-46.569768,"ALONSO P B AVENTURA DE SOUZA"],
["VILA OLIVIERI",-23.645941,-46.594968,"RUA CARLA LIVIERO"],
["COCAIA",-23.752316,-46.681941,"RUA CAMPO DO ARAVIL"]
];
icone = 'imgs/laranjasmall.png';
}
initialize();
}
function contentLoc(nome, preço, estrelas){
if(estrelas !== undefined){
return nome + "<br/>" + preço + "<br/>" + estrelas + " estrelas";
}else{
return nome + "<br/> referencia: " + preço;
}
}
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(-23.552559, -46.625561),
zoom: 11,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
mapOptions);
function carregarPontos(){
for (i = 0; i < locations.length; i++) {
marker = new google.maps.Marker({
position: new google.maps.LatLng(locations[i][1], locations[i][2]),
title: locations[i][0],
map: map,
icon: icone
});
marker['infowindow'] = new google.maps.InfoWindow({
content: contentLoc(locations[i][0], locations[i][3], locations[i][4])
});
google.maps.event.addListener(marker, 'mouseover', function() {
this['infowindow'].open(map, this);
});
}
}
carregarPontos();
}
</script>
</head>
<body onload="initialize()">
<div class="general-container">
<div class="navbar">
<a href="index.html"> <i class="fas fa-angle-left"></i> </a>
<ul>
<li> <a href="index.html"> HOME </a></li>
<li> <a href="search.html"> SEARCH </a></li>
</ul>
</div>
<img class='logo' src='imgs/logo.png'>
<div class="container">
<h2 class="title">O que você está procurando? </h2>
<a href="#" onclick="defineLoc('feiras')">
<img src="imgs/laranja escuro.png" style="top: 200px;" class="pin">
<h3 style="top: 185px;" class="escrito"> Feiras livres </h3>
</a>
<a href="#" onclick="defineLoc('vegan')">
<img src="imgs/laranja claro.png" style="top: 280px;" class="pin">
<h3 style="top: 265px;" class="escrito"> Restaurantes veganos </h3>
</a>
<a href="#" onclick="defineLoc('gluten')">
<img src="imgs/amarelo.png" style="top: 360px;" class="pin">
<h3 style="top: 345px;" class="escrito"> Para celíacos </h3>
</a>
<a href="#" onclick="defineLoc('diabetes')">
<img src="imgs/verde claro.png" style="top: 440px;" class="pin">
<h3 style="top: 425px;" class="escrito"> Para diabéticos </h3>
</a>
<a href="#" onclick="defineLoc('lactose')">
<img src="imgs/verde escuro.png" style="top: 520px;" class="pin">
<h3 style="top: 505px;" class="escrito"> Para intolerantes à lactose </h3>
</a>
</div>
</div>
<section id="contact" class="map">
<div id="map_canvas" style="width:100%; height:100%"></div>
</section>
<div>
<p>As informações deste mapa foram retiradas de bancos de dados do governo de SP e do site TripAdvisor</p>
</div>
</body>
</html>