mirror of
https://codeberg.org/kbruen/kai.infotren.git
synced 2025-02-23 09:39:38 +02:00
Move common js files to folder
This commit is contained in:
parent
c60c20a736
commit
2aa147060a
8 changed files with 16 additions and 16 deletions
|
@ -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
Normal file → Executable file
0
back.js → common/back.js
Normal file → Executable file
0
items.js → common/items.js
Normal file → Executable file
0
items.js → common/items.js
Normal file → Executable file
0
worker.js → common/worker.js
Normal file → Executable file
0
worker.js → common/worker.js
Normal file → Executable file
|
@ -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
Normal file → Executable file
10
sw.js
Normal file → Executable file
|
@ -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',
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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…
Add table
Reference in a new issue