PLEASE NOTE: Currently, delivery times may take up to 1-2 weeks, depending on your state. Due to volume of delays and customer questions, please do not reach out for shipping updates until week 3! We will not have any freight information to give due to the delay. Please allow 24-48 hours for a response. Thank You!
function MulchCalc() {
var a = document.getElementById("ppsft").value;
var b = (document.getElementById("Depther").value / 12);
var c = document.getElementById("Widther").value;
var d = document.getElementById("Lengther").value;
if (a > 0) {
if (b > 0) {
if (c > 0) {
if (d > 0) {
var math = a * c * d;
var tpo = Math.round((math * 10) / 10).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
jQuery("#tpo").html(tpo);
g = math / 2000;
var tto = g.toFixed(2);
jQuery("#tto").html(tto);
var tba = Math.round(((math * 10) / 10) / 40).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
jQuery("#tba").html(tba);
var tpa = Math.ceil((math / 20) / 100);
jQuery("#tpa").html(tpa);
jQuery("#mulch_results").addClass('show-results');
setTimeout(function () {
jQuery("#total_lbs").addClass('grow');
}, 300);
setTimeout(function () {
jQuery("#total_tons").addClass('grow');
}, 500);
setTimeout(function () {
jQuery("#total_bags").addClass('grow');
}, 700);
setTimeout(function () {
jQuery("#total_pallets").addClass('grow');
}, 900);
}
else { var calcerror = '
*Length has not been set properly
'; $("#calcerror").html(calcerror);}
}
else { var calcerror = '
*Width has not been set properly
'; $("#calcerror").html(calcerror);}
}
else { var calcerror = '
*Depth has not been set properly
'; $("#calcerror").html(calcerror);}
}
else { var calcerror = '
*Pounds Per Square Inch has not been set properly
'; $("#calcerror").html(calcerror);}
};
function ChangeLbsSqFt(e) {
var t = e.value;
if (t == 1) { document.getElementById("ppsft").value = "2.33"; }
if (t == 2) { document.getElementById("ppsft").value = "3.495"; }
if (t == 3) { document.getElementById("ppsft").value = "4.66"; }
if (t == 4) { document.getElementById("ppsft").value = "6.99"; }
if (t == 5) { document.getElementById("ppsft").value = "9.32"; }
if (t == 6) { document.getElementById("ppsft").value = "11.65"; }
if (t == 7) { document.getElementById("ppsft").value = "13.98"; }
console.log(t);
};