[ad_1]
The Ketogenic Diet (Keto) is a high-fat, moderate, low-carb diet that was introduced for the first time in the 1920s. However, it has become a buzzword when celebrities as Kim Kardashian and Gwyneth Paltrow began promoting it a few years ago. Although the scheme has worked wonders for these two women, according to their testimonies, it works for men as well. Remember this guy who lost 60 kg in a year by basing his meals on keto-friendly foods? Or this young man who lost 4kgs in just 10 days with the same diet? And then, there's NBA star LeBron James, who unveiled in 2014 his new six-pack abs with a series of Instagram posts – all thanks to the Keto diet, which he later revealed to Sports Illustrated . That the diet is still popular in 2018 bears witness to the fact that it works. And, it allows you to consume all the foods that actually make you taste the meals, like cheese and butter! This diet puts your body in a state of constant fat burning because of its low carbohydrate content and it involves including foods like meat, fish and vegetables – all foods without alteration or coloring – in your diet. But before you get ahead of things, you should know these 5 Keto diet myths to ensure your efficiency gets results.
Even if you are already in the Keto lifestyle, you already know that starting a new but easy diet. Staying there requires a completely different level of willingness. This usually means either the death of your social life – since you can no longer eat out – or complete abandonment of the diet because, well, you have friends to hang out with, birthdays to celebrate … and so on. You know you do not want to be the one who says no to the cold because you run home to your specially prepared meal. That's why you should take note of all the restaurants, cafes and catering services we have rounded-up that serve delicious Keto dishes. Make sure you cleverly suggest one of them next time plans are underway.
I Think Fitness Cafe
This one is perfect for your gym sessions. Not only is it a stone's throw from the gym I Think Fitness, but there is also a full menu dedicated to Keto. Dishes to load on: Low Carb Sushi and Cheese Steak Cottage if you are there for lunch or dinner. And Creamy Eggs with Brown Low Hash Carb for Brunch Lovers
Darzee Food
If you get your clbadmates together for FIFA or just because it's on weekends, then you can count on Darzee Food to send hot Keto meals. This health and nutrition company customizes foods based on your nutritional needs and fitness goals. Just remember to avoid beer and opt instead for a glbad of whiskey or vodka
Raasta
You can now use diet and hamburger in the same sentence without any guilt. In Raasta, order the Keto hamburger which comes with 2 fillets of pork loin, lamb patty and cheddar cheese. You will feel like in Italy with their Pizza Fat Head. It is made of almond crust and garnished with bacon, guacamole and tomato sauce.
<img clbad = "alignnone wp-image-148604 size-large" src = "https://media.gqindia.com/wp-content/uploads/2018/07/Raasta-Keto-menu-866×956.jpg "alt =" Keto "width =" 866 "height =" 956 "data-photocredit =" "data-captionslideshow =" "srcset =" https://media.gqindia.com/wp-content/uploads/2018/07 /Raasta-Keto-menu.jpg 866w, https://media.gqindia.com/wp-content/uploads/2018/07/Raasta-Keto -menu-440×486.jpg 440w, https://media.gqindia.com /wp-content/uploads/2018/07/Raasta-Keto-menu-768×848.jpg 768w "sizes =" (max width: 866px) 100vw Deliciae Pattiserie
Stock up on Keto chocolate and Keto almond biscuits from Deliciae for your snacks at 4:00 pm, without making you feel guilty for a few seconds
Kale and Kaffé [19659005Foryournextvisittakehimtothehealthcarecenter:ketoandbrowniesKetofonthenshavehousedyou
Hello Green
READ NOW
11 exercises approved by Pogba to lose weight and get in shape as a FIFA Player
Lose weight with these 60 tips weight loss (which need no effort)
9 dietary foods with ZERO calories to help you lose weight
> More on Fitness
";
var magazineid = & # 39;
var randomInterval = 10000;
var adDelay = 7000;
var videoadDelay = 3000;
var mobAdDelay = 5000;
var adpause = true;
var currentAdSlot = "";
var currentPos = 0;
var currentScroll;
var firsttime = true, mustfornext = false;
crossed var = false;
// var slottop_leaderboard = leaderboardAd;
// var slottop_mpu = mpuAd;
var ADcont = [];
var storyLeaderboardID = $ (topadbnr: last div). attr ("ad-slot-id");
ADcont.push (eval (storyLeaderboardID));
var country_code = "IN";
$ (function () {
if (Cookies.get (& # 39; cn_country & # 39;))
{
country_code = Cookies.get (& # 39; cn_country & # 39;);
} other {
$ .getJSON (& # 39; https: //www.gqindia.com/ip2country.php' ;, function (data) {
country_code = data.country;
});
}
});
$ (document) .ready (function () {
$ .ajaxSetup ({cache: true});
$ .getScript (& # 39; // connect.facebook.net/en_US/sdk.js' ;, function () {
FB.init ({
appId: & # 39; 543661672486127 & # 39;
version: & # 39; v2.8 & # 39;
});
FB.XFBML.parse ();
});
});
$ (window) .scroll (function (event) {
currentScroll = $ (window) .scrollTop () + $ (window) .height ();
if (currentScroll> currentPos)
{
currentPos = currentScroll;
crossed = true;
}
});
OnScrollAutoplayVideo function (ifx)
{
ifx [0] .contentWindow.playad ();
}
function onScrollAutopauseVideo (ifx)
{
ifx [0] .contentWindow.pausead ();
}
jQuery (window) .scroll (function (e) {
// Code for automatic playback of video Inview
$ (& # 39; body & # 39;). find (& # 39; video-ads & # 39;). each (function (index) {
if (isScrolledIntoView ($ (this)))
{
onScrollAutoplayVideo ($ (this));
}
other
{
onScrollAutopauseVideo ($ (this));
}
});
// END Code for automatic playback of video inview
});
// END scrolling window managers
hidden var, state, visibilityChange;
if (typeof document.hidden! == "undefined") {
hidden = "hidden";
visibilityChange = "visibilitychange";
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; focused & # 39 ;;
});
window.addEventListener (& # 39; blur & # 39; function () {
sb_focus = not focused & # 39 ;;
});
window.onblur = function () {window.blurred = true; }
window.onfocus = function () {window.blurred = false; }
window.addEventListener (& # 39; message, function (event) {
if (~ event.origin.indexOf (& # 39; https: //www.gqindia.com')) {
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 (window.cnAdsRefreshArray.mpu.length> 0 && $ .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 {
come back;
}
});
$ (document) .ready (function () {
var load_start = 0;
var singleEnd = 0;
var sb_focus = "focused";
window.addEventListener (& # 39; focus & # 39; function () {
sb_focus = & # 39; focused & # 39 ;;
});
window.addEventListener (& # 39; blur & # 39; function () {
sb_focus = not focused & # 39 ;;
});
/ * webengage 9 * /
cnWebengage ("article-category", "article_category", "category": "live well", "subcategory": "food"});
$ ("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 = $ (". topadbnr: last div"). attr ("ad-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)
{
var mpuAdSlot = $ ("div.side-small-adbanner-first div: eq (2)"). attr ("ad-slot-id");
var newAdSlot = $ ("div.new-ad-unit"). attr ("ad-location-id");
if (typeof newAdSlot! == "not defined")
{
googletag.cmd.push (function () {
googletag.pubads (). refresh ([eval(mpuAdSlot)]);
googletag.pubads (). refresh ([eval(newAdSlot)]);
});
} other {
var mpuAdSlot = $ ("div.side-small-adbanner-first div"). attr ("ad-slot-id");
googletag.cmd.push (function () {
googletag.pubads (). refresh ([eval(mpuAdSlot)]);
});
}
}
}, randomInterval);
}
autoADtimerLeaderboard ();
autoADtimerMPU ();
$ (window) .scroll (function (e) {
if ($ (window) .scrollTop ()> = ($ (document) .height () - $ (window) .height () - ($ (window) .height () * 0.2))) {
infinite_single_json (Articlecount, 0);
}
});
gtmFirstLoad ();
$ (# Single_story_1_148589 .in-story-slideshow & # 39;). each (function () {
gtmNextArrowTop ();
});
// get_related_stories ('0', '148589', 'no', '8', & # 39; 24783,24783 & # 39; );
onloadAjax.homePageSliderInit ();
});
$ (document) .on ("click", ". addFbComment", function () {
var commentMarkup = & # 39;
$ (this) .parents ('div.comment_section') .html (commentMarkup);
FB.XFBML.parse ();
});
function cn_lr_logout_callback () {
if ((!! regwall_story || isLoggedIn) &&! is sponsored)
load_instory_cta_ajax (& # 39; 148589; 0, 8, magazineid);
}
function cn_lr_login_cookie_callback () {
if ((!! regwall_story || isLoggedIn) &&! is sponsored)
load_instory_cta_ajax (& # 39; 148589; 0, 8, magazineid);
}
Check_ref_sub function (postid, issue_id, referer, guid, page_no = 0) {
$ .ajax ({
type: & # 39; POST & # 39;
url: https: //www.gqindia.com/wp-admin/admin-ajax.php' ;,
asynchronous: false,
data: "action = getsubstatus" + "& postid =" + postid + "& issue_id =" + issue_number + "& referer =" + referer,
success: function (data) {
if (data === "blocked" || data === "blocked")
{
var blockedhtml = & # 39;
& # 39; + marketing_text + & # 39;
Already a buyer? Login To read this and more articles from magazines, subscribe to the digital edition now.
& # 39 ;;
setTimeout (function () {
gtmMagazineHomeSubscribe ("WebStory Page", "Subscription Button Prints");
}, 500);
var pTagCount = 0;
var pETop = 0
var targetPtag;
$ .each ($ ("# post -" + postid + ".single-story-body"). children (& # 39;), function () {
pTagCount ++;
if (pTagCount> 2) $ (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) {$ (this) .append (blockedhtml); $ (this) .addClbad (& # 39; regwalled-slide & # 39;); var regSlider = $ (this) .parents ('div.cycle-slideshow'); $ (this) .prev (& # 39; .instory-slide-counter & # 39;). hide (); }
if (pTagCount> (parseInt (regwallSlides) +1)) {$ (this) .prev (& # 39; .instory-slide-counter & # 39;)). remove (); $ (this) .remove (); }
if (pTagCount == regwallSlides) sETop = $ (ce) .offset (). top;
});
if (typeof targetPtag! == "not defined" && (pETop < sETop || sETop == 0))
{
targetPtag.after(blockedhtml);
}
if(pETop> sETop && sETop! = 0) pETop = sETop;
if (pETop == 0) pETop = sETop;
$ .each ($ ("# post -" + postid + ".single-story-body"). children (), function () {
if (pETop! = 0 && $ (this) .offset (). top> pETop &&! $ (this) .hasClbad (& # 39; subscription_popup_single & # 39;)) $ (this) .remove ();
});
$ .each ($ ("# post -" + postid) .children (), function () {
if (pETop! = 0 && $ (this) .offset (). top> pETop &&! $ (this) .hasClbad (& # 39; nextbutton & # 39;) &&! $ (this) .hasClbad (& # 39; socialShare & # 39;))
{
if (pETop! = sETop) {} else $ (this) .remove ();
}
});
$ ("# post -" + postid + ".storyLink"). remove ();
if (guid! = & # 39; && guid! == not defined) {load_subscription_btn_1 (guid); } else {$ (& # 39 ;. button1_popup & # 39;)). remove (); }
} else if (data ===> blockedref & # 39; || data === & # 39; blockedref & # 39;) {
}
}
});
}
var ctaFallback = "";
// load cta
function load_instory_cta_ajax (post_identifier, page_number, category_id, magazine number) {
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: & # 39; POST & # 39;
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);
});
}
// Get Ajax Related Stories
function get_related_stories (pageNumber, post_id, sponsored, category_id, topic_ids) {
$ .ajax ({
url: action_url + & # 39; action = related_story_ajax & # 39;
type: & # 39; POST & # 39;
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);
onloadAjax.homePageSliderInit ();
});
}
// Get the instory CTA
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);
return ctaHtml;
}
function insert_cta_html (post_id, ctaHtml) {
if (isMobile.any ())
{
if ($ ("# post -" + post_id + ".single-story-body"). children (& # 39;). length> 1 && $ ("# post -" + post_id + ". single-story-body .slide ") .length> 1)
{
if ($ ("# post -" + post_id + ".single-story-body"). children (& # 39;) eq (1) .offset (). top> $ ("# post - "+ post_id +". single-story-body .slide "). eq (1) .offset (). top)
{
$ ("# post -" + post_id + ".single-story-body .slide"). eq (1) .after (ctaHtml);
} other {
$ ("# post -" + post_id + ".single-story-body"). children (& # 39;). eq (1) .after (ctaHtml);
}
} other {
if ($ ("# post -" + post_id + ".single-story-body"). children (& # 39;). length> 2)
{
$ ("# post -" + post_id + ".single-story-body"). children (& # 39;). eq (1) .after (ctaHtml);
} other {
$ ("# post -" + post_id + ".single-story-body .slide"). eq (1) .after (ctaHtml);
}
}
} other {
if ($ ("# post -" + post_id + ".single-story-body"). children (& # 39;). length> 2)
$ ("# post -" + post_id + ".single-story-body"). children (& # 39;). eq (1) .after (ctaHtml);
}
}
// check ads
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 ()). replaceWith (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 ()) + "px"});
if (! $ (# topadbnr & # 39;) data (& # 39; init))
{
var leaderboardAdSlot = $ (". topadbnr: last div"). attr ("ad-slot-id");
googletag.pubads (). refresh ([eval(leaderboardAdSlot)]);
$ (# Topadbnr #); data (& # 39; init & # 39; true);
}
}
} 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)! == & nbsp; undefined & # 39;)
{
if ($ ("# single_story _" + (parseInt (pageNumber)) + & # 39; + # next_article_id) .length == 0)
{
if (load_start == 0)
{
load_start = 1;
var action_url = & # 39; https: //www.gqindia.com/wp-admin/admin-ajax.php' ;;
$ .ajax ({
url: action_url + & # 39; action = infinity_single_json & # 39;
type: & # 39; POST & # 39;
data: {"page_no": pageNumber, & # 39; get_all_post_ids & # 39 ;: get_all_post_ids}
}). done (function (data) {
load_start = 0; Articlecount ++;
data = JSON.parse (data);
if (! data.sponsored_status &&! isLoggedIn) singleStoryCookie (data.article_id);
isSponsored = data.sponsored_status
ADPostId = data.article_id;
$ (". next_article: last"). hide ();
data.page_no_i = data.page_no + 1;
data.encoded_permalink = encodeURI (data.permalink);
// Related stories start
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);
});
// get_related_stories (data.page_no, data.article_id, sponsored, 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 rendered = Mustache.render (model, 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);
}
$ (# Main-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, & 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 clbadification code");
var mpucode = $ (". topadbnr: last"). attr ("data-mpu-code");
if (! data.is_magazine)
{
$ ("# topadbnr"). html (data.leaderboard_ad);
if (! data.is_mobile)
{
$ (Div.side-small-adbanner-first & # 39;) .html (data.mpu_ad);
}
}
leaderboardAd = data.leaderboard_ad;
mpuAd = data.mpu_ad;
var storyLeaderboardID = $ (# topadbnr div). attr ("ad-location-id");
ADcont [0] = eval (storyLeaderboardID);
if (! data.is_mobile)
{
dfpCount = 0;
totalInterval = 0;
clearInterval (ADintervalLeaderboard);
autoADtimerLeaderboard ();
clearInterval (ADintervalMPU);
autoADtimerMPU ();
}
var currentDiv = $ ("# single_story _" + (parseInt (page number)) + & # 39; _ + next_article_id);
cnReplaceUrlandTitle (currentDiv.attr ("data-post-title"), currentDiv.attr ("data-link"));
gtmSingleContinuousScroll ();
if (! data.is_mobile)
{
$ (# Single_story_1 _ + data.article_id + & # 39; .in-story-slideshow & # 39;). each (function () {
gtmNextArrowTop ();
});
}
if (animation == 1)
{
if (isMobile.any ())
{
$ ("html, body"). animate ({
scrollTop: $ ("# single_story _" + (parseInt (page_number)) + & # 39; _ + # next_article) .offset (). top - $ ("header"). outerHeight () - $ (# topadbnr & # 39;). outerHeight () + 5
}, 600, & # 39; linear);
} other {
$ ("html, body"). animate ({
scrollTop: $ ("# single_story _" + (parseInt (page_number)) + & # 39; _ + # next_article) .offset (). top - $ ("# navBar"). outerHeight () - $ (# topadbnr & # 39;). outerHeight ()
}, 600, & # 39; linear);
}
}
onloadAjax.initAll ();
});
}
} other {
if (animation == 1)
{
if (isMobile.any ())
{
$ ("html, body"). animate ({
scrollTop: $ ("# single_story _" + (parseInt (page_number)) + & # 39; _ + # next_article) .offset (). top - $ ("header"). outerHeight () - $ (# topadbnr & # 39;). outerHeight () + 5
}, 600, & # 39; linear);
} other {
$ ("html, body"). animate ({
scrollTop: $ ("# single_story _" + (parseInt (page_number)) + & # 39; _ + # next_article) .offset (). top - $ ("# navBar"). outerHeight () - $ (# topadbnr & # 39;). outerHeight ()
}, 600, & # 39; linear);
}
}
}
} other {
load_start = 1;
$ (& # 39 ;. loader_img: last & # 39;). hide ();
$ (& # 39 ;. nextb: last & # 39;). hide ();
$ (& # 39 ;. next_story_down: last & # 39;). hide ();
$ (& # 39; footer.copyright & # 39;). show ();
}
}
function load_subscription_btn_1 (guid) {
$ .ajax ({
type: & # 39; GET & # 39;
url: "https://ecom.cnidigital.in/get-campaign-products-by-slug.php",
data: "guid =" + guid,
success: function (data) {
if (data.error == 1) {
} other {
subscription_button_html (data, guid);
}
}
});
}
function subscription_button_html (data, guid) {
var output = data;
var product1 = output.products [0];
var product2 = output.products [1];
updateButtonHtml (product1, 1, guid);
updateButtonHtml (product2, 2, guid);
}
function updateButtonHtml (product, target, campaignSlug) {
if (product == undefined) {
$ (document) .find (& # 39 ;. subscribe_part & # 39;). removeClbad (& # 39; active);
$ (document) .find ('button' + target + 'popup). remove ();
} other {
var title = product.name;
if (product.desc) title = replace_brand_title ($ (& # 39;
var originalPrice = product.regular_price;
var salePrice = product.discount_price;
var productId = product.id;
if (salePrice == undefined) {
selling price = originalPrice;
var buttonHtml = & # 39; $ & # 39; + salePrice + & # 39;
& # 39 ;;
} other {
var buttonHtml = $ + originalPrice + & # 39; $ "Dirty + Dirty Price + & # 39;
& nbsp;
}
$ (& # 39 ;. button + target + & # 39; _ popup & # 39;). data ("price", salePrice);
$ (document) .find ('button +' + target + 'popup') .html (buttonHtml);
applyIntPrice (originalPrice, salePrice, target);
}
}
function replace_brand_title (title) {
title = title.toUpperCase ();
title = title.replace ("GQ -", "");
title = title.replace ("GQ-", "");
title = title.replace ("GQ", "");
title = title.trim ();
title = title.replace (/ / gi, & # 39;);
return of the title;
}
function applyIntPrice (originalPrice, salePrice, target) {
if (country_code == "INT")
{
/ * $. ajax ({
type: & # 39; POST & # 39;
url: "https://api.fixer.io/latest?symbols=INR,USD&base=INR",
success: function (data) {* /
result = 1/69; // data.rates.USD;
originalPrice = originalPrice * result;
originalPrice = originalPrice.toFixed (2);
salePrice = salePrice * result;
salePrice = salePrix.to Fixed (2);
$ (& # 39 ;. button + target + & # 39; _ popup & # 39;). data ("price", salePrice);
$ (& # 39 ;. button + target + & # 39; _ popup .salePrice & # 39;). html (& # 39; + salePrix);
$ (& # 39 ;. button + target + & # 39; _ popup .strike & # 39;). html (& # 39; + original price);
/ *}
}); * /
}
}
function createCookie (name, value, days) {
if (days) {
var date = new Date ();
date.setTime (date.getTime () + (days * 24 * 60 * 60 * 1000));
var expires = "expires =" + date.toGMTString ();
} else var expires = "";
document.cookie = name + "=" + value + expires + "; path = /";
}
var keys = {
37: 1,
38: 1,
39: 1,
40: 1
}
function preventDefault (e) {
e = e || window.event;
if (e.preventDefault) e.preventDefault ();
e.returnValue = false;
}
function preventDefaultForScrollKeys (e) {
if (keys [e.keyCode]) {
preventDefault (e);
return false;
}
}
function disableScroll () {
if (window.addEventListener) // old FF
window.addEventListener ('DOMMouseScroll', preventDefault, false);
window.onwheel = preventDefault; // modern standard
window.onmousewheel = document.onmousewheel = preventDefault; // old browsers, IE
window.ontouchmove = preventDefault; // mobile
document.onkeydown = preventDefaultForScrollKeys;
document.addEventListener (& # 39; touchmove & # 39; function (evt) {
evt.preventDefault ();
});
$ (& # 39; html & # 39;). we (scroll scrollmove mousewheel, function (e) {
e.preventDefault ();
e.stopPropagation ();
return false;
})
$ (& # 39; html, body & # 39;). css (height height, $ (window) .height () - 50);
$ (& # 39; html, body & # 39;). css (& # 39; overflow & # 39; hidden & # 39;);
}
[ad_2]
Source link