-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
66 lines (54 loc) · 1.62 KB
/
main.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
import "./style.css";
import Experience from "./Experience/Experience.js";
const experience = new Experience(document.querySelector(".experience-canvas"));
////////////////////////////////////////////////////////////////////////////////////
const ctx = document.getElementById('skills');
const cursor = document.createElement('div');
cursor.classList.add('cursor');
document.body.prepend(cursor);
document.addEventListener('mousemove', (event) => {
cursor.style.left = event.pageX + 'px';
cursor.style.top = (event.pageY - window.pageYOffset) + 'px';
});
const links = document.querySelectorAll('a, input, textarea, .toggle-button');
links.forEach((link) => {
link.addEventListener('mouseenter', () => {
cursor.classList.add('hover');
});
link.addEventListener('mouseleave', () => {
cursor.classList.remove('hover');
});
});
const data = {
labels: [
'Gestion de la qualité',
'Lean Management',
'Gestion de projet',
'Gestion de maintenance',
'Management stratégique',
'Communication',
],
datasets: [{
data: [85, 75, 85, 90, 60, 90],
fill: true,
backgroundColor: 'rgba(17, 111, 177, 0.2)',
borderColor: 'rgb(17, 111, 177)',
pointBackgroundColor: 'rgb(17, 111, 177)',
pointBorderColor: '#fff',
pointHoverBackgroundColor: '#fff',
pointHoverBorderColor: 'rgb(17, 111, 177)'
}]
};
const config = {
type: 'radar',
data: data,
options: {
responsive: true,
plugins: {
legend: {
display: false,
}
},
},
};
new Chart(ctx, config);