slitaz-forge 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 | d31df0170214 |
children | d2082d27913b |
files | mirror/info/graphs.php mirror/info/index.php |
line diff
1.1 --- a/mirror/info/graphs.php Tue Mar 26 09:07:46 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 © <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>
2.1 --- a/mirror/info/index.php Tue Mar 26 09:07:46 2013 +0100 2.2 +++ b/mirror/info/index.php Tue Mar 26 09:19:18 2013 +0100 2.3 @@ -336,6 +336,9 @@ 2.4 </div> 2.5 2.6 <!-- Footer --> 2.7 + 2.8 +<script type="text/javascript" src="/static/qrcode.js"></script> 2.9 + 2.10 <div id="footer"> 2.11 Copyright © <span class="year"></span> 2.12 <a href="http://www.slitaz.org/">SliTaz</a> - Network: 2.13 @@ -347,7 +350,8 @@ 2.14 <a href="http://bugs.slitaz.org">Bugs</a> 2.15 <a href="http://hg.slitaz.org/">Hg</a> 2.16 <p> 2.17 - SliTaz @ 2.18 + <img src="#" alt="SliTaz @" onmouseover="this.title = location.href" 2.19 + onclick="this.src = QRCode.generatePNG(location.href, {ecclevel: 'H'})" /> 2.20 <a href="http://twitter.com/slitaz">Twitter</a> 2.21 <a href="http://www.facebook.com/slitaz">Facebook</a> 2.22 <a href="http://distrowatch.com/slitaz">Distrowatch</a> 2.23 @@ -360,16 +364,6 @@ 2.24 alt="Valid XHTML 1.0" title="Code valid. XHTML 1.0" 2.25 style="width: 80px; height: 15px;" /></a> 2.26 </p> 2.27 - <p> 2.28 - <img src="#" id="qrcodeimg" alt="#" width="60" height="60" 2.29 - onmouseover= "this.title = location.href" 2.30 - onclick= "this.width = this.height = 300" /> 2.31 - <script type="text/javascript" src="/static/qrcode.js"></script> 2.32 - <script type="text/javascript"> 2.33 - document.getElementById('qrcodeimg').src = 2.34 - QRCode.generatePNG(location.href, {ecclevel: 'H'}); 2.35 - </script> 2.36 - </p> 2.37 </div> 2.38 2.39 </body>