-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (64 loc) · 2.32 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="dark">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
<!-- link rel="icon" type="image/svg" href="monad.svg" -->
<title>EcoNet</title>
</head>
<body>
<header>
<nav>
<a href="friends.html"><i class="bi bi-people-fill"></i> Friends</a>
</nav>
<div><a href="index.html"><i class="bi bi-recycle"></i> EcoNet</a></div>
<div><a href="profile.html"><i class="bi bi-person-circle"></i> Guest</a></div>
</header>
<main>
<div class="content">
<p>Red zones are full of garbage. We need volunteers to clean them. Get +rep, rating, achievements and money for work.</p>
</div>
<div id="map"></div>
</main>
<footer>
<small>© Day Rain, B-Plan</small>
</footer>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""></script>
<script>
const map = L.map('map').setView([42.87, 74.59], 14);
const tiles = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
detectRetina: true,
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map);
const circle0 = L.circle([42.878, 74.592], {
color: '#ff0000',
fillColor: '#ff0000',
fillOpacity: 0.5,
radius: 180
}).addTo(map);
circle0.bindPopup("<p>Plastic: 50rep/kg<br>Glass: 100rating/kg</p>")
const circle1 = L.circle([42.87, 74.58], {
color: '#ff0000',
fillColor: '#ff0000',
fillOpacity: 0.5,
radius: 180
}).addTo(map);
const circle2 = L.circle([42.865, 74.6], {
color: '#ff0000',
fillColor: '#ff0000',
fillOpacity: 0.5,
radius: 180
}).addTo(map);
circle1.bindPopup("<p>Plastic: 40rep/kg<br>Glass: 80rep/kg<br>Achievement: Mr. Sandman</p>")
circle2.bindPopup("<p>Paper: 99rating/kg<br>Glass: 100rep/kg<br>Achievement: Mr. Propper</p>")
</script>
</body>
</html>