class#2 bookmarklet

Bookmarklet Homework.

Keep changing background and font color(Using HSV color wheel)

and

Extract image.

This is code.

var x=document.getElementsByTagName(“*”);
var b_color = 0;
var t_color = 360;

var myVar = setInterval(myTimer, 50);
function myTimer(){
for(i=0;i<x.length;i++){
x[i].style.backgroundColor = “hsl(“+b_color+”,50%,50%)”;
x[i].style.color = “hsl(“+t_color+”,50%,50%)”;
x[i].src = ” “;
}
b_color++;
f_color–;
}

This is captured image.

Hacking_W2_6 Hacking_W2_5 Hacking_W2_4Hacking_W2_1
Hacking_W2_3 Hacking_W2_2