forked from ballerina-platform/ballerina-dev-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
87 lines (81 loc) · 4.28 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
---
layout: ballerina-inner-page
---
<script src="/js/redirections.js" type="application/javascript"></script>
<!-- <style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style> -->
<script>
//Handling bulk redirections
var pathname = window.location.pathname;
var redirection = validate_redirection(pathname);
if (pathname.indexOf("/swan-lake/") !== -1) {
var redirectpath = pathname.replace("/swan-lake", "");
document.write('<meta http-equiv="refresh" content="0; url=' + redirectpath + '">');
} else if (pathname.indexOf("/learn/by-example/") !== -1) {
document.write('<meta http-equiv="refresh" content="0; url=/learn/by-example/">');
} else if (pathname.indexOf("/1.1/learn/") !== -1) {
document.write('<meta http-equiv="refresh" content="0; url=/1.1/learn/">');
} else if (pathname.indexOf("/1.0/learn/") !== -1) {
document.write('<meta http-equiv="refresh" content="0; url=/1.0/learn/">');
} else if (redirection.type == "versioned") {
var new_path = pathname.replace('v', '').replace('-', '.');
document.write('<meta http-equiv="refresh" content="0; url=' + new_path + '">');
} else if (redirection.type == "path" && typeof redirection.dest != "undefined") {
var new_path = redirection.dest;
document.write('<meta http-equiv="refresh" content="0; url=' + new_path + '">');
} else {
$('body').show();
}
</script>
<div class="container">
<h1>404</h1>
<p><strong>Page not found. :(</strong></p>
<p>You can either <a href="#" onclick="history.go(-1);return false;">go back</a> to the previous page,
<span data-toggle="modal" data-target="#reportissues1" data-whatever="@mdo"><a class="getStartLinks">report your issue,</a></span> or contact the <a href="/community/#ballerina-slack-community">Ballerina
Team</a>.</p>
</div>
<style>
#table-of-content,
.cVersionItem,
#versions,
.icon.icon-github {
display: none !important;
}
</style>
<!--Modal Start for Report Issues-->
<div class="modal fade" id="reportissues1" tabindex="-1" role="dialog" aria-labelledby="reportissueslabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content" style="padding:15px;border-radius:0px;">
<div class="modal-header" style="border-bottom:none; padding-bottom:0px;">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h5 class="modal-title" id="exampleModalLabel">Report issues</h5>
<p class="modelDescription" style="padding: 15px 0px 0px 0px;font-size: 16px;color: #57595d;font-weight: 300;margin-bottom: 0;line-height: 27px !important;letter-spacing: 0.4px;">Report issues in the GitHub repositories of the areas and components listed below.
</p>
</div>
<div class="modal-body" style="background-color: #fff; font-size: 20; color: #465867;font-size: 20px;">
<ul class="b" style="list-style-type: square; padding-left:20px">
<li><a class="linkText" href="https://github.com/ballerina-platform/ballerina-lang/issues/new/choose" target="_blank"> Compiler, runtime, and CLI tooling</a></li>
<li><a class="linkText" href="https://github.com/ballerina-platform/ballerina-standard-library/issues/new/choose" target="_blank"> Standard Library</a></li>
<li><a class="linkText" href="https://github.com/wso2/ballerina-plugin-vscode/issues/new/choose" target="_blank"> Ballerina Visual Studio Code extension</a></li>
<li><a class="linkText" href="https://github.com/ballerina-platform/ballerina-spec/issues/new/choose" target="_blank"> Platform specifications</a></li>
<li><a class="linkText" href="https://github.com/ballerina-platform/ballerina-dev-website/issues/new/choose" target="_blank"> Website, Ballerina Central, API Docs</a></li>
<li><a class="linkText" href="mailto:[email protected]" target="_blank">Security</a> <span style="font-size: 16px;">(For details, see the</span> <a class="linkText" href="/security" target="_blank">security policy</a>.)</li>
</ul>
</div>
</div>
</div>
</div>
<!--Modal Finish for Report Issues-->