async function S() {
let ip, res;
ip = await fetch(`https://api6.ipify.org?format=json`, {method: 'GET'});
ip = ip.json();
ip.then(async ip => {
res = await fetch(`https://suggestions.dadata.ru/suggestions/api/4_1/rs/iplocate/address?ip=${ip.ip}`, {
method: 'GET',
Authorization: "ххх",
Accept: "application.json"
});
res = res.json();
console.log(res);
});
}
const inputs = `<div id='inputs'>
<input type='number' step='${step}' id='bet_num' onclick='if(this.value < ${start_bet}) $(this).val(${start_bet});' oninput='return $(this).val()' placeholder='Ставка минимум: ${start_bet}руб./кг'>
<div class="mass"><div id="value">${mass}кг</div><div id="add">+</div><div id="remove">-</div></div>
<div class="result_bet">${start_bet * current_mass} р.</div>
<button id='submit'>Предложить</button>
</div>`;