Brad Pitt turns a year older today. On the occasion of his birthday, we take a look at 5 times he made headlines in 2020.
‘;
$(“#similar_photolist_data”).append(article_html);
});
function addNewArticle(article_id) {
$.ajax({
type: “GET”,
url: base_url + “/getRelatedNodeImages.php”,
data: “nodeID=” + encodeURI(article_id),
success: function(data) {
$(“#article_”+article_id).html(data);
}
});
}
var lastScrollTop = 0;
$(window).on(‘scroll’, function() {
st = $(this).scrollTop();
if(st > lastScrollTop) {
/*————-Add New Image Article Starts————-*/
var top_of_element = jQuery(“.last_photo:last”).offset().top;
var bottom_of_element = jQuery(“.last_photo:last”).offset().top + jQuery(“.last_photo:last”).outerHeight();
var bottom_of_screen = jQuery(window).scrollTop() + window.innerHeight;
var top_of_screen = jQuery(window).scrollTop();
if (bottom_of_screen > top_of_element && visible) {
visible = false;
article_no = $(‘.last_photo’).length – 1;
article_id = similar_photolist_nids[article_no];
if( article_no article_title_top_of_element && article_title_visible) {
article_title_visible = false;
if (jQuery(‘.article_title:last’).attr(‘newurl’) != jQuery(location).attr(‘href’)) {
var new_url = jQuery(‘.article_title:last’).attr(‘newurl’).replace(“http://content.xynie.com/”, “”).replace(“https://www.pinkvilla.com/”, “”);
var data_analytics = jQuery(‘.article_title:last’).attr(‘data-analytics’);
(function(i, s, o, g, r, a, m) {
i[‘GoogleAnalyticsObject’] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o), m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, ‘script’, ‘https://www.google-analytics.com/analytics.js’, ‘ga’);
ga(“create”, “UA-142679-10”, “auto”, “clientTracker”);
ga(“send”, “event”, “pinkvilla-photo-gallery”, “Open”, data_analytics);
ga(“clientTracker.send”, {
hitType: “pageview”,
page: data_analytics,
title: jQuery(‘.article_title:last’).attr(‘data-main-title’)
});
// console.log(‘URL: ‘ + new_url);
// console.log(‘Title: ‘ + jQuery(‘.article_title:last’).attr(‘data-org-title’));
}
} else if (article_title_bottom_of_screen window.pageYOffset + 190 && article_image_visible){
if(jQuery(this).attr(‘newurl’) != jQuery(location).attr(‘href’)) {
article_image_visible = false;
var new_url = jQuery(this).attr(‘newurl’).replace(“http://content.xynie.com/”, “”).replace(“https://www.pinkvilla.com/”, “”);
self.COMSCORE && COMSCORE.beacon({c1: “2”, c2: “23522848”});
var d = new Date();
var curr_time = d.getTime();
jQuery.get(“https://www.pinkvilla.com/comscore_response.php?q=”+curr_time, function(data, status){
//console.log(‘test successfully===’+status);
});
}
} else {
article_image_visible = true;
}
});
/*————-COMSCORE for Article Ends————-*/
/*————-Change URL Starts————-*/
jQuery(‘.change_url’).each(function() {
if (jQuery(this).offset().top window.pageYOffset + 190) {
window.history.pushState(null, null, jQuery(this).attr(‘newurl’));
window.document.title = jQuery(this).attr(‘data-org-title’);
}
});
/*————-Change URL Ends————-*/
};
});