Journey influencer Sharanya Iyer will get candid about her go-to tricks to unwind in type | GQ India

Let’s be trustworthy, our largest motivation behind hustling 5 days every week, as if a hamster on the wheel, is the pleasant weekend that follows. And what higher technique to maximise the fantastic break with a change of surroundings – a journey getaway maybe? Whether or not you’re hitting the highway or jet-setting to the closest seashore, nothing holds a candle to the invigorating embrace of the outside. 

Whereas discovering new landscapes, absorbing scintillating views and ticking an journey sport off your bucket record is exhilarating – the expertise isn’t fully full until we doc it. Sure, we’re speaking about flooding our galleries with vibrant footage and movies to share with our family members. 

Questioning the best way to do it proper? Take cues from journey influencer Sharanya Iyer – an avid backpacker who unwinds over the weekends by reliving her favorite recollections and sharing them along with her closest community of journey fans. For Sharanya, the key sauce to a healthful weekend is the brand new Intel Evo laptop computer. Powering her Lenovo YOGA 9i laptop computer, this platform makes journey planning a chunk of cake for the influencer. Proper from planning the journey and executing it to lastly curating content material and sharing it with the world – she realises her inventive imaginative and prescient with out breaking a sweat, all because of Intel Evo. With the appropriate tech-companion by your aspect, you are able to do the identical.

We did some legwork and chalked out 3 methods in which you’ll be able to unwind on the weekends like Sharanya Iyer:

Get inventive with digital journalling 

Be it motorbiking in Bangkok, trogging by way of the Himalayas, or matching tempo with the wildlife in Gir, Sharanya Iyer’s escapades are dotted with moments value capturing. And when life is so stuffed with adventures, it’s solely truthful to doc all of them – in order that they’ll be etched in your coronary heart forevermore. That’s the place Sharanya’s gentle and compact laptop computer comes helpful – it will probably match right into a duffel bag and sit comfortably in a suitcase too, making certain that it all the time has your again on all of your travels. Replete with the Intel Evo, it ensures 3 times sooner WiFi, so you possibly can plug into the world even from the remotest of areas, and digitally journal your escapades with ease. 

Digital get-togethers by no means seemed this good 

No matter which nook of the world you’re travelling to, no weekend is full with out some socialising – digital get-togethers included. Sharanya faucets into the expansive community of journey companions to bond, chat and even relish their adventures vicariously by way of digital calls. However hey, whether or not you’re catching up with previous mates or greeting a brand new journey group, creating the appropriate impression is of paramount significance. Fret not, Intel Evo’s face-framing and lighting correction characteristic works wonders in stirring up life and color into these lengthy video calls – so you possibly can cherish friendships and unbridled laughter whereas trying your greatest. 

Seize each second 

Whereas bungee-jumping, jungle safaris and biking expeditions outline peak journey, it’s the little issues that make an expertise unequalled – consider the moments main as much as the dive into an ocean, or gearing up on your first winter safari. In the event you’re like Sharanya, each little journey for you is a narrative to doc and share with the world. And when your ardour lies in storytelling, the world is your stage. With Intel Evo, guarantee that no second goes unrelished or undocumented. Its fast-charging characteristic equips you to tackle these offbeat trails with out worrying concerning the battery; so you possibly can file, create and handle your journey content material anytime, wherever. Furthermore, its glitch-free, fast-performance interface makes toggling between tabs, folders and video content material seamless. 

So should you’re somebody who fancies a weekend properly spent, look no additional than Sharanya Iyer’s good weekend unwind–the place she clicks, edits, shares and saves whereas making recollections of a lifetime, courtesy of her Intel Evo laptop computer.

";
var magazineid = '';

