function normalMatches() {
formUpdate();
if (duo_regular === true) {
$(".solo-options, .solo-text").addClass("d-none");
$(".solo-options, .solo-text").removeClass("d-flex");
$(".duo-options, .duo-text").addClass("d-flex");
$(".duo-options, .duo-text").removeClass("d-none");
$(".solo-options :input").prop("checked", false);
streaming = false;
} else {
$(".duo-options, .duo-text").addClass("d-none");
$(".duo-options, .duo-text").removeClass("d-flex");
$(".solo-options, .solo-text").addClass("d-flex");
$(".solo-options, .solo-text").removeClass("d-none");
$(".duo-options :input").prop("checked", false);
duo_premium = false;
}
//price
if (getRegion(server) == 'EU'){
pricepergame = 70;
}else{
pricepergame = 70;
}
price = pricepergame * games_amount;
completion_time = 1 * games_amount;
if (getRegion(server) == 'OTHER') {
price += price * 0.0;
}
if (duo_regular === true) {
price += price * 0.4;
}
subtotal_price = price.toFixed(2);
extra_price = 0;
if (priority_boost === true) {
extra_price += price * 0.2;
}
if (streaming === true) {
extra_price += price * 0.15;
}
if (prime_time === true) {
extra_price += price * 0.0;
}
if (duo_premium === true) {
extra_price += price * 0.3;
}
extra_price = extra_price.toFixed(2);
price = price + parseFloat(extra_price);
price = price - (price * discount)
price = price.toFixed(2);
updateSummary();
}
...
price = price.toFixed(2);
...
price = r=(+n)price.toFixed(2).replace(/([0-9]+(\.[0-9]+[1-9])?)(\.?0+$)/,'$1');
// Идут расчеты
price = ...
// Делается вывод на страницу
element.innerHTML = price.toFixed();