diff options
| author | diogo464 <[email protected]> | 2024-10-04 18:49:11 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2024-10-04 18:56:46 +0100 |
| commit | 888834093351a6182b0b3dd57b6bce15a6fb0e92 (patch) | |
| tree | 48c09bb1c9c0bf0e5daeb4dca732fd08b7389973 /content/editor.html | |
| parent | 987f6fbbe4ffabd5dca60bdb7a828049603ae0db (diff) | |
rework and added pictures
Diffstat (limited to 'content/editor.html')
| -rw-r--r-- | content/editor.html | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/content/editor.html b/content/editor.html new file mode 100644 index 0000000..1bb4588 --- /dev/null +++ b/content/editor.html | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | <!DOCTYPE html> | ||
| 2 | <html lang="en"> | ||
| 3 | |||
| 4 | <head> | ||
| 5 | <meta charset="UTF-8"> | ||
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| 7 | <title>Edit points</title> | ||
| 8 | <link rel="stylesheet" href="/static/leaflet.css" /> | ||
| 9 | <script src="/static/leaflet.js"></script> | ||
| 10 | <script src="/static/main.js"></script> | ||
| 11 | </head> | ||
| 12 | |||
| 13 | <body> | ||
| 14 | <div id="container"> | ||
| 15 | <div id="sidepanel"> | ||
| 16 | <button id="shape-create" type="button">Create shape</button> | ||
| 17 | <button id="shape-delete" type="button">Delete shape</button> | ||
| 18 | <button id="shape-delete-vertex" type="button">Delete shape vertex</button> | ||
| 19 | <button id="shape-kind-unburned" type="button">Shape Unburned</button> | ||
| 20 | <button id="shape-kind-burned" type="button">Shape Burned</button> | ||
| 21 | <button id="shapes-update" type="button">Update Shapes</button> | ||
| 22 | </div> | ||
| 23 | <div id="map"></div> | ||
| 24 | </div> | ||
| 25 | </body> | ||
| 26 | |||
| 27 | <style> | ||
| 28 | body { | ||
| 29 | margin: 0; | ||
| 30 | padding: 0; | ||
| 31 | } | ||
| 32 | |||
| 33 | #container { | ||
| 34 | display: grid; | ||
| 35 | width: 100vw; | ||
| 36 | height: 100vh; | ||
| 37 | gap: 0px 0px; | ||
| 38 | grid-template-rows: 1fr; | ||
| 39 | grid-template-columns: 1fr 3fr; | ||
| 40 | grid-template-areas: "side map"; | ||
| 41 | } | ||
| 42 | |||
| 43 | #sidepanel { | ||
| 44 | display: flex; | ||
| 45 | flex-direction: column; | ||
| 46 | width: 100%; | ||
| 47 | height: 100%; | ||
| 48 | grid-area: "side"; | ||
| 49 | } | ||
| 50 | |||
| 51 | #map { | ||
| 52 | width: 100%; | ||
| 53 | height: 100%; | ||
| 54 | grid-area: "map"; | ||
| 55 | } | ||
| 56 | |||
| 57 | img { | ||
| 58 | max-height: 100%; | ||
| 59 | max-width: 100%; | ||
| 60 | } | ||
| 61 | |||
| 62 | .image-holder { | ||
| 63 | height: 300px; | ||
| 64 | width: 300px; | ||
| 65 | } | ||
| 66 | </style> | ||
| 67 | |||
| 68 | <script> | ||
| 69 | window.addEventListener("load", () => page_shape__main()) | ||
| 70 | </script> | ||
| 71 | |||
| 72 | </html> | ||
