瀏覽代碼

Absolute script paths

So that it works with URL rewriting on the server
crobi 9 年之前
父節點
當前提交
5e89feffe3
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5
    5
      client/index.html

+ 5
- 5
client/index.html 查看文件

3
   <head>
3
   <head>
4
     <meta charset="utf-8">
4
     <meta charset="utf-8">
5
     <title>RPG Cards</title>
5
     <title>RPG Cards</title>
6
-    <link rel="stylesheet" href="./css/rpg-cards.css">
7
-    <link rel="stylesheet" href="./css/semanticui/icon.css">
6
+    <link rel="stylesheet" href="/css/rpg-cards.css">
7
+    <link rel="stylesheet" href="/css/semanticui/icon.css">
8
   </head>
8
   </head>
9
   <body>
9
   <body>
10
       <div id="cardeditor"></div>
10
       <div id="cardeditor"></div>
11
       <!-- libraries -->
11
       <!-- libraries -->
12
-      <script src="js/react.js"></script>
13
-      <script src="js/page.js"></script>
12
+      <script src="/js/react.js"></script>
13
+      <script src="/js/page.js"></script>
14
 
14
 
15
       <!-- teh app -->
15
       <!-- teh app -->
16
-      <script src="js/app.js"></script>
16
+      <script src="/js/app.js"></script>
17
 
17
 
18
       <script>rpgcards.bootstrap();</script>
18
       <script>rpgcards.bootstrap();</script>
19
   </body>
19
   </body>

Loading…
取消
儲存