User:Huawei251/common.js: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 34:
return 1;
}
var cycle = group.getAttribute('data-cycle') || true;
units.each(function(j, currentimage) {
console.log('unit ' + j);
Line 59 ⟶ 62:
leftlink.on('click', function() {
toggleImage(i, j, prev);
});
rightlink.on('click', function() {
toggleImage(i, j, next);
});
if (j === 0 && !cycle) {
leftlink.setDisabled(true);
} else if (j === count - 1 && !cycle) {
rightlink.setDisabled(true);
}
|