Closed muctars closed 3 years ago
Please complete after you've viewed the Week 3 livestream! If you haven't yet watched it but want to move on, just close this issue and come back to it later.
Help us improve BitCamp Serverless - thank you for your feedback! Here are some questions you may want to answer:
The very last step was probably the most difficult for me since the video associated with it did not match the instructions on github. other than that, everything else was alright.
What was confusing about this week? If you could change or add something to this week, what would you do? Your feedback is valued and appreciated!
Not much other than the last step and figuring out the base 64 stuff. My only suggestion is to keep the videos consistent with the homework on github, or for each week, go through the week as usual in the videos and have the last step be the one the students have to try to figure out by themselves.
Go ahead and merge this branch to main
to move on. Great work finishing this section!
⚠️ If you receive a
Conflicts
error, simply pressResolve conflicts
and you should be good to merge!
Am I able to merge now?
Week 4 Step 7 ⬤⬤⬤⬤⬤⬤⬤ | 🕐 Estimated completion: 5-20 minutes
Ultimate CAT INVASION! ~
Demo: 🐱
It's now time to connect everything together! (catzapp/index.html, catzapp/script.js, and your Azure function)
✅ Task:
twocatz-frontend
branchid
ofname1
,name2
,name3
, andname4
respectivelycatzapp/script.js
so that it calls your Azure Function with the 4 names as parametersimg
tags, each with anid
ofimage1
,image2
,image3
, andimage4
respectivelycatzapp/index.html
andcatzapp/script.js
🚧 Test your Work
Open up your LiveServer plugin and start your local server. To test your web app:
⚠️ When you enter FOUR NAMES into each of the text boxes, do FOUR CAT PICTURES show up below?
How can Base64 turn into a Cat?
Now that you should've received strings of
base64
from your Azure function call, you need some way to display them for the users.:question: How can I display base64?
:one: Retrieve the base64 values from your API :two: Append `data:image/png;base64,` in front of the base64 data :three: Like you've done previously, modify the `src` attribute of the image tags and set it equal to the string you created in :two: Read more [here](https://www.w3docs.com/snippets/html/how-to-display-base64-images-in-html.html)