|
@@ -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');
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
});
|