-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
34 lines (27 loc) · 886 Bytes
/
test.js
File metadata and controls
34 lines (27 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
function first (){
// let mysum = document.getElementById("summary");
// let myul = mysum.getElementsByTagName("ul")[0];
// let newli = document.createElement("li");
// newli.innerHTML="Skill "+i;
// myul.appendChild(newli);
let col1s = document.getElementsByClassName("col1");
col1s = Array.prototype.slice.apply(col1s);
for(let tmp of col1s){
tmp.setAttribute("class","animcol1");
};
}
function second(){
let col2s = document.getElementsByClassName("col2");
col2s = Array.prototype.slice.apply(col2s);
for(let tmp of col2s){
tmp.setAttribute("class","animcol2");
};
}
window.onload = function(){
//setTimeout(start,1000/2,1);
// setTimeout(start,2000/2,2);
//setTimeout(start,3000/2,3);
// setTimeout(start,4000/2,4);
setTimeout(first,200);
setTimeout(second,400);
};