Music Art

How Glenmorangie’s Scrumptious Design Undertaking set a brand new collaboration milestone as they made music and artwork collide

From the royalty soaked ‘Maharaja Highball’ cocktails to the otherworldly decor to teleport you to an ‘orangie’ wonderland, and Wondermaker Karsh Kale’s groovy music, Glenmorangie’s Scrumptious Design Undertaking opened its doorways to a never-seen-before, technicolour amalgamation of artwork and music in Mumbai. Held on December 6 2022, the expertise completed in true Glenmorangie fashion, handled visitors to a multi-sensory expertise that deserves one other innings, and we at GQ India have front-row deets about all the things it entailed. 

Organised at Mumbai’s historic 144-year ice manufacturing unit turned transdisciplinary area IF.BE, the occasion welcomed its visitors right into a forest-like maze garnished with lush foliage and vibrant oranges. On the finish of the maze, a celebrated tarot reader awaits—the quixotic readings had been simply step one to teleporting the luxurious spirit drinkers of at present to the model’s evocative world. 

“We wished to mix the scrumptious and great world of Glenmorangie–Single malt Scotch Whisky, with the gregarious spirit of India. The Scrumptious Design Undertaking is an ode to India’s artistic vibrancy and its artists and unlocks a brand new milestone in our efforts to craft luxurious experiences,” mentioned Smriti Sekhsaria, Advertising Head at Moët Hennessy India.

A rendezvous between artwork and music   

Whereas there’s a lot to spotlight concerning the glistening occasion, it’s solely honest to start out with the show-stopper of the evening: a surreal collaboration between Wondermaker Karsh Kale’s foot-tapping beats and Nikunj Patel’s artwork. The primary-of-its-kind extravaganza was an ode to India—the land of sound, color, wealthy tradition and profound celebration. Each beat of world fame Kale’s efficiency was swathed within the historical past, color and candour of our nation. The expertise of sonic storytelling was elevated by ace artist Patel’s pleasant animations—every body teeming with a burst of delectable flavours. The mesmeric collaboration resonated with the model’s philosophy of being scrumptious by design and creating surprise out of each second.

How Glenmorangie’s Scrumptious Design Undertaking set a brand new collaboration milestone as they made music and artwork collide

“I grew up an enormous fan of Sting and I bought to really write a track that he sang for my album, ‘Respiratory Beneath Water’ that I did with Anushka Shankar. The 6-7 hours Sting and I spent within the studio was undoubtedly the most effective occasions I’ve spent in a studio with a musician,” mentioned celebrated musician Karsh Kale, who has labored with the likes of Pt. Ravi Shankar, Alicia Keys, Norah Jones and Invoice Laswell. 

Speaking about Glenmorangie’s Scrumptious Design Undertaking, he mentioned, “It’s all about class, it’s all concerning the new India. It’s at all times magical to play in Mumbai, for the eclectic crowd!” 

The visitors had been aware about the reside and larger-than-life manufacturing the place artwork met music, and had been actually spellbound. Watch this video to get a sneak peek of the collaboration!

Experiential zones crafted to thrill

In a bid to rejoice the pulsating tradition of India, Glenmorangie’s Scrumptious Design Undertaking will create three distinct luxurious moments of consumption that leverage putting visuals, sensory displays and tuneful rhythms. Aptly titled Raas, Khuld and Shararat, these art-music displays have stirred the curious cats inside us all. Raas goals to indulge the visitors in the fantastic thing about sartorial courtyards; right here the overarching emotion of merriment, opulent celebrations and dance will set the tone of the night. Shifting on, Khuld goals to take the visitors to the alluring altitudes of Kashmir, the place immersive artwork and music enable the visitors to absorb the fantastic thing about the valleys and boundless tulips in all their glory. Lastly, Shararat invitations all its visitors to a vivacious occasion expertise in opposition to the backdrop of Mumbai’s scintillating skyline, organised at a rooftop lounge par excellence.  

By these experiential zones, Karsh Kale—the Wondermaker and artist Nikunj Patel will heighten the passion of the occasion and douse the visitors in a singular, destination-led expertise which celebrates the one-of-its-kind, technicolour world of Glenmorangie. 

