Skip to content

Commit

Permalink
Update Loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
rdp77 committed Jul 19, 2023
1 parent cfc0a3e commit 84b025a
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions assets/js/glitche-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,29 @@ setTimeout(function () {
cursorElement.style.display = "unset";

/* Typed subtitle */
new Typed(".typed-subtitle", {
stringsElement: document.querySelector(".typing-subtitle"),
loop: true,
typeSpeed: 50,
});
const subtitleElement = document.querySelector(".typed-subtitle");
const subtitleStringsElement = document.querySelector(".typing-subtitle");

if (subtitleElement && subtitleStringsElement) {
new Typed(subtitleElement, {
stringsElement: subtitleStringsElement,
loop: true,
typeSpeed: 50,
});
}

/* Typed breadcrumbs */
new Typed(".typed-bread", {
stringsElement: document.querySelector(".typing-bread"),
showCursor: false,
typeSpeed: 50,
});
const breadcrumbsElement = document.querySelector(".typed-bread");
const breadcrumbsStringsElement = document.querySelector(".typing-bread");

if (breadcrumbsElement && breadcrumbsStringsElement) {
new Typed(breadcrumbsElement, {
stringsElement: breadcrumbsStringsElement,
showCursor: false,
typeSpeed: 50,
});
}


/* One-Page Nav */
let urlHash = window.location.hash;
Expand Down

0 comments on commit 84b025a

Please sign in to comment.