diff --git a/index.html b/index.html index 3d284bc..cc4e5be 100644 --- a/index.html +++ b/index.html @@ -2578,142 +2578,6 @@ floGlobals.prefersReducedMotion = reduceMotionQuery.matches }); floGlobals.prefersReducedMotion = reduceMotionQuery.matches - - window.customElements.define('keys-generator', class extends HTMLElement { - constructor() { - super(); - this.innerHTML = ` - -
-
- -
- -

Keep your keys safe!

-
-

Don't share with anyone. Once lost private key can't be recovered.

-
-
-
-
-
FLO address
- -
-
-
Private key
- -
-
- -

You can use these FLO credentials with other RanchiMall apps too.

-
- ` - } - get keys() { - return { - floID: this.querySelector('#generated_flo_address').value, - privKey: this.querySelector('#generated_private_key').value - } - } - - generateKeys() { - const { floID, privKey } = floCrypto.generateNewID() - this.querySelector('#generated_flo_address').value = floID - this.querySelector('#generated_private_key').value = privKey - } - clearKeys() { - this.querySelector('#generated_flo_address').value = '' - this.querySelector('#generated_private_key').value = '' - } - }); - const adBlockerWarning = document.createElement('template') - adBlockerWarning.innerHTML = ` - -
- `; - window.customElements.define('adblocker-warning', class extends HTMLElement { - constructor() { - super(); - this.attachShadow({ mode: 'open' }); - this.shadowRoot.appendChild(adBlockerWarning.content.cloneNode(true)); - } - connectedCallback() { - const isBrave = navigator.brave !== undefined - this.shadowRoot.querySelector('#adblocker_warning').innerHTML = ` - -

Ad-Blocker Detected!

-

- Please disable your ad-blocker for optimal experience. Our app doesn't show ads or track activity. -

- ${isBrave ? `If you have enabled Brave shield then disable it also.` : ''} - `; - } - });