Errorr
- Dominant language
- JavaScript
- Stars
- 1.6k
- Forks
- 441
- PR merge metrics
- No merged PRs in 30d
Description
It is very easy! We can use flag to work out this problem!
My code:
var isLinkTo = 1;
var S = new iSlider(document.getElementById('rec-silder'), list, {
isAutoplay: 0,
isLooping: 1,
isOverspread: false,
animateTime: 800,
plugins: ['dot'],
renderComplete: function () {
},
onSlideStart: function (e) {
isLinkTo = 1;
},
onSlide: function (e) {
isLinkTo = 0;
},
onSlideEnd: function (e) {
if (isLinkTo === 1) {
window.location.href = "www.baidu.com";
}
}
});
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue provides a JavaScript iSlider configuration with an onSlideEnd entry point, but it does not identify an error, expected behavior, repository file, or test. First clarify what is failing and how to reproduce it; completion criteria cannot be determined from the current report.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100