Removing uv as package manager. Isues with using it on network volume.
This commit is contained in:
parent
c183070471
commit
71130424e3
347 changed files with 1271 additions and 1851 deletions
37
deploy/assets/js/index.js
Executable file
37
deploy/assets/js/index.js
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
Homepage
|
||||
*/
|
||||
|
||||
// This script changes the text when hovering over faces on the home page.
|
||||
function setHoverText(elementId, text) {
|
||||
const hoverTextElement = document.getElementById('hover-text');
|
||||
|
||||
document.getElementById(elementId).onmouseover = function () {
|
||||
hoverTextElement.innerHTML = text;
|
||||
hoverTextElement.classList.remove('leave');
|
||||
hoverTextElement.classList.add('fade-in');
|
||||
};
|
||||
|
||||
document.getElementById(elementId).onmouseout = function () {
|
||||
hoverTextElement.classList.remove('fade-in');
|
||||
hoverTextElement.classList.add('leave');
|
||||
};
|
||||
}
|
||||
|
||||
setHoverText('visual-hover', 'a thousand words at a time');
|
||||
setHoverText('technical-hover', 'in zeroes, ones, and other numbers');
|
||||
setHoverText('writing-hover', 'letter by letter, word by word');
|
||||
|
||||
|
||||
// This script does the animations for the faces on the home page.
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
const imageContainers = document.querySelectorAll('.face');
|
||||
|
||||
setTimeout(() => {
|
||||
imageContainers.forEach((container, index) => {
|
||||
setTimeout(() => {
|
||||
container.classList.add('active');
|
||||
}, (index + 1) * 1000); // Adjust delay between images
|
||||
});
|
||||
}, 4800);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue