-
Notifications
You must be signed in to change notification settings - Fork 0
/
fresh_tomatoes.html
318 lines (252 loc) · 12.2 KB
/
fresh_tomatoes.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
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<head>
<meta charset="utf-8">
<title>My Fresh Tomatoes</title>
<!-- Bootstrap 3 -->
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap-theme.min.css">
<link href='http://fonts.googleapis.com/css?family=Alice|Roboto:500' rel='stylesheet' type='text/css'>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="http://www.backslash.gr/demos/contenthover-jquery-plugin/jquery.contenthover.js"></script>
<style type="text/css" media="screen">
body {
padding-top: 80px;
}
#trailer .modal-dialog {
margin-top: 200px;
width: 640px;
height: 480px;
}
.hanging-close {
position: absolute;
top: -12px;
right: -12px;
z-index: 9001;
}
#trailer-video {
width: 100%;
height: 100%;
}
.movie-tile {
margin-bottom: 20px;
padding-top: 20px;
}
.scale-media {
padding-bottom: 56.25%;
position: relative;
}
.scale-media iframe {
border: none;
height: 100%;
position: absolute;
width: 100%;
left: 0;
top: 0;
background-color: white;
}
div.ch_element.ch_wrapper{
margin: 0 auto;
}
.navbar-brand{
background: url(tomato-icon.png) no-repeat top left;
background-size: contain;
height: 40px;
width: 600px;
margin-top: 5px;
margin-left: 25px;
font-family: 'Alice', serif;
color: #fff !important;
text-indent: 45px;
font-size: 30px;
font-weight: bold;
}
.navbar-brand:hover{
color: #a8a8a8 !important;
}
h2{
font-family: 'Roboto', sans-serif;
}
p{
font-size: 17px;
font-family: 'Roboto', sans-serif;
}
.contenthover {
text-align: left;
padding:20px 20px 10px 20px;
}
.contenthover, .contenthover h3, contenthover a {
color:#fff;
}
.contenthover h3, .contenthover p {
margin:0 0 10px 0; line-height:1.5em; padding:0;
}
.contenthover a.mybutton {
text-decoration: none;
display:block;
float:left;
padding:5px 10px;
background:#3c9632;
color:#fff;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
}
.contenthover a.mybutton:hover {
background:#34742d
}
</style>
<script type="text/javascript" charset="utf-8">
// Pause the video when the modal is closed
$(document).on('click', '.hanging-close, .modal-backdrop, .modal', function (event) {
// Remove the src so the player itself gets removed, as this is the only
// reliable way to ensure the video stops playing in IE
$("#trailer-video-container").empty();
});
// Start playing the video whenever the trailer modal is opened
$(document).on('click', '.mybutton', function (event) {
var trailerYouTubeId = $(this).attr('data-trailer-youtube-id')
var sourceUrl = 'http://www.youtube.com/embed/' + trailerYouTubeId + '?autoplay=1&html5=1';
$("#trailer-video-container").empty().append($("<iframe></iframe>", {
'id': 'trailer-video',
'type': 'text-html',
'src': sourceUrl,
'frameborder': 0
}));
});
// Animate in the movies when the page loads
$(document).ready(function () {
$('.movie-tile').hide().first().show("fast", function showNext() {
$(this).next("div").show("fast", showNext);
});
});
//Display plot on hover
$(document).ready(function () {
$('.d1').contenthover({overlay_background:'#000', overlay_opacity:0.8});
});
</script>
</head>
<!DOCTYPE html>
<html lang="en">
<body>
<!-- Trailer Video Modal -->
<div class="modal" id="trailer">
<div class="modal-dialog">
<div class="modal-content">
<a href="#" class="hanging-close" data-dismiss="modal" aria-hidden="true">
<img src="https://lh5.ggpht.com/v4-628SilF0HtHuHdu5EzxD7WRqOrrTIDi_MhEG6_qkNtUK5Wg7KPkofp_VJoF7RS2LhxwEFCO1ICHZlc-o_=s0#w=24&h=24"/>
</a>
<div class="scale-media" id="trailer-video-container">
</div>
</div>
</div>
</div>
<!-- Main Page Content -->
<div class="container">
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">My Fresh Tomatoes</a>
</div>
</div>
</div>
</div>
<div class="container">
<div class="col-md-6 col-lg-4 movie-tile text-center" >
<img class="d1" src="http://ia.media-imdb.com/images/M/MV5BMjIxNTU4MzY4MF5BMl5BanBnXkFtZTgwMzM4ODI3MjE@._V1_SX214_AL_.jpg" width="220" height="342">
<div class="contenthover">
<p>A team of explorers travel through a wormhole in space in an attempt to ensure humanity's survival.</p>
<p><a href="#" class="mybutton" data-trailer-youtube-id="0vxOhd4qlnA" data-toggle="modal" data-target="#trailer">Play Trailer</a></p>
</div>
<h2>Interstellar</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" >
<img class="d1" src="http://ia.media-imdb.com/images/M/MV5BMTYwOTEwNjAzMl5BMl5BanBnXkFtZTcwODc5MTUwMw@@._V1_SY317_CR0,0,214,317_AL_.jpg" width="220" height="342">
<div class="contenthover">
<p>A Paraplegic Marine dispatched to the moon Pandora on a unique mission becomes torn between following his orders and protecting the world he feels is his home.</p>
<p><a href="#" class="mybutton" data-trailer-youtube-id="5PSNL1qE6VY" data-toggle="modal" data-target="#trailer">Play Trailer</a></p>
</div>
<h2>Avatar</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" >
<img class="d1" src="http://ia.media-imdb.com/images/M/MV5BMjQwNDYyNTk2N15BMl5BanBnXkFtZTgwMjQ0OTMyMjE@._V1_SX214_AL_.jpg" width="220" height="342">
<div class="contenthover">
<p>Set in unoccupied Africa during the early days of World War II: An American expatriate meets a former lover, with unforeseen complications.</p>
<p><a href="#" class="mybutton" data-trailer-youtube-id="EJvlGh_FgcI" data-toggle="modal" data-target="#trailer">Play Trailer</a></p>
</div>
<h2>Casablanca</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" >
<img class="d1" src="http://ia.media-imdb.com/images/M/MV5BMTQ0NjUzMDMyOF5BMl5BanBnXkFtZTgwODA1OTU0MDE@._V1_SX214_AL_.jpg" width="220" height="342">
<div class="contenthover">
<p>"The Dude" Lebowski, mistaken for a millionaire Lebowski, seeks restitution for his ruined rug and enlists his bowling buddies to help get it.</p>
<p><a href="#" class="mybutton" data-trailer-youtube-id="cd-go0oBF4Y" data-toggle="modal" data-target="#trailer">Play Trailer</a></p>
</div>
<h2>The Big Lebowski</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" >
<img class="d1" src="http://ia.media-imdb.com/images/M/MV5BNDYyMDgxNDQ5Nl5BMl5BanBnXkFtZTcwMjc1ODg3OA@@._V1_SY317_CR12,0,214,317_AL_.jpg" width="220" height="342">
<div class="contenthover">
<p>Humanity finds a mysterious, obviously artificial, object buried beneath the Lunar surface and, with the intelligent computer H.A.L. 9000, sets off on a quest.</p>
<p><a href="#" class="mybutton" data-trailer-youtube-id="lfF0vxKZRhc" data-toggle="modal" data-target="#trailer">Play Trailer</a></p>
</div>
<h2>2001: A Space Odyssey</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" >
<img class="d1" src="http://ia.media-imdb.com/images/M/MV5BMTc4MjUxNDAwN15BMl5BanBnXkFtZTcwMDMwNDg3OA@@._V1_SY317_CR12,0,214,317_AL_.jpg" width="220" height="342">
<div class="contenthover">
<p>A man creates a strange system to help him remember things; so he can hunt for the murderer of his wife without his short-term memory loss being an obstacle.</p>
<p><a href="#" class="mybutton" data-trailer-youtube-id="0vS0E9bBSL0" data-toggle="modal" data-target="#trailer">Play Trailer</a></p>
</div>
<h2>Memento</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" >
<img class="d1" src="http://ia.media-imdb.com/images/M/MV5BMTg2MzcxNTY3NV5BMl5BanBnXkFtZTgwOTQ5NDQxMDE@._V1_SX214_AL_.jpg" width="220" height="342">
<div class="contenthover">
<p>Renton, deeply immersed in the Edinburgh drug scene, tries to clean up and get out, despite the allure of the drugs and influence of friends.</p>
<p><a href="#" class="mybutton" data-trailer-youtube-id="GmQqhuKmECc" data-toggle="modal" data-target="#trailer">Play Trailer</a></p>
</div>
<h2>Trainspotting</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" >
<img class="d1" src="http://ia.media-imdb.com/images/M/MV5BMTkxNDYxOTA4M15BMl5BanBnXkFtZTgwNTk0NzQxMTE@._V1_SX214_AL_.jpg" width="220" height="342">
<div class="contenthover">
<p>A computer hacker learns from mysterious rebels about the true nature of his reality and his role in the war against its controllers.</p>
<p><a href="#" class="mybutton" data-trailer-youtube-id="m8e-FF8MsqU" data-toggle="modal" data-target="#trailer">Play Trailer</a></p>
</div>
<h2>The Matrix</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" >
<img class="d1" src="http://ia.media-imdb.com/images/M/MV5BMTI3MDA3NTQ0MF5BMl5BanBnXkFtZTcwNDEwMDMyMQ@@._V1_SY317_CR3,0,214,317_AL_.jpg" width="220" height="342">
<div class="contenthover">
<p>A troubled boy dives into a wonderous fantasy world through the pages of a mysterious book.</p>
<p><a href="#" class="mybutton" data-trailer-youtube-id="UeFni9dOv7c" data-toggle="modal" data-target="#trailer">Play Trailer</a></p>
</div>
<h2>The NeverEnding Story</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" >
<img class="d1" src="http://ia.media-imdb.com/images/M/MV5BMjE0ODk2NjczOV5BMl5BanBnXkFtZTYwNDQ0NDg4._V1_SY317_CR4,0,214,317_AL_.jpg" width="220" height="342">
<div class="contenthover">
<p>The lives of two mob hit men, a boxer, a gangster's wife, and a pair of diner bandits intertwine in four tales of violence and redemption.</p>
<p><a href="#" class="mybutton" data-trailer-youtube-id="wZBfmBvvotE" data-toggle="modal" data-target="#trailer">Play Trailer</a></p>
</div>
<h2>Pulp Fiction</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" >
<img class="d1" src="http://ia.media-imdb.com/images/M/MV5BMTczMzE4Nzk3N15BMl5BanBnXkFtZTcwNDg5Mjc4NA@@._V1_SX214_AL_.jpg" width="220" height="342">
<div class="contenthover">
<p>A troubled teenager is plagued by visions of a large bunny rabbit that manipulates him to commit a series of crimes, after narrowly escaping a bizarre accident.</p>
<p><a href="#" class="mybutton" data-trailer-youtube-id="ZZyBaFYFySk" data-toggle="modal" data-target="#trailer">Play Trailer</a></p>
</div>
<h2>Donnie Darko</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" >
<img class="d1" src="http://ia.media-imdb.com/images/M/MV5BMTQ2Mjc1MDQwMl5BMl5BanBnXkFtZTcwNzUyOTUyMg@@._V1_SY317_CR0,0,214,317_AL_.jpg" width="220" height="342">
<div class="contenthover">
<p>Following the death of a publishing tycoon, news reporters scramble to discover the meaning of his final utterance.</p>
<p><a href="#" class="mybutton" data-trailer-youtube-id="zyv19bg0scg" data-toggle="modal" data-target="#trailer">Play Trailer</a></p>
</div>
<h2>Citizen Kane</h2>
</div>
</div>
</body>
</html>