forked from BSVino/docs.gl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
24 lines (21 loc) · 817 Bytes
/
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
<div class="refentry" id="pagenotfound">
<div class="titlepage">
<p>Try the menu on the left, or the search bar top right.</p>
</div>
</div>
<script>
var alias_api = window.current_api.substring(0, 2);
var path404 = window.location.pathname
var cur_command = path404.substring(path404.lastIndexOf("/") + 1);
$("#404command").text(cur_command);
// I'm not the best with Javascript, but the 404 command name is set before loading
// the search .js in the hope that a slow search .js won't delay the command name.
</script>
<script src="../docs.gl.search.js"></script>
<script>
var alias_target = function_aliases[alias_api][cur_command];
if(typeof alias_target != 'undefined')
{
window.location.href = path404.replace(cur_command, alias_target);
}
</script>