-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
55 lines (43 loc) · 1.42 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
---
layout: default
permalink: /404.html
---
<script type="text/javascript">
function endsWith(str, suffix) {
return str.indexOf(suffix, str.length - suffix.length) !== -1;
}
var url = window.location.href;
var fnames = ["index", "cfp", "dates", "submit", "reviewer", "sponsors", "committee", "accommodation", "past"];
//url = url.replace("http://www", "http://");
if(endsWith(url, ".php")){
// url ends with .php. Check for a redirection
for(i=0; i<fnames.length; i++){
if(endsWith(url, fnames[i]+".php" )){
var redirect = "{{ site.baseurl }}/" + fnames[i] + ".html";
console.log("redirecting to: " + redirect);
window.location.replace(redirect);
}
}
}
//window.location.replace("{{ site.baseurl }}/submit.html");
</script>
<div class="contents">
<p>
<h2>404 File not found. </h2>
</p>
<p>
The site does not contain the requested file.
<ul>
<li>If you are looking for defailed formatting and submission instructions,
see <a href="{{ site.baseurl }}/submit.html">this page</a>.</li>
<li>If the requested address ends with .php, try to change it to .html.</li>
<li>Otherwise, please contact us at <a>
<script type="text/javascript">
document.write("aistats");
document.write("2016");
document.write("@gmail.com");
</script>
</a>
</li>
</p>
</div>