Blurred images added top movie year to all sections
This commit is contained in:
parent
22e39949bc
commit
1af0763f2b
4 changed files with 12 additions and 7 deletions
|
|
@ -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'])
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue