-
Notifications
You must be signed in to change notification settings - Fork 0
/
tech_skills.js
70 lines (66 loc) · 1.47 KB
/
tech_skills.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
$(document).ready(function(){
skills = [
{'title': 'Ruby (on Rails)',
'level': 100,
},
{'title': 'CSS',
'level': 100,
},
{'title': 'Html',
'level': 100,
},
{'title': 'Postgresql',
'level': 100,
},
{'title': 'Mysql',
'level': 100,
},
{'title': 'Javascript (ES6, jQuery)',
'level': 90,
},
{'title': 'AWS',
'level': 75,
},
{'title': 'TDD',
'level': 70,
},
{'title': 'Dev Ops',
'level': 70,
},
{'title': 'Python (Django)',
'level': 70,
},
{'title': 'Crystal (Amber)',
'level': 60,
},
{'title': 'PHP (CodeIgniter)',
'level': 50,
},
{'title': 'Reactjs',
'level': 40,
},
{'title': 'iOS',
'level': 40,
},
{'title': 'Angularjs',
'level': 30,
},
{'title': 'Android',
'level': 20,
}
]
for(var x=0;x<skills.length;x++){
content = "<div class='skill-item'>" +
"<div class='skill-item-title'>" + skills[x]['title'] + "</div>" +
"<div class='skill-item-level'>" + skills[x]['level'] + "%</div>" +
"<div class='skill-item-bar-wrapper'>" +
"<div class='skill-item-bar' data-level=" + skills[x]['level'] + "></div>" +
"</div>" +
"</div>"
$('#skills-list').append(content)
}
$('.skill-item-bar').each(function(){
level = $(this).attr('data-level')
$(this).css('width', level + '%')
})
})