Fix script location and run handle

This commit is contained in:
Jake Howard 2017-05-03 14:10:11 +01:00
parent c0f94ed22d
commit d56d8a2f1e
4 changed files with 9 additions and 8 deletions

View file

@ -21,4 +21,5 @@ function subst() {
} }
} }
window.subst = subst();
subst();

View file

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<link rel="stylesheet" href="style.css" /> <link rel="stylesheet" href="../static/style.css" />
</head> </head>
<body class="cover"> <body class="cover">
<h1>{{ title }}</h1> <h1>{{ title }}</h1>

View file

@ -1,10 +1,9 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<link rel="stylesheet" href="style.css" /> <link rel="stylesheet" href="../static/style.css" />
<script type="text/javascript" src="context.js"></script>
</head> </head>
<body onload="subst()" class="footer"> <body class="footer">
<table style="width: 100%;"> <table style="width: 100%;">
<tr> <tr>
<td style="text-align: center"> <td style="text-align: center">
@ -12,5 +11,6 @@
</td> </td>
</tr> </tr>
</table> </table>
<script type="text/javascript" src="../static/context.js"></script>
</body> </body>
</html> </html>

View file

@ -1,9 +1,9 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<link rel="stylesheet" href="style.css" /> <link rel="stylesheet" href="../static/style.css" />
<script type="text/javascript" src="context.js"></script>
</head> </head>
<body onload="subst()" class="header"> <body class="header">
<script type="text/javascript" src="../static/context.js"></script>
</body> </body>
</html> </html>