generated from ICEI-PUC-Minas-PMV-ADS/WebApplicationProject-Template-v2
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Index.html
90 lines (84 loc) · 4.22 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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minha Página</title>
<script src="Definitivo/healthweb/pagina principal/Index.Js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script>
<link rel="stylesheet" href="Definitivo/healthweb/pagina principal/Index.CSS">
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDLUQtFppvrb30LUOTMwOJCMOgql67JI2U&libraries=places"></script>
async defer></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script type="module" src="https://unpkg.com/@googlemaps/extended-component-library@0.6">
</script>
</head>
<body>
<nav class="navbar navbar-expand-lg bg-primary py-1">
<div class="container-fluid">
<a class="navbar-brand fs-2 text-light" href="Definitivo/healthweb/pagina principal/Index/Index.html">Health Web</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#menuNavbar"></button>
<div class="collapse navbar-collapse" id="menuNavbar">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link active text-light" aria-current="page" href="Definitivo/healthweb/pagina-videos/videos.html">Vídeos</a>
</li>
<li class="nav-item">
<a class="nav-link text-light" href="Definitivo/healthweb/pagina principal/Index/Index.html">Ínicio</a>
</li>
<li class="nav-item">
<a class="nav-link text-light" href="Definitivo/healthweb/Receita do dia/src/index.html">Receita</a>
</li>
<li class="nav-item">
<a class="nav-link text-light" href="Definitivo/healthweb/login e cadastro/meu primeiro projeto/index.html">Meu perfil</a>
</li>
</ul>
</div>
</div>
</nav>
<main>
<h2>Calculadora de Peso Ideal e Água Recomendada</h2>
<form id="calculatorForm">
<label for="altura">Altura (cm):</label>
<input type="text" id="altura" name="altura" placeholder="Digite sua altura">
<label for="sexo">Sexo:</label>
<select id="sexo" name="sexo">
<option value="masculino">Masculino</option>
<option value="feminino">Feminino</option>
</select>
<input type="submit" value="Calcular">
<div id="result" class="result"></div>
</form>
</main>
<script>
document.getElementById("calculatorForm").addEventListener("submit", function(event) {
event.preventDefault(); // Evita o comportamento padrão de recarregar a página ao enviar o formulário
calcularPesoEAqua(); // Chama a função que calcula o peso e a quantidade de água recomendada
});
//window.onload = function processarLogin() {
// var loggedIn = localStorage.getItem("loggedIn");
// if (!loggedIn || loggedIn !== "true") {
// window.location.href = "/Users/Usuario/Desktop/healthweb/login e cadastro/meu primeiro projeto/index.html"; // Redireciona para a página de login se não estiver logado
// }
// };
</script>
<h3>Vamos Lá, insira seu endereço e procure uma academia ou parque proximo a sua casa</h3>
<div class="place-autocomplete-card" id="place-autocomplete-card">
<p>Search for a place here:</p>
</div>
<div id="map">
</div>
<!--
The `defer` attribute causes the script to execute after the full HTML
document has been parsed. For non-blocking uses, avoiding race conditions,
and consistent behavior across browsers, consider loading using Promises. See
https://developers.google.com/maps/documentation/javascript/load-maps-js-api
for more information.
-->
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDLUQtFppvrb30LUOTMwOJCMOgql67JI2U&callback=initMap&libraries=places&v=alpha"
defer
></script>
</body>
</html>