Summing up a larger-than-life night

The occasion ticked each ingredient on the listing for a deliciously outstanding night. Be it giving orange scarves and tangerine sun shades to each visitor, DJ NIDA trancing the gang along with her tunes, or the whimsical Glenmorangie counter serving up some juicy highballs—there was by no means a boring second. It’s secure to say that the specifically crafted cocktail—The Maharaja Highball—was the spotlight of the night. The gala evening culminated with a high-octane efficiency by Karsh Kale. 

Glenmorangie’s Scrumptious Design Undertaking was certainly a scintillating soiree of music, artwork and tradition; one which unveiled a brand new, chromatic method of celebrating! 

";
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('https://www.gqindia.com/ip2country.php', perform(knowledge) {
country_code = knowledge.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('https://www.gqindia.com')) {
if(occasion.knowledge.occasion && occasion.knowledge.occasion == "CN-AD-refresh")
{
if(doc[state] != 'seen') { return; }
if(sb_focus == 'not centered') { return; }
if(typeof occasion.knowledge.slot !== "undefined" && occasion.knowledge.slot)
{
if($.inArray(occasion.knowledge.slot, window.cnAdsRefreshArray.leaderboard))
{
clearInterval(ADintervalLeaderboard);
autoADtimerLeaderboard();
}

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

if(typeof occasion.knowledge.slot !== "undefined" && occasion.knowledge.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_93003 .in-story-slideshow').every(perform(){
gtmNextArrowTop();
});
// get_related_stories('0','256945','sure','23733','');
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()isLoggedIn)&&!isSponsored)
load_instory_cta_ajax('256945', 0, '23733', magazineid);

perform cn_lr_login_cookie_callback()isLoggedIn)&&!isSponsored)
load_instory_cta_ajax('256945', 0, '23733', magazineid);

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

