class MyBinance extents Binance
{
myMethod() { console.log(); }
}
///
const binance = new MyBinance();
binance.myMethod();
await binance.futuresPrices();
class MyBinance
{
constructor(public binance: Binance){}
myMethod() { console.log(); }
}
///
const binance = new MyBinance(new Binance());
binance.myMethod();
await binance.binance.futuresPrices()
binance.binance
везде. foto.style.transform = "translateX(-50vw)"
- вполне валидный кодfunction text_cleaner_fio(text){
return text
.replace(/[\W]+/, ' ') # удаление лишних символов
.replace(/([А-Я]{1}[а-яё]{0,23} [А-Я]{1}[а-яё]{0,23} [А-Я]{1}[а-яё]{0,23})|( [A-Z]{1}[a-z]{1,23} [A-Z]{1}[a-z]{1,23})$/, 'FIO'); # замена учеток
}
backend
передать ajax
'ом utm
метку?function submitForm(){
// Initiate Variables With Form Content
var name = $("#name").val();
var phone = $("#phone").val();
var message = $("#message").val();
var utm_source =$("#utm_source").val();
$.ajax({
type: "POST",
url: "php/form-process.php",
data: {
name: name,
phone: phone,
message: message,
utm_source: utm_source
},
success : function(text){
if (text == "success"){
formSuccess();
} else {
formError();
submitMSG(false,text);
}
}
});
}