All skin care tips you need to treat acne prone skin



[ad_1]

Farewell, pimples

  All-skin-care-tips -which help-fight-the-skin-prone to Acne

Contrary to popular belief, acne does not occur only in adolescents; he can also grow their ugly head later in life. The truth is, when it comes to skin care for skin prone to pimples, there are no strict rules. Finding a beauty routine that works for your acne can require everything from error-free trials with a plethora of products to regular visits to the dermatologist, or even an in-depth review of your lifestyle. While there may not be a one-size-fits-all approach, Dr. Rashmi Shetty, a renowned dermatologist, shared his best tips and tricks on how to effectively treat acne-prone skin to help you

Handle with Care

The first step in the fight against pimples is to wage a very mild war. Dr. Shetty warns against rubbing or rubbing any product on your skin, no matter what you apply. This will only aggravate acne. She also recommends not applying products to oily, sweaty or tired skin. And keep your hands on your face! The last thing he needs is dirt or bacteria with his fingertips. Resist the urge to pick those annoying buttons, although this may seem like the most difficult thing to do. Along with this, be sure to clean it gently. Contrary to popular belief, removing layers of skin will not save it. The use of a powerful cleaner can strip it of its protective barrier, making it more susceptible to excessive drying and irritation. Instead, make friends with a balancing cleanser.

Hydrated skin is a happy skin

Do not try to fight the sebum production of your skin by drying it too much. If the surface is too dry and dehydrated, your sebaceous glands can secrete excessive amounts of sebum to overcompensate, which can aggravate acne. Keep your skin hydrated with a light and balanced moisturizing gel.

Watch Your Scalp

You may think that your scalp has nothing to do with facial acne, but Dr. Shetty insists that you need your scalp and your skin are always clean and pay special attention to the cleanliness of the scalp "because the flakes of the scalp can clog the pores of the forehead. In addition, the use of hair products containing ingredients such as preservatives or perfumes can also aggravate rashes, which is why it is best to avoid them.

Swap Dairy Products and Sugar

If your skin is prone to pimples, Shetty advises cutting dairy products and sugar. your diet because it can cause havoc. Although the link between dairy products and acne is still under study, many people believe that some testosterone hormones contained in milk could stimulate the sebaceous glands and stimulate acne .

Use an acid in your skincare routine

an acid. Salicylic acid, kojic acid and glycolic acid are excellent options for treating acne. They eliminate all dead skin cells, which helps stimulate new growth. An acid also helps to treat any inflammation. But as with any strong active ingredient, proceed with caution. Use a reduced concentrate and stir to avoid dryness and undesirable irritation.

Use Healing Ingredients

"I tell my clients to use healing ingredients on their stained skin, such as calamine, allantoin, chamomile, hibiscus or the Vitamin B3, "says Shetty. All of these ingredients help to heal the skin faster, soothe and relieve inflammation, and also relieve irritated spots.

Treating the skin from the inside

One of Dr. Shetty's favorite ways to treat pimples is to supplement the body from the inside Eat foods rich in antioxidants and supplement with vitamin C and collagen supplements to strengthen the skin.

Read also:

Skin Care 101: How to Get Rid of Acne

All Treatments That Will Help Reduce Acne Scars

Acne caused by wet weather makes use of these wonders of gel-based skincare

Suffering from sudden acne breakouts? Here's Why Your Skin Bursts

How to Get Rid of Acne Overnight: Quick Tips and Long-Term Solutions

You're in: Faye D's Souza at the Vogue Awards in the year 2018

";
var sb_focus = "focused";
var isSponsored = false;

crossed var = false;
var randomInterval = 5000;
var adDelay = 2000;
var videoadDelay = 3000;
var mobAdDelay = 5000;
var adpause = true;
var currentAdSlot = "";
var currentPos = 0;
var currentScroll;
var first time = true, mustfornext = false;
var ADcont = [];
var storyLeaderboardID = $ ("# topadbnr div"). attr ("id-slot-id");
ADcont.push (eval (storyLeaderboardID));
var magazineid = & # 39;
var ctaFallback = "";

