LiveAtlas/index.html

391 lines
17 KiB
HTML
Raw Normal View History

2021-05-15 19:25:03 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="preload" href="https://fonts.gstatic.com/s/raleway/v22/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCIPrE.woff2" as="font" crossorigin="anonymous">
<link rel="preload" href="https://fonts.gstatic.com/s/raleway/v22/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVsEpbCIPrE.woff2" as="font" crossorigin="anonymous">
2021-05-15 19:25:03 +00:00
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="theme-color" content="#222222">
<link rel="manifest" href="/live-atlas/favicons/site.webmanifest">
<link rel="icon" href="/live-atlas/favicons/favicon.svg">
<link rel=”mask-icon” href="/live-atlas/favicons/mask.svg" color="#cccccc">
<link rel="apple-touch-icon" sizes="180x180" href="/live-atlas/favicons/apple-touch-icon.png">
2021-06-23 17:19:09 +00:00
2021-05-15 19:25:03 +00:00
<meta name="keywords" content="minecraft, map, dynamic, liveatlas" />
<meta name="description" content="Minecraft Dynamic Map" />
<title>Minecraft Dynamic Map - LiveAtlas</title>
2021-09-07 17:41:07 +00:00
<!-- Remove this if you are using the servers config below -->
2021-05-17 02:39:25 +00:00
<script src="./standalone/config.js"></script>
2021-05-17 02:39:25 +00:00
<script>
window.liveAtlasConfig = {
2021-09-07 17:41:07 +00:00
// By default LiveAtlas looks for a dynmap standalone/config.js file
// This configuration can be used instead to support Pl3xmap and Squaremap installations as well as multiple servers (external webserver required)
2021-09-07 17:41:07 +00:00
// To configure multiple servers, see https://github.com/JLyne/LiveAtlas/wiki/Configuring-Multiple-Servers.
2022-02-27 21:02:04 +00:00
// Example Squaremap internal webserver configuration
2021-12-09 18:29:54 +00:00
// servers: {
2022-02-27 21:02:04 +00:00
// squaremap: {
// squaremap: window.location.pathname
// },
// },
// Example Pl3xmap internal webserver configuration
// servers: {
// pl3xmap: {
// pl3xmap: window.location.pathname
// },
// },
2022-02-27 21:02:04 +00:00
// Example Overviewer configuration
// servers: {
// overviewer: {
// overviewer: window.location.pathname
// },
// },
2021-09-07 17:41:07 +00:00
2022-02-27 21:02:04 +00:00
// Example Dynmap internal webserver configuration without using standalone/config.js
// servers: {
// dynmap: {
// dynmap: {
// configuration: 'standalone/dynmap_config.json?_={timestamp}',
// update: 'standalone/dynmap_{world}.json?_={timestamp}',
// sendmessage: 'standalone/sendmessage.php',
// login: 'standalone/login.php',
// register: 'standalone/register.php',
// tiles: 'tiles/',
// markers: 'tiles/'
// }
// },
// },
2021-09-07 17:41:07 +00:00
2022-02-27 21:02:04 +00:00
// Example multiple Dynmap servers on external webserver configuration
// servers: {
// creative: {
// label: 'Creative',
// dynmap: {
// configuration: 'http://dynmap.local/standalone/creative/MySQL_configuration.php',
// update: 'http://dynmap.local/standalone/creative/MySQL_update.php?world={world}&ts={timestamp}',
// sendmessage: 'http://dynmap.local/standalone/creative/MySQL_sendmessage.php',
// login: 'http://dynmap.local/standalone/creative/MySQL_login.php',
// register: 'http://dynmap.local/standalone/creative/MySQL_register.php',
// tiles: 'http://dynmap.local/standalone/creative/MySQL_tiles.php?tile=',
// markers: 'http://dynmap.local/standalone/creative/MySQL_markers.php?marker='
// }
// },
// survival: {
// label: 'Survival',
// dynmap: {
// configuration: 'http://dynmap.local/standalone/survival/MySQL_configuration.php',
// update: 'http://dynmap.local/standalone/survival/MySQL_update.php?world={world}&ts={timestamp}',
// sendmessage: 'http://dynmap.local/standalone/survival/MySQL_sendmessage.php',
// login: 'http://dynmap.local/standalone/survival/MySQL_login.php',
// register: 'http://dynmap.local/standalone/survival/MySQL_register.php',
// tiles: 'http://dynmap.local/standalone/survival/MySQL_tiles.php?tile=',
// markers: 'http://dynmap.local/standalone/survival/MySQL_markers.php?marker='
// }
// },
2021-12-09 18:29:54 +00:00
// },
2021-05-20 15:13:25 +00:00
2021-05-20 15:39:41 +00:00
// These messages are used throughout LiveAtlas and can be translated here
// If a message you want to translate isn't here, it is likely controlled by dynmap itself
// see https://github.com/webbukkit/dynmap/wiki/Configuration.txt
2021-05-20 15:13:25 +00:00
messages: {
chatNoMessages: 'No chat messages yet...',
2021-05-20 15:39:41 +00:00
chatTitle: 'Chat',
chatLogin: 'Please login to send chat messages',
2021-05-20 15:13:25 +00:00
chatSend: 'Send',
2021-05-20 15:39:41 +00:00
chatPlaceholder: 'Type your chat message here...',
2021-05-20 15:13:25 +00:00
chatErrorUnknown: 'Unexpected error while sending chat message',
chatErrorDisabled: 'Chat is not enabled',
2021-05-20 15:39:41 +00:00
serversHeading: 'Servers',
2022-01-17 15:15:00 +00:00
markersHeading: 'Markers',
markersSearchPlaceholder: 'Search markers...',
markersSkeleton: 'No markers exist for the current world',
markersSetSkeleton: 'This marker set is empty',
markersSearchSkeleton: 'No matching markers found',
markersUnnamed: '(Unnamed marker)',
2021-05-20 15:39:41 +00:00
worldsSkeleton: 'No maps have been configured',
playersSkeleton: 'No players are currently online',
playersTitle: 'Click to center on player\nDouble-click to follow player',
playersTitleHidden: 'This player is currently hidden from the map\nDouble-click to follow player when they become visible',
playersTitleOtherWorld: 'This player is in another world.\nClick to center on player\nDouble-click to follow player',
2021-07-21 15:19:18 +00:00
playersSearchPlaceholder: 'Search players...',
playersSearchSkeleton: 'No matching players found',
2021-05-20 15:39:41 +00:00
followingHeading: 'Following',
followingUnfollow: 'Unfollow',
followingTitleUnfollow: 'Stop following this player',
followingHidden: 'Currently hidden',
linkTitle: 'Copy link to current location',
loadingTitle: 'Loading...',
locationRegion: 'Region',
locationChunk: 'Chunk',
contextMenuCopyLink: 'Copy link to here',
contextMenuCenterHere: 'Center here',
2021-05-25 18:26:14 +00:00
toggleTitle: 'Click to toggle this section',
2021-05-28 20:28:21 +00:00
mapTitle: 'Map - Use the arrow keys to pan the map',
layersTitle: 'Layers',
copyToClipboardSuccess: 'Copied to clipboard',
copyToClipboardError: 'Unable to copy to clipboard',
2021-08-30 21:27:41 +00:00
loginTitle: 'Login/Register',
loginHeading: 'Existing User',
loginUsernameLabel: 'Username',
loginPasswordLabel: 'Password',
loginSubmit: 'Login',
loginErrorUnknown: 'Unexpected error while logging in',
loginErrorDisabled: 'Logging in is disabled on this server',
loginErrorIncorrect: 'Incorrect username or password',
loginSuccess: 'Logged in successfully',
registerHeading: 'New User',
registerDescription: `Enter your username and password, along with your registration code.
You can get a registration code by running /dynmap webregister in-game.`,
registerConfirmPasswordLabel: 'Confirm Password',
registerCodeLabel: 'Registration Code',
registerSubmit: 'Register',
registerErrorUnknown: 'Unexpected error during registration',
registerErrorDisabled: 'Registration is disabled on this server',
registerErrorVerifyFailed: 'The entered passwords do not match',
registerErrorIncorrect: 'Registration failed, please check the entered details are correct',
logoutTitle: 'Logout',
logoutErrorUnknown: 'Unexpected error while logging out',
logoutSuccess: 'Logged out successfully',
closeTitle: 'Close',
2022-01-17 15:15:00 +00:00
showMore: 'Show more'
2021-07-20 19:27:38 +00:00
},
ui: {
// If true, player markers will always be displayed in front of other marker types
2021-07-21 15:19:18 +00:00
playersAboveMarkers: true,
// Whether to enable the player list search box
playersSearch: true,
// Use more compact pre-2.0 player marker style
2021-12-09 18:26:57 +00:00
compactPlayerMarkers: false,
2022-02-20 19:34:52 +00:00
// Disable the map right click menu
disableContextMenu: false,
2022-04-01 12:27:17 +00:00
// Disable the markers button and list
disableMarkerUI: false,
2021-12-09 18:26:57 +00:00
},
// Config version. Do not modify.
version: 1
2021-05-17 02:39:25 +00:00
};
</script>
2021-05-15 19:25:03 +00:00
<style>
2021-05-17 02:39:25 +00:00
/* Theme colours */
2021-05-15 22:24:29 +00:00
:root {
--background-base: #222222; /* Foreground UI elements */
2021-12-07 21:48:54 +00:00
--background-dark: #121212; /* Body/Splash screen/Shadows */
--background-light: #363636; /* Scrollbars/inputs */
2021-05-15 22:24:29 +00:00
--background-error: #771616; /* Errors */
2021-12-07 21:48:54 +00:00
--background-marker: var(--background-dark); /* Map markers */
2021-05-15 22:24:29 +00:00
--background-disabled: #555555; /* Disabled controls */
--background-hover: #363636; /* :hovered buttons/menu items */
2021-09-01 00:07:51 +00:00
--background-active: #6d6d6d; /* Button :active */
--background-selected: #BDBDBD; /* Selected buttons/menu items */
2021-05-15 22:24:29 +00:00
--outline-focus: #eeeeee; /* :focus outline */
2021-05-15 22:24:29 +00:00
--border-radius: 0.5rem;
2021-05-15 22:24:29 +00:00
--border-color: #333333; /* Control borders */
--border-error: #cc0e0e;
2021-05-24 20:57:53 +00:00
--box-shadow: 2px 2px 0px #111111;
2021-05-15 22:24:29 +00:00
--text-base: rgba(255, 255, 255, 0.7); /* Normal text */
--text-emphasis: rgba(255, 255, 255, 0.87); /* Chat messages/:focus inputs */
--text-subtle: rgba(255, 255, 255, 0.5); /* Skeletons/secondary text */
--text-disabled: var(--text-subtle); /* Disabled controls */
2021-12-07 21:48:54 +00:00
--text-marker: var(--text-base); /* Map markers */
2021-05-15 22:24:29 +00:00
--text-hover: var(--text-base); /* Text in :hover buttons */
2021-09-01 00:07:51 +00:00
--text-active: var(--text-base); /* Text in :active buttons */
--text-selected: var(--background-base); /* Text in selected buttons */
--text-shadow: 0.1rem 0.1rem #000000; /* Text in selected buttons */
2021-05-15 22:24:29 +00:00
--text-night: #ddffff; /* Clock time at night */
--text-day: #ffdd33; /* Clock time in day */
}
2021-05-15 19:25:03 +00:00
@keyframes fade {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
* {
scrollbar-width: thin;
2021-05-25 20:23:12 +00:00
scrollbar-color: var(--background-light) transparent;
}
*:hover, *:focus-within {
scrollbar-color: var(--background-hover) transparent;
}
*::-webkit-scrollbar {
2021-05-25 20:23:12 +00:00
width: 0.7rem;
}
*::-webkit-scrollbar-track {
2021-05-25 20:23:12 +00:00
background: transparent;
}
*::-webkit-scrollbar-thumb {
background-color: var(--background-light);
2021-05-25 20:23:12 +00:00
border: 2px solid #000000;
border-radius: 2rem;
transition: background 1s ease-in;
2021-05-25 20:23:12 +00:00
padding-right: 0.2rem;
}
2021-05-25 20:23:12 +00:00
*:hover::-webkit-scrollbar-thumb, *:focus-within::-webkit-scrollbar-thumb {
background-color: var(--background-hover);
}
*::-webkit-scrollbar-button {
display: none;
}
2021-05-15 19:25:03 +00:00
html, body {
2021-05-15 22:24:29 +00:00
background-color: var(--background-dark);
2021-05-15 19:25:03 +00:00
height: 100%;
width: 100%;
margin: 0;
padding: 0;
overscroll-behavior: none;
}
html {
font-size: 62.5%;
}
body {
2021-09-10 14:31:51 +00:00
font-family: Raleway,
system-ui,
-apple-system,
'Segoe UI',
Roboto,
Helvetica,
Arial,
sans-serif,
'Apple Color Emoji',
'Segoe UI Emoji';
color: var(--text-base);
text-shadow: var(--text-shadow);
letter-spacing: 0.02rem;
2021-05-15 19:25:03 +00:00
}
noscript {
2021-05-15 22:24:29 +00:00
color: var(--text-base);
2021-05-15 19:25:03 +00:00
font-size: 1rem;
font-family: sans-serif;
text-align: center;
line-height: 1.25;
}
#splash, noscript {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
transition: 0.3s opacity linear;
z-index: 100;
2021-05-15 22:24:29 +00:00
background-color: var(--background-dark);
2021-05-15 19:25:03 +00:00
cursor: wait;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 1.6rem;
padding: 4rem;
}
#splash[hidden] {
display: none;
}
#splash__spinner {
margin-top: 4rem;
animation: fade 0.5s linear 1s;
animation-fill-mode: both;
}
#splash__error {
margin-top: 2rem;
transition: opacity 0.5s ease-in;
2021-05-15 20:09:01 +00:00
display: flex;
flex-direction: column;
text-align: center;
max-width: 60rem;
}
#splash__error-message {
font-family: monospace;
background-color: var(--background-error);
padding: 1rem 1.5rem;
border-radius: var(--border-radius);
margin-bottom: 1rem;
2021-05-15 19:25:03 +00:00
}
#splash__error[aria-hidden=true] {
opacity: 0;
}
#app {
font-size: 1.6rem;
height: 100%;
2021-05-15 19:25:03 +00:00
}
</style>
</head>
<body>
<div id="splash">
2021-08-26 21:04:31 +00:00
<svg id="splash__logo" width="200" height="200" viewBox="0 0 268.83 266.53" aria-hidden="true" fill="rgba(255, 255, 255, 0.7)">
<path d="M5.235.662C2.153.606 0 2.945 0 6.912v216.577c0 5.288 3.828 11.41 8.582 13.725l57.835 28.165c4.755 2.316 8.582-.078 8.582-5.367V43.434c0-5.288-3.827-11.41-8.582-13.727L8.582 1.544C7.394.965 6.262.681 5.235.662zm32.283 135.96c14.394 0 26.062 11.669 26.062 26.063 0 14.394-24.167 59.55-26.062 57.654-1.854 1.854-26.063-43.26-26.063-57.654 0-14.394 11.669-26.063 26.063-26.063zM202.388 1.013l57.833 28.165c4.755 2.315 8.583 8.437 8.583 13.726v216.58c0 5.29-3.828 7.683-8.583 5.367l-57.833-28.164c-4.755-2.316-8.583-8.438-8.583-13.727V6.38c0-5.289 3.828-7.682 8.583-5.367zM172.012.39c-1.051-.035-2.209.191-3.426.709l-68.342 29.053c-4.867 2.07-8.786 7.993-8.786 13.282V260.01c0 5.29 3.919 7.88 8.786 5.811l68.342-29.053c4.867-2.07 8.786-7.991 8.786-13.28V6.91c0-3.967-2.204-6.417-5.36-6.521zm-36.949 41.216c14.394 0 26.063 11.668 26.063 26.062 0 14.394-24.168 59.55-26.063 57.655C133.209 127.177 109 82.063 109 67.668c0-14.394 11.669-26.062 26.063-26.062z"/>
<path d="M48.573 162.689a11.056 11.056 0 0 1-11.056 11.056 11.056 11.056 0 0 1-11.056-11.056 11.056 11.056 0 0 1 11.056-11.056 11.056 11.056 0 0 1 11.056 11.056zM146.12 67.669a11.056 11.056 0 0 1-11.057 11.056 11.056 11.056 0 0 1-11.056-11.056 11.056 11.056 0 0 1 11.056-11.056 11.056 11.056 0 0 1 11.056 11.056z"/>
2021-05-15 19:25:03 +00:00
</svg>
2021-05-27 00:43:14 +00:00
<svg id="splash__spinner" width="38" height="38" viewBox="0 0 38 38" stroke="#fff" aria-label="LiveAtlas is loading">
2021-08-26 21:04:31 +00:00
<g transform="translate(1 1)" stroke-width="2" fill="none">
<circle stroke-opacity=".5" cx="18" cy="18" r="18"/>
2021-05-15 19:25:03 +00:00
<path d="M36 18c0-9.94-8.06-18-18-18">
2021-08-26 21:04:31 +00:00
<animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite"/>
2021-05-15 19:25:03 +00:00
</path>
</g>
</svg>
2021-05-28 18:14:32 +00:00
<div id="splash__error" aria-hidden="true">
<span id="splash__error-message" role="alert"></span>
<span id="splash__error-retry" aria-live="polite"></span>
2021-05-15 19:25:03 +00:00
</div>
</div>
<noscript>
<strong>LiveAtlas requires JavaScript to work.<br />Please enable it to continue.</strong>
</noscript>
2021-05-27 00:43:14 +00:00
<main id="app" aria-hidden="true"></main>
2021-05-15 19:25:03 +00:00
<script type="module" src="/src/main.ts"></script>
</body>
</html>