Horoscope of the day – Free Horoscope of the day 02 Nov. 2018, Fri.



[ad_1]

Recall the facts, Aries: your skin does not shine as before. Those puffy eyes? Not a cute look on you. Today brings with us an awakening on the front of health and well-being. Gemini, the Universe offers you the opportunity to move up a gear. Seek advice from a mentor or return to your books. Aquarius, being aware of your wounds is the first step to healing them. Be gentle and loving towards yourself.

Daily Horoscope: Aries

  aries

Reality che ck, Aries: your skin no longer shines as before. Those puffy eyes? Not a cute look on you. Today brings with us an awakening on the front of health and well-being. Did he have too many martinis last night? Detoxification is your magic word. Make a conscious effort to get rid of what is causing you more harm than good. Of course, it's not just about the body, it's about the mind. Get rid of all the toxic habits, whether it's thinking up to exhaustion or clinging to toxic relationships.

Cosmic Tip: Breathe negativity. It's time to detox your mind, body and mind.

Daily Horoscope: Taurus

  Bull

Impossible to move to Step 2 without Mastering Step # 1. Great things are coming up for you The career front, but before to be able to grasp them, you must be fully present at this phase of your life, which asks you to honor everything that presents itself to you as an opportunity to learn. Even so-called little things will help you learn another aspect of your work.

Cosmic Tip: Each task, no matter how small, teaches you another aspect of the job.

The horoscope of the day: Gemini

<img width = "866" height = "487" src = "https://media.vogue.in/wp-content/uploads/2018/04/ Daily-horoscope-Gemini-Sonam-Kapoor2-866×487.jpg "clbad =" attachment-custom-866 size-custom-866 "alt =" Gemini [Gens du monde] 19659010] See the Gemini roadmap Where are you today? And where do you want this path to lead you? Do not forget that knowledge is a super power (no one should inform you) What are the things that will add value to your work and will help you develop as an individual and as a professional Do not be afraid to consult your books or seek advice from a mentor You are offered the opportunity to level up

Cosmic Tip: Return to your books Search this topic Remember that knowledge is your greatest superpower

Daily Horoscope: Cancer

  Cancer

Exhale by the negat ivity, inspire positivity. When you operate from a space of love, you begin to see the light in everyone. Let go of judgment, Sagittarius. Accept people for what they are (and not what you want them to be). The act of loving unconditionally promises to transform your relationship with the world. Remember, there is a difference between hearing and listening. Your soul soul might need your presence today

Cosmic Council: The gift of unconditional love will transform your relationships.

Daily Horoscope: Leo

  Leo

You deserve all the good things in the world and more. Do not forget that you are connected to the divine flow of abundance. Give up your fears in the finance department to a higher power. Align with people who appreciate your gifts and are willing to reward you in proportion to your efforts You are building an empire. In the meantime, it is best to keep in mind how you spend your money and constantly differentiate the needs of the desires.

Cosmic Council: You are connected to the divine flow of abundance.

Daily Horoscope: Virgo

  virgo

When it rains, there is significant rainfall. You really pushed yourself to the finish line. Prepare to receive the big paycheck you deserve. Everything aligns in your favor, Virgo. The blocks of abundance with which you have struggled are being lifted. Prepare to manifest your dreams and desires, especially professionally. But do not forget that true happiness comes from within. Being rooted in your mind will help you prosper in the material world.

Cosmic Council: Prepare to receive the abundance you truly deserve.

Daily Horoscope: Libra

  libra

If stressing the situations was a valid solution, we would all win from life. Put your monkey spirit at rest, Libra. Of the 100 scenarios you have composed, 101 are just the fruit of your imagination. Breathe. Center yourself. Know that each thought is loaded with a powerful intention and that you must be attentive to the energy you put into the universe. Starting from old paradigms, you will remain bound to your fears. You have this, Libra. Trust in yourself and in the mysterious forces above.

Cosmic Tip: Breathe positivity. Exhale the anxiety.

Daily Horoscope: Scorpio

  scorpio

There is always more than wha t meets the eye. Some call it the sixth sense, others call it your killer instinct. Pay attention to the subtle signs that are revealed to you. When something is wrong, you are the first to know. Although everything seems to be going well, something is happening behind the veil. Open your eyes to lies and deceit. Nobody takes a scorpion for a ride.

Cosmic Tip: Be aware of what the subtle signs reveal to you.

Daily Horoscope: Sagittarius

  sagittarius

Saying goodbye is rarely easy, but it's exactly what you need to do at the moment. Love yourself enough to keep away people and situations that cause you grief. It is only by abandoning what is not yours that you will be able to make room for the new. Spoiler Alert: The grbad is greener on the other side. Trust the flow of life and what it reveals to you.

Cosmic Tip: Saying goodbye is rarely easy, but you have to do it right now.

Daily Horoscope: Capricorn

  capricorn

At any time you have two options: to remain paralyzed by fear or to vibrate at the frequency of love. Just when everything starts to set up for you, you start to question the good things. Insecurities have a way to appear advertised. Be aware of the self-sabotage that occurs on a subconscious level. It all starts with consciousness, Capricorn. You have what it takes to break the cycle and rise above the circumstances that kill you.

Cosmic Tip: Love, not fear.

Horoscope of the day: Aquarius

  aquarius

If the pain is in you, the drug is too. What does this pain reveal to you, Aquarius? Pay attention to old wounds that may resurface at this time. Give up your judgments on yourself. Gifts of love and awareness will help you release things that no longer deserve a place in your world. Healing is a process. You learn to be gentle with yourself.

