JSFiddle - React, Tailwind, and code Playground
HTML
<div id="api-wb" data="1"></div>
<div id="api-wb-ld" onclick="pageMusic();">Подгрузить еще</div>
CSS
.uRblock {
margin-bottom: 8px;
border-bottom: 1px solid #d3d6db;
background: #fff;
}
.aBlock img {
width: 40px;
height: 40px;
vertical-align: middle;
object-fit: cover;
border-radius: 2px;
margin-right: 10px;
}
.aBlock b {
font-family: sans-serif;
font-size: 12px;
}
.aBlock {
padding: 10px;
position: relative;
display: flex;
}
.aLeft {
width: 100%;
overflow: hidden;
}
.aPlay {
cursor: pointer;
width: 16px;
height: 16px;
background: url(//i.imgur.com/Bm77dFj.gif) no-repeat 0px 0px;
margin: 1px 10px 0 0;
float: left;
}
.aInfo {
overflow: hidden;
position: relative;
}
.aTitle {
margin-bottom: 5px;
white-space: nowrap;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
overflow: hidden;
display: block;
}
.aTime {
position: absolute;
top: 0px;
right: 0px;
color: #777;
font-size: 11px;
}
.aPr {width:100%;height:4px;cursor:pointer;border-radius:2px;background-color:#DADFE5;z-index:3;}
.aLPr {width:0%;height:4px;cursor:pointer;border-radius:2px;background-color:#C3C7CC;z-index:4;}
.aDPr {width:0%;height:4px;cursor:pointer;border-radius:2px;background-color:#ABAEB2;z-index:5;top:-4px;position:relative;}
.aEPr {width:100%;height:4px;cursor:pointer;border-radius:2px;z-index:6;top:-8px;position:relative;}
div#api-wb-ld {
text-align: center;
padding: 5px;
background: antiquewhite;
cursor:pointer;
}
JavaScript
pageWmusic = $('#api-wb').attr('data');
function pageMusic() {
$.ajax({
type: 'POST',
cache: false,
url: 'https://woobl.ru/php/api/apiMusic/2.php',
data: '&name='+pageWmusic,
success: function(response) {
var data = JSON.parse(response);
$('#api-wb').append(data.loads.map(n =>
`<div class="uRblock" id="song${n.id}"><div id="poster" style="background:url(${n.files[0].full})"><div class="i nner"><div id="track-fon"><div class="aPlay fa fa-play" onclick="aPlayer.call(${n.id},'${n.archive_direct_url}')"></div></div><div id="times"><i class="fa fa-clock-o"></i>${n.author_site}</div></div></div><div class="name load-response">${n.title}</div></div>`));
pageWmusic = Number(pageWmusic)+Number(1);
$('#api-wb').attr('data',''+pageWmusic+'');
}
});
} pageMusic();