forked from Weitzman-MUSA-JavaScript/engagement-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinteractive.html
More file actions
92 lines (80 loc) · 3.47 KB
/
interactive.html
File metadata and controls
92 lines (80 loc) · 3.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Yunnan Odyssey - Planner</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Oswald:wght@400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/interactive.css">
</head>
<body>
<header class="main-header">
<div class="logo" onclick="window.location.href='index.html'" style="cursor: pointer;">
<i class="fa-solid fa-mountain-sun" style="margin-right:12px; color:var(--color-action-gold)"></i>
Yunnan Odyssey
</div>
<div class="user-profile-icon">
<div class="avatar-small"></div>
</div>
</header>
<div id="map-wrapper" style="position: relative; height: calc(100vh - 60px);">
<div id="map"></div>
<a href="dashboard.html" class="back-btn">
<i class="fa-solid fa-arrow-left"></i> Back to Exploration
</a>
</div>
<div class="sidebar-panel">
<div class="sidebar-colored-header">
<div class="stats-row">
<div class="stat-group">
<label>TOTAL COST</label>
<div class="cost-value" id="totalCostDisplay">$0</div>
</div>
<div class="stat-group">
<label>STOPS</label>
<div class="stops-value" id="totalStopsDisplay">0</div>
</div>
<div class="budget-group">
<label>BUDGET ($)</label>
<input type="number" id="budgetInput" placeholder="Limit" value="10">
</div>
</div>
<div class="date-row">
<div class="date-inputs-wrapper">
<div class="date-input-group">
<span>From</span>
<input type="date" id="dateFrom" value="2025-12-18">
</div>
<div class="date-input-group">
<span>To</span>
<input type="date" id="dateTo" value="2025-12-23">
</div>
</div>
<div class="days-badge" id="totalDaysDisplay">-- Days</div>
</div>
</div>
<div class="sidebar-body" id="daysContainer">
</div>
<div class="sidebar-footer">
<button class="btn-add-day" id="btnAddDay">+ Add Day</button>
<button class="btn-save">Save Tour</button>
</div>
</div>
<div class="bottom-panel">
<div class="chart-header">
<span>Elevation Profile</span>
</div>
<div class="chart-container">
<canvas id="elevationChart"></canvas>
</div>
</div>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Sortable/1.15.0/Sortable.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script type="module" src="js/interactive.js"></script>
</body>
</html>