This repository was archived by the owner on May 14, 2024. It is now read-only.
File tree 2 files changed +9
-27
lines changed
Week2/homework/pokemon-app
2 files changed +9
-27
lines changed Original file line number Diff line number Diff line change 1
1
function main ( ) {
2
- function fetchData ( ) {
3
- const fetchPromise = fetch ( " https://ghibliapi.herokuapp.com/people" ) ;
4
- fetchPromise . then ( response => {
2
+ function fetchData ( ) {
3
+ const fetchPromise = fetch ( ' https://ghibliapi.herokuapp.com/people' ) ;
4
+ fetchPromise . then ( ( response ) => {
5
5
console . log ( response ) ;
6
6
} ) ;
7
7
}
8
- function addPokemonToDOM ( ) { }
9
- }
8
+ function addPokemonToDOM ( ) { }
9
+ }
Original file line number Diff line number Diff line change 23
23
< section > </ section >
24
24
< section > </ section >
25
25
< section > </ section >
26
- < select > </ select >
26
+ < select >
27
+ < option > </ option >
28
+ </ select >
27
29
< script src ="./script.js ">
28
- const placeholderRepos = [
29
- {
30
- name : 'SampleRepo1' ,
31
- description : 'This repository is meant to be a sample' ,
32
- forks : 5 ,
33
- updated : '2020-05-27 12:00:00' ,
34
- } ,
35
- {
36
- name : 'AndAnotherOne' ,
37
- description : 'Another sample repo! Can you believe it?' ,
38
- forks : 9 ,
39
- updated : '2020-05-27 12:00:00' ,
40
- } ,
41
- {
42
- name : 'HYF-Is-The-Best' ,
43
- description :
44
- "This repository contains all things HackYourFuture. That's because HYF is amazing!!!!" ,
45
- forks : 130 ,
46
- updated : '2020-05-27 12:00:00' ,
47
- } ,
48
- ] ;
30
+ const url = 'https://api.github.com/orgs/HackYourFuture/repos?per_page=100' ;
49
31
</ script >
50
32
</ body >
51
33
</ html >
You can’t perform that action at this time.
0 commit comments