$ (window) .scroll (function (event) {

if ($ (window) .width ()> 768) {

var article__header_padding_top = 30;

// var right_ad = ($ ('article__header'). offset (). top + article__header_padding_top) + $ (& # 39 ;. article__header & # 39;). height () - $ (& # 39; section__summary & # 39;). height () - 60;

var top_ad = $ (& # 39; site__header & # 39;). height ();

if ($ (window) .scrollTop ()> top_ad) {
$ (& # 39; .ad.ad - top & # 39;). addClbad (& # 39; fixed & # 39;);

if ($ (& # 39 ;. content_body & # 39;)) find (& # 39 ;. ad-top-cloned & # 39;). is (": hidden")) {

// $ (& # 39 ;. content_body & # 39;). find (& # 39; ad - top - cloned & # 39;). remove ();
//$('.content_body').prepend('

');
$ (& # 39 ;. content_body & # 39;). find (& # 39; ad - top - cloned & # 39;). show ();
}

//$('body').addClbad('fixedTopAd & # 39;);
} other {
$ (& # 39; .ad.ad - top & # 39;). removeClbad (& # 39; fixed & # 39;);
// $ (& # 39 ;. content_body & # 39;). find (& # 39; ad - top - cloned & # 39;). remove ();

//$('body').removeClbad('fixedTopAd & # 39;);
$ (& # 39 ;. content_body & # 39;). find (& # 39; ad - top - cloned & # 39;). hide ();
}
}

if ($ (window) .width ()> 1199) {
rightSideAdContainer ();
}

currentScroll = $ (window) .scrollTop () + $ (window) .height ();
if (currentScroll> currentPos)
{
currentPos = currentScroll;
crossed = true;
}

});

var cn_size_crossed = isMobile.any ();
$ (window) .on (& # 39; resize & # 39 ;, function () {
if ($ (window) .width ()> 1199) {
rightSideAdContainer ();
} other {
$ (& # 39 ;. right_side.ad & # 39;). removeClbad (& # 39; fixed & # 39;);
}

if (cn_size_crossed && $ (window) .width ()> 768) {
cn_size_crossed = false;
totalInterval = 0;
clearInterval (ADintervalLeaderboard);
autoADtimerLeaderboard ();
}
if (! cn_size_crossed && $ (window) .width () < 768) { cn_size_crossed = true; totalInterval = 0; clearInterval(ADintervalLeaderboard); autoADtimerLeaderboard(); } }); function rightSideAdContainer() { $($(".single-article-block").get()).each(function() { if ($(this).is_on_screen()) { if($(this).find('.article__image--fullsize').length > 0)
{
var top_bound = $ (this) .find ('item_image - fullsize'). offset (). top + $ (this) .find ('item_image - fullsize'). height () - $ (& # 39; ad .ad - top.fixed & # 39;). height ();
} other {
var top_bound = $ (this) .offset (). top - $ (& # 39; ad.ad - top.fixed & # 39;). height ();
}
var bottom_bound = $ (this) .height () + $ (this) .offset (). top;

var bottom_bound_offset = window.innerHeight - $ (this) .find (& # 39 ;. right_side & # 39;). height (); - $ ("# header-Ranking-ad"). height ();
bottom_bound = bottom_bound - bottom_bound_offset;

if ($ (window) .scrollTop ()> top_bound && $ (window) .scrollTop () < bottom_bound){ $(this).find('.right_side.ad').addClbad('fixed'); $(".right_side.ad").not($(this).find('.right_side.ad')).removeClbad('fixed'); } else { $(this).find('.right_side.ad').removeClbad('fixed'); } return false; } else { $(this).find('.right_side.ad').removeClbad('fixed'); } }); } $(window).scroll(function(e) { //infinite scroll articles if ($(window).scrollTop() > = ($ (document) .height () - $ (window) .height () - ($ (window). height () * 0.2))) {
infinite_single_json (article number, 0);
}

// vertical scrolling events
$ ($ ("single-article-block"). get ()). each (function (t) {
$ (this) .find (". in-story-slideshow .slide"). each (function (t) {
if ($ (this) .is_on_screen ()) {
if ($ (this) .hasClbad ("refreshed by an ad") ||! $ (this) .is (": visible"))
{
} other {
if (isMobile.any ()) {
gtmSlideshowVerticalScroll (& # 39; Mobile & # 39;);
} other {
gtmSlideshowVerticalScroll ('Desktop');
}
$ (this) .addClbad ("refreshed by an ad");
}
}
});
});

// infinite scrolling title & url
$ ($ ("single-article-block"). get (). reverse ()) each (function () {
if ($ (this) .is_on_screen () && $ (this) .attr ("data-post-url") == (location.protocol + & # 39; + + location.host + location. pathname)) {
returns false;
}
if ($ (this) .attr ("data-post-url") && $ (this) .attr ("data-post-title") && $ (this) .is_on_screen () && $ (this) .attr ( "data-post-url")! = (location.protocol + & # 39; + location.host + location.pathname))
{
cnReplaceUrlandTitle ($ (this) .attr ("data-post-title"), $ (this) .attr ("data-post-url"));
returns false;
}
});
});

$ (document) .ready (function () {
$ .ajaxSetup ({cache: true});
$ .getScript (& # 39; // connect.facebook.net/en_US/sdk.js&#39 ;, function () {
FB.init ({
appId: & # 39; 543661672486127 & # 39;
version: & # 39; v2.8 & # 39;
});
FB.XFBML.parse ();
});
});

hidden var, state, visibilityChange;
if (typeof document.hidden! == "undefined") {
hidden = "hidden";
accessibilityChange = "" tradevisibility ";
state = "visibilityState";
} else if (typeof document.mozHidden! == "undefined") {
hidden = "mozHidden";
visibilityChange = "mozvisibilitychange";
state = "mozVisibilityState";
} else if (typeof document.msHidden! == "undefined") {
hidden = "msHidden";
visibilityChange = "msvisibilitychange";
state = "msVisibilityState";
} else if (typeof document.webkitHidden! == "undefined") {
hidden = "webkitHidden";
visibilityChange = "webkitvisibilitychange";
state = "webkitVisibilityState";
}

var sb_focus = "focused";
window.addEventListener (& # 39; focus & # 39; function () {
sb_focus = & # 39;
});

window.addEventListener (& # 39; blur & # 39; function () {
sb_focus = not targeted;
});

window.onblur = function () {window.blowed = true; };
window.onfocus = function () {window.blowed = false; };

jQuery.fn.is_on_screen = function () {
var win = $ (window);
var viewport = {
at the top: win.scrollTop (),
left: win.scrollLeft ()
};
viewport.right = viewport.left + win.width ();
viewport.bottom = viewport.top + win.height ();

var bounds = this.offset ();
bounds.right = bounds.left + this.innerWidth ();
bounds.bottom = bounds.top + this.innerHeight ();

return (! (viewport.bottom < bounds.top || viewport.top > bounds.bottom));
};

window.addEventListener (& # 39; message, function (event) {
if (~ event.origin.indexOf (& # 39; https: //www.vogue.in&#39;)) {
if (event.data.event && event.data.event == "CN-AD-refresh")
{

if (document [state]! = & # 39;) {return; }
if (sb_focus == & # 40; unfocused & # 39;) {return; }

if (typeof event.data.slot! == "undefined" && event.data.slot)
{
if ($. inArray (event.data.slot, window.cnAdsRefreshArray.leaderboard))
{
clearInterval (ADintervalLeaderboard);
autoADtimerLeaderboard ();
}

if ($. inArray (event.data.slot, window.cnAdsRefreshArray.mpu))
{
clearInterval (ADintervalMPU);
autoADtimerMPU ();
}
}

if (typeof event.data.slot! == "undefined" && event.data.slot)
{
googletag.cmd.push (function () {
googletag.pubads (). refresh ([eval(event.data.slot)]);
});
}
}
} other {
return;
}
});

$ (document) .ready (function (e) {
window.addEventListener (& # 39; focus & # 39; function () {
sb_focus = & # 39;
});

window.addEventListener (& # 39; blur & # 39; function () {
sb_focus = not targeted;
});

// cnWebengage ("category-article", "category_article", {"category": "Beauty", "subcategory": "Tips"});

$ ("img.lazy"). lazyload ({
skip_invisible: true
});

autoADtimerLeaderboard = function () {
ADintervalLeaderboard = window.setInterval (function () {
if (document [state]! = & # 39;) {return; }
if (sb_focus == & # 40; unfocused & # 39;) {return; }
so true)
{
var leaderboardAdSlot = $ ("# header-leaderboard-ad div"). attr ("id-slot-id");
googletag.cmd.push (function () {
googletag.pubads (). refresh ([eval(leaderboardAdSlot)]);
});
}
}, randomInterval);
}

autoADtimerMPU = function () {
ADintervalMPU = window.setInterval (function () {
if (document [state]! = & # 39;) {return; }
if (sb_focus == & # 40; unfocused & # 39;) {return; }
so true)
{
$ ($ (".mpu-ad-slot"). get ()). each (function () {
if ($ (this) .is_on_screen ()) {
var mpuAdSlot = $ (this) .find (& # 39; sb-mpu-ad). attr ("ad-slot-id");

googletag.cmd.push (function () {
googletag.pubads (). refresh ([eval(mpuAdSlot)]);
});
}
});
$ ($ (". new-ad-unit"). get ()). each (function () {
if ($ (this) .is_on_screen ()) {
var secMpuAdSlot = $ (this) .attr ("id-slot-id");

googletag.cmd.push (function () {
googletag.pubads (). refresh ([eval(secMpuAdSlot)]);
});
}
});
}
}, randomInterval);
}

autoADtimerLeaderboard ();
autoADtimerMPU ();

$ (& # 39; body & # 39;). imagesLoaded (function () {
if ($ (window) .scrollTop ()> = ($ (document) .height () - $ (window) .height () - ($ (window) .height () * 0.2))) {
infinite_single_json (count, 0);
}
});

$ (document) .on ('click', 'open_other_social', function () {
$ (this) .parents (& # 39;. socialShare.socialShare-top.social-sharer-buttons-article-top). find ('ul'). css (& # 39 ;, & gt; 0 & gt;);
$ (this) .parents (& # 39;. socialShare.socialShare-top.social-sharer-buttons-article-top). find (& # 39; li & # 39;). css (& # 39; width & # 39 ;, & # 39; auto & # 39;)
$ (this) .parents (& # 39;. socialShare.socialShare-top.social-sharer-buttons-article-top). find (& # 39; li a & # 39;). css (& # 39; display & # 39; block & # 39;);
$ (this) .parents (& # 39;. socialShare.socialShare-top.social-sharer-buttons-article-top). find (& # 39 ;. fb_rect_wrapper & # 39;). remove ();
$ (this) .hide ();
});

gtmFirstLoad ();
// get_related_stories ('0', & # 39; 1001868 & # 39; 19683 & # 39;);
});

function cn_lr_logout_callback () {
if ((! regwall_story || isLoggedIn) &&! isSponsored)
load_instory_cta_ajax (& # 39; 1001868 & # 39; 0, & # 39; 3 & # 39 ;, magazineid);
}

function cn_lr_login_callback () {
if ((! regwall_story || isLoggedIn) &&! isSponsored)
load_instory_cta_ajax (& # 39; 1001868 & # 39; 0, & # 39; 3 & # 39 ;, magazineid);

$ (". 30_day_trial_single"). Attr (& # 39; href, & # 39; / register /? Rsource = paywall-trials-magazinestory & referrer = + window.location.pathname + & # 39; & campaign = 30 days free -trial-vogue-168 & # 39;)
}

limitLengthInWords function (desc, maxWords) {
value var = desc,
wordCount = value.split (/ S + /). length - 1,
re = new RegExp ("^ \ s * \ S + (?: \ s + \ S +) {0," + (maxWords-1) + "}");
if (wordCount> = maxWords) {
desc = value.match (re);
}
return desc;
}

check_ref_sub function (postid, issue_id, referer, guid, page_no = 0) {

$ .ajax ({
type: "POST",
url: https: //www.vogue.in/wp-admin/admin-ajax.php&#39 ;,
async: false,
data: "action = getsubstatus" + "& postid =" + postid + "& issue_id =" + issue_id + "& referer =" + referer,
success: function (data) {

if (data === 'blocked' || data === 'blocked')
{

var blockhtml = & # 39;

& # 39; + marketing_text + & # 39; & # 39; 19659030] & # 39 ;;

var freeLink = & # 39; https: //condenastsso.hub.loginradius.com/RequestHandlor.aspx? apikey = 492f2ff0-55ca-45d2-b13d-bff1e19cf490 & provider = facebook & callback = http% 3A% 2F% w.vogue 3Frsource% 3Dpaywall- trial-magazinestory & same_window = 1 & callbacktype = QueryString & # 39 ;;
blockhtml + = or ";
blockhtml + = & # 39;

Begin Free Vogue Membership

& # 39 ;;

blockhtml + = & # 39; Already bought? Log In To read this and other magazine articles, register now for digital publishing.

& nbsp;

setTimeout (function () {
gtmMagazineHomeSubscribe ("WebStory Page", "Subscription Button Prints");
}, 500);

var pTagCount = 0;
var pETop = 0
var targetPtag;

$ ("# post -" + postid + ".description") .find (& # 39; gqBrightcove: first-child & # 39;). remove ();
$ ("# post -" + postid + ".description") .find (& # 39; tag-slider-video & # 39;). remove ();

$ .each ($ ("# post -" + postid + ".description"). children (& # 39; p, h2 & # 39;), function ()
{
pTagCount ++;
if (pTagCount> 1) $ (this) .remove ();
if (pTagCount == 2) {targetPtag = $ (this); pETop = $ (this) .offset (). top;}
});
var pTagCount = 0;
var sETop = 0

$ .each ($ ("# post -" + postid + ".slide"), function () {
pTagCount ++;
if (pTagCount> regwallSlides) var regSlider = $ (this) .parents (div.cycle-slideshow); }
if (pTagCount> (parseInt (regwallSlides) +1)) {$ (this) .prev (& # 39; instory-slide-counter & # 39;)). remove (); $ (this) .remove (); }
if (pTagCount == regwallSlides) sETop = $ (this) .offset (). top;
});

if (pETop> sETop && sETop! = 0) pETop = sETop;
if (pETop == 0) pETop = sETop;
$ .each ($ ("# post -" + postid + ".description"). children (), function () {
if (pETop! = 0 && $ (this) .offset (). top> pETop &&! $ (this) .hasClbad (& # 39; nextStory & # 39;) &&! $ (this) .hasClbad (& # 39; socialIconSet & # 39;))
{
if (pETop! = sETop) {} else $ (this) .remove ();
}
});
$ ("# post -" + postid + ".storyLink"). remove ();
$ .each ($ ("# post -" + postid + ".wrapper"). children (), function () {
if (! $ (this) .hasClbad (& # 39; nextStory & # 39;) &&! $ (this) .hasClbad (& # 39; tag-slider-video & # 39;) &&! $ (this) .hasClbad ( & # 39; socialIconSet & # 39;)) $ (this). remove();
});

$ ("# post -" + postid + ".description"). append (blockhtml);

if (guid! = & # 39; && guid! == not defined) {load_subscription_btn_1 (guid); } else {$ (& # 39 ;. button1_popup & # 39;)). remove (); }

} else if (data ===> blocked || data === blocked)

}

}
});
}

$ (document) .on ("click", ". addFbComment", function () {
var commentMarkup = & # 39; & # 39 ;;
$ (this) .parents ('div.comment_section'). html (commentMarkup);
FB.XFBML.parse ();
});

// charge cta
function load_instory_cta_ajax (post_id, pageNumber, category_id, magazineid) {
var ctaSlot = "CTA_" + post_id + "_" + page number + "_1";
if (isMobile.any ()) {
var ctaHtml = get_instory_cta_dfp (ctaSlot);
insert_cta_html (post_id, ctaHtml);
} other {
ctaHtml = "";
}
$ .ajax ({
url: action_url + & # 39; action = get_instory_cta_ajax & # 39;
type: "POST",
data: {"page_no": pageNumber, & post_id: post_id, & quot; isLoggedIn & quot; isLoggedIn, & # 39; category_id & quot ;: category_id, & # 39; magazineid & # 39; : magazineid}
}). done (function (data) {
data = JSON.parse (data);
ctaFallback = data.cta1;
if (ctaFallback == "Fallback") $ ("# div-gpt-ad -" + ctaSlot) .html (ctaFallback);
$ (".cta_holder -" + page number + "- b"). html (data.cta2);
});
}

// Related stories Ajax
function get_related_stories (pageNumber, post_id, sponsored, category_id, topic_ids) {
$ .ajax ({
url: action_url + & # 39; action = related_story_ajax & # 39;
type: "POST",
data: {"page_no": pageNumber, "post_id": post_id, "sponsored", category_id: category_id, & rel_ids & # 39; : $ ("# get_all_post_ids"). val (), & # 39; topic_ids & # 39 ;: topic_ids}
}). done (function (data) {
$ ("# related-stories -" + pageNumber) .html (data);
owl_cursel_init ();
});
}

// get the CTA instance
function get_instory_cta_dfp (ctaSlot)
{
var deviceSlot = "[[848,218][848,200][848,250][848,150]]";
if (isMobile.any ()) {
deviceSlot = "[[320,157]]";
}
var ctaHtml = "

";
setTimeout (function () {
if ($ ("# div-gpt-ad -" + ctaSlot) .height () == 0) {
$ ("# div-gpt-ad -" + ctaSlot) .replaceWith (ctaFallback);
}
}, 2000);
returns ctaHtml;
}

insert_cta_html function (post_id, ctaHtml) {
if (isMobile.any ())
{
if ($ ("# post -" + post_id + ".description"). children (& # 39;). length> 1 && $ ("# post -" + post_id + ".description .slide" length> 1)
{
if ($ ("# post -" + post_id + ".description"). children (& # 39;). eq (1) .offset (). top> $ ("# post -" + post_id + ".description .slide") .eq (1) .offset (). top
{
$ ("# post -" + post_id + ".description .slide"). eq (1) .after (ctaHtml);
} other {
$ ("# post -" + post_id + ".description") .children (& # 39; p). eq (1) .after (ctaHtml);
}
} other {
if ($ ("# post -" + post_id + ".description"). children (& # 39;). length> 2)
{
$ ("# post -" + post_id + ".description") .children (& # 39; p). eq (1) .after (ctaHtml);
} other {
$ ("# post -" + post_id + ".description .slide"). eq (1) .after (ctaHtml);
}
}
} other {
if ($ ("# post -" + post_id + ".description"). children (& # 39;). length> 2)
$ ("# post -" + post_id + ".description") .children (& # 39; p). eq (1) .after (ctaHtml);
}
}

// advertising check
googletag.cmd.push (function () {
googletag.pubads (). addEventListener (& # 39; slotRenderEnded & # 39; function (e) {
if (e.isEmpty) {
if ($ ("#" + e.slot.getSlotElementId ()). hasClbad ("instory_cta")) {
$ ("#" + e.slot.getSlotElementId ()). html (ctaFallback);
if (! ctaFallback) ctaFallback = "Fallback";
}
$ ("#" + e.slot.getSlotElementId ()). parent ("adinsert"). slideUp (400);
if (! $ ("# native_story .native-story-ad") is (": visible") &&! $ (". topadbnr"). is ("visible")) {$ ("# native_story"). remove (); singleNativeCarousel = false; isSingleNativeCarousel = false; $ (". topadbnr"). show (); $ ("body"). css ({paddingTop: parseInt ($ ("#barBar" "). outerHeight () + $ (". topadbnr "). outerHeight ()) +" px "});
} other {
$ ("#" + e.slot.getSlotElementId ()). parent ("adinsert"). slideDown (400);
}
});
});

// Get the following story
function infinite_single_json (pageNumber, animation) {
if (typeof (animation) === undefined) animation = 0;
$ (& # 39 ;. loader_img: last & # 39;). show ();
var get_all_post_ids = $ ("# get_all_post_ids"). val ();
var all_post_ids_arr = new Array ();
all_post_ids_arr = get_all_post_ids.split (",");
var next_article_id = all_post_ids_arr [(parseInt(pageNumber) - 1 )];

if (next_article_id && typeof (next_article_id)! == & # 39; undefined & # 39;)
{
if ($ ("# next_story _" + (parseInt (pageNumber)) + & # 39; + # next_article_id) .length == 0)
{
if (load_start == 0)
{
load_start = 1;
var action_url = & # 39; https: //www.vogue.in/wp-admin/admin-ajax.php&#39 ;;
$ .ajax ({
url: action_url + & # 39; action = infinite_single_json & # 39;
type: "POST",
data: {"page_no": pageNumber, & # 39; get_all_post_ids & # 39 ;: get_all_post_ids}
}). done (function (data) {
//console.log("infinite_data",data);
load_start = 0; Articlecount ++;
data = JSON.parse (data);
$ (& # 39 ;. loader_img & # 39;). hide ();
if (! data.sponsored_status &&! isLoggedIn &&! data.issue_id) singleStoryCookie (data.article_id);
isSponsored = data.sponsored_status;

ADPostId = data.article_id;

$ (". next_article: last"). hide ();
if (! data.is_mobile)
{
$ (".topadbnr: first") .remove ();
}

data.page_no_i = data.page_no + 1;
data.encoded_permalink = encodeURI (data.permalink);

// related stories begin
sponsored var 'no';
if (data.sponsored_status) sponsored = "yes";
var topic_tags = [];
$ .each (data.topic_tags, function (index, tag) {
topic_tags.push (tag.term_id);
});
/ * if (is_sponsored == 1)
{
get_related_stories (data.page_no, data.article_id, 'yes', data.category_term_id, topic_tags.join (& # 39;));
}
other
{
get_related_stories (data.page_no, data.article_id, no, data.category_term_id, topic_tags.join (& # 39;));
} * /

if (! data.sponsored_status) load_instory_cta_ajax (data.article_id, data.page_no, data.category_term_id, data.magazineid);

// mustache code
var template = $ (# template). html ();
Mustache.parse (model); // optional, speed up future uses
var render = Mustache.render (model, data);
if (Cookies.get (& # 39; cn_bid & # 39;))
{
dataLayerBID = Cookies.get (& # 39; cn_bid & # 39;)
re = new RegExp ("<%shareBid%>", "g");
render = render.replace (re, dataLayerBID);
}
$ ("# load_article_content"). append (rendered);
$ ("img.lazy"). lazyload ({
skip_invisible: true
});

if (data.issue_id)
{
marketing_text = data.marketing_text;
check_ref_sub (data.article_id, data.id_issue, & quot; internal & quot ;, data.guid, data.page_no);
}

var google_category = $ (". topadbnr: last"). attr ("data-google-category");
var sponsor_ad = $ (". topadbnr: last"). attr ('data-sponsor-story');
var is_sponsored = $ (". topadbnr: last"). attr ("data-is-Sponsored");
var leaderboardcode = $ (". topadbnr: last"). attr ("data-leaderboard-code");
var mpucode = $ (". topadbnr: last"). attr ("data-mpu-code");

if (! data.is_magazine)
{
if (! data.is_mobile)
{
$ ("# header-Ranking-ad" ". html (data.leaderboard_ad);
}
// $ (# mpu-ad-slot). html (data.mpu_ad);
// $ ("# secondary-mpu-ad-slot"). html (data.mpu_ad2);
mpuAd = data.mpu_ad;
}
if (! data.is_mobile)
{
dfpCount = 0;
totalInterval = 0;
clearInterval (ADintervalLeaderboard);
autoADtimerLeaderboard ();
clearInterval (ADintervalMPU);
autoADtimerMPU ();
}

var currentDiv = $ ("# next_story _" + (parseInt (pageNumber)) + & # 39; _ + next_article_id);
cnReplaceUrlandTitle (currentDiv.data ("post-title"), currentDiv.data ("post-url"));
gtmSingleContinuousScroll ();
if (animation == 1)
{
if (isMobile.any ())
{
$ ("html, body"). animate ({
scrollTop: $ ("# next_story _" + (parseInt (pageNumber)) + & # 39; + next_article_id) .offset (). top - $ ("# navBar"). outerHeight () - $ (# topadbnr & # 39;). outerHeight () + 20
}, 600);
} other {
$ ("html, body"). animate ({
scrollTop: $ ("# next_story _" + (parseInt (pageNumber)) + & # 39; + next_article_id) .offset (). top - $ ("# navBar"). outerHeight () - $ (# topadbnr & # 39;). outerHeight ()
}, 600);
}
}
onloadAjax.initAll ();
});
}
} other {
if (animation == 1)
{
console.log ($ ("# next_story _" + (parseInt (pageNumber)) + & # 39; + next_article_id) .offset (). top, $ ("# navBar"). outerHeight (), $ (# Topadbnr) .outerHeight ());
if (isMobile.any ())
{
$ ("html, body"). animate ({
scrollTop: $ ("# next_story _" + (parseInt (pageNumber)) + & # 39; + next_article_id) .offset (). top - $ ("# navBar"). outerHeight () - $ (# topadbnr & # 39;). outerHeight () + 20
}, 600);
} other {
$ ("html, body"). animate ({
scrollTop: $ ("# next_story _" + (parseInt (pageNumber)) + & # 39; + next_article_id) .offset (). top - $ ("# navBar"). outerHeight () - $ (# topadbnr & # 39;). outerHeight ()
}, 600);
}
}
}
} other {
load_start = 1;
$ (& # 39 ;. loader_img: last & # 39;). hide ();
}
}

$ (document) .on (& # 39 ;, & # 39; .subscription_popup .content_btns & # 39 ;, function () {
gtmMagazineHomeSubscribe ("WebStory Page -" + $ (this) .data ("price"), "Click the Subscribe button");
});

$ (document) .on ('click', 'close_reg_wall', function () {
$ (& # 39 ;. reg_wall_v2 & # 39;). fadeOut ();
});

$ (window) .load (function () {
// alert ($ ('body'). find (& # 39 ;. has-responsive-video '). width ());

if ($ (window) .width () <768)
{
$ (& # 39 ;. reg_wall_v2 & # 39;). width ($ (window) .width ());
}
other{
$ (& # 39 ;. reg_wall_v2 & # 39;). width ($ (& # 39 ;. has-responsive-video & # 39;). width ());
}
})

[ad_2]
Source link