' + arr[
i].i +
' ' + arr[i].name +
' ' + arr[i].subname +
'
';
};
$('.static-lists').append(str);
function resize() {
var wiw = $(window).width();
wiw > 768 ?
$('.static-lists').on('mouseover', '.list', function() {
var backpic = $(this).attr('data-src');
$('.static-box').css(
"background-image", " url(" + backpic + ")"
);
}) :
$('.static-lists').on('click', '.list', function() {
var backpic = $(this).attr('data-src');
$('.static-box').css(
"background-image", " url(" + backpic + ")"
);
});
};
resize();
$(window).resize(function() {
resize();
})
});