Skip to content

Commit

Permalink
Merge pull request #2 from juanfrilla/minor_changes
Browse files Browse the repository at this point in the history
feat: prevent default on click download
  • Loading branch information
juanfrilla authored Sep 26, 2024
2 parents fce9afd + 6bef5db commit 17ffe15
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions assets/lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"another_text_4": "✔Sunscribed to spanish youth guarantee program.",
"another_text_5": "✔Open to work remotely.",
"another_text_6": "✔Possibility of assuming the cost of 1 travel to go to the office.",
"download_cv": "<a href=\"\"class=\"btn btn-success\" target=\"_blank\" id=\"download_cv\"><i class=\"fa fa-download\"></i>Download my resumé!</a>",
"download_cv": "<a href=\"#\" class=\"btn btn-success\" id=\"download_cv\"><i class=\"fa fa-download\"></i>Download my resumé!</a>",
"experience_5": "<p class=\"card-text text-justify mb-2\" id=\"experience_5\">2023, Feb. – Present. <b>Tirant Lo Blanch</b><span><a href=\"https://www.tirant.com/\" target=\"_blank\"> (https://www.tirant.com/)</a></span> – Legal book Publisher. <br> <br> <i>Web Scraping/Crawling developer</i> <br> 100% remotely job. <ul> <li> Maintenance of existing spiders and development of new ones. </li> <li> Maintenance of the \"migration project\" (it's a pre-production stage of formatting that comes after the scraping and before going into production), written in grails framework (groovy). </li> <li>Looking for solutions to problems that arises in the tasks mentioned above:</li> <ul> <li>Speed up the execution of slow spiders.</li> <li> Speed up the execution of the tests of the migration project in order to, at the same time, speed up the development of any feature of this project.</li> <li>Automate workflows in order to make the team more productive and agile (e.g. CI/CD with gitlab CI).</li> <li>Scrape pages with strong security measures (e.g. cloudflare, tokens, cookies, javascript page rendering...). </li> <li>Implement Selenium-Grid through Docker to be able to use browsers by spiders simultaneously.</li><li>Proxies and headers rotation. </li><li>Extracting information from any text file (pdf, doc and docx). </li></ul> </ul> Used Technologies: Scrapy (Python framework) · BeautifulSoup · Requests · Grails · MongoDB · Git · Linux · Docker · Gitlab CI · Amazon Web Services (AWS) </p>",
"experience_4": "<p class=\"card-text text-justify mb-2\" id=\"experience_4\">Mar. 2022 – Dic. 2022. <b>Tu Calendi</b> <span><a href=\"https://www.tucalendi.com/es/\" target=\"_blank\">(https://www.tucalendi.com/es/)</a></span> – Meetings management system. <br> <br> <i>Back-end developer.</i> <br> 100% remotely job.<ul> <li>API migration written in PHP through Python using FastAPI framework and finally, deployment.</li><li>App integration with voice assistants like Alexa (design of the conversation, development...). </li></ul>Tecnologías utilizadas: FastAPI (framework de Python) · MariaDB · Linux · Git · Plesk · PHP · Docker · Github Actions · Voiceflow · Alexa AWS Lambda </p>",
"experience_3": "<p class=\"card-text text-justify mb-2\" >2021, Mar. – 2021, Sept. <b>Tías Town Hall</b> <span><a href=\"https://www.ayuntamientodetias.es/\" target=\"_blank\">(https://www.ayuntamientodetias.es/)</a></span><br> <br> <i>Computer Technisian.</i> <br> On-site employment. <ul> <li> Offering support to the employers (configuration, repair, formatting, data recovery, configuring scanners and printers, setting-up of Microsoft 365 and Windows 10, mail migration from POP to IMAP...). </li> <li> Support the cadastrial office doing automation scripts with Python and Selenium in order to integrate them in the QGIS program. </li> </ul> </p>",
Expand Down Expand Up @@ -64,7 +64,7 @@
"another_text_4": "✔Inscrito en el programa de garantía juvenil.",
"another_text_5": "✔Abierto al teletrabajo.",
"another_text_6": "✔Posibilidad de asumir el coste de 1 viaje al año para ir a la oficina.",
"download_cv": "<a href=\"\"class=\"btn btn-success\" target=\"_blank\" id=\"download_cv\"><i class=\"fa fa-download\"></i>¡Descargar mi curriculum!</a>",
"download_cv": "<a href=\"#\" class=\"btn btn-success\" id=\"download_cv\"><i class=\"fa fa-download\"></i>¡Descargar mi curriculum!</a>",
"experience_5": "<p class=\"card-text text-justify mb-2\" id=\"experience_5\">Feb. 2023 – Actualidad. <b>Tirant Lo Blanch</b><span><a href=\"https://www.tirant.com/\" target=\"_blank\"> (https://www.tirant.com/)</a></span> – Editorial jurídica. <br> <br> <i>Desarrollador de web Scraping/Crawling.</i> <br> Empleo 100% remoto. <ul> <li> Mantenimiento de spiders ya existentes y desarrollo de nuevos. </li> <li> Mantenimiento del \"proyecto de migraciones\" (es una etapa de pre-producción de formateo que viene después del scraping y antes de salir a producción), escrito en el framework grails (groovy). </li> <li>Buscar soluciones a problemas que surgían en las tareas mencionadas anteriormente:</li> <ul> <li>Agilizar la ejecución de spiders lentos.</li> <li> Agilizar la ejecución de los tests del proyecto de migraciones para a su vez, agilizar el desarrollo de cualquier característica en este proyecto.</li> <li>Automatizar flujos de trabajo para que el equipo sea más productivo y ágil (e.g. CI/CD con gitlab CI)</li> <li>Escrapear páginas con medidas de seguridad fuertes (cloudflare, tokens, cookies, renderizado de páginas con javascript...)</li> <li>Implementación de Selenium-Grid mediante Docker para el uso de navegadores por parte de los spiders de manera simultanea.</li> <li>Rotación de proxies y headers. </li> <li>Extraer información de cualquier archivo de texto (pdf, doc y docx). </li> </ul> </ul> Tecnologías utilizadas: Scrapy (framework de Python) · BeautifulSoup · Requests · Grails · MongoDB · Git · Linux · Docker · Gitlab CI · Amazon Web Services (AWS) </p>",
"experience_4": "<p class=\"card-text text-justify mb-2\" id=\"experience_4\">Mar. 2022 – Dic. 2022. <b>Tu Calendi</b> <span><a href=\"https://www.tucalendi.com/es/\" target=\"_blank\">(https://www.tucalendi.com/es/)</a></span> – Sistema para la gestión de reuniones. <br> <br> <i>Desarrollador Back-end.</i> <br> Empleo 100% remoto.<ul> <li>Migración de la API escrita en PHP hacia Python usando el framework FastAPI, y despliegue.</li><li>Integración de la aplicación con asistentes de voz como Alexa (diseño de la conversación, desarrollo...)</li></ul>Tecnologías utilizadas: FastAPI (framework de Python) · MariaDB · Linux · Git · Plesk · PHP · Docker · Github Actions </p>",
"experience_3": "<p class=\"card-text text-justify mb-2\" >Mar. 2021 – Sept. 2021. <b>Ayuntamiento de Tías</b> <span><a href=\"https://www.ayuntamientodetias.es/\" target=\"_blank\">(https://www.ayuntamientodetias.es/)</a></span><br> <br> <i>Técnico Informático.</i> <br> Empleo presencial. <ul> <li> Ofrecer soporte a los empleados (configuración de equipos, reparación de PCS, formateo, recuperación de datos, configurar las impresoras y escáneres, puesta a punto de Microsoft 365 y Windows 10, migración de correos de POP a IMAP...). </li> <li> Apoyar al catastro automatizando descargas con Python y Selenium para integrarlos en el programa QGIS. </li> </ul> </p>",
Expand Down
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,11 @@ <h4 class="card-title" id="another_head"></h4>
</div>
<div class="card border-0">
<div class="card-body text-center">
<a href=""
class="btn btn-success" target="_blank" id="download_cv"><i class="fa fa-download"></i></a>
<a href="#"
class="btn btn-success"
id="download_cv">
<i class="fa fa-download"></i>
</a>
</div>
</div>
</div>
Expand Down
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ function modifyImg() {
}
}

function downloadPDF() {
function downloadPDF(event) {
event.preventDefault();
modifyClasses();
modifyH4();
modifyHR();
Expand Down Expand Up @@ -179,7 +180,6 @@ navLinks.forEach(function (link) {
});
});


const loadJSON = async () => {
const response = await fetch("./assets/lang.json");
const json = await response.json();
Expand All @@ -206,7 +206,7 @@ async function switchLanguage(preloadLanguage = null) {

async function preloadDefaultLanguage() {
const userPreferredLanguage = navigator.language || navigator.userLanguage;

let defaultLanguage = "es";
if (userPreferredLanguage.startsWith("en")) {
defaultLanguage = "en";
Expand All @@ -219,7 +219,6 @@ document.querySelector(".check").addEventListener("change", () => {
switchLanguage();
});


window.addEventListener("load", preloadDefaultLanguage);
document.getElementById("current-age").textContent = currentAge();
document.getElementById("current-year").textContent = currentYear();

0 comments on commit 17ffe15

Please sign in to comment.