mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-26 16:15:25 +00:00
24 lines
595 B
Text
24 lines
595 B
Text
|
<html>
|
||
|
<head>
|
||
|
<script type="text/javascript" charset="utf-8">
|
||
|
// Map of projects that support handling 404s.
|
||
|
var supportedProjects = {
|
||
|
'ReDoc': 'https://redocly.github.io/redoc'
|
||
|
};
|
||
|
|
||
|
var project = window.location.pathname.split('/')[1];
|
||
|
|
||
|
// Always fallback to rebilly.com redirect.
|
||
|
var loc = 'https://www.rebilly.com/';
|
||
|
|
||
|
if (supportedProjects.hasOwnProperty(project)) {
|
||
|
if (typeof supportedProjects[project] === 'string') {
|
||
|
loc = supportedProjects[project];
|
||
|
}
|
||
|
}
|
||
|
window.location.href = loc;
|
||
|
</script>
|
||
|
</head>
|
||
|
<body></body>
|
||
|
</html>
|