jQuery

The jQuery library is a wonderful project and great things can be thought of! I dont use it too much but once in a while I code something I feel is nice to have easy access to. And thats here..

Automatically Generate & Display a QR code to this page (like the one on the bottom, but with jQuery instead of php)

The code:

    $(document).ready(function() {
        $('#thispage').html('<img src="http://chart.apis.google.com/chart?cht=qr&chs=120x120&chl='+window.location.href+'">');
        });

The div

<div id="thispage" style="border-width: .1em; border-style: dotted; width:130; text-align: center; background-color: #FFFFFF;""></div>

Example:

  • *mouth open in amazement* xbmc just downloaded the subtitles on the fly from some site; who knows WHERE! This is Spectacular software! 20 weeks 3 days ago
  • Very unrealistic dialogue and plot 20 weeks 3 days ago

Site QR Code

Use this code at your own peril; I am not responsible for anything that happens to you or your devices. You re a big boy or girl, please do some research before using it if you have any concerns!