slitaz-forge diff mirror/info/graphs.php @ rev 358

mirror: standardize qrcode
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 26 09:19:18 2013 +0100 (2013-03-26)
parents 41bfd0397973
children 88002a7d0351
line diff
     1.1 --- a/mirror/info/graphs.php	Wed Mar 20 19:56:45 2013 +0100
     1.2 +++ b/mirror/info/graphs.php	Tue Mar 26 09:19:18 2013 +0100
     1.3 @@ -120,6 +120,9 @@
     1.4  </div>
     1.5  
     1.6  <!-- Footer -->
     1.7 +
     1.8 +<script type="text/javascript" src="/static/qrcode.js"></script>
     1.9 +
    1.10  <div id="footer">
    1.11  	Copyright &copy; <span class="year"></span>
    1.12  	<a href="http://www.slitaz.org/">SliTaz</a> - Network:
    1.13 @@ -131,7 +134,8 @@
    1.14  	<a href="http://bugs.slitaz.org">Bugs</a>
    1.15  	<a href="http://hg.slitaz.org/">Hg</a>
    1.16  	<p>
    1.17 -		SliTaz @
    1.18 +		<img src="#" alt="SliTaz @" onmouseover="this.title = location.href"
    1.19 +		 onclick="this.src = QRCode.generatePNG(location.href, {ecclevel: 'H'})" />
    1.20  		<a href="http://twitter.com/slitaz">Twitter</a>
    1.21  		<a href="http://www.facebook.com/slitaz">Facebook</a>
    1.22  		<a href="http://distrowatch.com/slitaz">Distrowatch</a>
    1.23 @@ -144,16 +148,6 @@
    1.24  				alt="Valid XHTML 1.0" title="Code valid. XHTML 1.0"
    1.25  				style="width: 80px; height: 15px;" /></a>
    1.26  	</p>
    1.27 -	<p>
    1.28 -		<img src="#" id="qrcodeimg" alt="#" width="60" height="60"
    1.29 -		     onmouseover= "this.title = location.href"
    1.30 -		     onclick= "this.width = this.height = 300" />
    1.31 -		<script type="text/javascript" src="/static/qrcode.js"></script>
    1.32 -		<script type="text/javascript">
    1.33 -			document.getElementById('qrcodeimg').src =
    1.34 -				QRCode.generatePNG(location.href, {ecclevel: 'H'});
    1.35 -		</script>
    1.36 -	</p>
    1.37  </div>
    1.38  
    1.39  </body>