]> git.cworth.org Git - lmno.games/commitdiff
empires: Fix references to "local" CSS and JS files
authorCarl Worth <cworth@cworth.org>
Sun, 17 May 2020 22:13:24 +0000 (15:13 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 19 May 2020 13:43:40 +0000 (06:43 -0700)
While it's tempting to just treat these as coming from the current
directory, in practice this HTMl page will be served from a dynamic
path that includes the game ID as a path component. So we have to
look up one directory to find these resources.

empires/game.html

index aad704b04a9a548b765e06aaf6fa62344226a344..657464a56e3beec1874cbc99e9d4116565b60110 100644 (file)
@@ -8,11 +8,11 @@
 
     <link rel="stylesheet" href="/reset.css" type="text/css" />
     <link rel="stylesheet" href="/style.css" type="text/css" />
-    <link rel="stylesheet" href="game.css" type="text/css" />
+    <link rel="stylesheet" href="../game.css" type="text/css" />
   </head>
   <body>
 
-    <script src="game.js"></script>
+    <script src="../game.js"></script>
 
     <div id="page">