|
1 | | -<!DOCTYPE html> |
| 1 | +<!doctype html> |
2 | 2 | <html lang="en"> |
3 | | -<head> |
4 | | - <meta charset="UTF-8"> |
5 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
6 | 6 | <title>CesiumJS Globe</title> |
7 | 7 | <!-- CesiumJS is loaded dynamically from CDN in mcp-app.ts because static |
8 | 8 | <script src=""> tags don't work in srcdoc iframes --> |
9 | 9 | <style> |
10 | | - html, body { |
11 | | - width: 100%; |
12 | | - height: 100%; |
13 | | - margin: 0; |
14 | | - padding: 0; |
15 | | - overflow: hidden; |
16 | | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; |
17 | | - background: transparent; |
18 | | - } |
19 | | - #cesiumContainer { |
20 | | - width: 100%; |
21 | | - height: 100%; |
22 | | - touch-action: none; |
23 | | - } |
24 | | - #fullscreen-btn { |
25 | | - position: absolute; |
26 | | - top: 10px; |
27 | | - right: 10px; |
28 | | - width: 36px; |
29 | | - height: 36px; |
30 | | - background: rgba(0, 0, 0, 0.7); |
31 | | - border: none; |
32 | | - border-radius: 6px; |
33 | | - cursor: pointer; |
34 | | - z-index: 1000; |
35 | | - display: none; |
36 | | - align-items: center; |
37 | | - justify-content: center; |
38 | | - transition: background 0.2s; |
39 | | - } |
40 | | - #fullscreen-btn:hover { |
41 | | - background: rgba(0, 0, 0, 0.85); |
42 | | - } |
43 | | - #fullscreen-btn svg { |
44 | | - width: 20px; |
45 | | - height: 20px; |
46 | | - fill: white; |
47 | | - } |
48 | | - #loading { |
49 | | - position: absolute; |
50 | | - top: 50%; |
51 | | - left: 50%; |
52 | | - transform: translate(-50%, -50%); |
53 | | - background: rgba(0, 0, 0, 0.8); |
54 | | - color: white; |
55 | | - padding: 20px 30px; |
56 | | - border-radius: 8px; |
57 | | - font-size: 16px; |
58 | | - z-index: 1001; |
59 | | - } |
| 10 | + html, |
| 11 | + body { |
| 12 | + width: 100%; |
| 13 | + height: 100%; |
| 14 | + margin: 0; |
| 15 | + padding: 0; |
| 16 | + overflow: hidden; |
| 17 | + font-family: |
| 18 | + -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; |
| 19 | + background: transparent; |
| 20 | + } |
| 21 | + #cesiumContainer { |
| 22 | + width: 100%; |
| 23 | + height: 100%; |
| 24 | + touch-action: none; |
| 25 | + } |
| 26 | + #fullscreen-btn { |
| 27 | + position: absolute; |
| 28 | + top: 10px; |
| 29 | + right: 10px; |
| 30 | + width: 36px; |
| 31 | + height: 36px; |
| 32 | + background: rgba(0, 0, 0, 0.7); |
| 33 | + border: none; |
| 34 | + border-radius: 6px; |
| 35 | + cursor: pointer; |
| 36 | + z-index: 1000; |
| 37 | + display: none; |
| 38 | + align-items: center; |
| 39 | + justify-content: center; |
| 40 | + transition: background 0.2s; |
| 41 | + } |
| 42 | + #fullscreen-btn:hover { |
| 43 | + background: rgba(0, 0, 0, 0.85); |
| 44 | + } |
| 45 | + #fullscreen-btn svg { |
| 46 | + width: 20px; |
| 47 | + height: 20px; |
| 48 | + fill: white; |
| 49 | + } |
| 50 | + #loading { |
| 51 | + position: absolute; |
| 52 | + top: 50%; |
| 53 | + left: 50%; |
| 54 | + transform: translate(-50%, -50%); |
| 55 | + background: rgba(0, 0, 0, 0.8); |
| 56 | + color: white; |
| 57 | + padding: 20px 30px; |
| 58 | + border-radius: 8px; |
| 59 | + font-size: 16px; |
| 60 | + z-index: 1001; |
| 61 | + } |
60 | 62 | </style> |
61 | | -</head> |
62 | | -<body> |
| 63 | + </head> |
| 64 | + <body> |
63 | 65 | <div id="cesiumContainer"></div> |
64 | 66 | <button id="fullscreen-btn" title="Toggle fullscreen"> |
65 | | - <!-- Expand icon (shown when inline) --> |
66 | | - <svg id="expand-icon" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg> |
67 | | - <!-- Compress icon (shown when fullscreen) --> |
68 | | - <svg id="compress-icon" style="display:none" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg> |
| 67 | + <!-- Expand icon (shown when inline) --> |
| 68 | + <svg id="expand-icon" viewBox="0 0 24 24"> |
| 69 | + <path |
| 70 | + d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z" |
| 71 | + /> |
| 72 | + </svg> |
| 73 | + <!-- Compress icon (shown when fullscreen) --> |
| 74 | + <svg id="compress-icon" style="display: none" viewBox="0 0 24 24"> |
| 75 | + <path |
| 76 | + d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z" |
| 77 | + /> |
| 78 | + </svg> |
69 | 79 | </button> |
70 | 80 | <div id="loading">Loading globe...</div> |
71 | 81 | <script type="module" src="/src/mcp-app.ts"></script> |
72 | | -</body> |
| 82 | + </body> |
73 | 83 | </html> |
0 commit comments