Published
Edited
Nov 18, 2021
2 forks
4 stars
Insert cell
Insert cell
qrcode = require("https://bundle.run/qrcode@1.4.1")
Insert cell
qrcode.toCanvas("https://github.com/zeekay/qrcode-lite")
Insert cell
Insert cell
qrcode2 = require("qrcode-generator@1.4.4")
Insert cell
qr("https://github.com/kazuhikoarase/qrcode-generator")
Insert cell
qr = url => {
let code = qrcode2(0, "M");
code.addData(url);
code.make();
const img = document.createElement("img");
img.setAttribute("src", code.createDataURL(32));
img.setAttribute("width", 150);
return img;
}
Insert cell
Insert cell
Insert cell
{
const image = await qrcode.toCanvas(`WIFI:T:WPA;S:${ssid};P:${password};;`);

return [image];
}
Insert cell
import { text } from "@jashkenas/inputs"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more