-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproperties.html
More file actions
32 lines (32 loc) · 1.17 KB
/
Copy pathproperties.html
File metadata and controls
32 lines (32 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wikidata Property Viewer — Human Language</title>
<meta http-equiv="refresh" content="0;url=./app.html#mode=property">
<link rel="canonical" href="./app.html#mode=property">
<style>
body { font-family: system-ui, sans-serif; background: #121212; color: #E0E0E0; padding: 40px; text-align: center; }
a { color: #00FF00; }
</style>
</head>
<body>
<p>Redirecting to the unified <a href="./app.html">Human Language SPA</a>…</p>
<script>
// Translate legacy hashes (#P31) into the unified `#mode=property&id=…` form.
(function redirect() {
const hash = (window.location.hash || '').replace(/^#/, '');
let target = './app.html#mode=property';
if (/^P\d+$/i.test(hash)) {
target = `./app.html#mode=property&id=${hash.toUpperCase()}`;
} else if (hash.includes('=')) {
const params = new URLSearchParams(hash);
params.set('mode', 'property');
target = `./app.html#${params.toString()}`;
}
window.location.replace(target);
})();
</script>
</body>
</html>