CinemaScore® is the industry leader in measuring movie appeal among theatre audiences. Since 1978, CinemaScore has been polling moviegoers at major movie releases on opening night to collect demographic information and calculate a distinctive CinemaScore grade.
New Releases
Recent Releases
')
}else{
$('.new_releases').append('
'+ obj.TITLE +' ('+obj.YEAR+')'+'
')
}
});
$.each(data.recent, function(i, obj) {
if(obj.TITLE.indexOf('(') > 0){
$('.recent_releases').append('
'+ obj.TITLE +'
')
}else{
$('.recent_releases').append('
'+ obj.TITLE +' ('+obj.YEAR+')'+'
')
}
});
$('.new_releases').removeClass('loading');
}
});
$(document).ready(function() {
$('#public_search_string').focus();
$('#public_search_string').val('');
var currentRequest = null;
$('#public_search_string').on('keyup', function(){
$('#public_search_results').html('');
if($('#public_search_string').val().trim().length > 1){
console.log($('#public_search_string').val());
currentRequest = $.ajax({
type: 'GET',
url: 'https://webapp.cinemascore.com/guest/search/title/'+$.base64.encode($('#public_search_string').val()),
beforeSend: function(){
if(currentRequest != null) {
currentRequest.abort();
$('#public_search_results').html('');
}
},
success: function (data) {
$('#public_search_results').html('');
$('#public_search_results').show();
$.each(data, function(i, obj) {
if(obj.TITLE.indexOf('(') > 0){
$('#public_search_results').append('
'+ obj.TITLE +'
')
}else{
$('#public_search_results').append('
'+ obj.TITLE +' ('+obj.YEAR+')
')
}
});
$('#public_search_string').on('click', function(event){
event.stopPropagation();
});
$('body').on('click', function(){
$('#public_search_results').html('');
$('#public_search_results').hide();
$('#public_search_string').val('');
});
}
});
}else{
$('#public_search_results').html('');
$('#public_search_results').hide();
}
});
});
})(jQuery);