-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresume.js
More file actions
70 lines (68 loc) · 2.49 KB
/
resume.js
File metadata and controls
70 lines (68 loc) · 2.49 KB
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
$(function () {
//BtnId,project initialize
let BtnId = [];
let project = [];
for (i = 0; i < 6; i++) {
BtnId.push($("#detailBtn" + (i + 1)));
currentProject="project" + (i + 1)
project.push($("#"+currentProject));
project[i].kendoWindow({
width: "80%",
height: "auto",
iframe: true,
resizable: true,
title: currentProject,
visible: false,
actions: [
"Pin",
"Minimize",
"Maximize",
"Close"
]
});
} //end of project initialize
BtnId.forEach(function (item, index) {
item.click(function () {
project[index].data("kendoWindow").center().open().resize(true);
});
});
$(".btn_more").click(function () {
project[5].data("kendoWindow").center().open().resize(true);
});
/*
let ability = [
// { mother: "language", content: "English", energy: 4 },
// { mother: "language", content: "Japanese", energy: 2 },
{ mother: "web", content: "HTML & CSS", energy: 5 },
{ mother: "web", content: "Javascript", energy: 5 },
{ mother: "web", content: "Bootstrap", energy: 5 },
{ mother: "platforms", content: "Linux(Ubuntu)", energy: 5 },
{ mother: "version_control", content: "Git", energy: 5 },
{ mother: "software", content: "Python", energy: 5 },
{ mother: "software", content: "Matlab", energy: 5 },
{ mother: "software", content: "C/C++", energy: 3 },
{ mother: "software", content: "Java", energy: 3 },
{ mother: "CAD", content: "Solidworks", energy: 5 },
// { mother: "CAD", content: "Autocad", energy: 3 },
];
let solidCircle = "<b></b>";
let emptyCircle = "<em></em>";
let iniMother = ability[0].mother;
let currentHTML = "";
ability.forEach(function (item, index) {
if (iniMother !== item.mother) {
$(currentHTML).insertAfter("#" + iniMother);
currentHTML = "";
iniMother = item.mother;
}
currentHTML += `
<dl class="clearfix info_timeline">
<dt>${item.content}</dt>
<dd>${solidCircle.repeat(item.energy)}${emptyCircle.repeat(5 - item.energy)}</dd>
</dl>
`;
if (index === ability.length - 1)
$(currentHTML).insertAfter("#" + iniMother);
})
*/
});