.jscroll-inner > .active
position: relative;
aside.stickyadaside
width: 328px;
float: right;
text-align: center;
.stickyadwrapper
width: 328px;
margin: 0 auto;
clear: both;
padding: 0 14px;
$(function() DevIdf.isLargeDesktop) && location.href.match(/article[d]*.ece/))
window.addEventListener("scroll", function()
var refernodeinfinite = $(".jscroll-inner > div aside.stickyadaside > .storyuptdesign .stickyadwrapper:last-child").not( ".active" );
refernodeinfinite.removeAttr('style');
refernodeinfinite.children(".stickyad").removeAttr('style');
var refernode =$(".jscroll-inner .active aside.stickyadaside > .storyuptdesign .stickyadwrapper:last-child");
var fixedcssSelector = refernode.children(".stickyad"); //var parentnode = $(".container[role='main']");
var parentnode = $(".jscroll-inner .active");
var topOffset=10;
var bottomOffset=50;
var leftOffset=0;
var rightOffset=15;
if(refernode.length > 0 && fixedcssSelector.length > 0 && parentnode.length > 0 )
fixBottomBanner(refernode,fixedcssSelector,parentnode,topOffset,bottomOffset,leftOffset,rightOffset)
);
);
Specials Portfolio BL Ink Catalyst India File Weird and whacky gadgets at CES 2019 The CES in Las Vegas, technology’s biggest show of the year, is drawing to a close. Over the past week, ...
Reviving an age-old tradition of weaving Nagaland’s famed loin looms are attempting a comeback
Rural Report Card: Marital status
What ails public education States need to focus as much on quality as quantity, says a recent report
When standards are flouted Customers can address their grievances to the Consumer Affairs Department
Capture your short-term gains Goal-based portfolios are good, but satellite portfolios are just as important
Topping up your home loan If you own a house already funded by a bank loan, you can apply for a top-up
Chambal Fertilisers & Chemicals (₹163.5): Buy Investors with a short-term perspective can buy the stock of Chambal Fertilisers & Chemicals at current ...
Being Pinarayi The Kerala chief minister and Left strongman, once a symbol of the divided Left, is creating ripples as a ...
A date with the best among storytellers Over three days, The Hindu Lit for Life in Chennai will puncture pomposity, challenge received wisdom and ...
He’s got the moves He was six when he played his first chess tournament — and needed to sit on three chairs to reach the table.
Rani-next-door The Hichki star, whose strength is her easy likeability, says today’s evolving audiences are opening more ...
Chasing marketing nirvana at Kumbh Marketers dive deep into the Mela action at Prayagraj with trials, promotions, and more
On the divine track to Prayagraj For the first time ever, visitors to the Kumbh Mela can arrive at Prayagraj by land, air or water, says ...
God’s Own Congress The mantra at the IAA World Congress at Kochi is to seek higher purpose, with dollops of fun
Bearding men at the workplace The Man Company is changing the look and style of men with its grooming products
Something’s churning The New Year heralds an election season marked by yearning, anger, uncertainty — and above all, hope.
What Ayodhya has lost in temple politics The town has tried in vain to emerge as anything but a disputed site that divides religious communities
‘There’s been a shift in the national mood’ Politburo member of the CPI (M) and former general secretary of the party, Prakash Karat, speaks to ...
Making a mockery of MGNREGA In Maharashtra, it appears the rural jobs scheme is being implemented on paper alone. Contractors, government ...
$(document).ready(function()
$('#SpecialModule .nav a:first').tab('show');
);
$(document).ready(function ()
new Swiper('.OpinionCarosul',
slidesPerView: 4,
spaceBetween: 40,
slidesPerGroup: 1,
lazyLoadingInPrevNextAmount: 3,
breakpoints:
// when window width is <= 480px
480:
slidesPerView: 1,
lazyLoadingInPrevNextAmount: 1
,
// when window width is <= 1024px
1024:
slidesPerView: 2,
lazyLoadingInPrevNextAmount: 2
,
paginationClickable: true,
spaceBetween: 0,
lazyLoadingClass: 'lazy',
loop: true,
lazyLoading: true,
lazyLoadingInPrevNext: true,
nextButton: '.right-arrow',
prevButton: '.left-arrow'
);
new Swiper('.EditorCarosul',
slidesPerView: 3,
spaceBetween: 40,
slidesPerGroup: 1,
lazyLoadingInPrevNextAmount: 3,
breakpoints:
// when window width is <= 480px
480:
slidesPerView: 1,
lazyLoadingInPrevNextAmount: 1
,
// when window width is <= 1024px
1024:
slidesPerView: 2,
lazyLoadingInPrevNextAmount: 2
,
paginationClickable: true,
spaceBetween: 0,
lazyLoadingClass: 'lazy',
loop: true,
lazyLoading: true,
lazyLoadingInPrevNext: true,
nextButton: '.right-arrow',
prevButton: '.left-arrow'
);
new Swiper('.slideshowCarosul',
slidesPerView: 1,
spaceBetween: 40,
slidesPerGroup: 1,
lazyLoadingInPrevNextAmount: 3,
breakpoints:
// when window width is <= 480px
480:
slidesPerView: 1,
lazyLoadingInPrevNextAmount: 1
,
// when window width is <= 1024px
1024:
slidesPerView: 1,
lazyLoadingInPrevNextAmount: 1
,
paginationClickable: true,
spaceBetween: 0,
lazyLoadingClass: 'lazy',
loop: true,
lazyLoading: true,
lazyLoadingInPrevNext: true,
nextButton: '.right-arrow',
prevButton: '.left-arrow'
);
//Video article More Video carosul
new Swiper('.moreVideoCarosul',
slidesPerView: 4,
spaceBetween: 40,
slidesPerGroup: 1,
lazyLoadingInPrevNextAmount: 3,
breakpoints:
// when window width is <= 480px
480:
slidesPerView: 1,
lazyLoadingInPrevNextAmount: 1
,
// when window width is <= 1024px
1024:
slidesPerView: 2,
lazyLoadingInPrevNextAmount: 2
,
paginationClickable: true,
spaceBetween: 0,
lazyLoadingClass: 'lazy',
loop: true,
lazyLoading: true,
lazyLoadingInPrevNext: true,
nextButton: '.right-arrow',
prevButton: '.left-arrow'
);
new Swiper('.articletrend',
slidesPerView: 4,
spaceBetween: 30,
slidesPerGroup: 1,
lazyLoadingInPrevNextAmount: 3,
breakpoints:
// when window width is <= 480px
480:
slidesPerView: 1,
lazyLoadingInPrevNextAmount: 1
,
// when window width is <= 1024px
768:
slidesPerView: 2,
lazyLoadingInPrevNextAmount: 1
,
// when window width is <= 1024px
1024:
slidesPerView: 3,
lazyLoadingInPrevNextAmount: 1
,
paginationClickable: true,
spaceBetween: 0,
lazyLoadingClass: 'lazy',
loop: true,
lazyLoading: true,
lazyLoadingInPrevNext: true,
nextButton: '.right-arrow',
prevButton: '.left-arrow'
);
new Swiper('.latestnewscontainer',
scrollbar: '.swiper-scrollbar',
direction: 'vertical',
slidesPerView: 'auto',
mousewheelControl: true,
draggable: true,
freeMode: true
);
new Swiper('.latestnewsSeccontainer',
scrollbar: '.swiper-scrollbar',
direction: 'vertical',
slidesPerView: 'auto',
mousewheelControl: true,
draggable: true,
freeMode: true
);
new Swiper('.latestnewsSecmobcontainer',
breakpoints:
// when window width is <= 480px
480:
slidesPerView: 1,
lazyLoadingInPrevNextAmount: 1
,
,
paginationClickable: true,
spaceBetween: 0,
lazyLoadingClass: 'lazy',
loop: true,
lazyLoading: true,
lazyLoadingInPrevNext: true,
nextButton: '.latest-button-next',
prevButton: '.latest-button-prev'
);
new Swiper('.relmobcontainer',
breakpoints:
// when window width is <= 480px
480:
slidesPerView: 1,
lazyLoadingInPrevNextAmount: 1
,
,
paginationClickable: true,
spaceBetween: 0,
lazyLoadingClass: 'lazy',
loop: true,
lazyLoading: true,
lazyLoadingInPrevNext: true,
nextButton: '.latest-button-next',
prevButton: '.latest-button-prev'
);
new Swiper('.articleMoreimageCarosul',
slidesPerView: 1,
spaceBetween: 40,
slidesPerGroup: 1,
lazyLoadingInPrevNextAmount: 3,
breakpoints:
// when window width is <= 480px
480:
slidesPerView: 1,
lazyLoadingInPrevNextAmount: 1
,
// when window width is <= 1024px
1024:
slidesPerView: 1,
lazyLoadingInPrevNextAmount: 1
,
paginationClickable: true,
spaceBetween: 0,
lazyLoadingClass: 'lazy',
loop: true,
lazyLoading: true,
lazyLoadingInPrevNext: true,
nextButton: '.right-arrow',
prevButton: '.left-arrow'
);
);
function overlayControll (evt)
if(evt.origin === 'https://creatives.thehindu.com')
document.querySelector("#ppoverlay").style.display = "none";
if (window.addEventListener)
window.addEventListener("message", overlayControll, false);
else
window.attachEvent("onmessage", overlayControll);
.moe-push-classz-index: 60000 !important;
$(document).ready(function() $(document).on("infiniteScrollLinkContentReady", function(b, c)
var a = $(c).find(".infinite-scroll-link-wrapper a");
$(a).on("click", function(f)
//alert('im here');
var d = $(".jscroll-inner [data-artid='" + $(this).parent("div").data("selector") + "']");
if (d.length > 0)
f.preventDefault();
$("html,body").animate(
scrollTop: $(d).offset().top
, 300)
)
); if (infiniteScroll)
$(document).trigger("infiniteScrollLinkContentReady", $(".active .outerline:last"));
$('.jscroll').jscroll(
loadingHtml: '
',
autoTrigger: true,
debug: true,
padding: 3000,
autoTriggerUntil: 10, nextSelector: 'a.jscroll-next',
contentSelector:'.jscroll-inner .outerline',
callback: function(b)
$.event.trigger("pageContentReady", $(".jscroll-added .outerline:last"));
$(document).trigger("articleSocialShareReady", $(".jscroll-added .outerline:last"));
$.event.trigger("infiniteScrollLinkContentReady", $(".jscroll-added .outerline:last"));
$.event.trigger("articleTopicEmptyFinding", $(".jscroll-added .outerline:last"));
$.event.trigger("articleCmdButnToggle", $(".jscroll-added .outerline:last"));
$.event.trigger("vukkleCommandContentReady", $(".jscroll-added .outerline:last"));
WFLazyLoader.loadFragment();
updateStickyAndHistory(true);
if (window.newVuukleWidgets !== undefined)
var c = $(".jscroll-inner .jscroll-added").last().find("[data-surl]").data("surl");
var a = "";
if (c != null)
a = c.substr(appURL().length);
a = a.substr(0, a.lastIndexOf("/")).split("/").toString()
window.newVuukleWidgets(
elementsIndex: $(".jscroll-inner .jscroll-added").last().find("[data-artid]").data("artid"),
articleId: $(".jscroll-inner .jscroll-added").last().find("[data-artid]").data("artid"),
title: encodeURI($(".jscroll-inner .jscroll-added").last().find("h1.title").text()),
tags: a,
ads:
enabled: true,
refresh: true,
,
commentingClosed: $(".jscroll-inner .jscroll-added").last().find("[data-comments-open]").data("comments-open"),
url: $(".jscroll-inner .jscroll-added").last().find("[data-surl]").data("surl")
)
$(window).scroll(function()
if ($(window).scrollTop() .active").offset().top - $(window).height() / 2 && $(window).scrollTop() > $(".jscroll-inner .outerline").offset().top)
$(".jscroll-inner>.active").removeClass("active").prev().addClass("active");
updateStickyAndHistory(true)
else
if ($(window).scrollTop() > $(".jscroll-inner>.active").offset().top + $(".jscroll-inner>.active").height() - $(window).height() / 2 - 1 && $(".jscroll-inner>.active").next().length > 0)
$(".jscroll-inner>.active").removeClass("active").next().addClass("active");
updateStickyAndHistory($(".jscroll-inner>.active").data("spush"));
if (!$(".jscroll-inner>.active").data("spush"))
$(".jscroll-inner>.active").data("spush", true);
if (location.hostname.indexOf(".com") > 0)
ga("set", "campaignName", "infinitescroll");
ga("set", "campaignSource", "infinite_scroll");
ga("set", "campaignMedium", "article");
ga("set",
page: location.pathname,
title: document.title,
location: location.href
);
ga("send", "pageview");
comscorePageview();
logEAE($(".jscroll-inner>.active").find("[data-artid]").data("artid"), "read")
);
try
if (window.advBidxc.isLoaded)
window.advBidxc.next()
catch (d)
);
);
function updateStickyAndHistory(a)
var c = $(".jscroll-inner>.active").find("[data-surl]").data("surl");
var b = $(".jscroll-inner>.active").find("h1.tp-title-inf").text();
if (!a)
History.pushState(
state: $(".outerline").length,
rand: Math.random()
, b + " - The Hindu BusinessLine", c)
else
History.replaceState(
state: $(".outerline").length,
rand: Math.random()
, b + " - - The Hindu BusinessLine", c)
;
new function(d) if(isDeviceEnabled("[medium, small]") && isNonSubcribedUser()) var networkCodeAndTargetedAdUnit = '/22390678/BL_Desktop_ROS_Billboard'; var creativeSize = [[728, 90], [970, 90], [970, 250]]; var slotName = 'article20707252-div-gpt-ad-1530856367240-0'; var adslot; googletag.cmd.push(function() adslot = googletag.defineSlot(networkCodeAndTargetedAdUnit, creativeSize, slotName) .addService(googletag.pubads()); googletag.display(slotName); googletag.pubads().refresh([adslot]); ); (document);
$(document).ready(function() if($('.tag-button').length 0)$(this).find("[data-selected-width]").lazyload();); }); $( "#Portpolio .portfoliocl a" ).append( " Premium" ); }); $(document).ready(function() $("a").hover(function() if(!$(this).hasClass("sec")) $(this).parents("article,.item").addClass("hover"); , function() if(!$(this).hasClass("sec")) $(this).parents("article,.item").removeClass("hover"); ); ); /* $(document).ready(function() var navHeight = 94; if($('.main-nav').length > 0) navHeight = $('.navbar.navbar-default').offset().top - 10; $(window).bind('scroll', function() // custom nav height ($(window).scrollTop() > navHeight) ? $('.navbar.navbar-default').addClass('navbar-fixed-top') : $('.navbar.navbar-default').removeClass('navbar-fixed-top'); ); ); */ /* rupee symbol */ _wr_re = function(k) var c = 0; if (k.nodeType == 3) var n = k.data.indexOf("₹"); if (n >= 0) var m = document.createElement("span"); m.className = "WebRupee"; var e = k.splitText(n); var o = e.splitText(1); var p = e.cloneNode(true); m.appendChild(p); e.parentNode.replaceChild(m, e); c = 1 else if (k.nodeType == 1 && k.childNodes && !/(script return c _wr_re(document.body) .navbar.navbar-default.navbar-fixed-top box-shadow: 0 3px 6px -4px #000;
(function(i,s,o,g,r,a,m,n))(window,document,'script','https://cdn.moengage.com/webpush/moe_webSdk.min.latest.js','Moengage'); Moengage = moe( app_id:"7CE1T54PIQJZBM6ZDCCY7WPM", debug_logs: 0 ); if(!location.hostname.startsWith("premium1")) Moengage.call_web_push( "soft_ask":true, "main_class":"moe-main-class", "allow_class":"moe-allow-class", "block_class":"moe-block-class", "soft_ask_display_callback":function(), "soft_ask_allow_callback":function(), "soft_ask_block_callback":function(), "hard_ask_allow_callback":function() if(typeof(Notification)=="function" && !DevIdf.isMobile ) spawnNotification("You can manage your subscriptions from the browser settings.", "https://www.thehindubusinessline.com/static/theme/default/base/img/bl_25yr_thumb.jpg","Thank you for Subscribing!"); , "hard_ask_dismiss_callback":function(), "hard_ask_block_callback":function() ); function spawnNotification(theBody,theIcon,theTitle) var options = body: theBody, icon: theIcon ; navigator.serviceWorker.ready.then(function(sw_reg) var n = sw_reg.showNotification(theTitle,options); ).catch(function(e)console.log(e););//<![CDATA[
var clientDT = new Date().getTime();
document.write('
');
//]]>
//<![CDATA[
var clientDT = new Date().getTime();
document.write('
');
//]]>
//<![CDATA[
var clientDT = new Date().getTime();
document.write('
');
//]]>
/*Device width fix for Windows Phone 8 and IE 10*/
if (navigator.userAgent.match(/IEMobile/10.0/))
var msViewportStyle = document.createElement("style")
msViewportStyle.appendChild(
document.createTextNode(
"@-ms-viewportwidth:auto!important"
)
)
document.getElementsByTagName("head")[0].appendChild(msViewportStyle)
<!-- custom mordenizr, can be changed if required by cms. We are currently only using no-csscolumn. Later we may need to use other elements also
-->(function ($, d)
$.each(readyQ, function (i, f)
$(f)
);
$.each(bindReadyQ, function (i, f)
$(d).bind("ready", f)
)
)(jQuery, document)
function openShareLink(pLink, target) //console.log('your looking for pLink:'+pLink);
var popUp = window.open(pLink, 'popupwindow', 'scrollbars=yes,width=740,height=400');
popUp.focus(); return false;
$(document).ready(function()
var selector = "ul.aricle-share li a";
var originalSize = $('div[id^="content-body"]>p').css('font-size');
var originallineheight = $('div[id^="content-body"]>p').css('line-height');
$(".increase1").click(function()
var currentSize = $('div[id^="content-body"]>p').css('font-size');
var currentline = $('div[id^="content-body"]>p').css('line-height');
if (parseFloat(currentSize) != 19)
var currentSize = parseFloat(currentSize)+2;
var currentline = parseFloat(currentline)+2;
$('div[id^="content-body"]>p').css('font-size', currentSize);
$('div[id^="content-body"]>p').css('line-height',currentline+'px');
else
$('div[id^="content-body"]>p').css('font-size', originalSize);
$('div[id^="content-body"]>p').css('line-height', originallineheight);
);
$(".decrease1").click(function()
var currentSize = $('div[id^="content-body"]>p ').css('font-size');
var currentline = $('div[id^="content-body"]>p ').css('line-height');
if (parseFloat(currentSize) != 11)
var currentSize = parseFloat(currentSize)-2;
var currentline = parseFloat(currentline)-2;
$('div[id^="content-body"]>p ').css('font-size', currentSize);
$('div[id^="content-body"]>p ').css('line-height',currentline+'px');
else
$('div[id^="content-body"]>p ').css('font-size', originalSize);
$('div[id^="content-body"]>p ').css('line-height', originallineheight);
);
);
var articleShareData = ;
var excludeShareClickList = ["fa-whatsapp", "fa-envelope", "fa-comment"];
$(document).ready(function(e)
$(document).on("articleSocialShareReady", function(event, data)
var selector = $(data).find("ul.aricle-share li a");
$(selector).on('click',function(e)
if($(this).find('i').hasClass('fa-print'))
window.print();
else var targetClass = $(this).find("i").attr("class").split(" ")[1];
if(excludeShareClickList.indexOf(targetClass) === -1 ) var id = $(data).data("artid") + "-" + targetClass;
//console.log('your looking for ID:'+id);
openShareLink(articleShareData[id]);
);
); );
$(document).ready(function(e)
$(document).on("articleSocialShareReady", function(event, data)
var url = $(data).find(".aricle-share").data("shareUrl");
var text = $(data).find(".aricle-share").data("shareText"); var articleId = $(data).data("artid");
var selectorArray = new Array();
//selectorArray.push("outerline:last .aricle-share");
selectorArray.push("jscroll-inner .outerline[data-artid='"+articleId+"'] .aricle-share");
//selectorArray.push("outerline:last .aricle-share");
//selectorArray.push("aricle-sticky-share");
var getOrApply = function(value, context)
if($.isFunction(value))
return value.apply(context, $.makeArray(arguments).slice(2));
return value;
;
var URL_PARAMS_REGEX = /(&?[a-zA-Z0-9]+=)?([a-zA-Z0-9]+)/g;
var MEASURES =
"G": 1000000000,
"M": 1000000,
"K": 1000
;
_renderShareCount = function(share, container)
var $count = $(container).next('.cnt');
this._loadCount(share).done($.proxy(function(count)
if(count)
$count.text(count);
, this));
_loadCount = function(share)
var deferred = $.Deferred();
var countUrl = this._getCountUrl(share);
if(!countUrl)
return deferred.resolve(0).promise();
var handleSuccess = $.proxy(function(response)
deferred.resolve(this._getCountValue(response, share));
, this);
$.getJSON(countUrl).done(handleSuccess)
.fail(function()
$.get(countUrl).done(handleSuccess)
.fail(function()
deferred.resolve(0);
);
);
return deferred.promise();
_getShareUrl = function(share)
var shareUrl = getOrApply(share.shareUrl, share);
return this._formatShareUrl(shareUrl, share);
_getCountUrl = function(share)
var countUrl = getOrApply(share.countUrl, share);
return this._formatShareUrl(countUrl, share);
_getCountValue = function(response, share)
var count = ($.isFunction(share.getCount) ? share.getCount(response) : response)
_formatNumber = function(number)
$.each(MEASURES, function(letter, value)
if(number >= value)
number = parseFloat((number / value).toFixed(2)) + letter;
return false;
);
return number;
_formatShareUrl = function(url, share)
return url.replace(URL_PARAMS_REGEX, function(match, key, field) "") + window.encodeURIComponent(value) : "";
);
_createSelector = function(identifier)
var tmp = "";
for(var i=0; i 1 && i < (selectorArray.length - 1))
tmp += ", ";
return tmp;
var tmpCards = new Array();
var tmpArray = ["facebook", "twitter", "linkedin", "googleplus", "pinterest", "reddit", "whatsapp", "email"];
for(i = 0; i 0)
if(childrens[0].hasOwnProperty("data"))
return childrens[0].data.score;
return "";
}
}
function publist(item)
url = "https://www.thehindubusinessline.com/";
id = "3";
switch (item)
case "url":
item = url;
break;
case "id":
item = id;
break;
default:
return item;
var VUUKLE_CONFIG =
apiKey: "d1a4a16d-cfaf-4ad2-8f9b-ddf5a1b257d2",
language:"en",
endlessMode: true,
ads:
enabled: true,
refresh: true,
,
comments: countToLoad: 1,
maxChars:1000 ,
color:"0070b4"
;
$.getScript( "https://cdn.vuukle.com/platform.js", function()
window.newVuukleWidgets(
elementsIndex: '5526896',
articleId: 5526896,
title: 'Westin Hotels to enter Kolkata by 2015',
img: 'https://www.thehindubusinessline.com/static/theme/default/base/img/og-image.jpg',
tags: 'economy',
commentingClosed:true,
url: 'https://www.thehindubusinessline.com/economy/Westin-Hotels-to-enter-Kolkata-by-2015/article20707252.ece'
);
);
$('iframe').ready(function()
setTimeout(function() var fillerList = "22285601#widget_viewPicker,22285604#widget_viewPicker,22285605#widget_viewPicker";
var fillerArray = fillerList.split(",");
if(fillerList)
var count = 0;
$("aside .add:visible").each(function(indx)
if($(this).find('iframe').height() == 0)
$(this).css('margin-bottom': '0px','height':'0px');
);
if(count > 0)
WFLazyLoader.loadFragment();
, 1000);
);
(function(d, s, id)
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.async = true;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.4";
fjs.parentNode.insertBefore(js, fjs);
(document, 'script', 'facebook-jssdk'));
!function(d, s, id)
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/
.test(d.location) ? 'http' : 'https';
if (!d.getElementById(id))
js = d.createElement(s);
js.id = id;
js.async = true;
js.src = p + '://platform.twitter.com/widgets.js';
fjs.parentNode.insertBefore(js, fjs);
(document, 'script', 'twitter-wjs');
<!-- -->
var user_id = readCookie("user_id");
if (user_id != null)
_bt.person.set(user_id: user_id);