Exercise using AJAX calls to the xkcd site and DOM manipulation
- don't forget to include your head and body!
- Use the code provided to make sure your data is logging
CREATE THESE ELEMENTS WITH JQUERY
- have appear underneath the h1 you made earlier
Create another p tag and set this text to display "comic number " with data.num in the text of the p tag
- make it appear above the image
- give your image a border
- give your border a color
- change the text color of the p tags so that they are all the same
- call this button navi
- When the button is clicked have it alert the user 'hey are you listening?'
- call it wallPaper
- When the button is clicked change the background color of the whole web page
- don't forget to put the CDN in the right place
- use the grid or flexbox to have the page be more visually appealing.
- if you get stuck look at bootstrap or materialize docs
function randomize(min,max) {
return Math.floor(Math.random() * (max - min + 1) + min)
}