Skip to content

Commit

Permalink
Switch servers
Browse files Browse the repository at this point in the history
  • Loading branch information
haukex committed Jul 10, 2024
1 parent cba29eb commit 9046b53
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
8 changes: 5 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ <h1>German-English Dictionary</h1>
</noscript>

<div class="d-none notice text-danger" id="dict-load-fail">
⚠️&nbsp;The dictionary failed to load!
Please make sure you're using a modern browser and have a working Internet connection.
Reload this page to try again.
<p><strong>⚠️&nbsp;The dictionary failed to load!</strong></p>
<p>Please make sure you're using a modern browser and have a working Internet connection.
Reload this page to try again. It is also possible that the dictionary server is offline -
try <a href="https://ftp.tu-chemnitz.de/pub/Local/urz/ding/de-en-devel/"
target="_blank">this link</a> to check.</p>
</div>

<p>
Expand Down
14 changes: 7 additions & 7 deletions src/js/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
export {DB_URL, DB_VER_URL, DB_CACHE_NAME, cacheFirst}

/* The URLs from which to load the dictionary and version information.
* Although I have permission to use the ftp.tu-chemnitz.de server from Frank Richter,
* at the moment this doesn't work because the server does not send a CORS header.
* So for now, use the mirror at zero-g.net. */
//const DB_URL = 'https://ftp.tu-chemnitz.de/pub/Local/urz/ding/de-en-devel/de-en.txt.gz'
//const DB_VER_URL = 'https://ftp.tu-chemnitz.de/pub/Local/urz/ding/de-en-devel/sha256sums.txt'
const DB_URL = 'https://bl0.zero-g.net/de-en.txt.gz'
const DB_VER_URL = 'https://bl0.zero-g.net/sha256sums.txt'
* I have permission to use the ftp.tu-chemnitz.de server from Frank Richter.
* It now sends CORS headers so we can access it. */
const DB_URL = 'https://ftp.tu-chemnitz.de/pub/Local/urz/ding/de-en-devel/de-en.txt.gz'
const DB_VER_URL = 'https://ftp.tu-chemnitz.de/pub/Local/urz/ding/de-en-devel/sha256sums.txt'
// The following is my (Hauke's) mirror; manually updated so it may not be up-to-date.
//const DB_URL = 'https://bl0.zero-g.net/de-en.txt.gz'
//const DB_VER_URL = 'https://bl0.zero-g.net/sha256sums.txt'

/* The name of the cache in which to store the dictionary.
* Note the main script takes care of checking for cache freshness. */
Expand Down

0 comments on commit 9046b53

Please sign in to comment.