Versions

  • v10

    7/27/2023
    Open: Version
    Changes from v9 to v10
    +1
    -0
    ⦚ 4 unchanged lines ⦚
    res.set("content-type", "image/gif;base64");
    res.send(base64Image);
    }
    else {
    res.send(`<div>
    ⦚ 13 unchanged lines ⦚
    ⦚ 4 unchanged lines ⦚
    res.set("content-type", "image/gif;base64");
    res.send(base64Image);
    return req.query.data;
    }
    else {
    res.send(`<div>
    ⦚ 13 unchanged lines ⦚
  • v9

    7/27/2023
    Open: Version
    Changes from v8 to v9
    +0
    -1
    ⦚ 7 unchanged lines ⦚
    else {
    res.send(`<div>
    <h1>QR Generator</h1>
    <iframe src="/qr?data=https://stevekrouse-qr.express.val.run" width="100%" height="100%"/>
    <input></input>
    <script>
    ⦚ 10 unchanged lines ⦚
    ⦚ 7 unchanged lines ⦚
    else {
    res.send(`<div>
    <iframe src="/qr?data=https://stevekrouse-qr.express.val.run" width="100%" height="100%"/>
    <input></input>
    <script>
    ⦚ 10 unchanged lines ⦚
  • v8

    7/27/2023
    Open: Version
    Changes from v7 to v8
    +2
    -1
    ⦚ 6 unchanged lines ⦚
    }
    else {
    res.send(`<div>iframe myself forever!!!
    <iframe src="/qr?data=https://stevekrouse-qr.express.val.run" width="100%" height="100%"/>
    <input></input>
    ⦚ 11 unchanged lines ⦚
    ⦚ 6 unchanged lines ⦚
    }
    else {
    res.send(`<div>
    <h1>QR Generator</h1>
    <iframe src="/qr?data=https://stevekrouse-qr.express.val.run" width="100%" height="100%"/>
    <input></input>
    ⦚ 11 unchanged lines ⦚
  • v7

    7/27/2023
    Open: Version
    Changes from v6 to v7
    +1
    -1
    ⦚ 7 unchanged lines ⦚
    else {
    res.send(`<div>iframe myself forever!!!
    <iframe src="/qr?data=${req.originalUrl}" width="100%" height="100%"/>
    <input></input>
    <script>
    ⦚ 10 unchanged lines ⦚
    ⦚ 7 unchanged lines ⦚
    else {
    res.send(`<div>iframe myself forever!!!
    <iframe src="/qr?data=https://stevekrouse-qr.express.val.run" width="100%" height="100%"/>
    <input></input>
    <script>
    ⦚ 10 unchanged lines ⦚
  • v6

    7/27/2023
    Open: Version
    Changes from v5 to v6
    +1
    -1
    export async function qr(req: express.Request, res: express.Response) {
    if (req.path.startsWith("qr")) {
    const { qrcode } = await import("https://deno.land/x/qrcode/mod.ts");
    const base64Image = await qrcode(req.query.data);
    ⦚ 18 unchanged lines ⦚
    export async function qr(req: express.Request, res: express.Response) {
    if (req.path.startsWith("/qr")) {
    const { qrcode } = await import("https://deno.land/x/qrcode/mod.ts");
    const base64Image = await qrcode(req.query.data);
    ⦚ 18 unchanged lines ⦚
  • v5

    7/27/2023
    Open: Version
    Changes from v4 to v5
    +1
    -1
    ⦚ 6 unchanged lines ⦚
    }
    else {
    res.send(`<div>
    <iframe src="/qr?data=${req.originalUrl}" width="100%" height="100%"/>
    <input></input>
    ⦚ 11 unchanged lines ⦚
    ⦚ 6 unchanged lines ⦚
    }
    else {
    res.send(`<div>iframe myself forever!!!
    <iframe src="/qr?data=${req.originalUrl}" width="100%" height="100%"/>
    <input></input>
    ⦚ 11 unchanged lines ⦚
  • v4

    7/27/2023
    Open: Version
    Changes from v3 to v4
    +1
    -1
    ⦚ 7 unchanged lines ⦚
    else {
    res.send(`<div>
    <iframe src="/qr?data=${req.originalUrl}" />
    <input></input>
    <script>
    ⦚ 10 unchanged lines ⦚
    ⦚ 7 unchanged lines ⦚
    else {
    res.send(`<div>
    <iframe src="/qr?data=${req.originalUrl}" width="100%" height="100%"/>
    <input></input>
    <script>
    ⦚ 10 unchanged lines ⦚
  • v3

    7/27/2023
    Open: Version
    Changes from v2 to v3
    +6
    -2
    export async function qr(req: express.Request, res: express.Response) {
    if (req.path.startsWith("qr")) {
    const { qrcode } = await import("https://deno.land/x/qrcode/mod.ts");
    const base64Image = await qrcode(res.query.data);
    res.set("content-type", "image/gif;base64");
    res.send(base64Image);
    ⦚ 4 unchanged lines ⦚
    <input></input>
    <script>
    </script>
    </div>`);
    ⦚ 3 unchanged lines ⦚
    export async function qr(req: express.Request, res: express.Response) {
    if (req.path.startsWith("qr")) {
    const { qrcode } = await import("https://deno.land/x/qrcode/mod.ts");
    const base64Image = await qrcode(req.query.data);
    res.set("content-type", "image/gif;base64");
    res.send(base64Image);
    ⦚ 4 unchanged lines ⦚
    <input></input>
    <script>
    let iframe = document.getElementsByTagName("iframe")[0]
    let input = document.getElementsByTagName("input")[0]
    input.addEventListener('input', function(e){
    img.src="/qr?data=" + e.target.value
    })
    </script>
    </div>`);
    ⦚ 3 unchanged lines ⦚
  • v2

    7/27/2023
    Open: Version
    +18
    -0

    export async function qr(req: express.Request, res: express.Response) {
    if (req.path.startsWith("qr")) {
    const { qrcode } = await import("https://deno.land/x/qrcode/mod.ts");
    const base64Image = await qrcode(res.query.data);
    res.set("content-type", "image/gif;base64");
    res.send(base64Image);
    }
    else {
    res.send(`<div>
    <iframe src="/qr?data=${req.originalUrl}" />
    <input></input>
    <script>
    </script>
    </div>`);
    }
    }
    // Forked from @ramkarthik.GenerateQR
Updated: October 23, 2023