From 6d47a00f291ea86f9d556572eb14a85317a4f30d Mon Sep 17 00:00:00 2001 From: Robin Buse Date: Tue, 16 Aug 2011 23:31:41 +0300 Subject: [PATCH 1/2] QR code support (html) --- static/pad.html | 1 + 1 file changed, 1 insertion(+) diff --git a/static/pad.html b/static/pad.html index 513e9dc6..5659b5fa 100644 --- a/static/pad.html +++ b/static/pad.html @@ -239,6 +239,7 @@ Embed code:
Use this link to share a read-only version of your pad: +
From 47a16ddbe2a9459ca65c203a358aa0a6bf513d08 Mon Sep 17 00:00:00 2001 From: Robin Buse Date: Tue, 16 Aug 2011 23:34:05 +0300 Subject: [PATCH 2/2] QR code support (js) --- static/js/pad_editbar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/pad_editbar.js b/static/js/pad_editbar.js index f088eaeb..18dda787 100644 --- a/static/js/pad_editbar.js +++ b/static/js/pad_editbar.js @@ -114,6 +114,7 @@ var padeditbar = (function() { var basePath = document.location.href.substring(0, document.location.href.indexOf("/p/")); var readonlyLink = basePath + "/ro/" + clientVars.readOnlyId; + $('#readonlyImage').attr("src","https://chart.googleapis.com/chart?chs=200x200&cht=qr&chld=H|0&chl=" + readonlyLink); $('#readonlyInput').val(readonlyLink); self.toogleDropDown("readonly"); $('#readonlyInput').focus().select();