website annotate lib/html/footer.da.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 | 122804092bc7 |
children | 0b25644d74b8 |
rev | line source |
---|---|
al@1011 | 1 <!-- Footer --> |
pascal@1163 | 2 |
pascal@1229 | 3 <script type="text/javascript"> |
pascal@1229 | 4 function QRCodePNG(str, obj) { |
pascal@1229 | 5 try { |
pascal@1229 | 6 return QRCode.generatePNG(str, {ecclevel: 'H'}); |
pascal@1229 | 7 } |
pascal@1229 | 8 catch (any) { |
pascal@1229 | 9 var element = document.createElement("script"); |
pascal@1229 | 10 element.src = "/lib/js/qrcode.js"; |
pascal@1229 | 11 element.type ="text/javascript"; |
pascal@1229 | 12 element.onload = function() { |
pascal@1229 | 13 obj.src = QRCode.generatePNG(str, {ecclevel: 'H'}); |
pascal@1229 | 14 }; |
pascal@1229 | 15 document.body.appendChild(element); |
pascal@1229 | 16 } |
pascal@1229 | 17 } |
pascal@1229 | 18 </script> |
pascal@1163 | 19 |
al@1011 | 20 <div id="footer"> |
al@1011 | 21 Copyright © <span class="year"></span> |
al@1011 | 22 <a href="http://www.slitaz.org/">SliTaz</a> - Netværk: |
al@1011 | 23 <a href="http://scn.slitaz.org/">Samfund</a> |
al@1011 | 24 <a href="http://doc.slitaz.org/">Vejledning</a> |
al@1011 | 25 <a href="http://forum.slitaz.org/">Forum</a> |
al@1011 | 26 <a href="http://pkgs.slitaz.org/">Programpakker</a> |
al@1011 | 27 <a href="http://bugs.slitaz.org">Fejl</a> |
al@1011 | 28 <a href="http://hg.slitaz.org/">Hg</a> |
al@1011 | 29 <p> |
al@1165 | 30 <img src="/images/qr.png" alt="SliTaz @" onmouseover="this.title = location.href" |
pascal@1229 | 31 onclick="this.src = QRCodePNG(location.href, this)" /> |
al@1011 | 32 <a href="http://twitter.com/slitaz">Twitter</a> |
al@1011 | 33 <a href="http://www.facebook.com/slitaz">Facebook</a> |
al@1011 | 34 <a href="http://distrowatch.com/slitaz">Distrowatch</a> |
al@1158 | 35 <a href="http://da.wikipedia.org/wiki/SliTaz">Wikipedia</a> |
al@1011 | 36 <a href="http://flattr.com/profile/slitaz">Flattr</a> |
al@1011 | 37 </p> |
al@1011 | 38 </div> |