-
Notifications
You must be signed in to change notification settings - Fork 0
/
index1.html
43 lines (36 loc) · 1.11 KB
/
index1.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
<html>
<head>
<script type="text/javascript">
<!--
function redirect(url){
window.location = url;
}
function UrlExists(url)
{
var xhr = new XMLHttpRequest();
xhr.open('HEAD', url, false);
xhr.send();
if (xhr.status == "404") {
return false;
} else {
return true;
}
}
function checkNredirect(){
console.log('here');
var moviePageURL = "./report/movies.html";
// if(UrlExists(moviePageURL)){
redirect(moviePageURL);
// }
// else {
// document.getElementById("status").innerHTML = "Movie listing not found. Edit 'config.txt' for adding movie folder location(s) then run 'make-catalog'.\n\n Note:If you did catalog before but wanna start fresh first run 'reset-as-fresh' then run 'make-catalog'";
// }
}
//-->
</script>
</head>
<body onLoad="checkNredirect()">
<h2>Widespace Movie Database</h2>
<p id="status">If you are seeing this, that means movie listing not found. Edit 'config.txt' for adding movie folder location(s) then run 'make-catalog'.\n\n Note:If you did catalog before but wanna start fresh first run 'reset-as-fresh' then run 'make-catalog'</p>
</body>
</html>