Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
28 Cards in this Set
- Front
- Back
getElementsByTagName()
|
returns all the elements in the document with the matching tag name
|
|
getElementById()
|
searches the document for the element matching the id
|
|
getAttribute()
|
gets the named attribute of the element
|
|
setAttribute()
|
sets the value for the named attribute
|
|
<video> attributes
|
src, controls, width, height, autoplay, loop, preload, poster, audio
|
|
video <source> elements
|
src, type (mime type), codecs
|
|
<video> inner HTML
|
will display if the browser does not support the video element
|
|
<video> onError
|
will run if video element is not supported
|
|
<video> javascript
|
play(), pause()
|
|
<audio> attributes
|
src, controls, loop, preload, autoplay
|
|
audio <source> elements
|
src, type(mime type)
|
|
<audio> inner HTML
|
will display if the browser does not support the audio element
|
|
<canvas>
|
a drawing surface for dynamically creating images, drawings or animation.
|
|
document.getElementById(“mycanvas”).getContext("2d")
|
Get canvas context
|
|
fillStyle
|
canvas property sets the fill color on gradiant used during fills
|
|
moveTo(x,y)
|
canvas method moves the drawing cursor to x,y coordinate
|
|
lineTo(x,y)
|
canvas method draws a line from the current drawing cursor to the x,y coordinate specified
|
|
arc(x,y,r,start,stop)
|
canvas method draws an arc centered on the x,y position, with radius r, beginning at the angle given by start and ending at the angle given by stop
|
|
stroke()
|
draws line created by prev drawing command
|
|
fill
|
canvas method fills the area created by prev drawing command
|
|
fillRect(x1y1,x2,y2)
|
canvas method fills the rectangle with x1,y1 and x2,y2 as the corner coords
|
|
font
|
a canvas property that sets the font face and size for text drawn on canvas
|
|
fillText(text,x,y)
|
canvas method draws the given "text" at the x,y coords and fills the text in.
|
|
strokeText(text,x,y)
|
canvas method draws the outline of the given text at the x,y coords
|
|
<svg>
|
scalable vector graphics is an xml based vector drawing language
|
|
svg shapes
|
circle, ellipse, image, line, path, polygon, polyline, rect, text
|
|
svg attributes
|
width, height, viewPort, version, xmlns
|
|
svg shape attributes
|
x, y, width, height
|