Support relative paths for index.html loads

Allows SUI to work at arbitrary path names rather than relying on fixed
root-level paths.
This commit is contained in:
Joshua M. Boniface 2020-05-07 22:36:44 -04:00
parent 8bd2e51813
commit d91c447c7a

View file

@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta http-equiv="Default-Style" content="">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<link type="text/css" rel="stylesheet" href="/assets/css/styles.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="./assets/css/styles.css" media="screen,projection"/>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700,900" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.1.1/handlebars.min.js"></script>
@ -118,10 +118,10 @@
</a>
</div>
<script src="/assets/js/data.js" type="text/javascript"></script>
<script src="/assets/js/script.js" type="text/javascript"></script>
<script src="/assets/js/themer.js" type="text/javascript"></script>
<script src="/assets/js/search.js" type="text/javascript"></script>
<script src="./assets/js/data.js" type="text/javascript"></script>
<script src="./assets/js/script.js" type="text/javascript"></script>
<script src="./assets/js/themer.js" type="text/javascript"></script>
<script src="./assets/js/search.js" type="text/javascript"></script>
</body>
</html>