-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
27 lines (23 loc) · 855 Bytes
/
index.js
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
const spot = document.getElementById("spot");
const spotName = document.getElementById("spotName");
const single_skill = document.getElementById("single_skill");
const skill = document.getElementById("skillName");
const skills = ["icon-html5-alt", "icon-css3-alt", "icon-javascript-alt", "icon-jquery", "icon-sass", "icon-reactjs", "icon-git", "icon-cplusplus", "icon-python"]
const skillName = ["HTML5", "CSS3", "JavaScript", "jQuery", "Sass", "React.js", "Git", "C++", "Python"]
let count = 0;
spot.className = skills[count]
spotName.innerHTML = skillName[count]
setInterval(function() {
count+=1
spot.className = skills[count]
spotName.innerHTML = skillName[count]
if(count >= skills.length -1) {
count = 0;
}
}, 3000);
/*
Adding icons to a group display
for (i = 0; i < skills.length; i++) {
document.getElementById('skills')
}
*/