-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
95 lines (81 loc) · 4.11 KB
/
Copy pathindex.html
File metadata and controls
95 lines (81 loc) · 4.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CA Wolf Tracker</title>
<!--
Geo-Chat core modules loaded from CDN.
Pin to a tag (@v1.0.0) for production stability,
or use @main for staging/development.
-->
<script type="importmap">
{
"imports": {
"@modelcontextprotocol/sdk/client/index.js": "https://esm.sh/@modelcontextprotocol/sdk@1.12.0/client/index",
"@modelcontextprotocol/sdk/client/streamableHttp.js": "https://esm.sh/@modelcontextprotocol/sdk@1.12.0/client/streamableHttp"
}
}
</script>
<!-- MapLibre GL JS -->
<script src="https://unpkg.com/maplibre-gl@5.22.0/dist/maplibre-gl.js"
integrity="sha384-U054LTKiMIJKEecR8PKFiUZdvkGWHjfPBnen5hSmR9TwfOfgZmKbskC8Rs9dCm/1"
crossorigin="anonymous"></script>
<link href="https://unpkg.com/maplibre-gl@5.22.0/dist/maplibre-gl.css" rel="stylesheet"
integrity="sha384-MGCxhspF/+ufueUgol3FDkiAYQbpSNRhBT0VWHJt64U8qIy9qlnXWx8LAbj6niPH"
crossorigin="anonymous" />
<!-- PMTiles protocol -->
<script src="https://unpkg.com/pmtiles@3.0.7/dist/pmtiles.js"
integrity="sha384-MjejsnWXHmuz93aE35YWLh5AbS/6ceRB3Vb+ukOwqFzJRTpQ8vvbkLbNV7I0QK4f"
crossorigin="anonymous"></script>
<!-- h3-js (for hex grid overlay) -->
<script src="https://unpkg.com/h3-js@4.1.0/dist/h3-js.umd.js"
integrity="sha384-nKUDlg+fT0U/eEt4KWP9n034kLe/eVj6k7CVjbu6qfRhJdEyinlGajS9+9AU+UZ5"
crossorigin="anonymous"></script>
<!-- Markdown rendering -->
<script src="https://cdn.jsdelivr.net/npm/marked@18.0.5/lib/marked.umd.js"
integrity="sha384-ZD0fTOwPMHi7zM6WTVIWJR21I07lq0ccnqz3J6WMvQKG9thh4y7TA1QE6PJu0Af8"
crossorigin="anonymous"></script>
<!-- HTML sanitizer — chat-ui.js (v3.10.0+) refuses to render markdown without it -->
<script src="https://cdn.jsdelivr.net/npm/dompurify@3.4.8/dist/purify.min.js"
integrity="sha384-jrsBdrv4eDpEYIq32u13DPbvB6tRmqIDnA6UlgFBoexpetaiWi7g/VbfMEL1WVen"
crossorigin="anonymous"></script>
<!-- Code highlighting -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css"
integrity="sha384-wH75j6z1lH97ZOpMOInqhgKzFkAInZPPSPlZpYKYTOqsaizPvhQZmAtLcPKXpLyH"
crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"
integrity="sha384-F/bZzf7p3Joyp5psL90p/p89AZJsndkSoGwRpXcZhleCWhd8SnRuoYo4d0yirjJp"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/sql.min.js"
integrity="sha384-8q00eP+tyV9451aJYD5ML3ftuHKsGnDcezp7EXMEclDg1fZVSoj8O+3VyJTkXmWp"
crossorigin="anonymous"></script>
<!-- Core styles from CDN -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/boettiger-lab/geo-agent@v3.23.0/app/style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/boettiger-lab/geo-agent@v3.23.0/app/chat.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/boettiger-lab/geo-agent@v3.23.0/app/sidebar.css">
</head>
<body>
<!-- Map -->
<div id="map"></div>
<!-- Layer controls — generated by MapManager.generateMenu() -->
<div id="menu"></div>
<!-- Chat interface -->
<div id="chat-container">
<div id="chat-header">
<h3>Wolf Data Assistant</h3>
<button id="chat-toggle" title="Toggle chat">−</button>
</div>
<div id="chat-messages"></div>
<div id="chat-input-container">
<input type="text" id="chat-input" placeholder="Ask about wolf territories or pack activity…" autocomplete="off">
<button id="chat-send">Send</button>
</div>
<div id="chat-footer">
<select id="model-selector" title="Select model"></select>
</div>
</div>
<!-- Boot from CDN -->
<script type="module" src="https://cdn.jsdelivr.net/gh/boettiger-lab/geo-agent@v3.23.0/app/main.js"></script>
</body>
</html>