Skip to content

Commit

Permalink
typeOn
Browse files Browse the repository at this point in the history
  • Loading branch information
neodigm committed Sep 23, 2023
1 parent ade1041 commit 17b2722
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/neodigm55__v3_1.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ const neodigmUtils = ( ( _d ) =>{
// initial type off
let elTrg = document.querySelector( o?.q1st )
if( elTrg ){
o.msg = o.msg.replaceAll("|", " | ")
let aFraz = o.msg.split("|")
if( (o?.mode == "RANDOM" ) && aFraz.length ){ o.msg = aFraz[ neodigmUtils.f02x( aFraz.length ) ] }
if( ( o?.mode == "RANDOM" ) && aFraz.length ){ o.msg = aFraz[ neodigmUtils.f02x( aFraz.length ) ] }
const NTIMES = [ o.msg.length, o.uniqueDelay ];
neodigmUtils.typeOff({"q1st": o.q1st, "uniqueDelay": ( o.uniqueDelay / elTrg.textContent.length ) - 4 })

Expand Down

0 comments on commit 17b2722

Please sign in to comment.