var randomInterval = 30000;
var adDelay = 3000;
var videoadDelay = 3000;
var mobAdDelay = 30000;
var adpause = true;
var currentAdSlot = "";
var currentPos = 0;
var currentScroll;
var firsttime = true, doitfornext = false;
var crossed = false;
// var slottop_leaderboard = leaderboardAd;
// var slottop_mpu = mpuAd;
var ADcont = [];
var storyLeaderboardID = $('.topadbnr:final div').attr("ad-slot-id");
ADcont.push(eval(storyLeaderboardID));
var country_code = "IN";

$(perform(){
if(Cookies.get('cn_country'))
{
country_code = Cookies.get('cn_country');
} else {
$.getJSON(' perform(information) {
country_code = information.nation;
});
}
});

$(doc).prepared(perform() {
$.ajaxSetup({ cache: true });
$.getScript('//join.fb.web/en_US/sdk.js', perform(){
FB.init({
appId: '543661672486127',
model: 'v2.8'
});
FB.XFBML.parse();
});
});

$(window).scroll(perform (occasion) {
currentScroll = $(window).scrollTop()+$(window).peak();
if (currentScroll > currentPos)
{
currentPos = currentScroll;
crossed = true;
}
});

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

var sb_focus = "centered";
window.addEventListener('focus', perform() {
sb_focus="centered";
});

window.addEventListener('blur', perform() {
sb_focus="not centered";
});

window.onblur = perform() { window.blurred = true; };
window.onfocus = perform() { window.blurred = false; };

