Skip to content

Commit 77d0928

Browse files
authored
Create Automated_Typing_Script.js
1 parent fddbdc8 commit 77d0928

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Automated_Typing_Script

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
var i = 0;
2+
var txt = `${RDF}`;
3+
var speed = 60;
4+
function automatedTyper () {
5+
if (i < txt. length ) {
6+
ed. replaceRange ( txt. charAt (i),ed. getCursor ())
7+
i++;
8+
setTimeout ( automatedTyper , speed );
9+
}
10+
}
11+
var now = new Date ();
12+
var millisTill10 = new Date (now . getFullYear () , now . getMonth () , now .
13+
getDate () , 12, 0, 0, 0) - now ;
14+
if ( millisTill10 < 0) {
15+
millisTill10 += 86400000;
16+
}
17+
setTimeout ( function (){ automatedTyper ()}, millisTill10 );

0 commit comments

Comments
 (0)