-
Notifications
You must be signed in to change notification settings - Fork 229
onload and onerror #393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
maksumi
merged 35 commits into
javascript-tutorial:master
from
dbritto-dev:onload-onerror
Oct 1, 2020
Merged
onload and onerror #393
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
0e8551e
WIP
dbritto-dev 33b4a34
WIP
dbritto-dev 1b3ea1c
WIP
dbritto-dev d03b123
Minor changes
dbritto-dev 63c99ed
Minor changes
dbritto-dev e4319a3
Minor changes
dbritto-dev 64e55f6
numeracion en 117
joaquinelio 75d2e1b
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev f602cc6
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev 381618f
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev a2a972f
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev a48b291
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev c772da4
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev 22a7032
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev 59de9de
Minor changes
dbritto-dev 1c213ea
Merge branch 'onload-onerror' of github.com:danilobrinu/es.javascript…
dbritto-dev 67400ab
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev 107e42c
Merge branch 'onload-onerror' of github.com:danilobrinu/es.javascript…
dbritto-dev d815df0
Minor changes
dbritto-dev a5a61d5
Minor changes
dbritto-dev 6b8ffa5
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev 22c3bb4
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev a040bad
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev 6c7b486
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev c8e731a
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev 465f59d
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev 2c1c826
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev bcfbdc2
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev 294e010
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev 3a289ba
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev bc1d411
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev 62027d7
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev f18878d
Update 2-ui/5-loading/03-onload-onerror/article.md
dbritto-dev a3c9011
Minor changes
dbritto-dev 24bea0b
Merge branch 'onload-onerror' of github.com:danilobrinu/es.javascript…
dbritto-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
2-ui/5-loading/03-onload-onerror/1-load-img-callback/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
The algorithm: | ||
1. Make `img` for every source. | ||
2. Add `onload/onerror` for every image. | ||
3. Increase the counter when either `onload` or `onerror` triggers. | ||
4. When the counter value equals to the sources count -- we're done: `callback()`. | ||
El algoritmo: | ||
1. Crear una `img` para cada fuente. | ||
2. Agregar los eventos `onload/onerror` para cada imágen. | ||
3. Incrementar el contador cuando el evento `onload` o el evento `onerror` se dispare. | ||
4. Cuando el valor del contador es igual a la cantidad de fuentes, hemos terminado: `callback()`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.