Blurred images added top movie year to all sections

This commit is contained in:
Walker Waylon Scott 2017-07-28 15:15:04 -05:00
parent 22e39949bc
commit 1af0763f2b
4 changed files with 12 additions and 7 deletions

View file

@ -46,7 +46,12 @@ pre {
}
img.blur {
width:367;
height:459px;
-webkit-filter: blur(10px);
filter: blur(10px);
}
/*@keyframes fadein{
0% { opacity:0; }

View file

@ -87,7 +87,7 @@ var data = {
$('#year').html(year)
$('#score').html(score)
$('#gross').html(gross)
$('#top-movies-year').html(' for ' + year)
$('.top-movies-year').html(' for ' + year)
if ((performance.now() - window.last_update)>update_freq)
{
window.last_update = performance.now()
@ -287,7 +287,7 @@ function update_top_movies(start_year, end_year)
window.promises = promises
for (i in promises){
console.log()
$('#poster-' + i).html('<img src=' + promises[i].responseJSON['Poster'] + ' width=75%>')
$('#poster-' + i).html('<img class=blur src=' + promises[i].responseJSON['Poster'] + ' width=75%>')
$('#title-' + i).html(promises[i].responseJSON['Title'])
}