Есть ли готовые решения данной задачи для веба?
Если писать с нуля, то в сторону каких инструментов смотреть? И как бы вы решали с этими инструментами задачу (поверхностно опишите)
5 000
запросов/мес
133 590 ₽
/мес
есть каталоги производителя в pdf и эксель форматеЕсли упрощенно, то можно так:
$(function () {
var images = $('.gal-img'),
active = images.eq(0);
// Some other actions
$(document)
.on('click', '.next', function(){
var next = active.next('.gal-img');
if (next.is(':last-child')) {
// stop
} else {
active = next;
// actions
}
}).on('click', '.prev', function(){
var prev = active.prev('.gal-img');
if (prev.is(':first-child')) {
// stop
} else {
active = prev;
// actions
}
});
});$(function () {
var images = $('.gal-img'),
index = 0;
// Some other actions
$(document)
.on('click', '.next', function (e) {
if (index == images.length - 1) {
// stop
} else {
index++;
var elem = images.eq(index);
// actions
}
}).on('click', '.prev', function (e) {
if (index == 0) {
// stop
} else {
index--;
var elem = images.eq(index);
// actions
}
});
});