-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfresh_tomatoes.html
189 lines (178 loc) · 8.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>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">
<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>
<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;
}
.movie-tile:hover {
background-color: #EEE;
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;
background-color: white;
}
.caption {
position:absolute;
top:0;
right:0;
background:rgba(66, 139, 202, 0.75);
width:100%;
height:100%;
padding:2%;
display: none;
text-align:center;
color:#fff !important;
z-index:2;
}
</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', 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);
});
$("[rel='tooltip']").tooltip();
$('.movie-tile').hover(
function(){
$(this).find('.caption').slideDown(250); //.fadeIn(250)
},
function(){
$(this).find('.caption').slideUp(250); //.fadeOut(205)
}
);
});
</script>
</head>
<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="#">Fresh Tomatoes Movie Trailers</a>
</div>
</div>
</div>
</div>
<div class="container">
<div class="col-md-6 col-lg-4 movie-tile text-center" data-trailer-youtube-id="pAYEQP8gx3w" data-toggle="modal" data-target="#trailer">
<div class="caption">
<h4 class="label-info">StoryLine</h4>
<p>Italian comedian Roberto Benigni's World War II era farce (released in the US both in Italian with subtitles and dubbed into English) is a tough proposition: Half the action is set in aconcentration camp, and its tragicomic inventions are sometimes forced. The first half is standard Benigni burlesque, complete with witty visual gags and rapid-fire repartee</p>
</div>
<img src="http://image.tmdb.org/t/p/original/f7DImXDebOs148U4uPjI61iDvaK.jpg" width="220" height="342" >
<h2>Life is Beautiful</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" data-trailer-youtube-id="d96cjJhvlMA" data-toggle="modal" data-target="#trailer">
<div class="caption">
<h4 class="label-info">StoryLine</h4>
<p>A group of intergalactic criminals are forced to work together to stop a fanatical warrior from taking control of the universe.</p>
</div>
<img src="https://images-na.ssl-images-amazon.com/images/M/MV5BMTAwMjU5OTgxNjZeQTJeQWpwZ15BbWU4MDUxNDYxODEx._V1_UY1200_CR90,0,630,1200_AL_.jpg" width="220" height="342" >
<h2>Guardians of the Galaxy</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" data-trailer-youtube-id="h7GiAwK2-fY" data-toggle="modal" data-target="#trailer">
<div class="caption">
<h4 class="label-info">StoryLine</h4>
<p>The Guardians must fight to keep their newfound family together as they unravel the mystery of Peter Quill's true parentage.</p>
</div>
<img src="https://i.annihil.us/u/prod/marvel/i/mg/9/c0/58d54d2cdc863/portrait_incredible.jpg" width="220" height="342" >
<h2>Guardians of the Galaxy II</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" data-trailer-youtube-id="Ki4haFrqSrw" data-toggle="modal" data-target="#trailer">
<div class="caption">
<h4 class="label-info">StoryLine</h4>
<p>The lives of guards on Death Row are affected by one of their charges: a black man accused of child murder and rape, yet who has a mysterious gift.</p>
</div>
<img src="https://images-na.ssl-images-amazon.com/images/I/412Z12RG9WL.jpg" width="220" height="342" >
<h2>The Green Mile</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" data-trailer-youtube-id="ubKIgH8YWlA" data-toggle="modal" data-target="#trailer">
<div class="caption">
<h4 class="label-info">StoryLine</h4>
<p>A five-year-old Indian boy gets lost on the streets of Calcutta, thousands of kilometers from home. He survives many challenges before being adopted by a couple in Australia. 25 years later, he sets out to find his lost family.</p>
</div>
<img src="http://fr.web.img2.acsta.net/r_1280_720/pictures/17/01/25/09/36/363964.jpg" width="220" height="342" >
<h2>Lion</h2>
</div>
<div class="col-md-6 col-lg-4 movie-tile text-center" data-trailer-youtube-id="_EC2tmFVNNE" data-toggle="modal" data-target="#trailer">
<div class="caption">
<h4 class="label-info">StoryLine</h4>
<p>The film begins with Harry Potter (Daniel Radcliffe) and Hermione Granger (Emma Watson) starting their search for Voldemort's Horcruxes. Meanwhile, Severus Snape arrives at Malfoy Manor to tell Voldemort (Ralph Fiennes) and the rest of his council that he's been appointed the new Headmaster of Hogwarts. He also tells them that the Order of the Phoenix will be moving Harry Potter from Privet Drive to a safe house. Voldemort uses Lucius Malfoy's (Jason Isaacs) wand to avoid using twin wands in a dueling battle.</p>
</div>
<img src="http://vignette4.wikia.nocookie.net/harrypotter/images/a/ab/Deathly_Hallows_1_poster.jpg/revision/latest?cb=20151102033339" width="220" height="342" >
<h2>Harry Potter 7</h2>
</div>
</div>
</body>
</html>