Skip to content

Commit

Permalink
resume added
Browse files Browse the repository at this point in the history
  • Loading branch information
shliamin committed Jul 28, 2024
1 parent 0dcc375 commit be34188
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 9 deletions.
Binary file added Efim Shliamin Computer Scientist, ENG.pdf
Binary file not shown.
Binary file added Efim Shliamin Informatiker, DEU.pdf
Binary file not shown.
16 changes: 14 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ <h4 class="uk-comment-title">Efim Shliamin</h4>
<a href="https://x.com/EfimShliamin"><img src="images/square-x-twitter.svg" alt="X Icon" class="status-icon-mobile"></a>
<a href="https://threads.net/@efimslife"><img src="images/square-threads.svg" alt="Threads Icon" class="status-icon-mobile"></a>
<a href="https://vimeo.com"><img src="images/square-vimeo.svg" alt="Vimeo Icon" class="status-icon-mobile"></a>
<a href="path/to/your/resume.pdf" download><img src="images/file-solid.svg" alt="Resume Icon" class="status-icon-mobile"></a>
<a href="#" id="initial-download-link-mobile">
<img src="images/file-solid.svg" alt="Resume Icon" class="status-icon-mobile">
</a>
<div id="language-selection-mobile" style="display: none;">
<p>In English or German?</p>
<button id="english-button-mobile">English</button>
<button id="german-button-mobile">German</button>
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -90,10 +97,15 @@ <h4 class="uk-comment-title">Efim Shliamin</h4>
</a>
</div>
<div class="status-item">
<a href="path/to/your/resume.pdf" download>
<a href="#" id="initial-download-link-desktop">
<img src="images/file-solid.svg" alt="Resume Icon" class="status-icon">
<p id="p-title">Download my resume</p>
</a>
<div id="language-selection-desktop" style="display: none;">
<p>In English or German?</p>
<button id="english-button-desktop">English</button>
<button id="german-button-desktop">German</button>
</div>
</div>
</div>
<div class="sidebar-image">
Expand Down
53 changes: 46 additions & 7 deletions scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,20 @@ document.addEventListener('DOMContentLoaded', () => {
});

function highlightResume() {
const resumeIconMobile = document.querySelector(".icon-row a[href='path/to/your/resume.pdf']");
const resumeIconDesktop = document.querySelector(".status-item a[href='path/to/your/resume.pdf']");
const resumeIconMobile = document.querySelector("#initial-download-link-mobile img.status-icon-mobile");
const resumeIconDesktop = document.querySelector("#initial-download-link-desktop img.status-icon");
const resumeElement = window.innerWidth <= 768 ? resumeIconMobile : resumeIconDesktop;

resumeElement.classList.add('highlight');
if (resumeElement) {
resumeElement.classList.add('highlight');

setTimeout(() => {
resumeElement.classList.remove('highlight');
}, 4000);
setTimeout(() => {
resumeElement.classList.remove('highlight');
}, 4000);
}
}


function showSection(sectionId) {
window.scrollTo({ top: 0, behavior: 'smooth' });

Expand Down Expand Up @@ -234,4 +237,40 @@ window.addEventListener('scroll', function () {
} else {
languageSwitcher.classList.remove('hidden');
}
});
});

document.addEventListener('DOMContentLoaded', () => {
// Desktop link event listener
document.getElementById('initial-download-link-desktop').addEventListener('click', function(event) {
event.preventDefault(); // Prevent default link behavior

// Hide the initial link text and show the language selection buttons
document.getElementById('initial-download-link-desktop').style.display = 'none';
document.getElementById('language-selection-desktop').style.display = 'block';
});

document.getElementById('english-button-desktop').addEventListener('click', function() {
window.location.href = 'Efim Shliamin Computer Scientist, ENG.pdf';
});

document.getElementById('german-button-desktop').addEventListener('click', function() {
window.location.href = 'Efim Shliamin Informatiker, DEU.pdf';
});

// Mobile link event listener
document.getElementById('initial-download-link-mobile').addEventListener('click', function(event) {
event.preventDefault(); // Prevent default link behavior

// Hide the initial link text and show the language selection buttons
document.getElementById('initial-download-link-mobile').style.display = 'none';
document.getElementById('language-selection-mobile').style.display = 'block';
});

document.getElementById('english-button-mobile').addEventListener('click', function() {
window.location.href = 'Efim Shliamin Computer Scientist, ENG.pdf';
});

document.getElementById('german-button-mobile').addEventListener('click', function() {
window.location.href = 'Efim Shliamin Informatiker, DEU.pdf';
});
});

0 comments on commit be34188

Please sign in to comment.