window.addEventListener('message', perform(occasion) {
if (~occasion.origin.indexOf(' {
if(occasion.information.occasion && occasion.information.occasion == "CN-AD-refresh")
{
if(doc[state] != 'seen') { return; }
if(sb_focus == 'not centered') { return; }
if(typeof occasion.information.slot !== "undefined" && occasion.information.slot)
{
if($.inArray(occasion.information.slot, window.cnAdsRefreshArray.leaderboard))
{
clearInterval(ADintervalLeaderboard);
autoADtimerLeaderboard();
}

if(window.cnAdsRefreshArray.mpu.size > 0 && $.inArray(occasion.information.slot, window.cnAdsRefreshArray.mpu))
{
clearInterval(ADintervalMPU);
autoADtimerMPU();
}
}

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

$(doc).prepared(perform() {
var load_start = 0;
var singleEnd = 0 ;
var sb_focus="centered";

window.addEventListener('focus', perform() {
sb_focus="centered";
});

window.addEventListener('blur', perform() {
sb_focus="not centered";
});

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

autoADtimerLeaderboard = perform() {
ADintervalLeaderboard = window.setInterval(perform(){
if(doc[state] != 'seen') { return; }
if(sb_focus == 'not centered') { return; }
if(true)
{
var leaderboardAdSlot = $(".topadbnr:final div").attr("ad-slot-id");

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

autoADtimerMPU = perform() {
ADintervalMPU = window.setInterval(perform(){
if(doc[state] != 'seen') { return; }
if(sb_focus == 'not centered') { return; }
if(true)
{
var mpuAdSlot = $("div.side-small-adbanner-first div:eq( 2 )").attr("ad-slot-id");
var newAdSlot = $("div.new-ad-unit").attr("ad-slot-id");

if(typeof newAdSlot !== "undefined")
{
googletag.cmd.push(perform() {
googletag.pubads().refresh([eval(mpuAdSlot)]);
googletag.pubads().refresh([eval(newAdSlot)]);
});
} else {
var mpuAdSlot = $("div.side-small-adbanner-first div").attr("ad-slot-id");
googletag.cmd.push(perform() {
googletag.pubads().refresh([eval(mpuAdSlot)]);
});
}
}
}, randomInterval);
}

autoADtimerLeaderboard();
autoADtimerMPU();

$(window).scroll(perform(e) {
if ($(window).scrollTop() >= ($(doc).peak() - $(window).peak() - ($(window).peak()*0.2) )) {
infinite_single_json(Articlecount, 0);
}
});

gtmFirstLoad();
$('#single_story_1_35620 .in-story-slideshow').every(perform(){
gtmNextArrowTop();
});
// get_related_stories('0','254094','sure','1','');
onloadAjax.homePageSliderInit();
});

$(doc).on("click on",".addFbComment",perform(){
var commentMarkup = '';
$(this).mother and father('div.comment_section').html(commentMarkup);
FB.XFBML.parse();
});

perform cn_lr_logout_callback()

perform cn_lr_login_cookie_callback()

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

$.ajax({
sort: 'POST',
url: '
async: false,
information: "motion=getsubstatus" + "&postid=" + postid + "&issue_id=" + issue_id + "&referer=" + referer,
success: perform (information) {

console.log(information);
console.log(' Take a look at ')
if(Cookies.get('cn_sso_token') && (is_magazine_subscribed || subCheck < 2)) {} else { if (information === ' blocked' || information === 'blocked') { var blockedhtml="

';

setTimeout(perform(){
gtmMagazineHomeSubscribe("WebStory Web page", "Subscribe Button Impressions");
}, 500);

var pTagCount = 0;
var pETop = 0
var targetPtag;
$.every($("#post-"+postid+" .single-story-body").kids('p'),perform(){
pTagCount++;
if(pTagCount>2) $(this).take away();
if(pTagCount==2){ targetPtag = $(this); pETop = $(this).offset().high;}
});
var pTagCount = 0;
var sETop = 0
$.every($("#post-"+postid+" .slide"),perform(){
pTagCount++;
if(pTagCount>regwallSlides){ $(this).append(blockedhtml); $(this).addClass('regwalled-slide');var regSlider = $(this).mother and father('div.cycle-slideshow'); $(this).prev('.instory-slide-counter').disguise(); }
if(pTagCount>(parseInt(regwallSlides)+1)){ $(this).prev('.instory-slide-counter').take away(); $(this).take away(); }
if(pTagCount==regwallSlides) sETop = $(this).offset().high;
});

if(typeof targetPtag !== "undefined" && (pETop < sETop || sETop == 0)) { targetPtag.after(blockedhtml); } if(pETop>sETop&&sETop!=0) pETop = sETop;
if(pETop==0) pETop = sETop;
$.every($("#post-"+postid+" .single-story-body").kids(),perform(){
if(pETop!=0&&$(this).offset().high>pETop&&!$(this).hasClass('subscription_popup_single')) $(this).take away();
});
$.every($("#post-"+postid).kids(),perform(){
if(pETop!=0&&$(this).offset().high>pETop&&!$(this).hasClass('nextbutton')&&!$(this).hasClass('socialShare'))
{
if(pETop!=sETop){} else $(this).take away();
}
});
$("#post-"+postid+" .storyLink").take away();

if(guid != '' && guid !== undefined){ load_subscription_btn_1(guid); }else{ $('.button1_popup').take away(); }

} else if(information === ' blockedref' || information === 'blockedref') {

}
}
}
});
}

var ctaFallback = "";
//load cta
perform load_instory_cta_ajax(post_id, pageNumber,category_id, magazineid){
var ctaSlot = "CTA_" + post_id + "_" + pageNumber + "_1";
if (isMobile.any()) {
var ctaHtml = get_instory_cta_dfp(ctaSlot);
insert_cta_html(post_id, ctaHtml);
} else {
ctaHtml = "";
}
$.ajax({
url: action_url+'?motion=get_instory_cta_ajax',
sort:'POST',
information: {"page_no":pageNumber,'post_id': post_id, 'isLoggedIn' : isLoggedIn,'category_id':category_id,'magazineid' : magazineid}
}).carried out(perform(information) {
information = JSON.parse(information);
ctaFallback = information.cta1;
if(ctaFallback == "Fallback") $("#div-gpt-ad-"+ctaSlot).html(ctaFallback);
$(".cta_holder-"+pageNumber+"-b").html(information.cta2);
});
}

//Get Associated Tales Ajax
perform get_related_stories(pageNumber, post_id, sponsored, category_id, topic_ids) {
$.ajax({
url: action_url+'?motion=related_story_ajax',
sort:'POST',
information: {"page_no":pageNumber,'post_id': post_id,'sponsored':sponsored,'category_id':category_id,'rel_ids':$("#get_all_post_ids").val(),'topic_ids':topic_ids}
}).carried out(perform(information) {
$("#related-stories-"+pageNumber).html(information);
onloadAjax.homePageSliderInit();
});
}

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

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

perform insert_cta_html(post_id, ctaHtml){
if(isMobile.any())
{
if($("#post-"+post_id+" .single-story-body").kids('p').size > 1 && $("#post-"+post_id+" .single-story-body .slide").size > 1)
{
if($("#post-"+post_id+" .single-story-body").kids('p').eq(1).offset().high > $("#post-"+post_id+" .single-story-body .slide").eq(1).offset().high )
{
$("#post-"+post_id+" .single-story-body .slide").eq(1).after(ctaHtml);
} else {
$("#post-"+post_id+" .single-story-body").kids('p').eq(1).after(ctaHtml);
}
} else {
if($("#post-"+post_id+" .single-story-body").kids('p').size > 2)
{
$("#post-"+post_id+" .single-story-body").kids('p').eq(1).after(ctaHtml);
} else {
$("#post-"+post_id+" .single-story-body .slide").eq(1).after(ctaHtml);
}
}
} else {
if($("#post-"+post_id+" .single-story-body").kids('p').size>2)
$("#post-"+post_id+" .single-story-body").kids('p').eq(1).after(ctaHtml);
}
}

//advert test
googletag.cmd.push(perform() {
googletag.pubads().addEventListener('slotRenderEnded', perform(e) {
if(e.isEmpty){
if($("#"+e.slot.getSlotElementId()).hasClass("instory_cta")){
$("#"+e.slot.getSlotElementId()).replaceWith(ctaFallback);
if(!ctaFallback) ctaFallback = "Fallback";
}
$("#"+e.slot.getSlotElementId()).mother or father(".adinsert").slideUp(400);
if(!$("#native_story .native-story-ad").is(":seen")&&!$(".topadbnr").is(":seen")){
$("#native_story").take away();singleNativeCarousel = false;
isSingleNativeCarousel=false;
$(".topadbnr").present();
$("physique").css({paddingTop:parseInt($("#navBar").outerHeight())+"px"});
if(!$('#topadbnr').information('init'))
{
var leaderboardAdSlot = $(".topadbnr:final div").attr("ad-slot-id");
googletag.pubads().refresh([eval(leaderboardAdSlot)]);
$('#topadbnr').information('init',true);
}
}
} else {
$("#"+e.slot.getSlotElementId()).mother or father(".adinsert").slideDown(400);
}
});
});

//Get Subsequent Story
perform infinite_single_json(pageNumber, animation) {
if (typeof(animation)==='undefined') animation = 0;
$('.loader_img:final').present();
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.break up(",");
var next_article_id = all_post_ids_arr[(parseInt(pageNumber) - 1 )];
if(next_article_id&&typeof(next_article_id)!=='undefined')
{
if($("#single_story_"+(parseInt(pageNumber))+'_'+next_article_id).size == 0)
{
if(load_start==0)
{
load_start = 1;
var action_url="
$.ajax({
url: action_url+'?motion=infinite_single_json',
sort:'POST',
information: {"page_no":pageNumber,'get_all_post_ids':get_all_post_ids}
}).carried out(perform(information) {
load_start = 0;Articlecount++;
information = JSON.parse(information);

if(!information.sponsored_status&&!isLoggedIn) singleStoryCookie(information.article_id);
isSponsored = information.sponsored_status

ADPostId = information.article_id;

$(".next_article:final").disguise();

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

//associated Tales begin
var sponsored = 'no';
if(information.sponsored_status) sponsored = 'sure';
var topic_tags = [];
$.every(information.topic_tags,perform(index,tag){
topic_tags.push(tag.term_id);
});
// get_related_stories(information.page_no,information.article_id,sponsored,information.category_term_id,topic_tags.be a part of(','));
if(!information.sponsored_status) load_instory_cta_ajax(information.article_id,information.page_no,information.category_term_id,information.magazineid);

//mustache code
var template = $('#template').html();
Mustache.parse(template); // optionally available, accelerates future makes use of
var rendered = Mustache.render(template, information);
if(Cookies.get('cn_bid'))
{
dataLayerBID = Cookies.get('cn_bid');
re = new RegExp("<%shareBid%>", "g");
rendered = rendered.change(re, dataLayerBID);
}
$('#main-content').append(rendered);
$("img.lazy").lazyload({
skip_invisible : true
});

if(information.issue_id)
{
marketing_text = information.marketing_text;
check_ref_sub(information.article_id, information.issue_id, 'inside', information.guid, information.page_no);
}

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

if(!information.is_magazine)
{
$("#topadbnr").html(information.leaderboard_ad);
if(!information.is_mobile)
{
$('div.side-small-adbanner-first').html(information.mpu_ad);
}
}
leaderboardAd = information.leaderboard_ad;
mpuAd = information.mpu_ad;

var storyLeaderboardID = $('#topadbnr div').attr("ad-slot-id");
ADcont[0] = eval(storyLeaderboardID);

if(!information.is_mobile)
{
dfpCount = 0;
totalInterval = 0;
clearInterval(ADintervalLeaderboard);
autoADtimerLeaderboard();
clearInterval(ADintervalMPU);
autoADtimerMPU();
}

if(ADPostId) {
var article__published_date = information.timeStamp;
var article__modified_date = information.modified_timeStamp;
var tags = mainTopictag();

var custom_meta = [];
custom_meta['id'] = ADPostId;
custom_meta['title'] = information.title;
custom_meta['description'] = information.abstract;

custom_meta['tags'] = tags;

if(tags=='N/A'){
custom_meta['tags'] = [];
}

custom_meta['category'] = part();
custom_meta['subcategory'] = subSection();
custom_meta['publishedDate'] = article__published_date;
custom_meta['modifiedDate'] = article__modified_date;

if(article__modified_date == null || article__modified_date == '')
{
custom_meta['modifiedDate'] = article__published_date;
}
console.log('#single_story_1_'+ADPostId+' .post-author .contriName');

if($(doc).discover('#single_story_1_'+ADPostId+' .post-author .contriName').size == 1){
custom_meta['contributorNames'] = $(doc).discover('#single_story_1_'+ADPostId+' .post-author .contriName').textual content();
}else{
custom_meta['contributorNames'] = creator();
}

/* Permutive code addon script */
var obj = {...custom_meta};
obj.contributorNames = [obj.contributorNames];
permutive.addon("net", {
web page: {
sort: "article",
article:obj
}
});
}

var currentDiv = $("#single_story_"+(parseInt(pageNumber))+'_'+next_article_id);
cnReplaceUrlandTitle(currentDiv.attr("data-post-title"), currentDiv.attr("data-link"));
gtmSingleContinuousScroll();
if(!information.is_mobile)
{
$('#single_story_1_'+information.article_id+' .in-story-slideshow').every(perform(){
gtmNextArrowTop();
});
}
if(animation==1)
{
if(isMobile.any())
{
$("html, physique").animate({
scrollTop: $("#single_story_"+(parseInt(pageNumber))+'_'+next_article_id).offset().high - $("header").outerHeight() - $('#topadbnr').outerHeight() + 5
}, 600, 'linear');
} else {
$("html, physique").animate({
scrollTop: $("#single_story_"+(parseInt(pageNumber))+'_'+next_article_id).offset().high - $("#navBar").outerHeight() - $('#topadbnr').outerHeight()
}, 600, 'linear');
}
}
onloadAjax.initAll();
});
}
} else {
if(animation==1)
{
if(isMobile.any())
{
$("html, physique").animate({
scrollTop: $("#single_story_"+(parseInt(pageNumber))+'_'+next_article_id).offset().high - $("header").outerHeight() - $('#topadbnr').outerHeight() + 5
}, 600, 'linear');
} else {
$("html, physique").animate({
scrollTop: $("#single_story_"+(parseInt(pageNumber))+'_'+next_article_id).offset().high - $("#navBar").outerHeight() - $('#topadbnr').outerHeight()
}, 600, 'linear');
}
}
}
} else {
load_start = 1;
$('.loader_img:final').disguise();
$('.nextb:final').disguise();
$('.next_story_down:final').disguise();
$('footer.copyright').present();
}
}

perform load_subscription_btn_1(guid) {
$.ajax({
sort: 'GET',
url: "
information: "guid=" + guid,
success: perform (information) {
if (information.error == 1) {
// console.log("erorr");
} else {
// if(swg_post_id == 85793){
showSWGButton();
// }
subscription_button_html(information, guid);
}
}
});
}

perform subscription_button_html(information, guid) {
var output = information;
var product1 = output.merchandise[0];
var product2 = output.merchandise[1];
updateButtonHtml(product1, 1, guid);
updateButtonHtml(product2, 2, guid);
}

perform updateButtonHtml(product, goal, campaignSlug) {
if (product == undefined) {
$(doc).discover('.subscribe_part').removeClass('lively');
$(doc).discover('.button'+goal+'_popup').take away();
} else {
var title = product.title;
if (product.desc) title = replace_brand_title($('

').html(product.desc).textual content());
// console.log("n-----------------n");
// console.log(product);
// console.log("n-----------------n");
var originalPrice = product.regular_price;
var salePrice = product.discount_price;
var productId = product.id;
console.log(product.product_type);
if (salePrice == undefined) {
salePrice = originalPrice;
//UTM -Article Digital 1 Yr
//UTM -Article Digital Combo Yr
if(product.product_type=="bundle")
var buttonHtml="₹ " + salePrice + '

' + title + '

';
else
var buttonHtml="₹ " + salePrice + '

' + title + '

';

} else {
if(product.product_type=="bundle")
var buttonHtml="₹ " + originalPrice + '₹ ' + salePrice + '

' + title + '

';
else
var buttonHtml="₹ " + originalPrice + '₹ ' + salePrice + '

' + title + '

';

}
$('.button'+goal+'_popup').information('value', salePrice);
$(doc).discover('.button'+goal+'_popup').html(buttonHtml);
applyIntPrice(originalPrice, salePrice, goal);
}
}

perform replace_brand_title(title) {
title = title.toUpperCase();
title = title.change("GQ - ", "");
title = title.change("GQ-", "");
title = title.change("GQ", "");
title = title.trim();
title = title.change(/ /gi,'');
return title;
}

perform applyIntPrice(originalPrice, salePrice, goal){
if(country_code=="INT")
{
/*$.ajax({
sort: 'POST',
url: "
success: perform (information) {*/
end result = 1/69; // information.charges.USD;
originalPrice = originalPrice * end result;
originalPrice = originalPrice.toFixed(2);
salePrice = salePrice * end result;
salePrice = salePrice.toFixed(2);
$('.button'+goal+'_popup').information('value', salePrice);
$('.button'+goal+'_popup .salePrice').html('$ ' + salePrice);
$('.button'+goal+'_popup .strike').html('$ ' + originalPrice);
/*}
});*/
}
}

perform createCookie(title, worth, days) {
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
var expires = "; expires=" + date.toGMTString();
} else var expires = "";
doc.cookie = title + "=" + worth + expires + "; path=/";
}
var keys = {
37: 1,
38: 1,
39: 1,
40: 1
};

perform preventDefault(e) window.occasion;
if (e.preventDefault) e.preventDefault();
e.returnValue = false;

perform preventDefaultForScrollKeys(e) {
if (keys[e.keyCode]) {
preventDefault(e);
return false;
}
}

perform disableScroll() {
if (window.addEventListener) // older FF
window.addEventListener('DOMMouseScroll', preventDefault, false);
window.onwheel = preventDefault; // fashionable normal
window.onmousewheel = doc.onmousewheel = preventDefault; // older browsers, IE
window.ontouchmove = preventDefault; // cell
doc.onkeydown = preventDefaultForScrollKeys;
doc.addEventListener('touchmove', perform(evt) {
evt.preventDefault();
});
$('html').on('scroll touchmove mousewheel', perform(e) {
e.preventDefault();
e.stopPropagation();
return false;
})
$('html,physique').css('peak', $(window).peak() - 50);
$('html,physique').css('overflow', 'hidden');
}

// if(swg_post_id == 85793){

let swgProduct = swg_prod_id;
// console.log(swgProduct);
perform initSWG() {
(self.SWG = self.SWG || []).push(async subscriptions => {

// 3. Embody a setOnPaymentResponse perform to deal with the response from purchases.
subscriptions.setOnPaymentResponse(async paymentResponse => {
let response = await paymentResponse;
// console.log('subscribeResponse', response);
let orderData = JSON.parse(response.purchaseData.information);
if(response.userData.electronic mail != Cookies.get('cn_sso_email'))
{
// loginWithPurchaseToken(orderData.productId, orderData.purchaseToken, subscriptions, response.entitlements, true);
} else {
location.reload();
}
// a. Deal with subscription response.
// b. As soon as subscription is processed (account created):

await response.full().then(perform(end result){
//deal with success

loginWithPurchaseToken(orderData.productId, orderData.purchaseToken, subscriptions, response.entitlements, true);

}, perform(error){
console.log("Error");
//deal with error
});
// c. The subscription is totally processed.

console.log('Now you possibly can unblock content material or present extra UI');
});

subscriptions.setOnEntitlementsResponse(async entitlementsPromise => {
const entitlements = await entitlementsPromise;
let is_magazine_subscribed_nl = false;
let purchaseToken = '';
let productId = '';
$.every(entitlements.entitlements, perform(index, entitlement) {
if(entitlement.merchandise.indexOf(swgProduct) != -1 && Cookies.get('cn_sso_token'))
{
is_magazine_subscribed = true;
}
if(entitlement.merchandise.indexOf(swgProduct) != -1 && !Cookies.get('cn_sso_token'))
{
is_magazine_subscribed_nl = true;
// console.log(entitlement.subscriptionToken);
purchaseToken = JSON.parse(entitlement.subscriptionToken).purchaseToken;
productId = JSON.parse(entitlement.subscriptionToken).productId;
}
});
if(is_magazine_subscribed_nl)
{
loginWithPurchaseToken(productId, purchaseToken, subscriptions, entitlements, false);
}

if(Cookies.get('cn_sso_token')){
entitlements.ack();
}
subCheck++;
check_ref_sub();
// check_block_story();
});

subscriptions.setOnLoginRequest(perform(a) {
if(Cookies.get('cn_sso_token')) {
// const requestPromise = Promise.resolve({ authCode: Cookies.get("cn_sso_token") });
// const end result = subscriptions.saveSubscription(() => requestPromise);
// console.log("Person Acceptance", end result ? "Sure" : "No");
} else {
window.location = "
}
});

// const requestPromise = Promise.resolve({ authCode: Cookies.get("cn_sso_token") });
// const end result = await subscriptions.saveSubscription(() => requestPromise);
// console.log("Person Acceptance", end result ? "Sure" : "No");

});
}
perform showSWGButton() {
(self.SWG = self.SWG || []).push(async subscriptions => {
subscriptions.configure({ experiments: ['smartbox'] });
let smartButton = doc.getElementById("offers-button");

subscriptions.attachSmartButton(smartButton, { theme: 'darkish', lang: 'en' }, () => {
subscriptions.showOffers({ isClosable: true });
});
});
}

// }

Leave a Comment