slitaz-forge diff usbkey/tail.php @ rev 348

mirror: add QR code
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 20 18:32:44 2013 +0100 (2013-03-20)
parents cce1cb7393b6
children 41bfd0397973
line diff
     1.1 --- a/usbkey/tail.php	Fri Mar 23 09:07:29 2012 +0100
     1.2 +++ b/usbkey/tail.php	Wed Mar 20 18:32:44 2013 +0100
     1.3 @@ -12,6 +12,15 @@
     1.4  <p>
     1.5  <a href="http://validator.w3.org/check?uri=referer"><img src="/static/xhtml10.png" alt="Valid XHTML 1.0" title="Code validé XHTML 1.0" style="width: 80px; height: 15px;" /></a>
     1.6  </p>
     1.7 +<p>
     1.8 +	<img src="#" id="qrcodeimg" alt="#" width="60" height="60"
     1.9 +	     onclick= "this.width = this.height = 300;" />
    1.10 +	<script type="text/javascript" src="/static/qrcode.js"></script>
    1.11 +	<script type="text/javascript">
    1.12 +		document.getElementById('qrcodeimg').src =
    1.13 +			QRCode.generatePNG(location.href, {ecclevel: 'H'});
    1.14 +	</script>
    1.15 +</p>
    1.16  </div>
    1.17  
    1.18  </body>