Modify website
- Actualizado apartado de experiencia laboral (2026) - Quitado icono de Arduino - Añadido iconos de ESP-IDF y Zig - Actualizado github->codeberg - Eliminado todo typescript
This commit is contained in:
1 parent
89bab60d10
commit
eb280f0e52
6 files changed
+117
-100
No files matched your search
+45
-40
@@ -1,43 +1,48 @@
|
||||
"use strict";
|
||||
const techDescription_en = document.getElementById('techDescription');
|
||||
const techs_en = [
|
||||
{ iconId: 'inoTechIcon', description: 'Arduino: Electronics projects and prototyping' },
|
||||
{ iconId: 'cTechIcon', description: 'C: My main programming language' },
|
||||
{ iconId: 'gitTechIcon', description: 'Git: Version control for all my projects' },
|
||||
{ iconId: 'linuxTechIcon', description: 'Linux: Daily use and administration' },
|
||||
{ iconId: 'rpiTechIcon', description: 'Raspberry Pi: Home servers and homelabs' }
|
||||
];
|
||||
|
||||
if (!techDescription_en) {
|
||||
alert('ERROR: No se ha encontrado el elemento "techDescription"');
|
||||
}
|
||||
else {
|
||||
techs_en.forEach(tech => {
|
||||
const icon = document.getElementById(tech.iconId);
|
||||
if (!icon) {
|
||||
alert('ERROR: elemento con ID ${tech.iconID} no encontrado');
|
||||
return;
|
||||
}
|
||||
icon.addEventListener('mouseenter', () => {
|
||||
techDescription_en.innerText = tech.description;
|
||||
switch (tech.iconId) {
|
||||
case 'inoTechIcon':
|
||||
techDescription_en.style.color = 'aqua';
|
||||
break;
|
||||
case 'cTechIcon':
|
||||
techDescription_en.style.color = '#1578fa';
|
||||
break;
|
||||
case 'gitTechIcon':
|
||||
techDescription_en.style.color = 'orangered';
|
||||
break;
|
||||
case 'linuxTechIcon':
|
||||
techDescription_en.style.color = 'yellow';
|
||||
break;
|
||||
case 'rpiTechIcon':
|
||||
techDescription_en.style.color = '#FB266A';
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
alert('ERROR: element "techDescription" not found');
|
||||
throw new Error('techDescription element not found');
|
||||
}
|
||||
|
||||
const techs_en = [
|
||||
{ iconId: 'cTechIcon', description: 'C: Systems and embedded programming' },
|
||||
{ iconId: 'espTechIcon', description: 'ESP-IDF: Firmware and drivers for ESP32 on FreeRTOS' },
|
||||
{ iconId: 'linuxTechIcon', description: 'Linux: Daily use and administration' },
|
||||
{ iconId: 'zigTechIcon', description: 'Zig: Experiments and general development' },
|
||||
{ iconId: 'gitTechIcon', description: 'Git: Version control for all my projects' },
|
||||
{ iconId: 'rpiTechIcon', description: 'Raspberry Pi: Home servers and homelabs' },
|
||||
];
|
||||
|
||||
techs_en.forEach((tech) => {
|
||||
const icon = document.getElementById(tech.iconId);
|
||||
if (!icon) {
|
||||
alert(`ERROR: element with ID ${tech.iconId} not found`);
|
||||
return;
|
||||
}
|
||||
icon.addEventListener('mouseenter', () => {
|
||||
techDescription_en.innerText = tech.description;
|
||||
switch (tech.iconId) {
|
||||
case 'cTechIcon':
|
||||
techDescription_en.style.color = '#1578fa';
|
||||
break;
|
||||
case 'espTechIcon':
|
||||
techDescription_en.style.color = '#e7352c';
|
||||
break;
|
||||
case 'linuxTechIcon':
|
||||
techDescription_en.style.color = '#2596be';
|
||||
break;
|
||||
case 'zigTechIcon':
|
||||
techDescription_en.style.color = '#f7a41d';
|
||||
break;
|
||||
case 'gitTechIcon':
|
||||
techDescription_en.style.color = 'orangered';
|
||||
break;
|
||||
case 'rpiTechIcon':
|
||||
techDescription_en.style.color = '#FB266A';
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user