$.ajax({
sort: 'POST',
url: 'https://www.gqindia.com/wp-admin/admin-ajax.php',
async: false,
knowledge: "motion=getsubstatus" + "&postid=" + postid + "&issue_id=" + issue_id + "&referer=" + referer,
success: perform (knowledge) {

console.log(knowledge);
console.log(' Check ')
if(Cookies.get('cn_sso_token') && (is_magazine_subscribed || subCheck < 2)) {} else { if (knowledge === ' blocked' || knowledge === '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").youngsters('p'),perform(){
pTagCount++;
if(pTagCount>2) $(this).take away();
if(pTagCount==2){ targetPtag = $(this); pETop = $(this).offset().prime;}
});
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().prime;
});

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").youngsters(),perform(){
if(pETop!=0&&$(this).offset().prime>pETop&&!$(this).hasClass('subscription_popup_single')) $(this).take away();
});
$.every($("#post-"+postid).youngsters(),perform(){
if(pETop!=0&&$(this).offset().prime>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(knowledge === ' blockedref' || knowledge === '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',
knowledge: {"page_no":pageNumber,'post_id': post_id, 'isLoggedIn' : isLoggedIn,'category_id':category_id,'magazineid' : magazineid}
}).completed(perform(knowledge) {
knowledge = JSON.parse(knowledge);
ctaFallback = knowledge.cta1;
if(ctaFallback == "Fallback") $("#div-gpt-ad-"+ctaSlot).html(ctaFallback);
$(".cta_holder-"+pageNumber+"-b").html(knowledge.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',
knowledge: {"page_no":pageNumber,'post_id': post_id,'sponsored':sponsored,'category_id':category_id,'rel_ids':$("#get_all_post_ids").val(),'topic_ids':topic_ids}
}).completed(perform(knowledge) {
$("#related-stories-"+pageNumber).html(knowledge);
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").youngsters('p').size > 1 && $("#post-"+post_id+" .single-story-body .slide").size > 1)
{
if($("#post-"+post_id+" .single-story-body").youngsters('p').eq(1).offset().prime > $("#post-"+post_id+" .single-story-body .slide").eq(1).offset().prime )
{
$("#post-"+post_id+" .single-story-body .slide").eq(1).after(ctaHtml);
} else {
$("#post-"+post_id+" .single-story-body").youngsters('p').eq(1).after(ctaHtml);
}
} else {
if($("#post-"+post_id+" .single-story-body").youngsters('p').size > 2)
{
$("#post-"+post_id+" .single-story-body").youngsters('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").youngsters('p').size>2)
$("#post-"+post_id+" .single-story-body").youngsters('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()).mum or dad(".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').knowledge('init'))
{
var leaderboardAdSlot = $(".topadbnr:final div").attr("ad-slot-id");
googletag.pubads().refresh([eval(leaderboardAdSlot)]);
$('#topadbnr').knowledge('init',true);
}
}
} else {
$("#"+e.slot.getSlotElementId()).mum or dad(".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.cut 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="https://www.gqindia.com/wp-admin/admin-ajax.php";
$.ajax({
url: action_url+'?motion=infinite_single_json',
sort:'POST',
knowledge: {"page_no":pageNumber,'get_all_post_ids':get_all_post_ids}
}).completed(perform(knowledge) {
load_start = 0;Articlecount++;
knowledge = JSON.parse(knowledge);

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

ADPostId = knowledge.article_id;

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

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

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

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

if(knowledge.issue_id)
{
marketing_text = knowledge.marketing_text;
check_ref_sub(knowledge.article_id, knowledge.issue_id, 'inside', knowledge.guid, knowledge.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(!knowledge.is_magazine)
{
$("#topadbnr").html(knowledge.leaderboard_ad);
if(!knowledge.is_mobile)
{
$('div.side-small-adbanner-first').html(knowledge.mpu_ad);
}
}
leaderboardAd = knowledge.leaderboard_ad;
mpuAd = knowledge.mpu_ad;

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

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

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

var custom_meta = [];
custom_meta['id'] = ADPostId;
custom_meta['title'] = knowledge.title;
custom_meta['description'] = knowledge.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'] = writer();
}

/* 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(!knowledge.is_mobile)
{
$('#single_story_1_'+knowledge.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().prime - $("header").outerHeight() - $('#topadbnr').outerHeight() + 5
}, 600, 'linear');
} else {
$("html, physique").animate({
scrollTop: $("#single_story_"+(parseInt(pageNumber))+'_'+next_article_id).offset().prime - $("#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().prime - $("header").outerHeight() - $('#topadbnr').outerHeight() + 5
}, 600, 'linear');
} else {
$("html, physique").animate({
scrollTop: $("#single_story_"+(parseInt(pageNumber))+'_'+next_article_id).offset().prime - $("#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: "https://ecom.cnidigital.in/get-campaign-products-by-slug.php",
knowledge: "guid=" + guid,
success: perform (knowledge) {
if (knowledge.error == 1) {
// console.log("erorr");
} else {
// if(swg_post_id == 85793){
showSWGButton();
// }
subscription_button_html(knowledge, guid);
}
}
});
}

perform subscription_button_html(knowledge, guid) {
var output = knowledge;
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('energetic');
$(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').knowledge('worth', salePrice);
$(doc).discover('.button'+goal+'_popup').html(buttonHtml);
applyIntPrice(originalPrice, salePrice, goal);
}
}

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

perform applyIntPrice(originalPrice, salePrice, goal){
if(country_code=="INT")
{
/*$.ajax({
sort: 'POST',
url: "https://api.fixer.io/newest?symbols=INR,USD&base=INR",
success: perform (knowledge) {*/
end result = 1/69; // knowledge.charges.USD;
originalPrice = originalPrice * end result;
originalPrice = originalPrice.toFixed(2);
salePrice = salePrice * end result;
salePrice = salePrice.toFixed(2);
$('.button'+goal+'_popup').knowledge('worth', 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; // trendy customary
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.knowledge);
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 absolutely processed.

console.log('Now you'll be able to 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("Consumer Acceptance", end result ? "Sure" : "No");
} else {
window.location = "https://www.gqindia.com/login/";
}
});

// const requestPromise = Promise.resolve({ authCode: Cookies.get("cn_sso_token") });
// const end result = await subscriptions.saveSubscription(() => requestPromise);
// console.log("Consumer 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 });
});
});
}

// }

Related Articles