-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsearch.html
186 lines (179 loc) · 6.19 KB
/
search.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.min.css"
integrity="sha256-7jUS+MWeqkFdmW9ozkZ7mPagz+QmMbsBlt+Q3MsE+FU="
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"
/>
<link rel="stylesheet" href="./assets/styles/search.css" />
<title>Document</title>
</head>
<body>
<div id="background-image" class="hero is-fullheight"></div>
<div class="header-container">
<a id="logo" href="./index.html">
<img src="./assets/images/Streamly!-logos_white.png" />
</a>
<header id="header" class="is-flex is-flex-justify-content-space-evenly">
<nav
class="navbar is-dark"
role="navigation"
aria-label="main navigation"
>
<div class="navbar-brand">
<a
role="button"
class="navbar-burger"
aria-label="menu"
aria-expanded="false"
data-target="navbarBasicExample"
>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="./index.html">Popular Movies</a>
<a class="navbar-item" href="./index.html">Popular Tv Shows</a>
<a
class="navbar-item"
href="#watch-list"
onclick="showWatchlist()"
>Watchlist</a
>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link"> Genres </a>
<!-- Data ids represents genre id's on api.watchmode/v1/genre -->
<div class="navbar-dropdown">
<a
class="navbar-item is-hoverable genre"
data-id="28"
data-name="Action"
>Action</a
>
<hr class="navbar-divider" />
<a
class="navbar-item is-hoverable genre"
data-id="12"
data-name="Adventure"
>Adventure</a
>
<hr class="navbar-divider" />
<a
class="navbar-item is-hoverable genre"
data-id="16"
data-name="Animation"
>Animation</a
>
<hr class="navbar-divider" />
<a
class="navbar-item is-hoverable genre"
data-id="35"
data-name="Comedy"
>Comedy</a
>
<hr class="navbar-divider" />
<a
class="navbar-item is-hoverable genre"
data-id="80"
data-name="Crime"
>Crime</a
>
<hr class="navbar-divider" />
<a
class="navbar-item is-hoverable genre"
data-id="18"
data-name="Drama"
>Drama</a
>
<hr class="navbar-divider" />
<a
class="navbar-item is-hoverable genre"
data-id="27"
data-name="Horror"
>Horror</a
>
<hr class="navbar-divider" />
<a
class="navbar-item is-hoverable genre"
data-id="10749"
data-name="Romance"
>Romance</a
>
<hr class="navbar-divider" />
<a
class="navbar-item is-hoverable genre"
data-id="878"
data-name="ScienceFiction"
>Science Fiction</a
>
<hr class="navbar-divider" />
<a
class="navbar-item is-hoverable genre"
data-id="53"
data-name="Thriller"
>Thriller</a
>
</div>
</div>
</div>
<!-- <div class="navbar-end">
<div class="navbar-item">
<form>
<label for="search-input">Search</label>
<input type="text" id="search-input" placeholder="search" />
</form>
</div>
</div> -->
</div>
</nav>
</header>
</div>
<div id="heading">
<h1 class="title">
Showing search for: <span id="genreName" class=""></span>
</h1>
<div>
<button class="button" id="movie-btn" data-name="movie">Movies</button>
<button class="button" id="tv-btn" data-name="tv">TV Shows</button>
</div>
</div>
<main>
<div class="tile ia-ancestor" id="card-container"></div>
<!-- <div class="card">
<div class="">
<figure class="image is-100x100">
<img src="" alt="" id="resultsPoster" />
</figure>
</div>
<div class="card-content">
<div class="media">
<div class="media-left"></div>
<div class="media-content" id="btnDiv">
<p class="title is-4" id="resultsTitle"></p>
</div>
</div>
</div>
</div> -->
<div id="tile-container"></div>
<div id="watch-list"></div>
</main>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js"
integrity="sha256-2Dbg51yxfa7qZ8CSKqsNxHtph8UHdgbzxXF9ANtyJHo="
crossorigin="anonymous"
></script>
<script src="./assets/scripts/script.js"></script>
<script src="./assets/scripts/search.js"></script>
</body>
</html>