loktar00 / loktar00/JQuery-Snowfall
More then one image
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 715
- Forks
- 218
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for this usefull extension! The most other don't support images. In this case I have adapted your script for my needs to support more then one image and think it can be useful:
search:
if(options.image){
flakeMarkup = $(document.createElement("img"));
flakeMarkup[0].src = options.image;
}
replace:
if(options.image){
flakeMarkup = $(document.createElement("img"));
flakeMarkup[0].src = options.image;
}else if(options.images){
flakeMarkup = $(document.createElement("img"));
flakeMarkup
.hide()
.attr('src', options.images[random(0, options.images.length - 1)])
.load(function() {
$(this).fadeIn();
});
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the existing options.image handling shown in the issue and inspect how image options are documented and consumed. Verify the proposed options.images array behavior, including random selection and fade-in loading, and add coverage where the project currently tests image handling. Done means multiple images work without changing the existing single-image option.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100