Cosmic Tip: If the pain is in you, the medicine is too. You have the power to heal old wounds.

Daily Horoscope: Pisces

  Pisces

Friend, Muse or Lover? Or a little bit of everything and something more? You know that these are just labels. the hare can not be described in material terms. This can only be expressed by poetry and prose. Your work begins to become a reflection of your personal experiences. Your romantic experiences begin to fuel your creative growth. Everything is interrelated and it is the most beautiful part of this trip. Do not be afraid to take a look at the world in your personal diary (as your inspirations, of course).

Cosmic Tip: Your work borrows heavily from your romantic experiences and that is what makes it beautiful.

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

crossed var = false;
var randomInterval = 7000;
var adDelay = 2000;
var videoadDelay = 3000;
var mobAdDelay = 7000;
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 ();
//$(&#39;.content_body&#39;).prepend(&#39;

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

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

//$(&#39;body&#39;).removeClbad(&#39;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; };

onScrollAutoplayVideo function (ifx)
{
ifx [0] .contentWindow.playad ();
}

function onScrollAutopauseVideo (ifx)
{
ifx [0] .contentWindow.pausead ();
}

jQuery (window) .scroll (function (e) {
// Code for automatic playback of videos inview
$ (& # 39; body & # 39;). find (& # 39; video-ads & # 39;). each (function (index) {
if (isScrolledIntoView ($ (this)))
{
onScrollAutoplayVideo ($ (this));
}
other
{
onScrollAutopauseVideo ($ (this));
}
});
// End code for inview video auto play
});
// Scroll Managers in FIN Window

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 ("article-category", "article_type", "category": "", "subcategory": ""});

$ ("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', '994127', 'no', '16071');
setTimeout (function () {
processBrightcoveVideos ();
$ (& # 39; a.embed-popover & # 39;). webuiPopover ();
}, 2000);
});

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

function cn_lr_login_callback () {
if ((! regwall_story || isLoggedIn) &&! isSponsored)
load_instory_cta_ajax (& # 39; 994127; 0, & # 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; 19659044] & # 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;). eq (1) .after (ctaHtml);
}
} other {
if ($ ("# post -" + post_id + ".description"). children (& # 39;). length> 2)
{
$ ("# post -" + post_id + ".description"). children (& # 39;) 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;) eq (1) .after (ctaHtml);
}
}

// ad 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 ($ ( "# navbar") outerHeight () + $ ( "topadbnr.") OuterHeight ()) + "px"..});}.
} other {
$ ( "#" + E.slot.getSlotElementId ()) Parent ( "adinsert.") SlideDown (400)..;
}
});
});

// Get Next Story
function infinite_single_json (pageNumber, animation) {
if (typeof (animation) === & # 39; undefined & # 39;) 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 + 'action = infinite_single_json',
Type: & # 39; & # 39 ;, 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;

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

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

// related Stories start
var sponsored = no;
if (data.sponsored_status) sponsored = & # 39; yes & # 39 ;;
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, & # 39; yes & # 39;, data.category_term_id, topic_tags.join (& # 39; & # 39;));
}
other
{
get_related_stories (data.page_no, data.article_id, & # 39; No & # 39;, data.category_term_id, topic_tags.join (& # 39; & # 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 (template); // optional, speeds up future uses
var rendered = Mustache.render (template, data);
if (Cookies.get (& # 39; cn_bid & # 39;))
{
dataLayerBID = Cookies.get (& # 39; cn_bid & # 39;)
re = new RegExp ("<%shareBid%>", "g");
rendered = rendered.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.issue_id, & # 39; internal & # 39 ;, 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-ad-leaderboard") 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 ();
processBrightcoveVideos ();
if (animation == 1)
{
if (isMobile.any ())
{
$ ("html, body"). animate ({
scrollTop: $ ("# next_story _" + (parseInt (pageNumber)) + & # 39; + next_article_id) .offset (). top - $ ("# navBar"). outerHeight () - $ (& # 39; # topadbnr & # 39;). OuterHeight () + 20
}, 600);
} other {
$ ("html, body"). animate ({
scrollTop: $ ("# next_story _" + (parseInt (pageNumber)) + & # 39; + next_article_id) .offset (). top - $ ("# navBar"). outerHeight () - $ (& # 39; # topadbnr & # 39;) outerHeight ().
}, 600);
}
}
onloadAjax.initAll ();
});
}
} other {
if (animation == 1)
{
            console.log($("#next_story_"+(parseInt(pageNumber))+&#39;_&#39;+next_article_id).offset().top, $("#navBar").outerHeight(), $(&#39;#topadbnr&#39;).outerHeight());
            if(isMobile.any())
{
                $("html, body").animate({
                  scrollTop: $("#next_story_"+(parseInt(pageNumber))+&#39;_&#39;+next_article_id).offset().top - $("#navBar").outerHeight() - $(&#39;#topadbnr&#39;).outerHeight() + 20
                }, 600);
            } autre {
                $("html, body").animate({
                  scrollTop: $("#next_story_"+(parseInt(pageNumber))+&#39;_&#39;+next_article_id).offset().top - $("#navBar").outerHeight() - $(&#39;#topadbnr&#39;).outerHeight()
                }, 600);
}
}
}
    } autre {
        load_start = 1;
        $(&#39;.loader_img:last&#39;).hide();
}
}

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

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

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

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

[ad_2]
Source link