website view lib/html/footer.pt.html @ rev 1229

on demand qrcode script load
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 22 13:23:01 2014 +0200 (2014-06-22)
parents ad7ceb04a686
children 0b25644d74b8
line source
1 <!-- Footer -->
3 <script type="text/javascript">
4 function QRCodePNG(str, obj) {
5 try {
6 return QRCode.generatePNG(str, {ecclevel: 'H'});
7 }
8 catch (any) {
9 var element = document.createElement("script");
10 element.src = "/lib/js/qrcode.js";
11 element.type ="text/javascript";
12 element.onload = function() {
13 obj.src = QRCode.generatePNG(str, {ecclevel: 'H'});
14 };
15 document.body.appendChild(element);
16 }
17 }
18 </script>
20 <div id="footer">
21 Copyright &copy; <span class="year"></span>
22 <a href="http://www.slitaz.org/">SliTaz</a> - Network:
23 <a href="http://scn.slitaz.org/">Comunidade</a>
24 <a href="http://doc.slitaz.org/">Doc</a>
25 <a href="http://forum.slitaz.org/">Fórum</a>
26 <a href="http://pkgs.slitaz.org/">Pacotes</a>
27 <a href="http://bugs.slitaz.org">Bugs</a>
28 <a href="http://hg.slitaz.org/">Hg</a>
29 <p>
30 <img src="/images/qr.png" alt="SliTaz @" onmouseover="this.title = location.href"
31 onclick="this.src = QRCodePNG(location.href, this)" />
32 <a href="http://twitter.com/slitaz">Twitter</a>
33 <a href="http://www.facebook.com/slitaz">Facebook</a>
34 <a href="http://distrowatch.com/table.php?distribution=slitaz&amp;language=PT">Distrowatch</a>
35 <a href="http://pt.wikipedia.org/wiki/SliTaz">Wikipedia</a>
36 <a href="http://flattr.com/profile/slitaz">Flattr</a>
37 </p>
38 </div>