Browse Source

change project struct

liuyuqi-dellpc 3 years ago
parent
commit
7dc5cf727a
4 changed files with 4 additions and 5 deletions
  1. 0 0
      css/styles.css
  2. 3 4
      index.html
  3. 0 0
      js/app.js
  4. 1 1
      package.json

+ 0 - 0
styles.css → css/styles.css


+ 3 - 4
index.html

@@ -4,19 +4,19 @@
 <head>
     <meta charset="UTF-8">
     <title>All the memes!</title>
-    <link rel="stylesheet" href="/styles.css">
+    <link rel="stylesheet" href="css/styles.css">
     <!-- 添加 manifest.json 配置文件 -->
     <link rel="manifest" href="/manifest.json">
 </head>
 
 <body>
     <header>
-        <h1 class="center">Top trending memes today</h1>
+        <h1 class="center">简单的H1标题</h1>
     </header>
     <main>
         <div class="container"></div>
     </main>
-    <script src="app.js"></script>
+    <script src="js/app.js"></script>
     <script>
         // 加载serviceWorker.js,使得页面加载后,在浏览器输入框出现 install 按钮
         window.addEventListener('load', async e => {
@@ -27,7 +27,6 @@
                     console.log('SW registered');
                 } catch (error) {
                     console.log('SW failed');
-
                 }
             }
         });

+ 0 - 0
app.js → js/app.js


+ 1 - 1
package.json

@@ -6,6 +6,6 @@
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1"
   },
-  "author": "",
+  "author": "liuyuqi.gov@msn.cn",
   "license": "ISC"
 }