You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

117 lines
4.4 KiB

$(async function() {
await VIP_API();
});
/*
const STEAM_TRADE = "https://steamcommunity.com/tradeoffer/new/?partner=47239992&token=8gNFVl7h";
const QIWI_TRADE = "https://qiwi.com/payment/form/99?currency=643&amount=(AMOUNT)&extra%%5B%%27comment%%27%%5D=(COMMENT)&extra%%5B%%27account%%27%%5D=%%2B79207516287&blocked%%5B0%%5D=account";
$('#Modal_SelectPayMethod_Close').click(async function(ev) {
ev.preventDefault();
$('#Modal_SelectPayMethod').modal('hide');
});
*//*
$('#Section_VIP_buttons_month').click(async function(ev) {
ev.preventDefault();
console.log("vip button presed");
document.getElementById('Modal_SelectPayMethod_QIWI_Button').href = QIWI_TRADE;
document.getElementById('Modal_SelectPayMethod_QIWI_Value').innerHTML = "150 Рублей";
document.getElementById('Modal_SelectPayMethod_STEAM_Button').href = STEAM_TRADE;
document.getElementById('Modal_SelectPayMethod_STEAM_Value').innerHTML = "1 Ключ";
$('#Modal_SelectPayMethod').modal('show');
return false;
});*/
/*
function generate_vip_table(steamid3) {
let h_size = "h4"
let table = `
<div class="col text-center rounded border border-dark gy-3 p-4" style="background-color: #E2EFDE;">
<${h_size}>Если ты выбираешь оплату киви, тебе переадресует на страницу оплаты.</${h_size}>
<${h_size}>Если оплатить через трейд бота в стиме, тебе перекинет в стим, где ты должен скинуть нужные вещички. SteamGuard с твоей стороны должен быть включен.</${h_size}>
<table class="table">
<thead>
<tr>
<th scope="col">Количество дней</th>
<th scope="col">Рублями через QIWI</th>
<th scope="col">Обмен Steam</th>
</tr>
</thead>
<tbody>
<tr>
<th>Сутки</th>
<th><a href="https://qiwi.ru">20 Рублей</a></th>
<th><a href="https://steam.com">5 Рефов</a></th>
</tr>
<tr>
<th>Неделя</th>
<th><a href="https://qiwi.ru">75 Рублей</a></th>
<th><a href="https://qiwi.ru">20 Рефов</a></th>
</tr>
<tr>
<th>Месяц</th>
<th><a href="https://qiwi.ru">150 Рублей</a></th>
<th><a href="https://qiwi.ru">1 Ключ</a></th>
</tr>
</tbody>
</table>
</div>
`
return table;
}
function current_vip(permition) {
let check_vip;
if(permition == null) {
check_vip = `
<h2>У тебя нет випки, может стоит ее прикупить??</h2>
<h5><a href="#VIPSection" data-toggle="tab">> КУПИТЬ <</a></h3>
`
} else {
let start_vip;
if (permition["UNIX_TIMESTAMP(`reg_date`)"] == 0){
start_vip = "с момента создания";
} else {
start_vip = UNIX2TIMESTAMP(permition["UNIX_TIMESTAMP(`reg_date`)"]);
}
let end_vip;
if(permition.amount == 0){
end_vip = "бесконечны";
} else {
end_vip = UNIX2TIMESTAMP(permition["UNIX_TIMESTAMP(`reg_date`)"] + permition.amount);
}
check_vip = `
<h2>VIP права на текущий момент</h2>
<table class="table">
<thead>
<tr>
<th scope="col" alt="ок">Steam ID 3</th>
<th scope="col" alt="ок">Доступ</th>
<th scope="col" alt="ок">Дата получения</th>
<th scope="col" alt="ок">Дата окончания</th>
</tr>
</thead>
<tbody>
<tr>
<th>${permition.identity}</th>
<th>${permition.status}</th>
<th>${start_vip}</th>
<th>${end_vip}</th>
</tr>
</tbody>
</table>
<h5><a href="#VIPSection" data-toggle="tab">Продлить права...</a></h3>
`
}
return `
<div class="col text-center rounded border border-dark gy-3 p-4" style="background-color: #E2EFDE;" id="ProfileVip">
${check_vip}
</div>
`;
}
*/
async function VIP_API() {
}