-
Notifications
You must be signed in to change notification settings - Fork 0
/
fresh_tomatoes.html
208 lines (197 loc) · 10.5 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
<head>
<meta charset="utf-8">
<title>Fresh Tomatoes!</title>
<!-- Bootstrap 3 -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<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">
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<link href='http://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Nobile' rel='stylesheet' type='text/css'>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<style type="text/css" media="screen">
body {
padding-top: 80px;
}
#trailer .modal-dialog {
margin-top: 200px;
width: 640px;
height: 480px;
}
#story_line .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;
font-family: 'Arvo', serif;
}
.movie-tile-single{
background-color:#2AD0AF;
}
.image:hover {
background-color: #00CC66;
cursor: pointer;
-webkit-transform:scale(1.1); /* Safari and Chrome */
-moz-transform:scale(1.1); /* Firefox */
-ms-transform:scale(1.1); /* IE 9 */
-o-transform:scale(1.1); /* Opera */
transform:scale(1.1);
}
.movie_plot:hover {
-webkit-transform:scale(1.25); /* Safari and Chrome */
-moz-transform:scale(1.25); /* Firefox */
-ms-transform:scale(1.25); /* IE 9 */
-o-transform:scale(1.25); /* Opera */
transform:scale(1.25);
cursor: pointer;
}
.scale-media {
padding-bottom: 56.25%;
position: relative;
}
.scale-media iframe {
border: none;
height: 100%;
position: absolute;
width: 100%;
left: 0;
top: 0;
}
</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', '.movie-tile-single', function (event) {
var trailerYouTubeId = $(this).attr('data-trailer-youtube-id');
console.log(trailerYouTubeId);
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
}));
});
// Show movie plot window when MoviePlot is clicked
$(document).on('click', '.movie_plot', function (event) {
var movie_plot_data = $(this).attr('data-story-id');
$("#movie-story-line").empty().append(movie_plot_data);
});
// 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);
});
});
</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>
<!-- Story Plot Modal -->
<div class="modal" id="story_line">
<div class="modal-dialog">
<div class="modal-content">
<div class="scale-media" id="movie-story-line" style="background:#91FFC8;padding:30px">
</div>
</div>
</div>
</div>
<!-- Main Page Content -->
<div class="container">
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation" style="background:#2AD0AF">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#" style="font-family: 'Nobile',sans-serif;font-size:25px;color:#000000;">Fresh Tomatoes Movie Trailers</a>
</div>
</div>
</div>
</div>
<div class="container">
<div class="col-md-6 text-center col-lg-4 movie-tile">
<div class = "text-center movie-tile-single" data-trailer-youtube-id="Y0oX0xiwOv8" data-toggle="modal" data-target="#trailer" style="padding-top:25px;padding-bottom:10px">
<img class="image"src="http://upload.wikimedia.org/wikipedia/en/b/bb/Boyhood_film.jpg" width="220" height="342">
<h3>Boy Hood</h3>
</div>
<div class="movie_plot" data-story-id="Filmed over 12 years with the same cast, Richard Linklater's BOYHOOD is a groundbreaking story of growing up as seen through the eyes of a child named Mason (a breakthrough performance by Ellar Coltrane), who literally grows up on screen before our eyes." data-toggle="modal" data-target="#story_line" style="margin-top:10px;font-size:25px;">
<i class="fa fa-leanpub fa-lg"></i>
</div>
</div>
<div class="col-md-6 text-center col-lg-4 movie-tile">
<div class = "text-center movie-tile-single" data-trailer-youtube-id="bLvqoHBptjg" data-toggle="modal" data-target="#trailer" style="padding-top:25px;padding-bottom:10px">
<img class="image"src="http://upload.wikimedia.org/wikipedia/en/6/67/Forrest_Gump_poster.jpg" width="220" height="342">
<h3>Forrest Gump</h3>
</div>
<div class="movie_plot" data-story-id="Forrest Gump is a simple man with a low I.Q. but good intentions. He is running through childhood with his best and only friend Jenny. His 'mama' teaches him the ways of life and leaves him to choose his destiny." data-toggle="modal" data-target="#story_line" style="margin-top:10px;font-size:25px;">
<i class="fa fa-leanpub fa-lg"></i>
</div>
</div>
<div class="col-md-6 text-center col-lg-4 movie-tile">
<div class = "text-center movie-tile-single" data-trailer-youtube-id="FLzfXQSPBOg" data-toggle="modal" data-target="#trailer" style="padding-top:25px;padding-bottom:10px">
<img class="image"src="http://upload.wikimedia.org/wikipedia/en/0/05/Frozen_%282013_film%29_poster.jpg" width="220" height="342">
<h3>Frozen</h3>
</div>
<div class="movie_plot" data-story-id="After the kingdom of Arendelle is cast into eternal winter by the powerful Snow Queen Elsa, her sprightly sister Anna teams up with a rough-hewn mountaineer named Kristoff (Jonathan Groff) and his trusty reindeer Sven to break the icy spell" data-toggle="modal" data-target="#story_line" style="margin-top:10px;font-size:25px;">
<i class="fa fa-leanpub fa-lg"></i>
</div>
</div>
<div class="col-md-6 text-center col-lg-4 movie-tile">
<div class = "text-center movie-tile-single" data-trailer-youtube-id="g7ArZ7VD-QQ" data-toggle="modal" data-target="#trailer" style="padding-top:25px;padding-bottom:10px">
<img class="image"src="http://upload.wikimedia.org/wikipedia/en/8/8a/Into-the-wild.jpg" width="220" height="342">
<h3>Into The Wild</h3>
</div>
<div class="movie_plot" data-story-id="A young man leaves his middle class existence in pursuit of freedom from relationships and obligation. Giving up his home, family, all possessions but the few he carried on his back, and donating all his savings to charity, Christopher McCandless (Emile Hirsch) embarks on a journey throughout America. His eventual aim is to travel into Alaska, into the wild, to spend time with nature, with 'real' existence, away from the trappings of the modern world." data-toggle="modal" data-target="#story_line" style="margin-top:10px;font-size:25px;">
<i class="fa fa-leanpub fa-lg"></i>
</div>
</div>
<div class="col-md-6 text-center col-lg-4 movie-tile">
<div class = "text-center movie-tile-single" data-trailer-youtube-id="8hYlB38asDY" data-toggle="modal" data-target="#trailer" style="padding-top:25px;padding-bottom:10px">
<img class="image"src="http://upload.wikimedia.org/wikipedia/en/7/70/Ironmanposter.JPG" width="220" height="342">
<h3>Iron Man</h3>
</div>
<div class="movie_plot" data-story-id="Tony Stark. Genius, billionaire, playboy, philanthropist. Son of legendary inventor and weapons contractor Howard Stark. He survives - barely - with a chest full of shrapnel and a car battery attached to his heart.Thus Iron Man is born. " data-toggle="modal" data-target="#story_line" style="margin-top:10px;font-size:25px;">
<i class="fa fa-leanpub fa-lg"></i>
</div>
</div>
<div class="col-md-6 text-center col-lg-4 movie-tile">
<div class = "text-center movie-tile-single" data-trailer-youtube-id="4vYQby_hDDU" data-toggle="modal" data-target="#trailer" style="padding-top:25px;padding-bottom:10px">
<img class="image"src="http://upload.wikimedia.org/wikipedia/en/b/b8/Furious_7_poster.jpg" width="220" height="342">
<h3>Furious 7</h3>
</div>
<div class="movie_plot" data-story-id="Deckard Shaw seeks revenge against Dominic Toretto and his family for the death of his brother.After learning of Han's death, the crew sets out to find the man who killed one of their own, before he finds them first." data-toggle="modal" data-target="#story_line" style="margin-top:10px;font-size:25px;">
<i class="fa fa-leanpub fa-lg"></i>
</div>
</div>
</div>
</body>
</html>