Skip to content

Commit

Permalink
tulip_offset_horz_6
Browse files Browse the repository at this point in the history
  • Loading branch information
neodigm committed Sep 19, 2023
1 parent 4b34052 commit 46c2577
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dist/neodigm55__v3_1.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,17 @@ const neodigmUtils = ( ( _d ) =>{
if( neodigmOpt.neodigmWWInterval ) return window.setTimeoutN55( fCb, nT )
return setTimeout( fCb, nT ) // TODO create doClearT, doSetI, and doClearI
},
shake: function( el, bSound = true) {
if( neodigmOpt.neodigmWired4Sound ) neodigmWired4Sound.doHaptic([8, 32, 48])
shake: function( _q, bSound = true) {
if( neodigmOpt.neodigmWired4Sound ) neodigmWired4Sound.doHaptic([8, 32, 48]);
[ ... document.querySelectorAll( _q ) ].forEach(function( el, nDx ){
el.classList.add( "shake__an" );
setTimeout(function(){
el.classList.remove( "shake__an" );
}, 460)
if( bSound && neodigmOpt.neodigmWired4Sound && neodigmOpt.EVENT_SOUNDS ) neodigmWired4Sound.sound( 13, "QUITE" )
if( neodigmOpt.neodigmWired4Sound ) neodigmWired4Sound.doHaptic([48, 32, 8])
} )
if( bSound && neodigmOpt.neodigmWired4Sound && neodigmOpt.EVENT_SOUNDS ) neodigmWired4Sound.sound( 13, "QUITE" )
if( neodigmOpt.neodigmWired4Sound ) neodigmWired4Sound.doHaptic([48, 32, 8])
return neodigmUtils
}
}
})( document );
Expand Down

0 comments on commit 46c2577

Please sign in to comment.