Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
bayaireus committed Sep 29, 2023
1 parent 67e671e commit 1d7cd8b
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,26 +186,6 @@
}
}

// Modified typewriter function
$.fn.typewriter = function(speed) {
console.log("Typewriter function invoked."); // Debugging line
playTypingSoundWithRandomStart(); // Start typing sound

this.each(function() {
var $ele = $(this), str = $ele.text(), progress = 0;
$ele.text('');
var timer = setInterval(function() {
$ele.text(str.substring(0, progress++) + (progress & 1 ? '_' : ''));
if (progress >= str.length + 1) {
clearInterval(timer);
stopTypingSound(true); // Stop typing sound with fade-out
}
}, speed);
});
return this;
};


// Modified typewriter function
$.fn.typewriter = function(speed) {
playTypingSoundWithRandomStart(); // Start typing sound
Expand Down

0 comments on commit 1d7cd8b

Please sign in to comment.