hosting payment page

This commit is contained in:
Arvind Tiwari 2018-04-25 15:55:58 +05:30
commit f66d768ecb
6 changed files with 41 additions and 16 deletions

View file

@ -219,12 +219,11 @@ $( document ).ready(function() {
window.coresUnitPrice = 5;
}
if(typeof window.ramUnitPrice === 'undefined'){
window.coresUnitPrice = 2;
window.ramUnitPrice = 2;
}
if(typeof window.ssdUnitPrice === 'undefined'){
window.ssdUnitPrice = 0.6;
}
console.log(coresUnitPrice, ramUnitPrice, ssdUnitPrice, cardPricing)
var total = (cardPricing['cpu'].value * window.coresUnitPrice) +
(cardPricing['ram'].value * window.ramUnitPrice) +
(cardPricing['storage'].value * window.ssdUnitPrice);