Skip to content

Commit

Permalink
keylime_listening
Browse files Browse the repository at this point in the history
  • Loading branch information
neodigm committed Jul 21, 2024
1 parent c495c3a commit 220bb86
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dist/neodigm55__v3_5.js
Original file line number Diff line number Diff line change
Expand Up @@ -862,19 +862,21 @@ let neodigmParallax = new NeodigmParallax( document, ["neodigm-parallax", "n55Pa
*/
class NeodigmKeylime { // Universal Click / long tap / body exit / network state / Hover / resize / shake / reorient / scroll listener emitter = neodigmKeylime addEventListener( eventtoken, fExpression, fCallback )
static init() {
static init() {
this._d = document;
this.bIsInit = false; this.bIsPause = false;
this.subscribersKL = [] // {"subscriberID": symbol, "eventID": "click", "conditionF": null, "callbackF": null }
this.listenersKL = [] // {"listenerID": symbol, "eventID": "click", "ts": null, "event": null }

console.log(" ~~ keylime active")
console.log(" ~~ keylime listening")
this.bIsInit = true
return this
}
static subscribe( eventID, conditionF, callbackF ){ // key symbol
if( this.bIsInit && !this.bIsPause ){

// if listenersKL does not already exit
// create dom listener - get returned dom key
// push new listenesKL
}
return this;
}
Expand Down Expand Up @@ -1871,7 +1873,7 @@ function doDOMContentLoaded(){
}
neodigmUtils.appStateListen() // Bind to Host
neodigmMetronome.init() // Always-on
NeodigmKeylime.init() // Always-on
NeodigmKeylime.init() // Static Always-on
NeodigmClaire.init()
if( neodigmOpt.N55_AMPM_THEME && !document[ neodigmOpt.N55_APP_STATE.CONTEXT ].dataset.n55AmpmTheme ) document[ neodigmOpt.N55_APP_STATE.CONTEXT ].dataset.n55AmpmTheme = neodigmOpt.N55_AMPM_THEME
if( neodigmOpt.CONSOLE_LOG_VER ) console.log("%c Neodigm 55 the eclectic low-code UX micro-library ✨ v" + neodigmUtils.ver, "background: #000; color: #F5DF4D; font-size: 20px");
Expand Down

0 comments on commit 220bb86

Please sign in to comment.