-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
101 lines (47 loc) · 2.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>movie finder</title>
<link rel="stylesheet" href="style.css">
<!-- Bootstrap CSS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>
<body>
<!-- Bootstrap Toast for Note -->
<div class="alert alert-info" role="alert" id="alert">
Press the search button everytime to regenerate the URL
</div>
<div class="container">
<div class="container">
<div class="section movie-section">
<h1>Movie Finder</h1>
<label for="movieName">Enter Movie Name:</label>
<input type="text" id="movieName" oninput="getMovieSuggestions()" />
<ul id="movieSuggestions"></ul>
<button onclick="searchMovie()">Search</button>
<p id="movieResult"></p>
<p id="movieResult2"></p>
<button id="movieCopyButton" onclick="copyMovieToClipboard()">Copy Movie URL</button>
</div>
<div class="section series-section">
<h1>Series Finder</h1>
<label for="seriesName">Enter Series Name:</label>
<input type="text" id="seriesName" oninput="getSeriesSuggestions()" />
<ul id="seriesSuggestions"></ul>
<button onclick="searchSeries()">Search</button>
<p id="seriesResult"></p>
<button id="seriesCopyButton" onclick="copySeriesToClipboard()">Copy Series URL</button>
</div>
</div>
</div>
<!-- Bootstrap JS and Popper.js -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="main.js"></script>
<!-- Script to initialize the toast -->
</body>
</html>