function nsc_bara_loadGtm(a,r,t){if(!0!==window.nsc_bara_gtm_loaded){var e=nsc_bara_php_gtm_vars.dataLayerName,n=nsc_bara_php_gtm_vars.gtm_id,s=window.nsc_bara_blocked_services||[];Array.isArray(s)||(console.error("blocked is NOT an ARRAY. Please contact the author of the cookie banner plugin. This should not happen. Loading the GTM might not work correctly!",s),s=[]);for(var _=0;_\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
/*!
* cc-bmi-calculator.js v2.0.1
* Copyright 2015-2020, Calculators World
*
* Freely distributable under the MIT license.
*
* For suggestions and any issues please contact us at:
* https://calculatorsworld.com/contact
*/
var ccBMI=ccBMI||(function(){return{GetCategory:function(bmi){var bmi_category,bmi_style;bmi_style='alert-success';bmi_category='Normal BMI';if(bmi<16){bmi_style='alert-danger';bmi_category='Severe Thinness';}else if(bmi<17){bmi_style='alert-warning';bmi_category='Moderate Thinness';}else if(bmi<18.5){bmi_style='alert-info';bmi_category='Mild Thinness';}else if(bmi<25){bmi_style='alert-success';bmi_category='Normal BMI';}else if(bmi<30){bmi_style='alert-info';bmi_category='Pre Obese';}else if(bmi<35){bmi_style='alert-warning';bmi_category='Obese Class I';}else if(bmi<40){bmi_style='alert-warning';bmi_category='Obese Class II';}else{bmi_style='alert-danger';bmi_category='Obese Class III';}
this.style=bmi_style;this.category=bmi_category;}};}());jQuery(document).ready(function($J){$J(".clear_btn").click(function(e){e.preventDefault();clearForm(get_id(this.id,"clear_btn"));});$J(".calculate_btn").click(function(e){e.preventDefault();});$J('.units').change(function(){widget_id=get_id(this.name,'units');if($J('#'+widget_id+'-radioMetric').prop('checked')){$J("#"+widget_id+"-imperial").hide();$J("#"+widget_id+"-metric").show();}else{$J("#"+widget_id+"-metric").hide();$J("#"+widget_id+"-imperial").show();}
clearForm(widget_id);});$J(".weight").keydown(function(e){if(!(isDecimalKey(e,this.value)))e.preventDefault();});$J(".weight").keyup(function(){calculateMetricBMI(get_id(this.id,"weight"));});$J(".height").keydown(function(e){if(!(isDecimalKey(e,this.value)))e.preventDefault();});$J(".height").keyup(function(){calculateMetricBMI(get_id(this.id,"height"));});$J(".weight-lbs").keydown(function(e){if(!(isDecimalKey(e,this.value)))e.preventDefault();});$J(".weight-lbs").keyup(function(){calculateImperialBMI(get_id(this.id,"weight-lbs"));});$J(".height-in").keydown(function(e){if(!(isIntegerKey(e,this.value)))e.preventDefault();});$J(".height-in").keyup(function(){calculateImperialBMI(get_id(this.id,"height-in"));});$J(".height-ft").keydown(function(e){if(!(isIntegerKey(e,this.value)))e.preventDefault();});$J(".height-ft").keyup(function(){calculateImperialBMI(get_id(this.id,"height-ft"));});function clearForm(widget_id){$J('#'+widget_id+'-height-ft').val("");$J('#'+widget_id+'-height-in').val("");$J('#'+widget_id+'-weight-lbs').val("");$J('#'+widget_id+'-height').val("");$J('#'+widget_id+'-weight').val("");$J('#'+widget_id+'-BMI-Description').html("");$J('#'+widget_id+'-BMI-Description').hide();}
function calculateMetricBMI(widget_id){var weight_kg=parseFloat($J('#'+widget_id+'-weight').val()),height_m=parseFloat($J('#'+widget_id+'-height').val())/100,bmi,bmi_category;if(isNaN(weight_kg)||weight_kg===""||isNaN(height_m)||height_m===""){$J('#'+widget_id+'-BMI-Description').hide();return;}
bmi=weight_kg/Math.pow(height_m,2);bmi_category=new ccBMI.GetCategory(bmi);$J('#'+widget_id+'-BMI-value').html(round2TwoDecimals(bmi));$J('#'+widget_id+'-BMI-Description').html("
Your BMI is "+round2TwoDecimals(bmi)+"
("+bmi_category.category+")
");$J('#'+widget_id+'-BMI-Description').toggleClass('alert-success alert-info alert-warning alert-danger',false);$J('#'+widget_id+'-BMI-Description').toggleClass(bmi_category.style,true);$J('#'+widget_id+'-BMI-Description').show();}
function calculateImperialBMI(widget_id){var weight_lbs=parseFloat($J('#'+widget_id+'-weight-lbs').val()),height_ft=parseFloat($J('#'+widget_id+'-height-ft').val()),height_in=parseFloat($J('#'+widget_id+'-height-in').val()),bmi,bmi_category;if(isNaN(weight_lbs)||weight_lbs===""||isNaN(height_ft)||height_ft===""||isNaN(height_in)||height_in===""){$J('#'+widget_id+'-BMI-Description').hide();return;}
height_in=height_in+height_ft*12;bmi=(weight_lbs/Math.pow(height_in,2))*703;bmi_category=new ccBMI.GetCategory(bmi);$J('#'+widget_id+'-BMI-value').html(round2TwoDecimals(bmi));$J('#'+widget_id+'-BMI-Description').html("