Table of Contents
Calculate the Price
Price (USD): $11
var addon = document.getElementsByClassName('addon'), total = document.getElementById('payment-total'); for (var i=0; i < addon.length; i++) { addon[i].onchange = function() { var add = this.value * (this.checked ? 1 : -1); total.innerHTML = parseFloat(total.innerHTML) + add document.getElementById('addontotal').value = total.innerHTML; } }
$(document).on("change",function(){
var pages = $('[name="order_pages"]').val(); var ac=$('[name="order_deadline"]:checked').val(); var cap=$('[name="ops_aclevel"]:checked').val(); var num = (parseFloat(cap)*parseFloat(ac)*parseFloat(pages)); var n = num.toFixed(2);
document.getElementById('order_amount').value = parseFloat(n); document.getElementById('words').value = parseFloat(pages)*275;
$(".wordcount").html(parseFloat(pages)*250 + " words"); $(".orderamountc").html("Price (USD): $" + n);
});
function myFunction() { var y = document.getElementById("a4").value; var z = document.getElementById("a3").value; var x = y + z; document.getElementById('a5').value = parseFloat(NameValue); }
//plugin bootstrap minus and plus //http://jsfiddle.net/laelitenetwork/puJ6G/ $('.btn-number').click(function(e){ e.preventDefault();
fieldName = $(this).attr('data-field'); type = $(this).attr('data-type'); var input = $("input[name='"+fieldName+"']"); var currentVal = parseInt(input.val()); if (!isNaN(currentVal)) { if(type == 'minus') {
if(currentVal > input.attr('min')) { input.val(currentVal - 1).change(); } if(parseInt(input.val()) == input.attr('min')) { $(this).attr('disabled', true); }
} else if(type == 'plus') {
if(currentVal < input.attr('max')) { input.val(currentVal + 1).change(); } if(parseInt(input.val()) == input.attr('max')) { $(this).attr('disabled', true); } } } else { input.val(0); } }); $('.input-number').focusin(function(){ $(this).data('oldValue', $(this).val()); }); $('.input-number').change(function() { minValue = parseInt($(this).attr('min')); maxValue = parseInt($(this).attr('max')); valueCurrent = parseInt($(this).val()); name = $(this).attr('name'); if(valueCurrent >= minValue) { $(".btn-number[data-type='minus'][data-field='"+name+"']").removeAttr('disabled') } else { alert('Sorry, the minimum value was reached'); $(this).val($(this).data('oldValue')); } if(valueCurrent <= maxValue) { $(".btn-number[data-type='plus'][data-field='"+name+"']").removeAttr('disabled') } else { alert('Sorry, the maximum value was reached'); $(this).val($(this).data('oldValue')); } }); $(".input-number").keydown(function (e) { // Allow: backspace, delete, tab, escape, enter and . if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 190]) !== -1 || // Allow: Ctrl+A (e.keyCode == 65 && e.ctrlKey === true) || // Allow: home, end, left, right (e.keyCode >= 35 && e.keyCode <= 39)) { // let it happen, don't do anything return; } // Ensure that it is a number and stop the keypress if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) { e.preventDefault(); } });
"
What Students Are Saying About Us
.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐"Honestly, I was afraid to send my paper to you, but you proved you are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"
.......... Customer ID: 11***| Rating: ⭐⭐⭐⭐⭐
"This company is the best there is. They saved me so many times, I cannot even keep count. Now I recommend it to all my friends, and none of them have complained about it. The writers here are excellent."