Skip to content

Instantly share code, notes, and snippets.

@Sitebase
Created March 15, 2013 08:43
Show Gist options
  • Save Sitebase/5168380 to your computer and use it in GitHub Desktop.
Save Sitebase/5168380 to your computer and use it in GitHub Desktop.
Favelet to generate QR code from the current website URL. This way you can just scan to QR code if you want to test it on your mobile device.
javascript:(function(){var api="http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=" + encodeURIComponent(document.location.href) + "&chld=H|0";document.write('<img src="' + api + '" width="200" height="200" />');})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment