Skip to content

Commit

Permalink
Updated link of resume
Browse files Browse the repository at this point in the history
  • Loading branch information
epicman25 committed Jun 26, 2024
1 parent c4ce87e commit 1a4c9ff
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
Binary file removed TejeshwarReddy_Resume.pdf
Binary file not shown.
19 changes: 13 additions & 6 deletions scripts/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,18 @@ linksfilterInput.addEventListener('input', (e) => {

for (const link of links) {
const lowerText = link.innerText.toLowerCase();
if (lowerText.includes(searchLowerText)) {
link.classList.remove('hide');
const isPdf = link.href.endsWith('.pdf'); // Check if the link ends with .pdf

if (lowerText.includes(search)) {
// Show the link and add the download attribute if it's a PDF
link.classList.remove('hide');
if (isPdf) {
link.setAttribute('download', ''); // Set download attribute for PDFs without a specific filename
}
} else {
link.classList.add('hide');
link.classList.add('hide');
}
}
}
});

const links = [
Expand All @@ -248,7 +254,8 @@ const links = [
{
name: 'Resume',
description: 'What I have done so far',
url: 'https://github.com/epicman25/epicman25.github.io/blob/main/TejeshwarReddy_Resume.pdf',
// url: 'https://github.com/epicman25/epicman25.github.io/blob/main/TejeshwarReddy_Resume.pdf',
url: 'https://drive.google.com/file/d/10BDiv8rG13wEHyyQN7auTBoqSllLbC5n/view?usp=sharing',
icon: 'fa-brands fa-wpforms',
color: '#008abd'
},
Expand All @@ -262,7 +269,7 @@ const links = [
{
name: 'LinkedIn',
description: 'Career updates and thoughts',
url: 'https://www.linkedin.com/in/devalapallitejeshwar/',
url: 'https://www.linkedin.com/in/devalapallitejeshwarreddy/',
icon: 'fa-brands fa-linkedin',
color: '#0077B5'
},
Expand Down

0 comments on commit 1a4c9ff

Please sign in to comment.