Reading-Notes

Class 11: - Audio, Video, Images


Images

This chapter just deals with the manipualtion of images throughout the webpage. Being able to resize or design a webpage by changing how the image is displayed or functions in general.

Practical Information

when starting SEO its best to break it up into six steps

  1. brainstorm
  2. organize
  3. research
  4. compare
  5. refine
  6. map

Video and Audio APIs

I took one sample from the page I thought was interesting or cool. I chose this code block because after the play buttun click is created it needs to change from pause icon to another icon and in this piece of code they are doing just that. Overall this article is just showing the code behind a video window but the real interesing part is the forward and backward. I would never think they would be using an if statement ro rewind and fast forward. the thought just didnt occure to me.

function playPauseMedia() {
  if(media.paused) {
    play.setAttribute('data-icon','u');
    media.play();
  } else {
    play.setAttribute('data-icon','P');
    media.pause();
  }
}