10 superfoods to consist of in your weight loss diet plan
If accomplishing weight loss is among your most difficult (continuous) fight, we’re here to assist you battle it quickly. You understand that your diet plan plays a more crucial function than workouts to assist you shed weight. And with the dreadful summertime heat in shop for you for the next number of months, obtaining out of bed to sweat it out at the health club is going to be even harder. So, to get you begun on your alternate weight loss strategy to keep you on track for your physical fitness objective, we’ve got you 10 superfoods to consist of in your everyday diet plan. They’re healthy, season-appropriate and will have you drop weight in no time. Check them out listed below.
10 superfoods to consist of in your diet plan this summertime for fast weight loss
There are numerous elements that tend to impact weight loss such as specific physique, way of life, metabolic rate, exercise level, diet plan quality etc. But if you include specific foods that are both healthy and low in calories, you can enhance weight loss in a healthy way. These foods that assist you achieve your objective quickly are called superfoods. Superfoods don’t simply provide your body with vital minerals and vitamins however likewise include substances which assist burn fat quicker. We’ve noted out all the superfoods to begin consuming this summertime:
1. Blueberries
Berries are incredibly abundant in anti-oxidants and ones such as blueberries and raspberries are incredibly healthy. Blueberries help in weight loss owing to the antioxidant material together with soluble fiber material. They likewise promote satiety to keep you from snacking in between meals.
2. Grapefruit
This citrus fruit in an orange-pink colour is among the very best fruits understood to promote weight loss. According to previous research studies, taking in some fresh grapefruit a couple of minutes prior to your meal can lead to reliable weight loss. Grapfruit is likewise a water-heavy fruit which keeps you hydrated and complete.
3. Apples
Apples include dietary fiber, anti-oxidants, vital minerals and vitamins. They are delicious and will keep you feeling complete for long. You can either take in apples as an entire fruit at breakfast or include them in cereals or salads for lunch. Apples can likewise be a healthy treat to chomp on at night and you can likewise prepare (sugar-free) desserts with apples owing to their natural sweet taste.
4. Almonds
Nuts are terrific for weight loss because they produce filling treats, hence assisting you prevent processed food. They are abundant in vital nutrients, minerals, proteins advertisement fiber which are all important for weight loss. Almonds likewise include monosaturated fats which promote healthy, radiant skin. Along with all the above advantages, almonds likewise include vitamin C and zinc which are understood to reduce sweet yearnings.
5. Flax seeds
Flax seeds might likewise produce terrific weight loss treats. They include extremely little calories, are abundant in fiber which keeps you complete for longer. They are abundant in nutrients vital for weight loss and likewise include omega-3 fats which assist avoid weight problems. Flax seeds are likewise understood to reduce hunger.
6. Green tea
Although summertime isn’t the very best time to take in green tea because it triggers a burning feeling, it includes catechins which increases your body’s metabolic process and enhances its capability to burn more fat. Green tea is likewise a diuretic and assists you lose water weight quickly. It likewise minimizes the body’s capability to soak up fat which eventually results in weight loss.
7. Oatmeal
Oatmeal is among the very best breakfast alternatives if you’re on the mission for weight loss. It is thought about as a weight loss superfood because it has the capability to keep you satisfied for longer. It supplies your body with adequate energy to last you for hours and likewise manages your blood sugar level levels. Oatmeal includes beta glucan, a sort of soluble fiber, understood to manage the level of fat in the body.
8. Egg whites
Eggs are packed with proteins and are thought about among the most healthy breakfast alternatives because it keeps you complete for a longer duration. Egg whites are low in calories and consuming them gets rid of the desire to treat in between meals.
9. Lentils
Lentils such as moong, masoor and urad are terrific for weight loss because they are an excellent source of plant protein and are abundant in fiber, proteins and resistance starch – all of which improves your metabolic procedure, allowing your body to burn fat faster and drop weight.
10. Olive oil
Olive oil is thought about to be among the healthiest kinds of cooking oil and is popular for promoting weight loss. It allows you to burn fat due to the oleic acid material present in it which assists break down excess fat in the body quicker.
NOW READ
11 vegan breakfasts under 450 calories that are so easy, even you can make them
20 secret superfoods that will help you live longer
Lose weight and burn belly fat fast with this tasty, easy to make drink
> More on Fitness
“;
var magazineid = ”;
var randomInterval = 5000;
var adDelay = 10000;
var videoadDelay = 3000;
var mobAdDelay = 5000;
var adpause = real;
var currentAdSlot = “”;
var currentPos = 0;
var currentScroll;
var firsttime = real, doitfornext = incorrect;
var crossed = incorrect;
// 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(‘cn_country’))
{
country_code = Cookies.get(‘cn_country’);
} else {
$.getJSON(‘https://www.gqindia.com/ip2country.php’, function(information) {
country_code = data.country;
});
}
});
$(file).prepared(function() {
$.ajaxSetup({ cache: real });
$.getScript(‘//connect.facebook.net/en_US/sdk.js’, function(){
FB.init({
appId: ‘543661672486127’,
variation: ‘v2.8’
});
FB.XFBML.parse();
});
});
$(window).scroll(function (occasion) {
currentScroll = $(window).scrollTop()+$(window).height();
if (currentScroll > currentPos)
{
currentPos = currentScroll;
crossed = real;
}
});
var concealed, state, visibilityChange;
if (typeof document.concealed !== “undefined”) {
concealed = “hidden”;
visibilityChange = “visibilitychange”;
state = “visibilityState”;
} else if (typeof document.mozHidden !== “undefined”) {
concealed = “mozHidden”;
visibilityChange = “mozvisibilitychange”;
state = “mozVisibilityState”;
} else if (typeof document.msHidden !== “undefined”) {
concealed = “msHidden”;
visibilityChange = “msvisibilitychange”;
state = “msVisibilityState”;
} else if (typeof document.webkitHidden !== “undefined”) {
hidden = “webkitHidden”;
visibilityChange = “webkitvisibilitychange”;
state = “webkitVisibilityState”;
}
var sb_focus = “focused”;
window.addEventListener(‘focus’, function() {
sb_focus =’focused’;
});
window.addEventListener(‘blur’, function() {
sb_focus = ‘not focused’;
});
window.onblur = function() { window.blurred = real; };
window.onfocus = function() { window.blurred = incorrect; };
window.addEventListener(‘message’, function(occasion) {
if (~event.origin.indexOf(‘https://www.gqindia.com’)) {
if(event.data.event && event.data.event == “CN-AD-refresh”)
{
if(file[state] != ‘noticeable’) { return; }
if(sb_focus == ‘not focused’) { 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().revitalize([eval(event.data.slot)] );
});
}
}
} else {
return;
}
});
$(file).prepared(function() {
var load_start = 0;
var singleEnd = 0 ;
var sb_focus=”focused”;
window.addEventListener(‘focus’, function() {
sb_focus =’focused’;
});
window.addEventListener(‘blur’, function() {
sb_focus = ‘not focused’;
});
$(“img.lazy”).lazyload({
skip_invisible : real
});
autoADtimerLeaderboard = function() {
ADintervalLeaderboard = window.setInterval(function(){
if(file[state] != ‘noticeable’) { return; }
if(sb_focus == ‘not focused’) { return; }
if(real)
{
var leaderboardAdSlot = $(“.topadbnr:last div”).attr(“ad-slot-id”);
googletag.cmd.push(function() {
googletag.pubads().revitalize([eval(leaderboardAdSlot)] );
});
}
}, randomInterval);
}
autoADtimerMPU = function() {
ADintervalMPU = window.setInterval(function(){
if(file[state] != ‘noticeable’) { return; }
if(sb_focus == ‘not focused’) { return; }
if(real)
{
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(function() {
googletag.pubads().revitalize([eval(mpuAdSlot)] );
googletag.pubads().revitalize([eval(newAdSlot)] );
});
} else {
var mpuAdSlot = $(“div.side-small-adbanner-first div”).attr(“ad-slot-id”);
googletag.cmd.push(function() {
googletag.pubads().revitalize([eval(mpuAdSlot)] );
});
}
}
}, randomInterval);
}
autoADtimerLeaderboard();
autoADtimerMPU();
$(window).scroll(function(e) {
if ($(window).scrollTop() >= ($(file).height() – $(window).height() – ($(window).height()*0.2) )) {
infinite_single_json(Articlecount, 0);
}
});
gtmFirstLoad();
$(‘#single_story_1_187286 .in-story-slideshow’).each(function(){
gtmNextArrowTop();
});
// get_related_stories(‘0′,’187286′,’no’,’8′,”);
onloadAjax.housePageSliderInit();
});
$(file).on(“click”,”.addFbComment”,function(){
var commentMarkup = ‘
$(this).moms and dads(‘div.comment_section’).html(commentMarkup);
FB.XFBML.parse();
});
function cn_lr_logout_callback()
function cn_lr_login_cookie_callback()
function check_ref_sub(postid, issue_id, referer, guid, page_no = 0){
$.ajax({
type: ‘POST’,
url: ‘https://www.gqindia.com/wp-admin/admin-ajax.php’,
async: false,
data: “action=getsubstatus” + “&postid=” + postid + “&issue_id=” + issue_id + “&referer=” + referer,
success: function (data) {
console.log(data);
console.log(‘ Test ‘)
if (data === ‘ blocked’ || data === ‘blocked’)
{
var blockedhtml = ‘
‘+marketing_text+’
Already purchased? LoginTo read this & more magazine stories, subscribe to the digital edition now.
‘;
setTimeout(function(){
gtmMagazineHomeSubscribe(“WebStory Page”, “Subscribe Button Impressions”);
}, 500);
var pTagCount = 0;
var pETop = 0
var targetPtag;
$.each($(“#post-“+postid+” .single-story-body”).children(‘p’),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).addClass(‘regwalled-slide’);var regSlider = $(this).parents(‘div.cycle-slideshow’); $(this).prev(‘.instory-slide-counter’).hide(); }
if(pTagCount>(parseInt(regwallSlides)+1)){ $(this).prev(‘.instory-slide-counter’).remove(); $(this).remove(); }
if(pTagCount==regwallSlides) sETop = $(this).offset().top;
});
if(typeof targetPtag !== “undefined” && (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).hasClass(‘subscription_popup_single’)) $(this).remove();
});
$.each($(“#post-“+postid).children(),function(){
if(pETop!=0&&$(this).offset().top>pETop&&!$(this).hasClass(‘nextbutton’)&&!$(this).hasClass(‘socialShare’))
{
if(pETop!=sETop){} else $(this).remove();
}
});
$(“#post-“+postid+” .storyLink”).remove();
if(guid != ” && guid !== undefined){ load_subscription_btn_1(guid); }else{ $(‘.button1_popup’).remove(); }
} else if(data === ‘ blockedref’ || data === ‘blockedref’) {
}
}
});
}
var ctaFallback = “”;
//load cta
function 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+’?action=get_instory_cta_ajax’,
type:’POST’,
data: {“page_no”:pageNumber,’post_id’: post_id, ‘isLoggedIn’ : isLoggedIn,’category_id’:category_id,’magazineid’ : magazineid}
}).done(function(data) {
data = JSON.parse(data);
ctaFallback = data.cta1;
if(ctaFallback == “Fallback”) $(“#div-gpt-ad-“+ctaSlot).html(ctaFallback);
$(“.cta_holder-“+pageNumber+”-b”).html(data.cta2);
});
}
//Get Related Stories Ajax
function get_related_stories(pageNumber, post_id, sponsored, category_id, topic_ids) {
$.ajax({
url: action_url+’?action=related_story_ajax’,
type:’POST’,
data: {“page_no”:pageNumber,’post_id’: post_id,’sponsored’:sponsored,’category_id’:category_id,’rel_ids’:$(“#get_all_post_ids”).val(),’topic_ids’:topic_ids}
}).done(function(data) {
$(“#related-stories-“+pageNumber).html(data);
onloadAjax.homePageSliderInit();
});
}
//get 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(‘p’).length > 1 && $(“#post-“+post_id+” .single-story-body .slide”).length > 1)
{
if($(“#post-“+post_id+” .single-story-body”).children(‘p’).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);
} else {
$(“#post-“+post_id+” .single-story-body”).children(‘p’).eq(1).after(ctaHtml);
}
} else {
if($(“#post-“+post_id+” .single-story-body”).children(‘p’).length > 2)
{
$(“#post-“+post_id+” .single-story-body”).children(‘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”).children(‘p’).length>2)
$(“#post-“+post_id+” .single-story-body”).children(‘p’).eq(1).after(ctaHtml);
}
}
//ad check
googletag.cmd.push(function() {
googletag.pubads().addEventListener(‘slotRenderEnded’, function(e) {
if(e.isEmpty){
if($(“#”+e.slot.getSlotElementId()).hasClass(“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’).data(‘init’))
{
var leaderboardAdSlot = $(“.topadbnr:last div”).attr(“ad-slot-id”);
googletag.pubads().refresh([eval(leaderboardAdSlot)] );
$(‘#topadbnr’).data(‘init’,true);
}
}
} else {
$(“#”+e.slot.getSlotElementId()).parent(“.adinsert”).slideDown(400);
}
});
});
//Get Next Story
function infinite_single_json(pageNumber, animation) {
if (typeof(animation)===’undefined’) animation = 0;
$(‘.loader_img:last’).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)!==’undefined’)
{
if($(“#single_story_”+(parseInt(pageNumber))+’_’+next_article_id).length == 0)
{
if(load_start==0)
{
load_start = 1;
var action_url = ‘https://www.gqindia.com/wp-admin/admin-ajax.php’;
$.ajax({
url: action_url+’?action=infinite_single_json’,
type:’POST’,
data: {“page_no”:pageNumber,’get_all_post_ids’: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
var sponsored = ‘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(‘,’));
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(‘cn_bid’))
{
dataLayerBID = Cookies.get(‘cn_bid’);
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, ‘internal’, 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)
{
$(“#topadbnr”).html(data.leaderboard_ad);
if(!data.is_mobile)
{
$(‘div.side-small-adbanner-first’).html(data.mpu_ad);
}
}
leaderboardAd = data.leaderboard_ad;
mpuAd = data.mpu_ad;
var storyLeaderboardID = $(‘#topadbnr div’).attr(“ad-slot-id”);
ADcont[0] = eval(storyLeaderboardID);
if(!data.is_mobile)
{
dfpCount = 0;
totalInterval = 0;
clearInterval(ADintervalLeaderboard);
autoADtimerLeaderboard();
clearInterval(ADintervalMPU);
autoADtimerMPU();
}
if(ADPostId) {
var article__published_date = data.timeStamp;
var article__modified_date = data.modified_timeStamp;
var tags = mainTopictag();
var custom_meta = [];
custom_meta[‘id’] = ADPostId;
custom_meta[‘title’] = data.title;
custom_meta[‘description’] = data.summary;
custom_meta[‘tags’] = tags;
if(tags==’N/A’){
custom_meta[‘tags’] = [] ;
}
custom_meta[‘category’] = area();
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($(document).find(‘#single_story_1_’+ADPostId+’ .post-author .contriName’).length == 1){
custom_meta[‘contributorNames’] = $(document).find(‘#single_story_1_’+ADPostId+’ .post-author .contriName’).text();
}else{
custom_meta[‘contributorNames’] = author();
}
/* Permutive code addon script */
var obj = {…custom_meta};
obj.contributorNames = [obj.contributorNames] ;
permutive.addon(“web”, {
page: {
type: “article”,
article:obj
}
});
}
var currentDiv = $(“#single_story_”+(parseInt(pageNumber))+’_’+next_article_id);
cnReplaceUrlandTitle(currentDiv.attr(“data-post-title”), currentDiv.attr(“data-link”));
gtmSingleContinuousScroll();
if(!data.is_mobile)
{
$(‘#single_story_1_’+data.article_id+’ .in-story-slideshow’).each(function(){
gtmNextArrowTop();
});
}
if(animation==1)
{
if(isMobile.any())
{
$(“html, body”).animate({
scrollTop: $(“#single_story_”+(parseInt(pageNumber))+’_’+next_article_id).offset().top – $(“header”).outerHeight() – $(‘#topadbnr’).outerHeight() + 5
}, 600, ‘linear’);
} else {
$(“html, body”).animate({
scrollTop: $(“#single_story_”+(parseInt(pageNumber))+’_’+next_article_id).offset().top – $(“#navBar”).outerHeight() – $(‘#topadbnr’).outerHeight()
}, 600, ‘linear’);
}
}
onloadAjax.initAll();
});
}
} else {
if(animation==1)
{
if(isMobile.any())
{
$(“html, body”).animate({
scrollTop: $(“#single_story_”+(parseInt(pageNumber))+’_’+next_article_id).offset().top – $(“header”).outerHeight() – $(‘#topadbnr’).outerHeight() + 5
}, 600, ‘linear’);
} else {
$(“html, body”).animate({
scrollTop: $(“#single_story_”+(parseInt(pageNumber))+’_’+next_article_id).offset().top – $(“#navBar”).outerHeight() – $(‘#topadbnr’).outerHeight()
}, 600, ‘linear’);
}
}
}
} else {
load_start = 1;
$(‘.loader_img:last’).hide();
$(‘.nextb:last’).hide();
$(‘.next_story_down:last’).hide();
$(‘footer.copyright’).show();
}
}
function load_subscription_btn_1(guid) {
$.ajax({
type: ‘GET’,
url: “https://ecom.cnidigital.in/get-campaign-products-by-slug.php”,
data: “guid=” + guid,
success: function (data) {
if (data.error == 1) {
} else {
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(‘.subscribe_part’).removeClass(‘active’);
$(document).find(‘.button’+target+’_popup’).remove();
} else {
var title = product.name;
if (product.desc) title = replace_brand_title($(‘
var originalPrice = product.regular_price;
var salePrice = product.discount_price;
var productId = product.id;
if (salePrice == undefined) {
salePrice = originalPrice;
var buttonHtml = ‘₹ ‘ + salePrice + ‘
} else {
var buttonHtml = ‘₹ ‘ + originalPrice + ‘₹ ‘ + salePrice + ‘
}
$(‘.button’+target+’_popup’).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,”);
return title;
}
function applyIntPrice(originalPrice, salePrice, target){
if(country_code==”INT”)
{
/*$.ajax({
type: ‘POST’,
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 = salePrice.toFixed(2);
$(‘.button’+target+’_popup’).data(‘price’, salePrice);
$(‘.button’+target+’_popup .salePrice’).html(‘$ ‘ + salePrice);
$(‘.button’+target+’_popup .strike’).html(‘$ ‘ + originalPrice);
/*}
});*/
}
}
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)
function preventDefaultForScrollKeys(e) {
if (keys[e.keyCode] ) {
preventDefault(e);
return incorrect;
}
}
function disableScroll() {
if (window.addEventListener) // older FF
window.addEventListener(‘DOMMouseScroll’, preventDefault, incorrect);
window.onwheel = preventDefault; // modern standard
window.onmousewheel = document.onmousewheel = preventDefault; // older browsers, IE
window.ontouchmove = preventDefault; // mobile
document.onkeydown = preventDefaultForScrollKeys;
document.addEventListener(‘touchmove’, function(evt) {
evt.preventDefault();
});
$(‘html’).on(‘scroll touchmove mousewheel’, function(e) {
e.preventDefault();
e.stopPropagation();
return false;
})
$(‘html,body’).css(‘height’, $(window).height() – 50);
$(‘html,body’).css(‘overflow’, ‘hidden’);
}
This post is influenced from here