local changes to map

This commit is contained in:
Michael Murtaugh
2019-06-08 10:51:31 +02:00
parent a3b3a3d7f4
commit 6edfb590e5

View File

@@ -6,20 +6,20 @@
<link rel="stylesheet" type="text/css" href="style.css"> <link rel="stylesheet" type="text/css" href="style.css">
<style> <style>
#wiki { #wiki {
left: 80%; left: 66%;
} }
</style> </style>
</head> </head>
<body> <body>
<div id="controls"> <div id="controls">
<a href="http://localhost/mw/api.php" id="mediawikiapi"></a><input id="startpage" value="Bienvenue à lerg" autofocus /><button id="button">ok</button> <a href="http://mw/api.php" id="mediawikiapi"></a><input id="startpage" value="Bienvenue à lerg" autofocus /><button id="button">ok</button>
</div> </div>
<div id="content"> <div id="content">
<svg id="svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"></svg> <svg id="svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"></svg>
</div> </div>
<div id="wiki"> <div id="wiki">
<iframe src="http://localhost/mw/"></iframe> <iframe src="/mw/"></iframe>
</div> </div>
<div id="cats" class="expanded"> <div id="cats" class="expanded">
<div class="ocontents"> <div class="ocontents">
@@ -95,7 +95,7 @@
// async function doload() { // async function doload() {
// map.set_active_node(startpage.value); // map.set_active_node(startpage.value);
// } // }
var URLPAT = new RegExp("http://localhost/mw/index.php/(.+)"); var URLPAT = new RegExp("http://wiki.erg.be/mw/index.php/(.+)");
function strip_fragment (href) { function strip_fragment (href) {
var spos = href.indexOf("#"); var spos = href.indexOf("#");
if (spos >= 0) { if (spos >= 0) {
@@ -112,7 +112,7 @@
console.log("m", m); console.log("m", m);
} }
function wiki_title_to_url (title) { function wiki_title_to_url (title) {
return "http://localhost/mw/index.php/"+encodeURI(title.replace(/ /g, "_")); return "http://wiki.erg.be/mw/index.php/"+encodeURI(title.replace(/ /g, "_"));
} }
window.addEventListener("DOMContentLoaded", doload); window.addEventListener("DOMContentLoaded", doload);
iframe.addEventListener("load", function () { iframe.addEventListener("load", function () {