slitaz-forge diff mirror/floppies/mkindex.sh @ 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 e1f7dc7926ee
children 41bfd0397973
line diff
     1.1 --- a/mirror/floppies/mkindex.sh	Sat Apr 14 15:30:37 2012 +0200
     1.2 +++ b/mirror/floppies/mkindex.sh	Wed Mar 20 18:32:44 2013 +0100
     1.3 @@ -216,6 +216,15 @@
     1.4  Copyright &copy; <span class="year"></span> <a href="http://www.slitaz.org/">SliTaz</a> -
     1.5  <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</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  <!-- End of copy -->
    1.17  </div>
    1.18