Skip to content
/ qr Public
forked from dtinth/qr

A popup QR code scanner that can be easily integrated into a web app.

Notifications You must be signed in to change notification settings

Duckinm/qr

 
 

Repository files navigation

qr.spacet.me

A popup QR code scanner that can be easily integrated into a web app. Powered by @zxing/browser.

Try it in your JavaScript console. Copy the following code and paste it into your browser's console.

await new Promise((resolve) => {
  const w = window.open(
    'https://qr.spacet.me/?action=scan&fit=cover&delay=100&post=opener',
    '_blank',
    'width=320,height=320,toolbar=no',
  )
  const onMessage = (e) => {
    if (e.source === w && e.data.text) {
      resolve(e.data.text)
      w.close()
      removeEventListener('message', onMessage)
    }
  }
  addEventListener('message', onMessage)
})

About

A popup QR code scanner that can be easily integrated into a web app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 71.6%
  • HTML 23.9%
  • JavaScript 3.7%
  • CSS 0.8%