-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
106 lines (101 loc) · 3.45 KB
/
index.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="favi icon" type="image" href="Images/logo.png">
<link rel="stylesheet" type="text/css" href="index.css">
<script src="index.js"></script>
<title>Movie Finder</title>
</head>
<body>
<!--Form-->
<form name="movie_form" onsubmit="return false">
<!--Website Logo-->
<img id="web-logo">
<input type="text" placeholder="Enter the Movie name" id ="movie_name" name="movie_name">
<input type="submit" class="submit" id="submit-button" onclick="find_movie(document.forms['movie_form']['movie_name'].value);" value="Search">
</form>
<dialog id="movie_result_dialog" title="Movie Not Found">
<img id="movie_result">
<button id="try-again-button" onclick="try_again_click();">Try Again</button>
</dialog>
<div id="movie_details">
<!--Movie Data Table-->
<table id="movie-table" style="display: none;">
<caption id="movie-title" style="color:white;"></caption>
<tr>
<th>Poster</th>
<td id="image-data"><img id="poster" src=""></td>
</tr>
<tr>
<th>Title</th>
<td id="title"></td>
</tr>
<tr>
<th>Year</th>
<td id="year"></td>
</tr>
<tr>
<th>Released on</th>
<td id="release-date"></td>
</tr>
<tr>
<th>Genre</th>
<td id="genre"></td>
</tr>
<tr>
<th>Productions</th>
<td id="productions"></td>
</tr>
<tr>
<th>Director</th>
<td id="director"></td>
</tr>
<tr>
<th>Writer</th>
<td id="writer"></td>
</tr>
<tr>
<th>Cast</th>
<td id="cast"></td>
</tr>
<tr>
<th>Story</th>
<td id="story"></td>
</tr>
<tr>
<th>Country</th>
<td id="country"></td>
</tr>
<tr>
<th>Language</th>
<td id="language"></td>
</tr>
<tr>
<th>Awards</th>
<td id="awards"></td>
</tr>
<tr>
<th>IMDB ID</th>
<td id="imdb-id"></td>
</tr>
<tr>
<th>IMDB Rating</th>
<td id="rating"></td>
</tr>
<tr>
<th>Box Office</th>
<td id="box-office"></td>
</tr>
</table>
</div>
<script>
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
var movie_name = urlParams.get("movie_name");
if(movie_name!=null){
find_movie(movie_name);
}
</script>
</body>
</html>