Skip to content

Instantly share code, notes, and snippets.

@disinfeqt
Forked from tlxue/linkToQrcode
Created August 18, 2014 02:34
Show Gist options
  • Select an option

  • Save disinfeqt/2db561fcb18b0e1587b1 to your computer and use it in GitHub Desktop.

Select an option

Save disinfeqt/2db561fcb18b0e1587b1 to your computer and use it in GitHub Desktop.

Revisions

  1. disinfeqt revised this gist Aug 18, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion linkToQrcode
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    javascript:(function(){document.location.href='https://chart.googleapis.com/chart?chs=150x150&cht=qr&choe=UTF-8&chl='+encodeURIComponent(document.location.href);})()
    javascript:(function(){document.location.href='https://chart.googleapis.com/chart?chs=300x300&cht=qr&choe=UTF-8&chl='+encodeURIComponent(document.location.href);})()

    // 根据当前页面生成 QR code 的 bookmarklet
    // 用到了 Google Chart API: https://developers.google.com/chart/infographics/docs/qr_codes?csw=1
  2. @tlxue tlxue revised this gist Apr 11, 2014. No changes.
  3. @tlxue tlxue created this gist Apr 11, 2014.
    4 changes: 4 additions & 0 deletions linkToQrcode
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    javascript:(function(){document.location.href='https://chart.googleapis.com/chart?chs=150x150&cht=qr&choe=UTF-8&chl='+encodeURIComponent(document.location.href);})()

    // 根据当前页面生成 QR code 的 bookmarklet
    // 用到了 Google Chart API: https://developers.google.com/chart/infographics/docs/qr_codes?csw=1