diff --git a/README.md b/README.md
index b8dcbcc..e6a8189 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+## SEIR 0508
+
### PokeAPI lab
@@ -6,11 +8,13 @@ Lets first create an html file, attach in our JS Script file and the Axios libra
We can put in some empty HTML elements as well to populate with our response data, in this case just an H2 and an Image, but we can put in as much as we want once we get our calls made. Scaffold in a CSS file to add some style once the data is rendered on screen too!
+Explore the https://pokeapi.co/ API with ThunderClient to see what types of endpoints are available, and what your data will look like
+
You may need to Map through and run some conditionals for some peices of information (abilities, types...) if you want to put in additional peices of API data
```html
@@ -29,16 +33,22 @@ let button = document.querySelector("#searchButton")
button.addEventListener('click', async () => {
- let textInput = document.querySelector("#inputBar").value
let pokemonName = document.querySelector("#pokemonName")
let pokemonImage = document.querySelector("#pokemonImage")
-
+ //where does this need to be scoped?
+ let textInput = document.querySelector("#inputBar").value
+
//Axios call goes here
- //remember to use Await!
+ //remember to use Async and Await!
//DOM Setters go here
}
-
+)
```
+
+Once you have the initial data rendered, try to add as much as possible. We can search Pokemon by names and numbers, can we also search for Moves, Berries, and other information?
+
+
+Finally, this is a chance to really explore your styling skills. Be sure to create some wireframes to work with before creating something you can really show off, and have fun with!
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..50701e3
--- /dev/null
+++ b/index.html
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..a82076c
--- /dev/null
+++ b/script.js
@@ -0,0 +1,66 @@
+console.log('working')
+let button = document.querySelector("#searchButton")
+
+button.addEventListener('click', async () => {
+
+ let pokemonName = document.querySelector("#pokemonName")
+ let pokemonImage = document.querySelector("#pokemonImage")
+ let homeImage = document.querySelector('#homeImage')
+ let textInput = document.querySelector("#inputBar").value
+ let name = document.getElementById('name')
+ let id = document.getElementById('id')
+ let order = document.getElementById('order')
+ let height = document.getElementById('height')
+ let weight = document.getElementById('weight')
+ let base_experience = document.getElementById('base_experience')
+ let pokemonAbility = document.querySelector(".ability")
+ let pokemonMove = document.querySelector('.move')
+
+
+ //Axios call goes here
+ //remember to use Async and Await!
+ //DOM Setters go here
+ const pokemonRes = await axios.get(`https://pokeapi.co/api/v2/pokemon/${textInput}`)
+ let pokemon = pokemonRes.data
+
+ //Name
+ pokemonName.innerText = pokemon.name.toUpperCase()
+
+ //Picture
+ let pic1 = ``
+ let pic2 = ``
+ let pic3 = ``
+ let pic4 = ``
+ pokemonImage.innerHTML = pic1 + pic2 + pic3 + pic4
+ homeImage.src = `${pokemon.sprites.other.home.front_default}`
+
+ //Basic info
+ console.log(pokemon.order)
+ id.innerHTML = `ID: ${pokemon.id}`
+ name.innerHTML = `Name: ${pokemon.name}`
+ order.innerHTML = `Order: ${pokemon.order}`
+ console.log(order)
+ height.innerHTML = `Height: ${pokemon.height} `
+ weight.innerHTML = `Weight: ${pokemon.weight} `
+ base_experience.innerHTML = `Base Experience: ${pokemon.base_experience} `
+
+ //Abilities
+ let abilitiesData= pokemon.abilities
+ let aTitle= `