<Image className="card-img-top profile__img img-vehicle" source={{uri:`https://localhost/image/${params.name.image}.jpg`}} />
function getLang(lang) {
var d = $.Deferred();
$.getJSON(gInit['url'] + '/lang/'+getCookie('lang')+'.json', function(data) {
var items = [];
$.each(data, function(key, val) {
if(key == lang) {
items.push(val);
}
});
d.resolve(items);
});
return d.promise();
}
var test = getLang("users");
test.done(function (data) {
console.log(data);
});
if (api.hasOwnProperty('attachmens') && Array.isArray(api.attachments)) {
api.attachments.forEach(function (attacment) {
});
}
var tpl = {
photo: ''tpl for photo,
audio: 'some other tpl'
};
$(document).ready(function() {
$('#numberCheck').click(function() {
if($('#numberInput').val().charAt(0) == '0')
alert("Неправильно набран номер");
});
});