-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (88 loc) · 3.72 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
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/main.css">
<link rel="icon" href="/img/logo.png" />
<title>TravelTip</title>
</head>
<body>
<header>
<h1><img src="img/logo.png" alt="icon">TravelTip</h1>
<section class="selected-loc">
<h2>Location: <span class="loc-name"></span> <span class="loc-rate"></span></h2>
<h4 class="loc-address"></h4>
<span class="loc-distance"></span>
<button onclick="app.onCopyLoc()">Copy location</button>
<button onclick="app.onShareLoc()">Share location</button>
<input name="loc-copier" />
</section>
<form class="form-search" onsubmit="app.onSearchAddress(event)">
<input type="text" name="address" placeholder="Search address" />
<button title="Search">🔍</button>
<button type="button" title="My Position" onclick="app.onPanToUserPos()" class="btn-user-pos">
</button>
</form>
</header>
<main>
<div class="map"></div>
<div>
<section class="locs-container">
<section class="loc-filter">
<div>
<input type="text" placeholder="Search location"
oninput="app.onSetFilterBy({txt: this.value})" />
</div>
<div>
<label>
Min Rate:
<input type="range" min="0" max="5" value="0" class="filter-rate-range"
onchange="this.title=this.value;app.onSetFilterBy({minRate: this.value})" />
</label>
</div>
<p>
Sort by:
<select class="sort-by" onchange="app.onSetSortBy()">
<option value="name">Name</option>
<option value="rate" selected>Rate</option>
<option value="CreationTime" selected>Creation time</option>
</select>
<label>
<input class="sort-desc" type="checkbox" oninput="app.onSetSortBy()" />
Descending
</label>
</p>
</section>
<h3>Locations</h3>
<ul class="loc-list"></ul>
<section class="loc-stats">
<h3>Statistics</h3>
<div class="loc-stats-rate">
<h4>By rate:</h4>
<div class="pie"></div>
<ul class="legend"></ul>
</div>
<div class="loc-stats-lastUpdated">
<h4>By last update:</h4>
<div class="pie"></div>
<ul class="legend"></ul>
</div>
</section>
</section>
</div>
<dialog class="add-loc">
<form method="dialog" class="add-loc-form">
<label for="locName">Location Name:</label>
<input type="text" id="locName" name="locName" required>
<label for="locRate">Rate (1-5):</label>
<input type="number" id="locRate" name="locRate" min="1" max="5" value="3" required>
<button type="submit">Save</button>
</form>
</dialog>
</main>
<pre class="debug" hidden></pre>
<div class="user-msg"></div>
<script type="module" src="js/app.controller.js"></script>
</body>
</html>