Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit ec34e26

Browse files
edited index.html in hackyourrepo-app
1 parent ad9d733 commit ec34e26

File tree

2 files changed

+9
-27
lines changed

2 files changed

+9
-27
lines changed

Week2/homework/pokemon-app/script.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
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) => {
55
console.log(response);
66
});
77
}
8-
function addPokemonToDOM(){}
9-
}
8+
function addPokemonToDOM() {}
9+
}

hackyourrepo-app/index.html

+4-22
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,11 @@
2323
<section></section>
2424
<section></section>
2525
<section></section>
26-
<select></select>
26+
<select>
27+
<option></option>
28+
</select>
2729
<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';
4931
</script>
5032
</body>
5133
</html>

0 commit comments

Comments
 (0)