mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-23 15:38:29 +01:00
46 lines
1.4 KiB
XML
46 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<resources><string name="worldmap_template">"<![CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
|
|
<html xmlns=\"http://www.w3.org/1999/xhtml\">
|
|
<head>
|
|
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />
|
|
<title></title>
|
|
<style type=\"text/css\">
|
|
#playerPosition { position: absolute; z-index: 3; font-size: 19pt; color: red; text-shadow: rgba(0, 0, 0, 1) 2px 2px 2px; }
|
|
img { z-index: 1; position: absolute; }
|
|
.namedarea { position: absolute; z-index: 2; font-size: 16pt; text-shadow: black 0.1em 0.1em 0.2em; text-align: center; }
|
|
.namedarea span { display: inline-block; vertical-align: middle; line-height: 1em; }
|
|
.settlement { color: white; }
|
|
.other { color: #cccccc; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div id=\"maps\">
|
|
|
|
{{maps}}
|
|
{{areas}}
|
|
|
|
<div id=\"playerPosition\">x</div>
|
|
</div>
|
|
|
|
<script type=\"text/javascript\">
|
|
var player = document.getElementById(\"playerPosition\");
|
|
var params = window.location.search.substring(1);
|
|
if (params) {
|
|
var pos = params.split(\",\");
|
|
var x = parseInt(pos[0])-{{offsetx}};
|
|
var y = parseInt(pos[1])-{{offsety}};
|
|
player.style.top = y + \"px\";
|
|
player.style.left = x + \"px\";
|
|
window.scrollTo(x-100, y-100);
|
|
} else {
|
|
player.style.display = \"none\";
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|
|
|
|
]]></string></resources>
|