$.each($(' .number-all'), function (index, value) {
var id = $(value).text(),
$this = $(this);
$.ajax({
type: "POST",
dataType: "json",
url: "https://api.novaposhta.ua/v2.0/json/",
data: JSON.stringify({
"modelName": "TrackingDocument",
"calledMethod": "getStatusDocuments",
"methodProperties": {
"Documents": [
{
"DocumentNumber": id,
"Phone": ""
}]
},
"apiKey": "caeb13b660b11432a9843510578b909a"
}),
success: function(response) {
var data = response.data;
data.forEach(function(item, i, arr) {
$this.append(item.Status);
});
},
})
console.log($(value).text());
});
$(".twentytwenty-container").each(function() {
var $this = $(this);
clearTimeout(timer);
var timer = setTimeout(function() {
$this.twentytwenty({
default_offset_pct: 0.5,
no_overlay: true,
move_slider_on_hover: true,
move_with_handle_only: false,
click_to_move: false
});
}, 200);
})