Skip to content

Commit f78bdb4

Browse files
committed
Update: Updated profile information
1 parent da93665 commit f78bdb4

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

packages/js/main.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (navClose) {
1717
}
1818
const ctx = document.getElementById('skillsChart').getContext('2d');
1919
const skillsChart = new Chart(ctx, {
20-
type: 'radar', // Radar chart
20+
type: 'radar',
2121
data: {
2222
labels: [
2323
'Languages',
@@ -32,47 +32,47 @@ const skillsChart = new Chart(ctx, {
3232
],
3333
datasets: [{
3434
label: 'Skill Level (%)',
35-
data: [85, 88, 85, 90, 85, 85, 85, 90, 80], // Calculated averages
36-
backgroundColor: 'rgba(75, 192, 192, 0.2)', // Light green fill
37-
borderColor: 'rgba(75, 192, 192, 1)', // Dark green border
35+
data: [85, 88, 85, 90, 85, 85, 85, 90, 80],
36+
backgroundColor: 'rgba(75, 192, 192, 0.2)',
37+
borderColor: 'rgba(75, 192, 192, 1)',
3838
borderWidth: 2,
39-
pointBackgroundColor: 'rgba(75, 192, 192, 1)', // Point color
40-
pointBorderColor: '#fff', // Point border
41-
pointHoverBackgroundColor: '#fff', // Hover background
42-
pointHoverBorderColor: 'rgba(75, 192, 192, 1)', // Hover border
39+
pointBackgroundColor: 'rgba(75, 192, 192, 1)',
40+
pointBorderColor: '#fff',
41+
pointHoverBackgroundColor: '#fff',
42+
pointHoverBorderColor: 'rgba(75, 192, 192, 1)',
4343
}]
4444
},
4545
options: {
4646
responsive: true,
47-
maintainAspectRatio: false, // Makes chart larger and responsive
47+
maintainAspectRatio: false,
4848
scales: {
4949
r: {
5050
angleLines: {
5151
display: true,
52-
color: 'rgba(128, 128, 128, 0.3)' // Customize the radar grid line color
52+
color: 'rgba(128, 128, 128, 0.3)'
5353
},
5454
suggestedMin: 50,
5555
suggestedMax: 100,
5656
ticks: {
57-
display: false // Removes number labels
57+
display: false
5858
},
5959
grid: {
60-
color: 'rgba(128, 128, 128, 0.2)' // Subtle grid color
60+
color: 'rgba(128, 128, 128, 0.2)'
6161
}
6262
}
6363
},
6464
plugins: {
6565
legend: {
66-
position: 'top', // Keeps the legend on top
66+
position: 'top',
6767
labels: {
68-
color: 'rgba(75, 192, 192, 1)' // Match text color
68+
color: 'rgba(75, 192, 192, 1)'
6969
}
7070
},
7171
tooltip: {
72-
enabled: true, // Interactive tooltips
72+
enabled: true,
7373
callbacks: {
7474
label: function(context) {
75-
return context.dataset.label + ': ' + context.formattedValue + '%'; // Tooltip formatting
75+
return context.dataset.label + ': ' + context.formattedValue + '%';
7676
}
7777
}
7878
}
@@ -424,9 +424,9 @@ document.addEventListener('DOMContentLoaded', function () {
424424

425425
document.addEventListener("DOMContentLoaded", function () {
426426
const observerOptions = {
427-
root: null, // Use the browser viewport as the container
427+
root: null,
428428
rootMargin: "0px",
429-
threshold: 0.1 // Trigger when 10% of the element is visible
429+
threshold: 0.1
430430
};
431431

432432
const elementsToAnimate = document.querySelectorAll('.scroll-animation');
@@ -435,7 +435,7 @@ document.addEventListener("DOMContentLoaded", function () {
435435
entries.forEach(entry => {
436436
if (entry.isIntersecting) {
437437
entry.target.classList.add('scroll-in-view');
438-
observer.unobserve(entry.target); // Stop observing once animated
438+
observer.unobserve(entry.target);
439439
}
440440
});
441441
}, observerOptions);

0 commit comments

Comments
 (0)