Commit 81523fab authored by Christian Schaper's avatar Christian Schaper
Browse files

base url für entities

parent 4dd840e9
......@@ -57,16 +57,15 @@
<html>
<head>
<script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('&lt;base href=&quot;http://www.busoni-nachlass.org/&quot; /&gt;');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('&lt;base href=&quot;file://' + grandparentDir + '&quot; /&gt;');
}
</script>
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
......@@ -3,16 +3,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/javascript">
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
var pat = /^https?:\/\//i;
if (pat.test(urlString))
if (urlString.indexOf('http://') === 0 || urlString.indexOf('https://') === 0)
{
document.write('<base href="http://www.busoni-nachlass.org/" />');
}
else
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('<base href="file://' + grandparentDir + '" />');
}
</script><link rel="stylesheet" type="text/css" href="css/style.css">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment