Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ifBars committed Aug 28, 2024
1 parent c826ef7 commit 4c35f75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions static/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ animate();
const nameElement = document.getElementById('typewriter-name');
const subtitleElement = document.getElementById('typewriter-subtitle');
const projectsSection = document.querySelector('.projects');
const nameText = "Tristen Smith";
const nameText = "IfBars";
const subtitleText = "Software Developer";
let nameIndex = 0;
let subtitleIndex = 0;
Expand All @@ -69,8 +69,7 @@ function typeName() {
nameIndex++;
setTimeout(typeName, 100);
} else {
// Start typing the subtitle after the name is done
setTimeout(typeSubtitle, 500);
setTimeout(typeSubtitle, 400);
}
}

Expand All @@ -80,7 +79,6 @@ function typeSubtitle() {
subtitleIndex++;
setTimeout(typeSubtitle, 100);
} else {
// Add the fade-in class after subtitle typing is done
projectsSection.classList.add('fade-in');
}
}
Expand Down
1 change: 0 additions & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ <h2>Projects</h2>
</ul>
</section>
<footer>
<p>&copy; 2024 Tristen Smith</p>
<p>This site is under construction</p>
</footer>
<script src="{{ url_for('static', filename='js/scripts.js') }}"></script>
Expand Down

0 comments on commit 4c35f75

Please sign in to comment.