-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
298 lines (287 loc) · 9.78 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
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>WtW Home</title>
<link rel="stylesheet" href="bootstrap-4.3.1-dist/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="img/icon.png">
</head>
<body>
<!-- Navigation -->
<nav class="navbar sticky-top navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">
<img src="img/logo2.png" alt="logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<form class="form-inline mr-auto mt-2 mt-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-info my-2 my-sm-0" type="submit">Search</button>
</form>
<ul class="navbar-nav my-2 my-lg-0">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="\movies">Movies</a>
</li>
<li class="nav-item">
<a class="nav-link" href="\engine">Recommendations</a>
</li>
<li class="nav-item">
<a class="nav-link" href="http://localhost/WtWSurvey/survey.php">Take a Survey</a>
</li>
<li class="nav-item">
<a class="nav-link" id="dash" href="/login">Login</a>
</li>
</ul>
</div>
</nav>
<!--- Image Slider -->
<div id="slides" class="carousel slide" data-ride="carousel">
<ul class="carousel-indicators">
<li data-target="#slides" data-slide-to="0" class="active"></li>
<li data-target="#slides" data-slide-to="1"></li>
<li data-target="#slides" data-slide-to="2"></li>
<li data-target="#slides" data-slide-to="3"></li>
<li data-target="#slides" data-slide-to="4"></li>
</ul>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="img/moviePostersHome/baby-driver_a6bd_1600x900.jpg" alt="1">
</div>
<div class="carousel-item">
<img src="img/moviePostersHome/avenger.jpg" alt="1">
</div>
<div class="carousel-item">
<img src="img/moviePostersHome/death-note_f2a2_1600x900.jpg" alt="2">
</div>
<div class="carousel-item">
<img src="img/moviePostersHome/blade-runner-2049_5bcc_1600x900.jpg" alt="3">
</div>
<div class="carousel-item">
<img src="img/moviePostersHome/the-shawshank-redemption_f5b5_1600x900.jpg" alt="4">
</div>
</div>
</div>
<!--- Jumbotron -->
<div class="container-fluid">
<div class="row jumbotron">
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9 col-xl-10">
<p class="lead">
WhatToWatch.com is a movie recommendation site that lists out movies based on your favourites,
preferences
and your watching history. Everytime you watch something, just hit us up with what you watched recently
and why and we will tune
in your future recommendations based on that.
Share your watchlist with your friends and view theirs to collaborate on.
</p>
</div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3 col-xl-2">
<a href="#">
<button type="button" class="btn btn-outline-danger" id="engine">Fire Up the Engine</button>
</a>
</div>
</div>
</div>
<!--- Welcome Section -->
<div class="container-fluid padding">
<div class="row welcome text-center">
<div class="col-12">
<a id="newArrivals"></a>
<h1 class="display-4">News</h1>
</div>
<hr>
<div class="col-12">
<p class="lead">
What's new in the showbiz?
</p>
</div>
</div>
</div>
<hr class="my-3">
<!--- Three Column Section -->
<div class="container-fluid padding">
<div class="row text-center padding">
<div class="col-xs-12 col-sm-6 col-md-6">
<img class="news" alt="joker" src="img/moviePostersHome/jker.jpg">
<a href="">
<h3>Will 'Joker' Have a Wild Night at the Oscars?</h3>
</a>
<p>
imdb @ TIFF
</p>
</div>
<div class="col-xs-12 col-sm-6 col-md-6">
<img class="news" alt="joker" src="img/moviePostersHome/pc.jpg">
<a href="https://www.imdb.com/list/ls090647824/videoplayer/vi3215310617?pf_rd_m=A2FGELUUNOQJNL&pf_rd_p=42f2302d-823c-46c0-a48d-8e50a4a500b1&pf_rd_r=2CGJJM7CX245C6R9MR75&pf_rd_s=center-10&pf_rd_t=15061&pf_rd_i=homepage&ref_=hm_tiff_sky_1_i_1">
<h3>How Priyanka Chopra Jonas Tackled Aging on Screen</h3>
</a>
<p>
vanityFair Magazine
</p>
</div>
<div class="col-xs-12 col-sm-6 col-md-6">
<img class="news" alt="joker" src="img/moviePostersHome/sam.jpg">
<a href="https://www.imdb.com/list/ls090647824/videoplayer/vi2460270361?pf_rd_m=A2FGELUUNOQJNL&pf_rd_p=1a3434d2-f1ae-40f1-9f02-4546deda7c23&pf_rd_r=2CGJJM7CX245C6R9MR75&pf_rd_s=center-3&pf_rd_t=15061&pf_rd_i=homepage&ref_=hm_tiff_dads_1_i_1">
<h3>Will Sam Neil make a Jurassic Park Return?</h3>
</a>
<p>
hotTopics @ imdb
</p>
</div>
<div class="col-xs-12 col-sm-6 col-md-6">
<img class="news" alt="joker" src="img/moviePostersHome/editor.jpg">
<a href="https://www.imdb.com/imdbpicks/editors-picks-sept1319/ls090846450/mediaviewer/rm1342281473?pf_rd_m=A2FGELUUNOQJNL&pf_rd_p=2cbab44d-8107-4412-a4a8-33325c51d9c7&pf_rd_r=2CGJJM7CX245C6R9MR75&pf_rd_s=center-5&pf_rd_t=15061&pf_rd_i=homepage&ref_=hm_pks_eds_sept1319_i_1">
<h3>Top Daily news</h3>
</a>
<p>
editor @ imdb
</p>
</div>
</div>
<hr class="my-4">
</div>
<!--- Cards -->
<div class="container-fluid padding">
<div class="row welcome text-center">
<div class="col-12">
<h1 class="display-4">Spotlight</h1>
</div>
<hr>
<div class="col-12">
<p class="lead">
Celebs to watch out for..
</p>
</div>
</div>
</div>
<hr class="my-3">
<div class="container-fluid padding">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4">
<div class="card">
<div class="card-body text-center">
<img class="card-img-top" src="img/actors/kit.jpg" alt="">
<br>
<br>
<h5 class="card-title">Kit Harington</h5>
<p class="card-text">Game of Thrones star putting his word in to make a remake of the last
season.</p>
<a href="#" class="btn btn-outline-dark" id="kit">Profile</a>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4">
<div class="card">
<div class="card-body text-center">
<img class="card-img-top" src="img/actors/benedict.jpg" alt="">
<br>
<br>
<h5 class="card-title">Benedict Cumberbatch</h5>
<p class="card-text">Sherlock Season 5 rumours going around, Bendeict's Instagram referencing
previous seasons</p>
<a href="#" class="btn btn-outline-dark" id="benedict">Profile</a>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4">
<div class="card">
<div class="card-body text-center">
<img class="card-img-top" src="img/actors/emilia.jpg" alt="">
<br>
<br>
<h5 class="card-title">Emilia Clarke</h5>
<p class="card-text">Terminator : Genesys crossed 240m mark worldwide. Emilia tweets about the
success of the show</p>
<a href="#" class="btn btn-outline-dark" id="emilia">Profile</a>
</div>
</div>
</div>
</div>
</div>
<!--- Two Column Section -->
<hr>
<!--- Connect -->
<div class="container-fluid padding">
<div class="row text-center welcome padding">
<div class="col-12">
<h1 class="display-4">Connect with WtW</h1>
</div>
<hr>
<div class="col-12 social padding">
<a href="#"><i class="fab fa-facebook"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-google-plus-g"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-youtube"></i></a>
<a href="#"><i class="far fa-envelope"></i></a>
</div>
</div>
</div>
<!--- Footer -->
<footer>
<div class="container-fluid">
<div class="row text-center">
<div class="col-4">
<h6>Our Offices </h6>
<hr class="light">
<p>contact@wtw.com</p>
<p>Mountain View, California</p>
<p>CA - 90425</p>
</div>
<div class="col-4">
</div>
<div class="col-4">
<h6>Get the app</h6>
<hr class="light text-center">
<img src="img/google-button.png" style="width: 200px; height: auto" alt="play store"> <br><br>
<img src="img/app-store.png" style="width: 200px; height: auto" alt="applestore">
</div>
<div class="col-12">
<hr class="light">
<img src="img/logo2.png" alt="..">
</div>
</div>
</div>
</footer>
<script>
$(document).ready( function () {
const dash = $('#dash');
const isUser = sessionStorage.getItem('currentUser');
console.log(isUser);
// console.log(isUser);
// console.log(typeof isUser);
if (isUser !== null && isUser !== undefined) {
dash.text(isUser);
dash.attr("href", "/userDashboard")
}
$('#benedict').click( () => {
sessionStorage.setItem("actorName", "benedict");
window.location.href = "/actorProfile";
});
$('#kit').click( () => {
sessionStorage.setItem("actorName", "kit");
window.location.href = "/actorProfile";
});
$('#emilia').click( () => {
sessionStorage.setItem("actorName", "emilia");
window.location.href = "/actorProfile";
});
$('#engine').click( () => {
sessionStorage.setItem("currentUser", isUser);
window.location.href = "/engine";
});
});
</script>
</body>
</html>