From ce903bbd8ea3051d354021ef065a99585533f05a Mon Sep 17 00:00:00 2001
From: Firisy Feng
'); // Replace newline with
for line breaks
- i++;
- setTimeout(type, speed);
- } else {
- console.log('Typing complete, pausing cursor animation for', element); // Debug output
- if (callback) callback();
- }
- }
- type();
- }
-
- const headerElement = document.querySelector('.hero_header');
- const taglineElement = document.querySelector('.tagline');
-
- const headerText = 'JY-HF Learning Site___';
- const headerHTML = 'JY-HF Learning Site___';
- const taglineText = 'Share the knowledge to you and Us';
- const taglineHTML = 'Share the knowledge to you and Us';
-
- headerElement.textContent = '';
- taglineElement.textContent = '';
-
- typeWriter(headerElement, headerText, 300, () => {
- headerElement.innerHTML = headerHTML;
- headerElement.style.animationPlayState = 'paused'; // Pause the cursor animation
- headerElement.style.borderRightColor = 'transparent'; // Make the cursor transparent
- typeWriter(taglineElement, taglineText, 300, () => {
- taglineElement.innerHTML = taglineHTML;
-
- });
- });
-});
diff --git a/material/overrides/home.html b/material/overrides/home.html
index 505d0aaf..726e714a 100644
--- a/material/overrides/home.html
+++ b/material/overrides/home.html
@@ -44,7 +44,46 @@ JY-HF Share the knowledge to you and Us