relativize-url
Version:
Construct relative URL from source and target URL
22 lines (21 loc) • 504 B
HTML
<html>
<head>
<title>relativize URL in a web page</title>
<script src="../relativize-url.js"></script>
<script src="./manifest.js"></script>
<style>
td { padding: .2ex 1em; }
.pass { background-color: #9d9; }
.fail { background-color: #d99; }
</style>
</head>
<body>
<table>
<thead>
<tr><th>rel</th><th>base</th><th>result</th></tr>
</thead>
<tbody id="tests"/>
</table>
<script src="inWeb.js"></script>
</body>
</html>