Home News 6 fantasy series including The Wheel Of Time, Game of Thrones and...

6 fantasy series including The Wheel Of Time, Game of Thrones and more that are a must watch

27
0



Published on Nov 28, 2021 04:18 PM IST   | 
24.1K






‘;
$(“#scroll-next-article”).append(article_html);
});

function addNewArticle(article_id) {
$.ajax({
type: “GET”,
url: base_url + “/feed/getPhotosScrollArticles.php”,
data: “nodeID=” + encodeURI(article_id) + ‘&8’,
//data: “nodeID=” + encodeURI(article_id) + ‘&’ +$.now(),
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’).data(‘newurl’) != jQuery(location).attr(‘href’)) {

var new_url = jQuery(‘.article-title:last’).data(‘newurl’).replace(“http://content.xynie.com/”, “”).replace(“https://www.pinkvilla.com/”, “”);
var data_analytics = jQuery(‘.article-title:last’).attr(‘data-analytics’);
var main_url = jQuery(‘.article-title’).data(‘newurl’).replace(“http://content.xynie.com/”, “”).replace(“https://www.pinkvilla.com/”, “”);

(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’)
});
}
} else if (article_title_bottom_of_screen window.pageYOffset + 190) {
var photo_article_url = jQuery(this).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”, photo_article_url);
ga(“clientTracker.send”, {
hitType: “pageview”,
page: photo_article_url,
title: jQuery(this).attr(‘data-main-title’)
});
}
});
/*————-GA Code for Article Ends————-*/

/*————-COMSCORE for Article Starts————-*/
jQuery(‘.iSlideList’).each(function(){
if (jQuery(this).offset().top window.pageYOffset + 190 && article_image_visible){

if(jQuery(this).data(‘newurl’) != jQuery(location).attr(‘href’)) {
article_image_visible = false;
var new_url = jQuery(this).data(‘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){});
}
} 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).data(‘newurl’));
window.document.title = jQuery(this).attr(‘data-org-title’);
}
});
/*————-Change URL Ends————-*/
};
});

Source

LEAVE A REPLY

Please enter your comment!
Please enter your name here