Browse Source

Move common js files to folder

master
Kenneth Bruen 2 years ago
parent
commit
2aa147060a
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 6
      about.html
  2. 0
      common/back.js
  3. 0
      common/items.js
  4. 0
      common/worker.js
  5. 4
      index.html
  6. 10
      sw.js
  7. 6
      train.html
  8. 6
      view-train.html

6
about.html

@ -8,9 +8,9 @@
<link rel="stylesheet" href="/base.css"> <link rel="stylesheet" href="/base.css">
<script src="/worker.js"></script> <script src="/common/worker.js"></script>
<script src="/back.js"></script> <script src="/common/back.js"></script>
<script src="/items.js"></script> <script src="/common/items.js"></script>
</head> </head>
<body> <body>
<h1>About</h1> <h1>About</h1>

0
back.js → common/back.js

0
items.js → common/items.js

0
worker.js → common/worker.js

4
index.html

@ -10,8 +10,8 @@
<link rel="stylesheet" href="/base.css"> <link rel="stylesheet" href="/base.css">
<script src="/worker.js"></script> <script src="/common/worker.js"></script>
<script src="/items.js"></script> <script src="/common/items.js"></script>
</head> </head>
<body> <body>
<h1>InfoTren</h1> <h1>InfoTren</h1>

10
sw.js

@ -1,7 +1,7 @@
const VERSION = 'v6' const VERSION = 'v8'
const API_ORIGIN = 'https://scraper.infotren.dcdev.ro/' const API_ORIGIN = 'https://scraper.infotren.dcdev.ro/'
const API_TRAINS = `${API_ORIGIN}v3/trains` const API_TRAINS = `${API_ORIGIN}v3/trains`
const API_STATIONS = `${API_ORIGIN}v2/stations` const API_STATIONS = `${API_ORIGIN}v3/stations`
self.addEventListener('install', (event) => { self.addEventListener('install', (event) => {
event.waitUntil( event.waitUntil(
@ -13,9 +13,9 @@ self.addEventListener('install', (event) => {
'/', '/',
// Utility JS // Utility JS
'/worker.js', '/common/worker.js',
'/items.js', '/common/items.js',
'/back.js', '/common/back.js',
// Base // Base
'/base.css', '/base.css',

6
train.html

@ -10,9 +10,9 @@
<link rel="stylesheet" href="/base.css"> <link rel="stylesheet" href="/base.css">
<script src="/worker.js"></script> <script src="/common/worker.js"></script>
<script src="/back.js"></script> <script src="/common/back.js"></script>
<script src="/items.js"></script> <script src="/common/items.js"></script>
<script src="train.js"></script> <script src="train.js"></script>
</head> </head>
<body> <body>

6
view-train.html

@ -11,9 +11,9 @@
<link rel="stylesheet" href="/base.css"> <link rel="stylesheet" href="/base.css">
<link rel="stylesheet" href="view-train.css"> <link rel="stylesheet" href="view-train.css">
<script src="/worker.js"></script> <script src="/common/worker.js"></script>
<script src="/back.js"></script> <script src="/common/back.js"></script>
<script src="/items.js"></script> <script src="/common/items.js"></script>
<script src="view-train.js"></script> <script src="view-train.js"></script>
</head> </head>
<body> <body>

Loading…
Cancel
Save