-
Notifications
You must be signed in to change notification settings - Fork 27
/
404.html
128 lines (123 loc) · 7.6 KB
/
404.html
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DPV - 404 error</title>
<style type="text/css">
body {
max-width: 800px;
margin: auto;
/*font-family: monospace;*/
}
.url {
color: blue;
}
</style>
</head>
<body>
<h1>404 Error</h1>
<p><strong>DPVCG Resource Not Found</strong>
<p>Common causes of this error:</p>
<ol>
<li>Typo in the URL - <span id="span-check-url"></span>.</li>
<li>Used an older unversioned URL - <span id="span-check-version"></span>.</li>
<li>The page existed before, but doesn't exist now OR it has been moved to a new location under a different name. You can view the available resources below.</li>
</ol>
<div id="wb404"/>
<script src="https://archive.org/web/wb404.js"></script>
<p><strong>DPV v2.0</strong><br/>
├── <a href="https://w3c.github.io/dpv/2.0/ai/">ai</a><br>
├── <a href="https://w3c.github.io/dpv/2.0/dpv/">dpv</a><br>
├── <a href="https://w3c.github.io/dpv/2.0/examples/">examples</a><br>
├── <a href="https://w3c.github.io/dpv/2.0/justifications/">justifications</a><br>
├── <a href="https://w3c.github.io/dpv/2.0/legal/">legal</a><br>
│ ├── <a href="https://w3c.github.io/dpv/2.0/legal/de/">de</a><br>
│ ├── <a href="https://w3c.github.io/dpv/2.0/legal/eu/">eu</a><br>
│ │ ├── <a href="https://w3c.github.io/dpv/2.0/legal/eu/aiact/">aiact</a><br>
│ │ ├── <a href="https://w3c.github.io/dpv/2.0/legal/eu/dga/">dga</a><br>
│ │ ├── <a href="https://w3c.github.io/dpv/2.0/legal/eu/gdpr/">gdpr</a><br>
│ │ ├── <a href="https://w3c.github.io/dpv/2.0/legal/eu/nis2/">nis2</a><br>
│ │ └── <a href="https://w3c.github.io/dpv/2.0/legal/eu/rights/">rights</a><br>
│ ├── <a href="https://w3c.github.io/dpv/2.0/legal/gb/">gb</a><br>
│ ├── <a href="https://w3c.github.io/dpv/2.0/legal/ie/">ie</a><br>
│ ├── <a href="https://w3c.github.io/dpv/2.0/legal/in/">in</a><br>
│ └── <a href="https://w3c.github.io/dpv/2.0/legal/us/">us</a><br>
├── <a href="https://w3c.github.io/dpv/2.0/loc/">loc</a><br>
├── <a href="https://w3c.github.io/dpv/2.0/pd/">pd</a><br>
├── <a href="https://w3c.github.io/dpv/2.0/risk/">risk</a><br>
└── <a href="https://w3c.github.io/dpv/2.0/tech/">tech</a>
</p>
<p><strong>DPV v1.0</strong><br/>
├── <a href="https://w3c.github.io/dpv/1.0/dpv/">dpv</a><br>
├── <a href="https://w3c.github.io/dpv/1.0/dpv-gdpr/">dpv-gdpr</a><br>
├── <a href="https://w3c.github.io/dpv/1.0/dpv-legal/">dpv-legal</a><br>
├── <a href="https://w3c.github.io/dpv/1.0/dpv-nace/">dpv-nace</a><br>
├── <a href="https://w3c.github.io/dpv/1.0/dpv-owl/">dpv-owl</a><br>
│ ├── <a href="https://w3c.github.io/dpv/1.0/dpv-owl/dpv-gdpr/">dpv-gdpr</a><br>
│ ├── <a href="https://w3c.github.io/dpv/1.0/dpv-owl/dpv-legal/">dpv-legal</a><br>
│ ├── <a href="https://w3c.github.io/dpv/1.0/dpv-owl/dpv-pd/">dpv-pd</a><br>
│ ├── <a href="https://w3c.github.io/dpv/1.0/dpv-owl/dpv-tech/">dpv-tech</a><br>
│ ├── <a href="https://w3c.github.io/dpv/1.0/dpv-owl/rights/">rights</a><br>
│ │ └── <a href="https://w3c.github.io/dpv/1.0/dpv-owl/rights/eu/">eu</a><br>
│ └── <a href="https://w3c.github.io/dpv/1.0/dpv-owl/risk/">risk</a><br>
├── <a href="https://w3c.github.io/dpv/1.0/dpv-pd/">dpv-pd</a><br>
├── <a href="https://w3c.github.io/dpv/1.0/dpv-skos/">dpv-skos</a><br>
│ ├── <a href="https://w3c.github.io/dpv/1.0/dpv-skos/dpv-gdpr/">dpv-gdpr</a><br>
│ ├── <a href="https://w3c.github.io/dpv/1.0/dpv-skos/dpv-legal/">dpv-legal</a><br>
│ ├── <a href="https://w3c.github.io/dpv/1.0/dpv-skos/dpv-pd/">dpv-pd</a><br>
│ ├── <a href="https://w3c.github.io/dpv/1.0/dpv-skos/dpv-tech/">dpv-tech</a><br>
│ ├── <a href="https://w3c.github.io/dpv/1.0/dpv-skos/rights/">rights</a><br>
│ │ └── <a href="https://w3c.github.io/dpv/1.0/dpv-skos/rights/eu/">eu</a><br>
│ └── <a href="https://w3c.github.io/dpv/1.0/dpv-skos/risk/">risk</a><br>
├── <a href="https://w3c.github.io/dpv/1.0/dpv-tech/">dpv-tech</a><br>
├── <a href="https://w3c.github.io/dpv/1.0/examples/">examples</a><br>
├── <a href="https://w3c.github.io/dpv/1.0/rights/">rights</a><br>
│ └── <a href="https://w3c.github.io/dpv/1.0/rights/eu/">eu</a><br>
└── <a href="https://w3c.github.io/dpv/1.0/risk/">risk</a>
</p>
<script type="text/javascript">
const url = window.location.href;
const span_typo = document.getElementById('span-check-url');
const span_unversioned = document.getElementById('span-check-version');
const re_check_version = /\d+/;
class PAGE_STATUS {
static _PROD = 0;
static _DEV = 1;
static _LOCAL = 2;
static _OTHER = 3;
static get PROD() { return this._PROD; }
static get DEV() { return this._DEV; }
static get LOCAL() { return this._LOCAL; }
static get OTHER() { return this._OTHER; }
};
var MODE = PAGE_STATUS.OTHER;
if (url.startsWith("https://w3c.github.io/dpv/")) {
MODE = PAGE_STATUS.PROD;
var purl = url.replace("https://w3c.github.io/dpv/", "https://w3id.org/dpv/")
span_typo.innerHTML = "check <span class='url'>"+url+"</span> is correct, or its purl form <a href='"+purl+"'>"+purl+"<a/>";
if (re_check_version.exec(url.replace("https://w3c.github.io/dpv/", "")) == null) {
span_unversioned.innerHTML = "you can check whether this versioned form is the url you are looking for: <a href='https://w3c.github.io/dpv/2.0/" + url.replace("https://w3c.github.io/dpv/", "") + "'>https://w3c.github.io/dpv/2.0/" + url.replace("https://w3c.github.io/dpv/", "") + "</a>";
} else {
span_unversioned.innerHTML = "but this doesn't appear to be the case";
}
} else if (url.startsWith("https://dev.dpvcg.org/")) {
MODE = PAGE_STATUS.DEV;
span_typo.innerHTML = "check <span class='url'>"+url+"</span> is correct";
if (re_check_version.exec(url.replace("https://dev.dpvcg/org/", "")) == null) {
span_unversioned.innerHTML = "this appears to be an unversioned url, you can check whether this versioned form is the url you are looking for: <a href='https://dev.dpvcg/org/2.0/" + url.replace("https://dev.dpvcg/org/", "") + "'>https://dev.dpvcg/org/2.0/" + url.replace("https://dev.dpvcg/org/", "") + "</a>";
} else {
span_unversioned.innerHTML = "... but this doesn't appear to be the case";
}
} else if (url.includes("localhost:")) {
MODE = PAGE_STATUS.LOCAL;
span_typo.innerHTML = "check <span class='url'>"+url+"</span> is correct";
span_unversioned.innerHTML = "but this doesn't appear to be the case";
}
// Typo in the URL
// .replace("https://w3c.github.io/dpv/", "https://w3id.org/dpv");
// const span_currenturl = document.getElementById('current-url');
// span_currenturl.innerHTML = window.location.href;
</script>
</body>
</html>