-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
19 lines (16 loc) · 2.02 KB
/
404.html
File metadata and controls
19 lines (16 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html><html lang="en"><head><base href="/" id="baseHref"><script type="text/javascript" id="hrefDomains">const hrefDomains = {
'mol.org': '//mol.org/upload-dev/',
'www.mol.org': '//www.mol.org/upload-dev/'
};
let href = hrefDomains[window.location.hostname] || '/';
// Is there a language in the path name?
const langs = { 'en': 'en', 'en-US': 'en', 'es': 'es' };
const localeId = Object.keys(langs)
.filter(lng => window.location.pathname.indexOf(`/${lng}/`) > -1);
if (localeId.length) {
// Find the first / slash after the initial //mol.org
const idx = href.indexOf('/', 2);
// Splice the language after the host but at the start of the path
href = href.slice(0, idx) + '/' + langs[localeId[0]] + href.slice(idx);
}
document.getElementById('baseHref').href = href;</script><meta charset="utf-8"><title>Upload</title><meta name="viewport" content="width=device-width,initial-scale=1"><!-- add class 'no-prefix' to <link>s that shouldn't be prepended with http://mol.org/... --><link rel="icon" type="image/x-icon" href="https://mapoflife.github.io/upload-dev/favicon.ico"><link href="https://mapoflife.github.io/upload-dev/styles.ccd66b3e8a7ae1ec926a.bundle.css" rel="stylesheet"></head><body><app-root></app-root><!-- add class 'no-prefix' to <script>s that shouldn't be prepended with http://mol.org/... --><script class="no-prefix" src="https://mol.org/static/js/jquery.min.js"></script><script class="no-prefix" src="https://mol.org/static/js/bootstrap.min.js"></script><script type="text/javascript" src="https://mapoflife.github.io/upload-dev/inline.31e1fb380eb7cf3d75b1.bundle.js"></script><script type="text/javascript" src="https://mapoflife.github.io/upload-dev/polyfills.fb4007984c7a4cafda0d.bundle.js"></script><script type="text/javascript" src="https://mapoflife.github.io/upload-dev/vendor.4d7ec6f0cc647df07e10.bundle.js"></script><script type="text/javascript" src="https://mapoflife.github.io/upload-dev/main.5ce52afe07b1ef3517c6.bundle.js"></script></body></html>